/* ─────────────────────────────────────────────────────────────────
   TrendFilter — Master Stylesheet (2026)

   Design language: Apple Liquid Glass (WWDC 2025 / iOS 26+)
   - Translucent surfaces, refractive depth, motion-responsive
   - Brand: violet (#7B6CFF) → magenta (#E85AD9) signature gradient
   - Typography: Outfit (display) + Inter (body) — same as the app
   - Theme-aware: respects prefers-color-scheme; light + dark first-class
   - Motion: cubic-bezier(0.32, 0.72, 0, 1) iOS standard easing
   - 60fps: transform + opacity only, GPU-accelerated
──────────────────────────────────────────────────────────────────── */

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

:root {
  color-scheme: light dark;

  /* ─── Brand ─── */
  --brand-violet: #7B6CFF;
  --brand-violet-60: #9D93FF;
  --brand-magenta: #E85AD9;
  --brand-peach: #FF8A8A;
  --brand-gradient: linear-gradient(135deg, #7B6CFF 0%, #E85AD9 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(123, 108, 255, 0.18) 0%, rgba(232, 90, 217, 0.14) 100%);
  --brand-glow: 0 12px 32px rgba(123, 108, 255, 0.35), 0 24px 48px rgba(232, 90, 217, 0.18);

  /* ─── Surfaces (dark default) ─── */
  --surface-0: #07070B; /* canvas */
  --surface-1: #0E0E14; /* section */
  --surface-2: #15151F; /* card */
  --surface-3: #1B1B28; /* elevated card / modal */
  --surface-glass: rgba(20, 20, 30, 0.62);
  --surface-glass-hover: rgba(28, 28, 42, 0.78);
  --surface-inverse: #F5F5F7;

  /* ─── Text ─── */
  --text-primary: #F7F7FA;
  --text-secondary: #C4C4D2;
  --text-tertiary: #8B8BA0;
  --text-disabled: #50506A;
  --text-on-brand: #FFFFFF;

  /* ─── Borders ─── */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-brand: rgba(232, 90, 217, 0.45);

  /* ─── Shadows (dark mode) ─── */
  --shadow-low: 0 4px 14px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-mid: 0 14px 32px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.22);
  --shadow-high: 0 28px 64px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.28);

  /* ─── Spacing scale (4pt) ─── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ─── Radius ─── */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* ─── Motion ─── */
  --ease-standard: cubic-bezier(0.32, 0.72, 0, 1);     /* iOS standard */
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-micro: 120ms;
  --duration-fast: 200ms;
  --duration-medium: 320ms;
  --duration-slow: 480ms;

  /* ─── Type ─── */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --surface-0: #FBFBFD;
    --surface-1: #FFFFFF;
    --surface-2: #FFFFFF;
    --surface-3: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --surface-glass-hover: rgba(255, 255, 255, 0.92);
    --surface-inverse: #15151F;

    --text-primary: #15151F;
    --text-secondary: #4A4A5C;
    --text-tertiary: #8B8BA0;
    --text-disabled: #C5C5D0;
    --text-on-brand: #FFFFFF;

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.10);
    --border-strong: rgba(0, 0, 0, 0.16);

    --shadow-low: 0 4px 12px rgba(15, 15, 30, 0.06), 0 1px 2px rgba(15, 15, 30, 0.04);
    --shadow-mid: 0 14px 32px rgba(15, 15, 30, 0.10), 0 4px 10px rgba(15, 15, 30, 0.04);
    --shadow-high: 0 28px 64px rgba(15, 15, 30, 0.14), 0 8px 16px rgba(15, 15, 30, 0.06);

    --brand-glow: 0 12px 32px rgba(123, 108, 255, 0.22), 0 24px 48px rgba(232, 90, 217, 0.10);
  }
}

