@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --bg-root: #F4EFE3;
  --bg-default: #FBF8F1;
  --bg-secondary: #EDE7D9;
  --bg-tertiary: #E2DBCB;
  --text: #29292B;
  --text-secondary: rgba(41, 41, 43, 0.62);
  --text-tertiary: rgba(41, 41, 43, 0.42);
  --border: #E2DBCB;
  --primary: #6063F1;
  --primary-hover: #4F46E5;
  --primary-tint: rgba(96, 99, 241, 0.1);
  --success: #10B981;
  --error: #EF4444;
  --error-tint: rgba(239, 68, 68, 0.08);
  --card-shadow: rgba(41, 41, 43, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 9999px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-root: #1C1C1E;
    --bg-default: #28282A;
    --bg-secondary: #333335;
    --bg-tertiary: #414143;
    --text: #F1ECE2;
    --text-secondary: rgba(241, 236, 226, 0.62);
    --text-tertiary: rgba(241, 236, 226, 0.42);
    --border: #38383A;
    --primary: #818CF8;
    --primary-hover: #A5B4FC;
    --primary-tint: rgba(129, 140, 248, 0.14);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --error-tint: rgba(248, 113, 113, 0.1);
  }
}

/* Explicit theme override via ?theme=light|dark, wins over system preference */
:root[data-theme="dark"] {
  --bg-root: #1C1C1E;
  --bg-default: #28282A;
  --bg-secondary: #333335;
  --bg-tertiary: #414143;
  --text: #F1ECE2;
  --text-secondary: rgba(241, 236, 226, 0.62);
  --text-tertiary: rgba(241, 236, 226, 0.42);
  --border: #38383A;
  --primary: #818CF8;
  --primary-hover: #A5B4FC;
  --primary-tint: rgba(129, 140, 248, 0.14);
  --card-shadow: rgba(0, 0, 0, 0.4);
  --error-tint: rgba(248, 113, 113, 0.1);
}

:root[data-theme="light"] {
  --bg-root: #F4EFE3;
  --bg-default: #FBF8F1;
  --bg-secondary: #EDE7D9;
  --bg-tertiary: #E2DBCB;
  --text: #29292B;
  --text-secondary: rgba(41, 41, 43, 0.62);
  --text-tertiary: rgba(41, 41, 43, 0.42);
  --border: #E2DBCB;
  --primary: #6063F1;
  --primary-hover: #4F46E5;
  --primary-tint: rgba(96, 99, 241, 0.1);
  --card-shadow: rgba(41, 41, 43, 0.08);
  --error-tint: rgba(239, 68, 68, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-root);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 227, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .nav { background: rgba(28, 28, 30, 0.82); }
}

:root[data-theme="dark"] .nav { background: rgba(28, 28, 30, 0.82); }
:root[data-theme="light"] .nav { background: rgba(244, 239, 227, 0.82); }

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 22%;
  flex-shrink: 0;
  object-fit: cover;
}

.logo-dark-mark { display: none; }
.logo-light-mark { display: block; }

@media (prefers-color-scheme: dark) {
  .logo-dark-mark { display: block; }
  .logo-light-mark { display: none; }
}

:root[data-theme="dark"] .logo-dark-mark { display: block; }
:root[data-theme="dark"] .logo-light-mark { display: none; }
:root[data-theme="light"] .logo-dark-mark { display: none; }
:root[data-theme="light"] .logo-light-mark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary-tint); }

.nav .btn { height: 44px; padding: 0 20px; font-size: 14px; }

/* Hero */
.hero {
  padding: 88px 0 48px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  margin: 16px 0 20px;
}

