:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --card: #ffffff;
  --border: #e8e8ec;
  --text: #0d0d0d;
  --text-muted: rgba(13, 13, 13, 0.6);
  --accent-green: #22c55e;
  --accent-warm: #c2540e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(13,13,13,0.06);
  --shadow-md: 0 20px 40px -14px rgba(13,13,13,0.16);
  --shadow-lg: 0 34px 64px -20px rgba(13,13,13,0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
body::before { top: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(210,215,225,0.55), transparent 70%); }
body::after { bottom: -15%; left: -12%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(200,205,215,0.45), transparent 70%); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
a { color: inherit; text-decoration: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Logo mark */
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.logo__mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo__mark span { display: block; width: 5px; background: currentColor; border-radius: 2px; transform: skewX(-12deg); }
.logo__mark span:nth-child(1) { height: 45%; }
.logo__mark span:nth-child(2) { height: 70%; }
.logo__mark span:nth-child(3) { height: 100%; }
.logo__mark--lg { height: 34px; gap: 5px; }
.logo__mark--lg span { width: 7px; }

.apple-icon { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141 4 184.8 4 273.9c0 34.9 6.4 71 19.3 108.2 17.3 46.9 79.7 161.9 144.9 159.9 34.4-.8 58.6-24.4 103.4-24.4 43.4 0 65.7 24.4 103.4 24.4 65.9-1 122.4-102.4 138.9-149.2-88.5-41.7-95.2-122.2-95.2-124.1zm-90.4-190c26.7-32 46-77.9 41-124.4-40.3 1.9-88.5 27.2-115.4 60.1-24.2 29.4-45.5 76.5-39.8 121.6 44.6 3.4 90.5-22.7 114.2-57.3z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141 4 184.8 4 273.9c0 34.9 6.4 71 19.3 108.2 17.3 46.9 79.7 161.9 144.9 159.9 34.4-.8 58.6-24.4 103.4-24.4 43.4 0 65.7 24.4 103.4 24.4 65.9-1 122.4-102.4 138.9-149.2-88.5-41.7-95.2-122.2-95.2-124.1zm-90.4-190c26.7-32 46-77.9 41-124.4-40.3 1.9-88.5 27.2-115.4 60.1-24.2 29.4-45.5 76.5-39.8 121.6 44.6 3.4 90.5-22.7 114.2-57.3z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.btn:hover { transform: translateY(-3px); }
.btn--pill { border-radius: var(--radius-pill); }
.btn--light { background: #0d0d0d; color: #fff; box-shadow: var(--shadow-md); }
.btn--light:hover { box-shadow: var(--shadow-lg); }
.btn--outline { background: #fff; border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--outline:hover { box-shadow: var(--shadow-md); }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.navbar__actions { display: flex; align-items: center; gap: 16px; }
.navbar__actions .btn { padding: 10px 20px; font-size: 14px; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; padding: 110px 0; overflow: hidden; }
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(190,200,215,0.35) 0%, transparent 65%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); }
.hero__content h1 { font-size: 58px; font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--text); }
.hero__subtext { font-size: 17px; color: var(--text-muted); max-width: 460px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; margin-bottom: 16px; }
.hero__caption { font-size: 13px; color: var(--text-muted); }

.hero__visual { display: flex; align-items: center; justify-content: center; height: 380px; }

.hero-stack { position: relative; width: 100%; max-width: 420px; height: 320px; }
.hero-stack__card {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #ffffff, #eef0f4); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-stack__card--back { transform: rotate(-7deg) translate(-10px, 8px); opacity: 0.7; z-index: 1; background: linear-gradient(150deg, #eef2ff, #dfe4ee); }
.hero-stack__card--mid { transform: rotate(4deg) translate(8px, -6px); opacity: 0.85; z-index: 2; background: linear-gradient(150deg, #fdf2ea, #f3e3d6); }
.hero-stack__card--front {
  transform: rotate(-2deg); z-index: 3; padding: 18px 20px; display: flex; flex-direction: column;
  transition: transform 0.4s ease; background: #ffffff; color: var(--text);
}
.hero-stack:hover .hero-stack__card--front { transform: rotate(0deg); }
.hero-stack__titlebar {
  display: flex; align-items: center; gap: 7px;
  margin: -18px -20px 16px; padding: 12px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-stack__dot { width: 11px; height: 11px; border-radius: 50%; }
.hero-stack__dot--red { background: #ff5f57; }
.hero-stack__dot--yellow { background: #febc2e; }
.hero-stack__dot--green { background: #28c840; }
.hero-stack__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.hero-stack__bar-logo { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text); }
.hero-stack__bar-logo .logo__mark { height: 13px; }
.hero-stack__bar-logo .logo__mark span { width: 3px; }
.hero-stack__bar-links { display: flex; gap: 10px; font-size: 9px; font-weight: 500; color: var(--text-muted); }
.hero-stack__bar-cta {
  display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700;
  background: #0d0d0d; color: #fff; padding: 5px 10px; border-radius: var(--radius-pill); white-space: nowrap;
}
.hero-stack__bar-cta .apple-icon { width: 8px; height: 8px; margin-right: 0; }
.hero-stack__badge {
  position: absolute; left: 20px; bottom: -14px; z-index: 4; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--accent-warm); color: #fff; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-md);
}

.waveform { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; color: var(--text); }
.waveform span { display: block; width: 4px; background: linear-gradient(180deg, currentColor, rgba(13,13,13,0.12)); border-radius: 2px; transition: height 0.35s ease; }

/* Section shared */
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 20px; color: var(--text); }
.section-subtext { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
.eyebrow { display: block; text-align: center; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }

/* Onboarding stack cards (Creative Portfolio style) */
.onboarding { padding: 100px 0 140px; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 40px; }
.stack-card { position: relative; text-align: center; padding-top: 130px; }
.stack-card__mock {
  position: absolute; left: 50%; top: 0; width: 120px; height: 90px; border-radius: 14px;
  background: linear-gradient(150deg, #ffffff, #eef0f4); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform 0.35s ease;
}
.stack-card__mock--back { transform: translateX(-50%) rotate(-9deg); opacity: 0.65; z-index: 1; background: linear-gradient(150deg, #eef2ff, #dfe4ee); }
.stack-card__mock--mid { transform: translateX(-50%) rotate(6deg); opacity: 0.85; z-index: 2; background: linear-gradient(150deg, #fdf2ea, #f3e3d6); }
.stack-card__mock--front {
  transform: translateX(-50%) rotate(-2deg); z-index: 3;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text);
  background: #ffffff;
}
.stack-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--text); }
.stack-card p { color: var(--text-muted); font-size: 14px; }
.stack-card--a:hover .stack-card__mock,
.stack-card--b:hover .stack-card__mock,
.stack-card--c:hover .stack-card__mock { transform: translateX(-50%) rotate(0deg); }

.mini-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; color: var(--text); }
.mini-wave span { display: block; width: 5px; background: currentColor; border-radius: 2px; }
.mini-wave span:nth-child(1) { height: 30%; } .mini-wave span:nth-child(2) { height: 60%; }
.mini-wave span:nth-child(3) { height: 100%; } .mini-wave span:nth-child(4) { height: 45%; }
.mini-wave span:nth-child(5) { height: 80%; } .mini-wave span:nth-child(6) { height: 40%; }
.mini-wave span:nth-child(7) { height: 65%; }

/* Features */
.features { padding: 100px 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.feature-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow-md); }
.feature-card__icon { font-size: 26px; margin-bottom: 20px; color: var(--text); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* Trusted / marquee */
.trusted { padding: 100px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: scroll-left 22s linear infinite; }
.marquee__track span { padding: 14px 28px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); font-size: 14px; white-space: nowrap; background: var(--card); box-shadow: var(--shadow-sm); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Stats */
.stats { padding: 80px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 24px; }
.stat__number, .stat__suffix { font-size: 44px; font-weight: 800; color: var(--text); }
.stat__label { display: block; color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* CTA */
.cta { padding: 120px 0; text-align: center; }
.cta h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; color: var(--text); }
.cta p { color: var(--text-muted); margin-bottom: 32px; font-size: 17px; }
.cta .hero__caption { margin-top: 16px; }

/* Command palette (VoiceOS-style) */
.palette { padding: 20px 0 100px; }
.palette__card {
  max-width: 420px; margin: 0 auto; padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #eef4ff, #e2ecff); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.palette__row {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-pill);
  background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; font-size: 15px; color: var(--text);
}
.palette__row--faded { opacity: 0.45; }
.palette__icon { font-size: 18px; }

/* Story sections (VoiceOS-style) */
.story { padding: 90px 0; text-align: center; }
.story__emoji { display: block; font-size: 32px; margin-bottom: 16px; }
.story__visual {
  margin-top: 40px; border-radius: var(--radius-lg); height: 340px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px;
}
.story__visual--blue { background: linear-gradient(160deg, #dbe7ff, #a9c4f5 60%, #7fa3e8); }
.story__visual--warm { background: linear-gradient(160deg, #ffe8d6, #f5c79a 60%, #e8a866); }
.story__quote {
  background: rgba(13,13,13,0.75); color: #fff; padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; backdrop-filter: blur(6px);
}

/* Footer */
.footer { padding: 64px 0 24px; border-top: 1px solid var(--border); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.footer__col a, .footer__col p { color: var(--text-muted); font-size: 14px; }
.footer__col a:hover { color: var(--text); }
.footer__socials { display: flex; gap: 16px; margin-top: 8px; }
.footer__wordmark {
  font-size: 128px; font-weight: 900; text-align: center; letter-spacing: -0.03em;
  color: var(--bg-soft); line-height: 1; margin: 20px 0; user-select: none;
}
.footer__bottom { border-top: 1px solid var(--border); padding-top: 20px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 220px; }
  .hero__content h1 { font-size: 40px; }
  .stack-row { grid-template-columns: 1fr; gap: 60px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__wordmark { font-size: 64px; }
}
