/* ============================================================
   Merge Brothers — Design System
   ============================================================ */
:root {
  --bg: #08090a;
  --bg-2: #0d0e10;
  --surface: #121316;
  --surface-2: #17181c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f2f2f3;
  --text-2: #b4b6bd;
  --muted: #7d808a;
  --faint: #4a4d55;

  --accent: #c9ccff;          /* soft silver-indigo, used sparingly */
  --accent-strong: #8f97ff;
  --glow: rgba(143, 151, 255, 0.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section: clamp(96px, 12vw, 152px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(143, 151, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 12px var(--accent-strong); }
.eyebrow.plain::before { display: none; }

.h-display {
  font-family: var(--display);
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0;
}
.h1 { font-family: var(--display); font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.h2 { font-family: var(--display); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin: 0; }
.h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--text-2); margin: 0; max-width: 620px; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(180deg, #fff 20%, #9da0ab 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-text {
  background: linear-gradient(90deg, #e3e5ff, #9ea5ff 60%, #c9ccff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: #f2f2f3; color: #08090a; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 30px -8px rgba(201,204,255,.45); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 12px 40px -8px rgba(201,204,255,.6); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; font-size: 15px; }
.text-link .arr { transition: transform .25s var(--ease); }
.text-link:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 9, 10, .72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Backgrounds ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px);
  background: radial-gradient(circle, rgba(143,151,255,.28), rgba(143,151,255,0) 65%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero .bg-glow { width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%); }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13px; color: var(--text-2);
  margin-bottom: 32px;
}
.hero .badge b { font-weight: 500; font-size: 12px; color: var(--text); background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 999px; }
.hero .h-display { max-width: 1000px; }
.hero .lead { margin: 28px auto 40px; text-align: center; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee-wrap { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -.015em; color: #5c5f69; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-size: 10px; color: var(--faint); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section.bordered { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 18px 0 20px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.section-head.split .h2 { margin-bottom: 0; }

/* ---------- Cards / Bento ---------- */
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  padding: 32px; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s;
}
.card:hover { border-color: var(--line-2); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(201,204,255,.07), transparent 40%);
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 28px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.card .num { position: absolute; top: 28px; right: 30px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .tall { min-height: 360px; }

/* Visual inside bento */
.viz { margin: -8px -8px 28px; height: 170px; border-radius: 12px; border: 1px solid var(--line); background: #0b0c0e; position: relative; overflow: hidden; }
.viz-phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding-top: 22px; height: 100%; }
.phone { width: 86px; height: 160px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #17181c, #0f1013); padding: 10px 8px; display: grid; gap: 6px; align-content: start; }
.phone.big { height: 176px; width: 94px; box-shadow: 0 20px 40px -10px rgba(143,151,255,.25); }
.phone .notch { width: 30px; height: 6px; border-radius: 6px; background: #000; justify-self: center; margin-bottom: 6px; }
.phone .ln { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); }
.phone .ln.s { width: 60%; } .phone .ln.acc { background: linear-gradient(90deg, #8f97ff, #c9ccff); width: 45%; }
.phone .blk { height: 40px; border-radius: 8px; background: rgba(255,255,255,.05); }
.viz-code { padding: 18px 20px; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--muted); }
.viz-code .k { color: #c9ccff; } .viz-code .s { color: #e3e5ff; } .viz-code .c { color: var(--faint); }
.viz-browser { padding: 14px; }
.viz-browser .tb { display: flex; gap: 6px; margin-bottom: 12px; } .viz-browser .tb i { width: 8px; height: 8px; border-radius: 50%; background: #2a2b31; }
.viz-browser .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.viz-browser .row div { height: 42px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.viz-browser .chart { height: 52px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(143,151,255,.15), transparent); position: relative; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 36px 32px 8px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 40px; display: block; }
.step .h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: linear-gradient(90deg, #c9ccff, transparent); transition: width 1s var(--ease); }
.step.in::before { width: 70%; }

/* ---------- Engagement ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model { display: flex; flex-direction: column; }
.model .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.model ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.model li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.model li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(circle, #c9ccff 2.5px, transparent 3px); }
.model.featured { background: linear-gradient(180deg, rgba(143,151,255,.10), rgba(255,255,255,.01)); border-color: rgba(143,151,255,.25); }

/* ---------- Stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stack > div { padding: 28px; border-right: 1px solid var(--line); }
.stack > div:last-child { border-right: 0; }
.stack h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stack li { font-size: 15px; color: var(--text); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle { border-top: 1px solid var(--line-2); padding-top: 28px; }
.principle .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.principle .h3 { margin: 22px 0 12px; }
.principle p { color: var(--text-2); margin: 0; font-size: 15.5px; }

/* ---------- Statement ---------- */
.statement { font-family: var(--display); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; max-width: 1040px; margin: 0; color: var(--faint); }
.statement b { font-weight: 500; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .3s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 60px 28px 0; color: var(--text-2); max-width: 760px; }
.faq .ans p { margin: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line-2);
  padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 80px); text-align: center;
  background: radial-gradient(ellipse 80% 120% at 50% 120%, rgba(143,151,255,.28), transparent 60%), linear-gradient(180deg, #111216, #0b0c0e);
}
.cta .bg-grid { mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%); }
.cta .h1 { position: relative; max-width: 820px; margin: 0 auto 20px; }
.cta .lead { position: relative; margin: 0 auto 36px; }
.cta .hero-actions { position: relative; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: 176px 0 80px; overflow: hidden; }
.page-hero .bg-glow { width: 760px; height: 480px; left: -120px; top: -220px; }
.page-hero .h1 { margin: 22px 0 24px; max-width: 900px; }

/* ---------- Service detail ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; padding: 64px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc .idx { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; display: block; }
.svc .h2 { font-size: clamp(28px, 3vw, 40px); }
.svc p { color: var(--text-2); margin: 0 0 28px; font-size: 16.5px; }
.svc .incl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.svc .incl li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 12px; align-items: center; }
.svc .incl li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Facts table ---------- */
.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts .r { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.facts .r:last-child { border-bottom: 0; }
.facts .r > div { padding: 20px 26px; font-size: 15px; }
.facts .r > div:first-child { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.015); border-right: 1px solid var(--line); display: flex; align-items: center; }

/* ---------- Two col ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { color: var(--text-2); font-size: 17px; margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.contact-card .icon { margin: 0; flex: none; width: 40px; height: 40px; }
.contact-card .k { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-card .v { font-size: 16px; font-weight: 500; }
.form-card { padding: clamp(28px, 4vw, 44px); }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d808a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { background: #121316; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(143,151,255,.6); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(143,151,255,.12); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { cursor: pointer; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); transition: all .2s; font-weight: 400; }
.pills input:checked + label { background: #f2f2f3; color: #08090a; border-color: #f2f2f3; }
.pills input:focus-visible + label { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 80px; align-items: start; }
.doc-toc { position: sticky; top: 112px; display: grid; gap: 4px; font-size: 14px; }
.doc-toc a { color: var(--muted); padding: 6px 0; transition: color .2s; }
.doc-toc a:hover { color: var(--text); }
.doc-body { max-width: 720px; }
.doc-body h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; font-weight: 600; margin: 56px 0 14px; scroll-margin-top: 110px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--text-2); font-size: 16px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--accent); }
.doc-body strong { color: var(--text); font-weight: 500; }
.updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 88px 0 40px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 300px; margin: 20px 0 0; }
.footer-col h4 { margin: 0 0 18px; font-size: 13px; font-weight: 500; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-word {
  font-family: var(--display); font-weight: 600; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(64px, 15.5vw, 212px); margin: 88px 0 36px; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento .span-2 { grid-column: span 3; }
  .bento .span-4 { grid-column: span 6; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: grid; position: fixed; inset: 72px 0 auto 0; z-index: 99; background: rgba(8,9,10,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 28px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .mobile-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 18px; }
  .menu-open .mobile-nav { transform: none; opacity: 1; pointer-events: auto; }
  .menu-open .site-header { background: rgba(8,9,10,.96); }
  .section-head.split, .two, .contact-grid, .faq-grid, .svc, .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step { padding-bottom: 32px; }
  .models, .principles { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr 1fr; }
  .stack > div:nth-child(2) { border-right: 0; }
  .stack > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { padding-top: 132px; }
  .page-hero { padding-top: 140px; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .stack { grid-template-columns: 1fr; }
  .stack > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stack > div:last-child { border-bottom: 0; }
  .form .row, .svc .incl { grid-template-columns: 1fr; }
  .facts .r { grid-template-columns: 1fr; }
  .facts .r > div:first-child { border-right: 0; padding-bottom: 4px; background: none; }
  .facts .r > div:last-child { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card { padding: 26px; }
  .faq .ans { padding-right: 0; }
}

/* Mobile header fit */
.brand span { white-space: nowrap; }
@media (max-width: 640px) { .header-cta .btn-primary { display: none; } }

/* ---------- Hero showcase: design · web · mobile ---------- */
.showcase { position: relative; width: 100%; max-width: 1080px; margin: 88px auto 0; height: 560px; text-align: left; }
.showcase::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 220px; background: radial-gradient(ellipse at center, rgba(143,151,255,.28), transparent 70%); filter: blur(30px); pointer-events: none; }
.sc-browser, .sc-design, .sc-phone {
  position: absolute; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #131418, #0c0d10);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
.sc-browser { left: 50%; top: 0; width: 760px; height: 470px; margin-left: -380px; border-radius: 18px; overflow: hidden; }
.sc-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.sc-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b31; }
.sc-url { margin: 0 auto; transform: translateX(-24px); font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 3px 40px; border-radius: 8px; }
.sc-app { display: grid; grid-template-columns: 64px 1fr; height: calc(100% - 40px); }
.sc-nav { border-right: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sc-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #fff, #9ea5ff); margin-bottom: 10px; }
.sc-nav span { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.06); }
.sc-nav span.on { background: rgba(201,204,255,.22); box-shadow: inset 0 0 0 1px rgba(201,204,255,.35); }
.sc-content { padding: 24px 28px; display: grid; gap: 18px; align-content: start; }
.sc-head { display: flex; justify-content: space-between; align-items: center; }
.sc-head b { display: block; width: 170px; height: 14px; border-radius: 5px; background: rgba(255,255,255,.85); }
.sc-head em { display: block; width: 240px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); margin-top: 10px; }
.sc-btn { width: 96px; height: 32px; border-radius: 999px; background: #f2f2f3; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sc-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.02); }
.sc-kpis em { display: block; width: 50%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); }
.sc-kpis b { display: block; width: 70%; height: 16px; border-radius: 5px; background: rgba(255,255,255,.7); margin-top: 12px; }
.sc-kpis div:nth-child(2) b { background: linear-gradient(90deg, #c9ccff, #8f97ff); }
.sc-chart { height: 130px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 0 0; overflow: hidden; background: rgba(255,255,255,.015); }
.sc-chart svg { width: 100%; height: 100%; }
.sc-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .6s forwards; }
.sc-rows { display: grid; gap: 10px; }
.sc-rows span { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); }
.sc-rows span:nth-child(2) { width: 82%; } .sc-rows span:nth-child(3) { width: 64%; }

.sc-design { left: 0; top: 150px; width: 230px; border-radius: 18px; padding: 20px; animation: float 7s ease-in-out infinite; }
.sc-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-type { font-family: var(--display); font-weight: 600; font-size: 64px; letter-spacing: -.05em; line-height: 1; margin: 14px 0 16px; background: linear-gradient(180deg, #fff, #8f97ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-swatches { display: flex; gap: 8px; }
.sc-swatches i { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sc-comp { display: flex; gap: 8px; margin-top: 16px; }
.sc-comp span { height: 28px; border-radius: 999px; flex: 1; }
.sc-comp .p { background: #f2f2f3; } .sc-comp .g { border: 1px solid var(--line-2); }
.sc-toggle { margin-top: 14px; width: 44px; height: 24px; border-radius: 999px; background: #8f97ff; position: relative; }
.sc-toggle i { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

.sc-phone { right: 10px; top: 110px; width: 220px; height: 450px; border-radius: 40px; padding: 14px 14px 12px; border: 1px solid rgba(255,255,255,.16); animation: float 7s ease-in-out -3.5s infinite; display: flex; flex-direction: column; gap: 12px; }
.sc-island { width: 76px; height: 22px; border-radius: 999px; background: #000; margin: 0 auto 4px; }
.sc-ph-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.sc-ph-head b { width: 90px; height: 12px; border-radius: 5px; background: rgba(255,255,255,.85); }
.sc-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #c9ccff, #6b72d6); }
.sc-hero-card { height: 120px; border-radius: 20px; padding: 16px; background: linear-gradient(135deg, rgba(143,151,255,.55), rgba(201,204,255,.12) 70%), #17181c; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.sc-hero-card em { width: 50%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.5); }
.sc-hero-card b { width: 70%; height: 14px; border-radius: 5px; background: #fff; }
.sc-ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-ph-grid span { height: 62px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.sc-ph-list { display: grid; gap: 8px; padding: 0 4px; }
.sc-ph-list span { height: 9px; border-radius: 5px; background: rgba(255,255,255,.08); }
.sc-ph-list span:last-child { width: 70%; }
.sc-tab { margin-top: auto; height: 46px; border-radius: 22px; background: rgba(255,255,255,.05); display: flex; justify-content: space-around; align-items: center; }
.sc-tab i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.18); }
.sc-tab i.on { background: #c9ccff; }

.sc-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--text); background: rgba(18,19,22,.85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.sc-tag span { width: 6px; height: 6px; border-radius: 50%; background: #c9ccff; box-shadow: 0 0 10px #8f97ff; }
.sc-tag.t1 { left: 30px; top: 110px; } .sc-tag.t2 { left: calc(50% + 250px); top: -18px; } .sc-tag.t3 { right: 40px; top: 72px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1080px) {
  .showcase { height: 520px; }
  .sc-browser { width: 640px; margin-left: -320px; }
  .sc-design { width: 200px; } .sc-type { font-size: 52px; }
  .sc-phone { width: 196px; height: 410px; right: 0; }
}
@media (max-width: 760px) {
  .showcase { height: 400px; margin-top: 64px; }
  .sc-browser { width: 100%; left: 0; margin-left: 0; height: 330px; }
  .sc-design, .sc-tag.t1 { display: none; }
  .sc-phone { width: 170px; height: 350px; right: -6px; top: 120px; border-radius: 32px; }
  .sc-hero-card { height: 90px; } .sc-ph-grid span { height: 46px; }
  .sc-kpis div:nth-child(3) { display: none; } .sc-kpis { grid-template-columns: 1fr 1fr; }
  .sc-head em { width: 140px; } .sc-head b { width: 110px; }
  .sc-tag.t3 { right: 12px; top: 92px; }
}

/* ---------- AI feature card ---------- */
.ai-card { background: radial-gradient(ellipse 60% 90% at 85% 50%, rgba(143,151,255,.14), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border-color: rgba(143,151,255,.22); }
.ai-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.ai-card p { max-width: 520px; }
.ai-flow { display: grid; grid-template-columns: 1fr 48px auto 48px 1fr; align-items: center; }
.ai-col { display: grid; gap: 14px; }
.ai-node { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(12,13,16,.8); white-space: nowrap; }
.ai-node i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.ai-node.out { color: var(--text); } .ai-node.out i { background: #c9ccff; box-shadow: 0 0 8px #8f97ff; }
.ai-lines { width: 100%; height: 150px; overflow: visible; }
.ai-lines path { fill: none; stroke: rgba(201,204,255,.35); stroke-width: 1.2; stroke-dasharray: 4 4; animation: flow 1.6s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.ai-core { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.ai-core span { width: 72px; height: 72px; border-radius: 22px; border: 1px solid rgba(201,204,255,.45);
  background: radial-gradient(circle at 50% 40%, rgba(201,204,255,.55), rgba(143,151,255,.15) 60%, transparent 75%), #121318;
  box-shadow: 0 0 40px rgba(143,151,255,.35); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 64px rgba(143,151,255,.55); } }
@media (max-width: 1080px) { .ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ai-flow { grid-template-columns: 1fr 28px auto 28px 1fr; } .ai-node { font-size: 11.5px; padding: 8px; gap: 6px; } .ai-core span { width: 52px; height: 52px; border-radius: 16px; } }
@media (max-width: 420px) { .ai-flow { display: none; } }

.doc-toc { max-height: calc(100vh - 140px); overflow-y: auto; font-size: 13.5px; gap: 0; }

/* Fieldset reset for grouped form controls */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 13.5px; color: var(--text-2); font-weight: 500; padding: 0; margin-bottom: 8px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,.02); }
