:root {
  --berry: #c3195d;
  --berry-deep: #8e1346;
  --berry-light: #fdd4e1;
  --juice: #ff7a9c;
  --navy: #1e3a8a;
  --navy-deep: #122766;
  --navy-soft: #e7ecf9;
  --sun: #ffb93b;
  --lime: #7dd87a;
  --lime-deep: #4fa84c;
  --cream: #f4f4f1;     /* was #fff5ef — switched to the berry-stone neutral. */
  --cream-warm: #fff0e6;
  --paper: #ffffff;
  --ink: #2a1020;
  --ink-soft: #6b4556;
  --border: #f4d3de;
  --shadow-card: 0 6px 0 rgba(43, 16, 32, .08);
  --pad-sec: 96px;
  --pad-x: 24px;
  --max: 1200px;
  --radius-card: 22px;
  --radius-pill: 999px;
}

[data-density="cozy"] {
  --pad-sec: 72px;
}
[data-density="airy"] {
  --pad-sec: 128px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
p { line-height: 1.55; color: var(--ink-soft); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* —————— Layout —————— */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--pad-sec) 0; position: relative; }

/* —————— Reveal —————— */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,.7,.18,1), transform .8s cubic-bezier(.22,.7,.18,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* —————— Buttons —————— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 16px;
  font-weight: 800; font-size: 15px; letter-spacing: 0;
  position: relative; transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--shadow-on, rgba(0,0,0,.25)); }