.hero-copy .lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust {
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-video-wrap {
  position: relative;
  width: 280px;
  aspect-ratio: 980 / 2000;
  filter: drop-shadow(0 30px 60px var(--card-shadow)) drop-shadow(0 8px 24px var(--card-shadow));
}

.mockup-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.mockup-video-mask {
  position: absolute;
  left: 4.7%;
  top: 2.19%;
  width: 90.1%;
  height: 95.64%;
  border-radius: 32px;
  overflow: hidden;
  z-index: 1;
}

.mockup-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-floating {
  position: absolute;
  width: 230px;
  z-index: 3;
  filter: drop-shadow(0 20px 40px var(--card-shadow));
}

.mockup-floating.float-1 {
  bottom: -50px;
  left: -70px;
  transform: rotate(-6deg);
}

.splash {
  padding: 72px 24px 96px;
}

.splash .wrap {
  max-width: 640px;
  text-align: center;
}

.splash-logo {
  width: 112px;
  height: 112px;
  border-radius: 22%;
  margin: 0 auto 28px;
}

.splash .eyebrow { display: block; }

.splash h1 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  margin: 14px 0 20px;
}

.splash .lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto 88px;
}

.splash .signup { margin: 0; }
.splash .signup h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* Section shared */
section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-top: 14px;
}

/* Audience grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  background: var(--bg-default);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.audience-icon {
  margin: 0 auto 16px;
}

.audience-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.audience-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .audience-grid { gap: 12px; }
  .audience-card { padding: 20px 16px; }
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

/* Scroll-triggered stagger reveal */
.js-reveal .feature-row .eyebrow,
.js-reveal .feature-row h3,
.js-reveal .feature-row .feature-copy > p:not(.eyebrow),
.js-reveal .feature-row .feature-visual > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .feature-row .eyebrow { transition-delay: 0ms; }
.js-reveal .feature-row h3 { transition-delay: 90ms; }
.js-reveal .feature-row .feature-copy > p:not(.eyebrow) { transition-delay: 180ms; }
.js-reveal .feature-row .feature-visual > * { transition-delay: 270ms; }

.js-reveal .feature-row.reverse .feature-visual > * { transition-delay: 0ms; }
.js-reveal .feature-row.reverse .eyebrow { transition-delay: 90ms; }
.js-reveal .feature-row.reverse h3 { transition-delay: 180ms; }
.js-reveal .feature-row.reverse .feature-copy > p:not(.eyebrow) { transition-delay: 270ms; }