/* ─────────────────────────────────────────────────────────────────
   Reset
──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background var(--duration-medium) var(--ease-standard),
              color var(--duration-medium) var(--ease-standard);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Layout primitives
──────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* ─────────────────────────────────────────────────────────────────
   Aurora background (decorative — anchored, GPU friendly)
──────────────────────────────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: aurora-drift 22s ease-in-out infinite;
  will-change: transform;
}
.aurora::before {
  top: -20vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(123, 108, 255, 0.6), transparent 65%);
}
.aurora::after {
  bottom: -20vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(232, 90, 217, 0.45), transparent 65%);
  animation-delay: -11s;
}
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 4vw) scale(1.08); }
}
@media (prefers-color-scheme: light) {
  .aurora::before { opacity: 0.32; }
  .aurora::after { opacity: 0.24; }
}

/* ─────────────────────────────────────────────────────────────────
   Typography
──────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-violet-60);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(40px, 7vw, 88px);
  color: var(--text-primary);
}
.display-md {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(32px, 4.6vw, 56px);
  color: var(--text-primary);
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--text-primary);
}
.body-lg {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
}
.body { color: var(--text-secondary); }
.caption {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────────
   Header / Nav
──────────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: var(--space-4);
  background: color-mix(in oklab, var(--surface-0) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: var(--shadow-low);
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-standard);
}
.nav-links > a:hover { color: var(--text-primary); }

.lang-switcher {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-switcher button {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) var(--ease-standard);
}
.lang-switcher button.active {
  background: var(--surface-3);
  color: var(--text-primary);
  box-shadow: var(--shadow-low);
}

@media (max-width: 720px) {
  .nav-links > a:not(.btn) { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Buttons
──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: var(--brand-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(123, 108, 255, 0.45), 0 30px 60px rgba(232, 90, 217, 0.22);
}
.btn-outline {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-outline:hover {
  background: var(--surface-glass-hover);
  border-color: var(--border-strong);
}
.btn-ghost {
  color: var(--text-secondary);
  padding-inline: 16px;
}
.btn-ghost:hover { color: var(--text-primary); }

/* ─────────────────────────────────────────────────────────────────
   Pill / badges
──────────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-gradient-soft);
  color: var(--brand-violet-60);
  border: 1px solid var(--border-brand);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-magenta);
  box-shadow: 0 0 8px var(--brand-magenta);
}

/* ─────────────────────────────────────────────────────────────────
   Hero
──────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(48px, 9vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  text-align: center;
  position: relative;
}
.hero-icon {
  width: clamp(96px, 14vw, 144px);
  height: clamp(96px, 14vw, 144px);
  border-radius: 30%; /* iOS app icon shape */
  margin: 0 auto var(--space-8);
  box-shadow: var(--brand-glow), var(--shadow-high);
  animation: hero-icon-float 6s var(--ease-standard) infinite;
}
@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  margin-bottom: var(--space-6);
  max-width: 920px;
  margin-inline: auto;
}
.hero p.body-lg {
  max-width: 640px;
  margin: 0 auto var(--space-10);
}
.hero-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────
   Sections
──────────────────────────────────────────────────────────────────── */
section {
  padding-block: clamp(48px, 8vw, 120px);
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

/* ─────────────────────────────────────────────────────────────────
   Liquid Glass card system
──────────────────────────────────────────────────────────────────── */
.glass {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mid);
  overflow: hidden;
  isolation: isolate;
}
.glass::before {
  /* refractive top-edge highlight (Liquid Glass touch) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}
.glass > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────────
   Trends grid (3-col on desktop, lifts on hover)
──────────────────────────────────────────────────────────────────── */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* ─── Editorial trend-card: real photo + glass meta panel ─────────── */
.trend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  box-shadow: var(--shadow-low);
  transition: transform var(--duration-medium) var(--ease-emphasized),
              border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-medium) var(--ease-emphasized);
  isolation: isolate;
}
.trend-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-brand);
  box-shadow: var(--shadow-mid), 0 0 0 1px rgba(232, 90, 217, 0.18);
}

.trend-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
.trend-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-deliberate) var(--ease-emphasized);
  will-change: transform;
}
.trend-card:hover .trend-media img { transform: scale(1.04); }
.trend-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 7, 11, 0) 45%,
    rgba(7, 7, 11, 0.45) 80%,
    rgba(7, 7, 11, 0.78) 100%);
  pointer-events: none;
}

.trend-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5) var(--space-5) var(--space-6);
}
.trend-emoji {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 14px rgba(232, 90, 217, 0.45));
}
.trend-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}
.trend-card p {
  color: var(--text-tertiary);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ─── Light-theme tweak (overlay slightly stronger for legibility) ─ */
@media (prefers-color-scheme: light) {
  .trend-media::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.32) 85%,
      rgba(255, 255, 255, 0.62) 100%);
  }
}

/* ─────────────────────────────────────────────────────────────────
   Features grid (icon + title + body)
──────────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.feature {
  padding: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--duration-medium) var(--ease-emphasized);
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--brand-glow);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.feature p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

/* ─────────────────────────────────────────────────────────────────
   Marketing programs (3-col)
──────────────────────────────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.program {
  padding: var(--space-8) var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.program-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}
.program h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}
.program p { color: var(--text-secondary); }

/* ─────────────────────────────────────────────────────────────────
   CTA section (final download)
──────────────────────────────────────────────────────────────────── */
.cta {
  text-align: center;
}
.cta-card {
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  background: var(--brand-gradient);
  border-radius: var(--radius-2xl);
  color: var(--text-on-brand);
  position: relative;
  overflow: hidden;
  box-shadow: var(--brand-glow);
}
.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(60px);
  pointer-events: none;
}
.cta-card::before { top: -25%; left: -10%; }
.cta-card::after { bottom: -25%; right: -10%; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: white; }
.cta-card p { color: rgba(255, 255, 255, 0.86); font-size: 17px; margin-top: var(--space-3); }
.cta-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.cta-buttons .btn-primary {
  background: white;
  color: var(--brand-violet);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.cta-buttons .btn-primary:hover { transform: translateY(-2px); }
.cta-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cta-buttons .btn-outline:hover { background: rgba(255, 255, 255, 0.26); }

/* ─────────────────────────────────────────────────────────────────
   Footer
──────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-12) var(--space-8);
  margin-top: var(--space-20);
  background: color-mix(in oklab, var(--surface-0) 90%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 360px; }
.footer-brand p { color: var(--text-tertiary); font-size: 14px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-standard);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────────────────────────
   Reveal-on-scroll utilities
──────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-emphasized),
              transform var(--duration-slow) var(--ease-emphasized);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