.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 5px 0 var(--berry-deep); --shadow-on: var(--berry-deep); }
.btn-primary:hover { box-shadow: 0 7px 0 var(--berry-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--border); padding: 14px 24px; }
.btn-ghost:hover { background: #fff; border-color: var(--berry); color: var(--berry); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--berry); box-shadow: 0 5px 0 rgba(0,0,0,.18); --shadow-on: rgba(0,0,0,.2); }
.btn-white:hover { box-shadow: 0 7px 0 rgba(0,0,0,.18); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pill-amber { background: #fff3d4; color: #b76d00; }
.pill-berry { background: var(--berry-light); color: var(--berry); }
.pill-lime  { background: #d6f4d4; color: var(--lime-deep); }

/* —————— Nav —————— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav.scrolled { background: color-mix(in srgb, var(--cream) 92%, transparent); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 2px; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.nav-logo .mark-img { width: 40px; height: 40px; object-fit: contain; display: block; margin-right: -2px; margin-top: -6px; }
.nav-logo .name .brain { color: #1e3a8a; }
.nav-logo .name .berry { color: #C3195D; }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  border-radius: 12px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--berry);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.6,0,.3,1.4);
}
.nav-links a:hover { color: var(--berry); background: var(--berry-light); transform: translateY(-1px); }
.nav-links a:hover::after { transform: scaleX(.7); }
.nav-links a.on { color: var(--berry); }
.nav-links a.on::after { transform: scaleX(.7); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 11px 18px; font-size: 14px; }
.nav-signin { font-weight: 800; padding: 10px 14px; font-size: 14px; color: var(--ink); border-radius: 10px; }
.nav-signin:hover { color: var(--berry); }

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}
.nav-burger span {
  width: 18px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease;
}

/* Mobile drawer — fixed-position sheet with explicit grid layout so the
   links area can never collapse. */
.nav-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.nav-drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(20,12,18,.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-drawer-sheet {
  position: fixed; top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100vh; height: 100dvh;
  background: var(--cream);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6,0,.3,1.05);
  box-shadow: -16px 0 60px -20px rgba(0,0,0,.3);
  overflow: hidden;
}
.nav-drawer-eyebrow {
  font-size: 12px; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-drawer.open { pointer-events: auto; }
.nav-drawer.open .nav-drawer-scrim { opacity: 1; }
.nav-drawer.open .nav-drawer-sheet { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-close {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-drawer-close:hover { background: var(--berry-light); border-color: var(--berry); color: var(--berry); }
.nav-drawer-links {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  min-height: 0;
}
.nav-drawer-links > a {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  background: transparent;
  border: 2px solid transparent;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-drawer-links > a > span { color: inherit; }
.nav-drawer-links > a:hover,
.nav-drawer-links > a.on {
  background: var(--berry-light);
  color: var(--berry);
  border-color: var(--berry-light);
}
.nav-drawer-foot {
  padding: 18px 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border);
}
.nav-drawer-foot .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .nav-signin,
  .nav-actions > a.btn-primary { display: none; }
  .nav-burger { display: inline-flex; }
}

/* —————— Hero —————— */
.hero { padding: 56px 0 80px; position: relative; overflow: hidden; }
.hero-bg-shape { position: absolute; pointer-events: none; }
.hero-bg-1 { top: -120px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle at center, var(--berry-light), transparent 70%); }
.hero-bg-2 { bottom: -100px; left: -120px; width: 380px; height: 380px; background: radial-gradient(circle at center, #e0eafd, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--berry-light); font-size: 12px; font-weight: 800; color: var(--berry); text-transform: uppercase; letter-spacing: .08em; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.6); } }

h1.hero-title { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
h1.hero-title .accent { background: linear-gradient(135deg, var(--berry), var(--juice)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 22px 0 32px; max-width: 520px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* —————— Stat strip —————— */
.stat-strip { background: var(--paper); border-radius: 24px; border: 2px solid var(--border); padding: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -10px; box-shadow: var(--shadow-card); }
.stat { padding: 8px 18px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-label { font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
.stat-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; font-weight: 600; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr 1fr; } .stat:nth-child(2n) { border-right: 0; } }

/* —————— Section heads —————— */
.sec-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.sec-head p { margin-top: 16px; font-size: 18px; }

/* —————— Pillars —————— */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--paper); border-radius: var(--radius-card); padding: 32px; border: 2px solid var(--border); position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 14px 0 rgba(43, 16, 32, .06); }
.pillar-mark { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 4px 0 rgba(0,0,0,.1); color: #fff; }
.pillar h3 { font-size: 24px; margin-bottom: 8px; }
.pillar p { font-size: 15px; }
.pillar-link { margin-top: 18px; font-weight: 800; font-size: 14px; color: var(--berry); display: inline-flex; align-items: center; gap: 6px; }
.pillar-link:hover { gap: 10px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* —————— AI deep-dive band —————— */
.ai-band { background: linear-gradient(135deg, var(--navy) 0%, #4a2378 60%, var(--berry) 100%); color: #fff; border-radius: 32px; padding: 64px 56px; position: relative; overflow: hidden; margin: 56px 0; }
.ai-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,185,59,.25), transparent 70%); }
.ai-band::after { content: ''; position: absolute; left: -60px; bottom: -100px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,156,.3), transparent 70%); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.ai-band h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.ai-band h2 em { font-style: normal; background: linear-gradient(135deg, var(--sun), #ffd581); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-band p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 24px; }
.ai-band .pill { background: rgba(255,255,255,.15); color: #fff; }
.ai-features { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 28px; }
.ai-feat { display: flex; gap: 12px; align-items: flex-start; }
.ai-feat-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.18); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ai-feat-text b { color: #fff; font-weight: 800; }
.ai-feat-text span { color: rgba(255,255,255,.78); font-size: 14px; }

.ai-card-stack { position: relative; height: 380px; }
.ai-card { position: absolute; background: rgba(255,255,255,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 18px 20px; }
.ai-card-prompt { top: 0; left: 0; width: 70%; }
.ai-card-prompt .label { font-size: 10px; color: rgba(255,255,255,.6); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.ai-card-prompt .text { font-size: 15px; color: #fff; font-weight: 700; }
.ai-card-prompt .cursor { display: inline-block; width: 2px; height: 16px; background: var(--sun); animation: blink 1s infinite; vertical-align: -3px; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bbReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes bbDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.ai-card-out { padding: 0; overflow: hidden; }
.ai-card-out-1 { top: 90px; right: 0; width: 78%; transform: rotate(2deg); }
.ai-card-out-2 { top: 180px; left: 12%; width: 78%; transform: rotate(-2deg); }
.ai-card-out-3 { top: 270px; right: 6%; width: 78%; transform: rotate(1.5deg); }
.ai-card-out .head { padding: 12px 16px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ai-card-out .head .num { font-size: 10px; font-weight: 900; color: var(--sun); letter-spacing: .1em; }
.ai-card-out .body { padding: 12px 16px 14px; }
.ai-card-out .body .q { font-size: 13px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.ai-card-out .body .a { font-size: 12px; color: rgba(255,255,255,.7); }

@media (max-width: 900px) { .ai-band { padding: 40px 28px; border-radius: 24px; } .ai-grid { grid-template-columns: 1fr; } .ai-card-stack { height: 320px; } }

/* —————— Subjects —————— */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject {
  background: var(--paper); border-radius: 18px; padding: 22px; border: 2px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
.subject:hover { transform: translateY(-4px); border-color: var(--subj, var(--berry)); }
.subject-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--subj, var(--berry)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 rgba(0,0,0,.12); flex-shrink: 0; font-weight: 900; font-size: 22px; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em; }
.subject-info b { font-weight: 900; font-size: 16px; display: block; }
.subject-info span { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.subject-arrow { margin-left: auto; color: var(--ink-soft); transition: transform .2s ease, color .2s ease; }
.subject:hover .subject-arrow { color: var(--subj, var(--berry)); transform: translateX(4px); }

@media (max-width: 900px) { .subjects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .subjects { grid-template-columns: 1fr; } }

/* —————— Devices band (Get the app) —————— */
.devices-band { background: var(--paper); border-radius: 32px; padding: 72px 56px; border: 2px solid var(--border); position: relative; overflow: hidden; margin: 56px 0; }
.devices-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.devices-band h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.devices-band h2 em { font-style: normal; color: var(--berry); }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.platform { padding: 14px; border-radius: 14px; border: 2px solid var(--border); background: var(--cream); }
.platform.live { border-color: var(--lime-deep); background: #ecfaeb; }
.platform-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.platform-name { font-weight: 900; font-size: 14px; }
.platform-status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.platform.live .platform-status { color: var(--lime-deep); }
.platform-soon .platform-status { color: var(--ink-soft); }

.sync-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 18px; }
.sync-list span { display: inline-flex; align-items: center; gap: 8px; }
.sync-list .check { width: 18px; height: 18px; border-radius: 50%; background: var(--lime-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

@media (max-width: 900px) { .devices-band { padding: 40px 24px; } .devices-grid { grid-template-columns: 1fr; } .sync-list { grid-template-columns: 1fr; } }

/* —————— Final CTA strip —————— */
.cta-strip { background: linear-gradient(135deg, var(--berry) 0%, var(--juice) 100%); border-radius: 32px; padding: 72px 56px; text-align: center; color: #fff; position: relative; overflow: hidden; margin: 56px 0; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 50%); }
.cta-strip h2 { font-size: clamp(32px, 4.5vw, 52px); position: relative; z-index: 1; }
.cta-strip p { color: rgba(255,255,255,.85); font-size: 18px; margin: 16px 0 32px; position: relative; z-index: 1; }
.cta-strip .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.notify-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; position: relative; z-index: 1; }
.notify-input { flex: 1; min-width: 220px; padding: 16px 20px; border-radius: 16px; border: 0; font-family: inherit; font-size: 15px; font-weight: 600; background: rgba(255,255,255,.15); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.notify-input::placeholder { color: rgba(255,255,255,.6); }
.notify-input:focus { outline: 0; box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.22); }

/* —————— Footer —————— */
footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 64px 0 28px; margin-top: 32px; }
footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
footer .brand-col h4 { color: #fff; font-size: 22px; margin-bottom: 14px; }
footer .brand-col p { color: rgba(255,255,255,.55); font-size: 14px; max-width: 320px; }
footer .col h5 { color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
footer .col a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
footer .col a:hover { color: var(--juice); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.4); }
.foot-bottom .uk { color: var(--juice); }
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { footer .wrap { grid-template-columns: 1fr; gap: 28px; } .foot-bottom { flex-direction: column; gap: 10px; } }
