/* HomePro For Owners — Chartreuse + Lilac palette
   Adapted from Claude Design prototype for production use.
   Responsive (not fixed-width). Motion enhancements layered on top. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Chartreuse (anchor) */
  --chart-50:  #f8ffd6;
  --chart-100: #eeffa3;
  --chart-200: #e2ff66;
  --chart-300: #d4ff2e;
  --chart-400: #c4f000;
  --chart-500: #b6e000;
  --chart-600: #95b800;
  --chart-700: #708a08;
  --chart-800: #556812;
  --chart-900: #44531a;

  /* Lilac (secondary) */
  --lilac-50:  #f6f2ff;
  --lilac-100: #ebe3ff;
  --lilac-200: #ddccff;
  --lilac-300: #c5adff;
  --lilac-400: #a98aff;
  --lilac-500: #8b6bff;
  --lilac-600: #6f4ee0;
  --lilac-700: #5a3dba;
  --lilac-800: #3e2887;
  --lilac-900: #281a5e;

  /* Ink / paper */
  --ink: #0c0e10;
  --ink-2: #1a1d20;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f4f4f5;
  --mute-1: #5b6068;
  --mute-2: #8a8f97;
  --mute-3: #babfc7;
  --line: rgba(12,14,16,0.08);
  --line-2: rgba(12,14,16,0.05);
  --success: #22c55e;

  --font-display: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Root container — full width, no overflow tricks that break sticky */
.fo-root {
  width: 100%;
  overflow-x: clip;
}

/* ── Typography ── */
.display { font-family: var(--font-display); letter-spacing: -0.045em; line-height: 0.96; font-weight: 500; }
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }

/* ── Buttons ── */
.btn { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-body); font-weight:600; font-size:14px; padding:13px 20px; border-radius:999px; border:0; cursor:pointer; letter-spacing:-0.01em; transition: all .2s ease; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-1px); }
.btn-chart { background: var(--chart-300); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 22px rgba(196,240,0,.35); }
.btn-chart:hover { background: var(--chart-200); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 30px rgba(196,240,0,.45); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* ── Pills ── */
.pill { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; font-size:12.5px; font-weight:500; }
.pill-chart { background: var(--chart-200); color: var(--chart-900); }
.pill-lilac { background: var(--lilac-100); color: var(--lilac-800); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

/* ── Cards ── */
.card { background: var(--paper); border-radius: 24px; border: 1px solid var(--line); }
.card-soft { background: var(--paper-2); border-radius: 24px; }

/* ── Phone frame ── */
.phone {
  position: relative;
  background: linear-gradient(180deg, #1a1d20 0%, #0c0e10 100%);
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.12) inset,
    0 0 0 2px rgba(0,0,0,0.4),
    0 30px 80px -20px rgba(12,14,16,0.5),
    0 12px 30px -10px rgba(12,14,16,0.3);
}
.phone-screen { border-radius: 38px; overflow: hidden; background: #fff; position: relative; width: 100%; height: 100%; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 32px; background: #0c0e10; border-radius: 999px; z-index: 10; }

/* ── Status bar ── */
.status-bar { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 16px 30px 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); z-index: 5; letter-spacing: -0.01em; }
.status-bar.dark { color: white; }
.status-bar-right { display:flex; align-items:center; gap: 6px; }

/* ── Dot grid ── */
.bg-grid { background-image: radial-gradient(rgba(12,14,16,0.08) 1px, transparent 1px); background-size: 22px 22px; }

/* ── Marquee ── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { display: flex; animation: marquee 35s linear infinite; }

/* ── Pulse ── */
@keyframes pulse-soft { 0%, 100% { opacity:1; } 50% { opacity: 0.4; } }
.pulse-soft { animation: pulse-soft 1.6s ease-in-out infinite; }

/* ── Spin ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Section base ── */
section { position: relative; }
.hairline { height: 1px; background: var(--line); border: 0; }


/* ════════════════════════════════════════════
   MOTION GRAPHIC ENHANCEMENTS
   ════════════════════════════════════════════ */

/* ── Scroll progress bar ── */
.fo-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--chart-400), var(--lilac-400));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── Cursor glow ── */
.fo-cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--chart-300);
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s, filter 0.3s;
  mix-blend-mode: screen;
}
.fo-cursor-glow.large {
  width: 60px; height: 60px;
  filter: blur(24px);
  opacity: 0.7;
}

/* ── Scroll-reveal ── */
[data-reveal] > * {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].fo-revealed > * {
  opacity: 1;
}
[data-reveal] > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal] > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal] > *:nth-child(4) { transition-delay: 0.24s; }

/* ── Grain / noise overlay on dark sections ── */
[data-grain] {
  position: relative;
}
[data-grain]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
[data-grain] > * { position: relative; z-index: 2; }

/* ── Card 3D tilt ── */
.fo-tilt-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  will-change: transform;
}
.fo-tilt-card:hover {
  box-shadow: 0 20px 60px rgba(12,14,16,0.12), 0 4px 16px rgba(12,14,16,0.06);
}

/* ── Magnetic button ── */
.fo-magnetic {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* FilmStrip stacks vertically */
  .fo-filmstrip-grid {
    grid-template-columns: 1fr !important;
  }
  .fo-phone-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: 20px 0 40px !important;
  }
  .fo-phone-sticky .phone {
    width: 280px !important;
    height: 560px !important;
  }

  /* Hero font smaller */
  .fo-hero-h1 {
    font-size: clamp(64px, 12vw, 140px) !important;
  }

  /* Price intelligence grid */
  .fo-pi-grid {
    grid-template-columns: 1fr !important;
  }
  .fo-pi-signals {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  /* Built-for cards */
  .fo-builtfor-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* CTA grid */
  .fo-cta-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .fo-hero-h1 {
    font-size: clamp(40px, 14vw, 80px) !important;
  }
  .fo-pi-signals {
    grid-template-columns: 1fr 1fr !important;
  }
  .fo-builtfor-grid {
    grid-template-columns: 1fr !important;
  }
  .fo-cta-grid {
    gap: 40px !important;
  }
  .phone {
    width: 240px !important;
    height: 490px !important;
  }
}