.js-reveal .feature-row.in-view .eyebrow,
.js-reveal .feature-row.in-view h3,
.js-reveal .feature-row.in-view .feature-copy > p:not(.eyebrow),
.js-reveal .feature-row.in-view .feature-visual > * {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal .audience-card .icon-badge,
.js-reveal .audience-card h3,
.js-reveal .audience-card p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .audience-card .icon-badge { transition-delay: 0ms; }
.js-reveal .audience-card h3 { transition-delay: 90ms; }
.js-reveal .audience-card p { transition-delay: 180ms; }

.js-reveal .audience-card.in-view .icon-badge,
.js-reveal .audience-card.in-view h3,
.js-reveal .audience-card.in-view p {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal .hero .eyebrow,
.js-reveal .hero h1,
.js-reveal .hero .lede,
.js-reveal .hero .hero-actions,
.js-reveal .hero .hero-trust,
.js-reveal .hero .hero-visual > .mockup-video-wrap {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .hero .hero-visual > .mockup-floating {
  opacity: 0;
  transform: translateY(16px) rotate(-6deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .hero .eyebrow { transition-delay: 0ms; }
.js-reveal .hero h1 { transition-delay: 90ms; }
.js-reveal .hero .lede { transition-delay: 180ms; }
.js-reveal .hero .hero-actions { transition-delay: 270ms; }
.js-reveal .hero .hero-trust { transition-delay: 360ms; }
.js-reveal .hero .hero-visual > .mockup-video-wrap { transition-delay: 450ms; }
.js-reveal .hero .hero-visual > .mockup-floating { transition-delay: 540ms; }

.js-reveal .hero.in-view .eyebrow,
.js-reveal .hero.in-view h1,
.js-reveal .hero.in-view .lede,
.js-reveal .hero.in-view .hero-actions,
.js-reveal .hero.in-view .hero-trust,
.js-reveal .hero.in-view .hero-visual > .mockup-video-wrap {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal .hero.in-view .hero-visual > .mockup-floating {
  opacity: 1;
  transform: rotate(-6deg);
}

.js-reveal .section-head .eyebrow,
.js-reveal .section-head h2,
.js-reveal .section-head > p:not(.eyebrow) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .section-head .eyebrow { transition-delay: 0ms; }
.js-reveal .section-head h2 { transition-delay: 90ms; }
.js-reveal .section-head > p:not(.eyebrow) { transition-delay: 180ms; }

.js-reveal .section-head.in-view .eyebrow,
.js-reveal .section-head.in-view h2,
.js-reveal .section-head.in-view > p:not(.eyebrow) {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .feature-row *,
  .js-reveal .audience-card *,
  .js-reveal .hero *,
  .js-reveal .section-head * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 12px 0 14px;
}

.feature-copy p {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 44ch;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.shot-frame {
  width: 240px;
  border-radius: 36px;
  background: #0d0d0e;
  padding: 10px;
  box-shadow: 0 24px 48px -18px var(--card-shadow);
}

.shot-frame img { border-radius: 28px; }

.mockup-static {
  width: 270px;
  filter: drop-shadow(0 24px 48px var(--card-shadow));
}

/* Gallery */
.gallery {
  background: var(--bg-default);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-scroller {
  position: relative;
}

.gallery-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  scroll-snap-type: x mandatory;
}

.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }

.gallery-nav {
  position: absolute;
  top: 228px;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 20, 25, 0.38);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gallery-nav:hover { background: rgba(20, 20, 25, 0.5); transform: translateY(-50%) scale(1.06); }
.gallery-nav:active { transform: translateY(-50%) scale(0.95); }
.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }

.gallery-scroller:hover .gallery-nav:not(.gallery-nav-hidden) { opacity: 1; }
.gallery-nav-hidden { pointer-events: none; }

@media (hover: none) {
  .gallery-nav { display: none; }
}

.gallery-item {
  flex: 0 0 auto;
  width: 216px;
  scroll-snap-align: center;
  text-align: center;
  line-height: 1.2;
}

.gallery-item .shot-frame { width: 216px; margin-bottom: 14px; }
.gallery-item .mockup-static { width: 216px; margin: 0 auto 14px; }

.gallery-item span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

/* Signup */
.signup {
  background: #29292B;
  color: #F4EFE3;
  border-radius: var(--radius-2xl);
  margin: 0 24px;
  padding: 40px 40px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .signup { background: var(--bg-secondary); }
}

:root[data-theme="dark"] .signup { background: var(--bg-secondary); }
:root[data-theme="light"] .signup { background: #29292B; }

.signup h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: #F4EFE3;
}

.signup p {
  color: rgba(244, 239, 227, 0.7);
  max-width: 46ch;
  margin: 16px auto 32px;
  font-size: 17px;
}

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  height: 52px;
  border-radius: var(--radius-full);
  border: none;
  padding: 0 22px;
  font-size: 16px;
  font-family: var(--sans);
  background: rgba(244, 239, 227, 0.12);
  color: #F4EFE3;
  border: 1.5px solid rgba(244, 239, 227, 0.24);
}

.signup-form input[type="email"]::placeholder { color: rgba(244, 239, 227, 0.5); }
.signup-form input[type="email"]:focus { outline: none; border-color: var(--primary); }

.signup-form .btn-primary { height: 52px; }

.signup .form-status {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14px;
  min-height: 18px;
}

.form-status.success { color: #6EE7B7; }
.form-status.error { color: #FCA5A5; }

.signup .signup-footnote {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 12.5px;
  color: rgba(244, 239, 227, 0.45);
}

/* Footer */
footer {
  padding: 48px 0 40px;
  text-align: center;
}

footer .brand { justify-content: center; margin-bottom: 12px; }

footer p {
  color: var(--text-tertiary);
  font-size: 13.5px;
}

@media (max-width: 1080px) {
  .mockup-video-wrap { width: 220px; }
  .mockup-floating { width: 175px; }
  .mockup-floating.float-1 { bottom: -35px; left: -45px; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; }
  .mockup-floating.float-1 { display: none; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual { order: initial; }
  .nav-links { display: none; }
  .signup { margin: 0 16px; padding: 24px; }
  .splash { padding-left: 0; padding-right: 0; }
  .splash .wrap { padding: 0 16px; }
  .signup-form { flex-direction: column; }
  .signup-form input[type="email"] { flex: none; width: 100%; }
}
