/**
 * Pet Hub Design System — Colors & Typography
 * Source: landing/src/app/globals.css + page.tsx
 * Fonts: Outfit (heading), Inter (body) — Google Fonts
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─────────────────────────────────────────────
   BASE TOKENS
───────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:           #5B2E88;
  --brand-alt:       #6A3B99;
  --brand-glow:      rgba(91, 46, 136, 0.45);
  --brand-glow-soft: rgba(91, 46, 136, 0.18);
  --neon-purple:     #b47fff;
  --neon-glow:       rgba(180, 127, 255, 0.3);

  /* Backgrounds */
  --bg-deep:    #08071a;
  --bg-mid:     #0e0d21;
  --bg-surface: #12112d;
  --bg-glass:   rgba(18, 17, 45, 0.70);

  /* Text */
  --text-primary:   #f0eeff;
  --text-secondary: #a89cc8;
  --text-muted:     #6b628f;

  /* Borders */
  --border-soft:  rgba(255, 255, 255, 0.07);
  --border-brand: rgba(91, 46, 136, 0.4);

  /* Semantic accent colors (stat cards) */
  --accent-blue-from:   #1E3A8A;
  --accent-blue-to:     #0d2668;
  --accent-red-from:    #881337;
  --accent-red-to:      #4A0E22;
  --accent-green-from:  #14532D;
  --accent-green-to:    #0a3320;
  --accent-amber:       #D97706;

  /* Shadows */
  --shadow-brand:     0 0 32px rgba(91, 46, 136, 0.45);
  --shadow-brand-lg:  0 0 60px rgba(106, 59, 153, 0.6);
  --shadow-card:      0 40px 80px rgba(0, 0, 0, 0.6);
  --shadow-dashboard: 0 0 0 1px rgba(91,46,136,0.2), 0 40px 80px rgba(0,0,0,0.6), 0 0 100px rgba(91,46,136,0.14);

  /* Radii */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   32px;
  --radius-pill:  9999px;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Font sizes */
  --text-xs:   0.625rem;   /* 10px — labels, badges */
  --text-sm:   0.75rem;    /* 12px — captions */
  --text-base: 0.875rem;   /* 14px — nav links */
  --text-md:   1rem;       /* 16px — body */
  --text-lg:   1.125rem;   /* 18px — lead */
  --text-xl:   1.25rem;    /* 20px — subheading */
  --text-2xl:  1.5rem;     /* 24px — section heading */
  --text-3xl:  2rem;       /* 32px — section heading lg */
  --text-hero: clamp(2.5rem, 7vw, 5rem); /* Hero h1 */

  /* Font weights */
  --weight-light:     300;
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Line heights */
  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-widest:  0.14em;
}

/* ─────────────────────────────────────────────
   SEMANTIC TYPOGRAPHY CLASSES
───────────────────────────────────────────── */

/* Display / Hero headings */
.ph-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

/* Section headings */
.ph-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

/* Feature headings */
.ph-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

/* Card headings */
.ph-h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

/* Body text */
.ph-body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* Lead / subtitle */
.ph-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* Small / caption */
.ph-small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}

/* Badge / label */
.ph-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--neon-purple);
}

/* Nav link */
.ph-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: color 0.2s;
}
.ph-nav-link:hover { color: var(--text-primary); }

/* Price figure */
.ph-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--weight-extrabold);
  line-height: 1;
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────
   COMPONENT CLASSES
───────────────────────────────────────────── */

/* Primary Button */
.ph-btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-brand);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.ph-btn-primary:hover {
  background: var(--brand-alt);
  box-shadow: var(--shadow-brand-lg);
  transform: translateY(-2px);
}

/* Secondary Button */
.ph-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.ph-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
}

/* Glass Card */
.ph-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.ph-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-4px);
}

/* Featured Card (Pro/Elite) */
.ph-card-featured {
  background: var(--bg-glass);
  border: 1px solid rgba(91, 46, 136, 0.5);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(91, 46, 136, 0.25);
  position: relative;
  overflow: hidden;
}
.ph-card-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  opacity: 0.8;
}

/* Badge / Pill */
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-brand);
  background: rgba(91, 46, 136, 0.2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--neon-purple);
}

/* Glassmorphism Nav */
.ph-glass-nav {
  background: rgba(8, 7, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

/* Stat Card */
.ph-stat-card {
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   KEYFRAME ANIMATIONS
───────────────────────────────────────────── */
@keyframes ph-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ph-fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ph-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(30px, -50px) rotate(10deg); }
  66%       { transform: translate(-20px, -20px) rotate(-10deg); }
}

@keyframes ph-glow-pulse {
  0%   { opacity: 0; transform: scale(0.8); }
  40%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.3); }
}

.ph-animate-fadeUp   { animation: ph-fadeUp 0.7s ease both; }
.ph-animate-fadeDown { animation: ph-fadeDown 0.6s ease both; }
.ph-animate-float    { animation: ph-float ease-in-out infinite; }
