/* MESIOO website. Tokens match the app (mesioo-app/src/app/globals.css). */
:root {
  --navy: #131736;
  --navy-2: #1c2150;
  --surface: #ffffff;
  --subtle: #f4f5fc;
  --subtle-2: #eceef9;
  --line: #e4e7f5;
  --ink: #171a3a;
  --ink-2: #5d6390;
  --blue: #3b5bff;
  --lilac: #9b7cff;
  --pink: #ff5f9e;
  --cyan: #34d3e8;
  --grad: linear-gradient(135deg, #3b5bff 0%, #9b7cff 52%, #ff5f9e 100%);
  --grad-ink: linear-gradient(135deg, #2c46e6 0%, #7b4fe8 52%, #e62e7b 100%);
  --grad-soft: linear-gradient(135deg, #eef1ff 0%, #f5eeff 50%, #ffeff6 100%);
  --shadow: 0 1px 2px rgba(19, 23, 54, .05), 0 10px 30px rgba(19, 23, 54, .07);
  --shadow-lift: 0 18px 44px rgba(19, 23, 54, .16);
  --r-card: 22px;
  --r-pill: 999px;
  --gutter: 22px;
  --f-dis: "Roboto", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-ui: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-size: .78em; letter-spacing: .04em; }
.muted { color: var(--ink-2); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Type */
h1 {
  font: 700 clamp(42px, 6.4vw, 78px)/1.04 var(--f-dis);
  letter-spacing: -.025em;
}
.h2 { font: 700 clamp(32px, 4.4vw, 52px)/1.1 var(--f-dis); letter-spacing: -.02em; }
.h3 { font: 700 24px/1.2 var(--f-dis); letter-spacing: -.015em; }
.kicker {
  display: inline-block; margin-bottom: 16px;
  font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker.light { background: none; color: #b7a6ff; }
.sub { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.sub.light, .light { color: #c3c7e8; }
.grad-text { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-light { background: linear-gradient(90deg, #8fa2ff, #c7b4ff 50%, #ff8fbd); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font: 700 16px/1 var(--f-ui); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(91, 80, 255, .32); }
.btn-grad:hover { box-shadow: 0 14px 34px rgba(91, 80, 255, .42); }
.btn-ghost { background: var(--subtle); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--subtle-2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo {
  font: 800 24px/1 var(--f-dis); letter-spacing: -.02em; text-decoration: none;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-light { background: linear-gradient(90deg, #8fa2ff, #c7b4ff 50%, #ff8fbd); -webkit-background-clip: text; background-clip: text; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 60% 40%, rgba(155, 124, 255, .28), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(255, 95, 158, .18), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(59, 91, 255, .2), transparent 55%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 8px 16px; border-radius: var(--r-pill); background: var(--grad-soft); border: 1px solid var(--line);
  font: 600 14px/1 var(--f-ui); color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(155, 124, 255, .2); }
.lead { margin-top: 26px; font-size: 21px; line-height: 1.5; color: var(--ink); max-width: 560px; }
.lead-2 { margin-top: 12px; font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores { margin-top: 22px; font-size: 14px; color: var(--ink-2); }

.phone {
  border-radius: 44px; padding: 10px; background: var(--navy);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px #2a2f5c;
}
.phone img { border-radius: 34px; width: 100%; height: auto; }
.hero-visual { position: relative; justify-self: center; width: min(340px, 80vw); }
.phone-hero { transform: rotate(2.5deg); }
.float-card {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-lift); font-size: 15px;
  animation: bob 6s ease-in-out infinite;
}
.float-card .mono { color: var(--blue); font-size: 12px; }
.float-card .muted { font-size: 13px; }
.fc-1 { left: -120px; top: 6%; }
.fc-2 { right: -90px; top: 52%; flex-direction: row; align-items: center; gap: 12px; max-width: 250px; animation-delay: -2s; }
.fc-2 div { display: flex; flex-direction: column; }
.fc-3 { left: -60px; bottom: 8%; animation-delay: -4s; }
.seat-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 18px/1 var(--f-dis); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 112px 0; }

/* Problem */
.problem { background: var(--subtle); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.stat { padding: 32px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.stat-num { font: 800 clamp(44px, 5vw, 64px)/1 var(--f-dis); letter-spacing: -.03em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.source { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.chat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 80px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 32px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.bubble { max-width: 78%; padding: 12px 18px; border-radius: 20px; font-size: 16px; }
.bubble.them { align-self: flex-start; background: var(--subtle-2); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.seen { align-self: flex-end; color: var(--ink-2); margin-top: 4px; }
.chat-copy p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* Film */
.film-section { background: var(--navy); color: #fff; }
.film-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.film { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); background: #000; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 28px; padding: 28px 28px 32px; background: var(--grad-soft); border-radius: 28px; border: 1px solid var(--line); }
.phone-sm { width: 78%; margin: 0 auto; border-radius: 34px; padding: 8px; }
.phone-sm img { border-radius: 27px; }
.step-num { display: inline-block; margin-bottom: 10px; color: var(--blue); font-size: 13px; }
.step-copy p { margin-top: 10px; color: var(--ink-2); }

/* Mission */
.mission { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.mission::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 124, 255, .22), transparent 60%); pointer-events: none;
}
.mission-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.mission-copy p { font-size: 19px; color: #d4d7f0; }
.mission-copy p + p { margin-top: 18px; }
.compare { position: relative; margin-top: 80px; border-radius: var(--r-card); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; }
.cmp-row > span { padding: 18px 22px; border-top: 1px solid rgba(255, 255, 255, .08); color: #c3c7e8; font-size: 16px; }
.cmp-head > span { border-top: 0; color: #fff; font: 700 18px/1.2 var(--f-dis); }
.cmp-head small { display: block; margin-top: 4px; font: 500 12px/1.3 var(--f-ui); color: #8d92bd; }
.cmp-row > [role="rowheader"] { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8d92bd; }
.cmp-row .us { background: rgba(155, 124, 255, .14); color: #fff; font-weight: 600; }
.cmp-head .us { background: var(--grad); }
.cmp-head .us small { color: rgba(255, 255, 255, .85); }

/* Types */
.types { overflow: hidden; }
.marquee { margin: 48px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span {
  padding: 16px 30px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font: 700 22px/1 var(--f-dis); white-space: nowrap;
}
.marquee-track span:nth-child(4n+2) { background: var(--grad); color: #fff; border-color: transparent; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.plan-examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-card); background: var(--subtle); border: 1px solid var(--line); }
.plan-card .mono { color: var(--blue); }
.plan-card strong { font: 700 20px/1.25 var(--f-dis); }
.plan-card .muted { font-size: 15px; }

/* Trust */
.trust { background: var(--subtle); }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.rule { padding: 30px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.rule-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); margin-bottom: 20px; }
.rule-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rule h3 { font: 700 20px/1.25 var(--f-dis); }
.rule p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }



/* Team */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.person { padding: 22px 22px 28px; border-radius: 28px; background: var(--subtle); border: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); background: var(--grad-soft); filter: grayscale(.15); }
.person h3 { margin-top: 22px; font: 700 23px/1.2 var(--f-dis); }
.role { margin-top: 6px; font-weight: 600; font-size: 15px; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.person ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.person li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.person li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* FAQ */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { background: var(--subtle); border-radius: var(--r-card); border: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 18px 24px; cursor: pointer; list-style: none;
  font: 700 18px/1.3 var(--f-dis);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font: 500 22px/1 var(--f-ui); color: var(--blue); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--ink-2); }

/* CTA */
.cta { padding-top: 0; padding-bottom: 0; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(22px, 5vw, 64px); border-radius: 36px;
  background: var(--navy); color: #fff;
}
.cta-card::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 30%, rgba(59, 91, 255, .45), transparent 40%), radial-gradient(circle at 70% 70%, rgba(255, 95, 158, .35), transparent 40%); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card .h2 { max-width: 760px; margin: 0 auto; }
.store-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 36px 0 24px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px;
  border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  font: 700 17px/1.1 var(--f-ui); text-align: left;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; color: #c3c7e8; }

/* Footer */
.site-footer { margin-top: 96px; padding: 56px 0 32px; background: var(--navy); color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.muted-light { margin-top: 12px; color: #8d92bd; font-size: 15px; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-links a { color: #d4d7f0; text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8d92bd; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .fc-1 { left: -40px; } .fc-2 { right: -30px; } .fc-3 { left: -20px; }
  .plan-examples { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-cta { margin-left: auto; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer;
  }
  .menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding: 32px 0 72px; }
  .hero-grid, .chat-split, .mission-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-top: 16px; width: min(300px, 70vw); }
  .stats, .rules, .people { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; padding: 18px 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .cmp-row:nth-child(2) { border-top: 0; }
  .cmp-row > span { padding: 4px 0; border-top: 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .cmp-row > span:not([role="rowheader"])::before { content: attr(data-l); color: #8d92bd; font-size: 14px; }
  .cmp-row > [role="rowheader"] { margin-bottom: 6px; }
  .cmp-row .us { margin-top: 6px; padding: 10px 14px; border-radius: 14px; background: var(--grad); }
  .cmp-row .us::before { color: rgba(255, 255, 255, .85) !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .fc-1 { left: -18px; top: 10%; } .fc-2 { right: -14px; max-width: 210px; } .fc-3 { display: none; }
  .float-card { padding: 10px 14px; font-size: 14px; }
  .plan-examples { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .lead { font-size: 19px; }
  .footer-base { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
