
:root {
  --ink: #0f1219;
  --ink-2: #171b24;
  --paper: #fafaf6;
  --paper-2: #f0ede4;
  --gold: #e8b830;
  --gold-deep: #b98513;
  --white: #ffffff;
  --text: #171b24;
  --muted: #6b707a;
  --muted-light: #b9bdc5;
  --line: rgba(15,18,25,.14);
  --line-light: rgba(255,255,255,.14);
  --radius: 22px;
  --shadow: 0 28px 80px rgba(15,18,25,.18);
  --content: 1440px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--font);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  padding: 10px 14px; border-radius: 8px; background: var(--gold); color: var(--ink);
  font-weight: 800; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell { min-height: 100dvh; display: grid; grid-template-rows: 74px minmax(0, 1fr) 36px; }
.container { width: min(calc(100% - 44px), var(--content)); margin-inline: auto; }

.site-header {
  position: relative; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (min-width: 821px) { .site-header .container { width: calc(100% - 44px); max-width: none; } }
.nav-wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 218px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 31px); }
.site-nav a { color: #d5d8de; font-size: .88rem; font-weight: 730; white-space: nowrap; transition: color .18s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.talk-button {
  min-height: 42px; padding: 0 17px; border: 1px solid rgba(232,184,48,.55); border-radius: 999px;
  background: transparent; color: var(--gold); font-weight: 850; font-size: .86rem;
}
.talk-button:hover { background: var(--gold); color: var(--ink); }
.menu-button {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: white;
}
.menu-button span, .menu-button::before, .menu-button::after {
  content: ""; display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s;
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.page-stage {
  position: relative; overflow: hidden; min-height: 0;
  display: grid; align-items: center;
  padding: clamp(28px, 4.2vh, 54px) 0;
}
.page-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
}
.stage-dark { background: var(--ink); color: var(--white); }
.stage-dark::after {
  content: ""; position: absolute; width: 680px; height: 680px; right: -210px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,48,.18), transparent 67%); pointer-events: none;
}
.stage-paper { background: var(--paper); color: var(--text); }
.stage-paper::before { background-image: linear-gradient(rgba(15,18,25,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,18,25,.035) 1px, transparent 1px); }
.stage-gold {
  background: radial-gradient(circle at 82% 10%, rgba(232,184,48,.26), transparent 32%), var(--paper);
  color: var(--text);
}
.stage-gold::before { background-image: linear-gradient(rgba(15,18,25,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,18,25,.035) 1px, transparent 1px); }

.stage-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(390px, .93fr); gap: clamp(42px, 6vw, 86px); align-items: center; }
.stage-copy { max-width: 760px; }
.eyebrow { margin: 0 0 17px; color: var(--gold-deep); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.stage-dark .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 850; letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.9rem); }
h3 { font-size: clamp(1.38rem, 2.1vw, 2.05rem); }
.gold-text { color: var(--gold); }
.lede { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.06rem, 1.45vw, 1.3rem); line-height: 1.55; }
.stage-dark .lede { color: #c7cad1; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px;
  padding: 0 21px; border: 1px solid transparent; border-radius: 999px; font-size: .91rem; font-weight: 880;
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #f2c84c; }
.btn-dark { background: var(--ink); color: white; }
.btn-outline { border-color: rgba(255,255,255,.25); color: white; background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { border-color: rgba(15,18,25,.25); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 23px; color: var(--gold-deep); font-weight: 850; }
.stage-dark .text-link { color: var(--gold); }
.text-link::after { content: "→"; }

.choice-panel, .glass-panel, .paper-panel {
  position: relative; border-radius: var(--radius); box-shadow: var(--shadow);
}
.choice-panel { padding: clamp(22px, 2.5vw, 31px); border: 1px solid var(--line-light); background: rgba(255,255,255,.045); backdrop-filter: blur(12px); }
.choice-intro { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.choice-intro strong { font-size: .98rem; }
.choice-intro span { color: var(--gold); font-size: .71rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.choice-card { position: relative; min-height: 230px; display: flex; flex-direction: column; padding: 22px; border-radius: 16px; border: 1px solid var(--line-light); background: rgba(15,18,25,.45); }
.choice-card.featured { border-color: rgba(232,184,48,.62); background: linear-gradient(145deg, rgba(232,184,48,.12), rgba(15,18,25,.5)); }
.choice-card small, .mini-label { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.choice-card h3 { margin-top: 14px; font-size: clamp(1.42rem, 2.1vw, 1.92rem); }
.choice-card p { margin: 14px 0 0; color: #bfc3cb; font-size: .91rem; line-height: 1.55; }
.choice-card a { margin-top: auto; padding-top: 18px; color: var(--gold); font-size: .83rem; font-weight: 850; }
.choice-card a::after { content: ""; position: absolute; inset: 0; }
.stay-note { margin: 16px 2px 0; color: #aeb3bc; font-size: .84rem; }
.stay-note a { color: white; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

.signal-list { display: grid; gap: 12px; }
.signal-item { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.58); }
.signal-item span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 900; }
.signal-item strong { display: block; font-size: 1rem; }
.signal-item p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

.migration-panel { padding: 29px; border: 1px solid var(--line); background: rgba(250,250,246,.86); }
.migration-arrow { display: grid; grid-template-columns: 1fr 78px 1fr; align-items: center; gap: 9px; }
.platform-box { min-height: 238px; padding: 25px; border-radius: 17px; border: 1px solid var(--line); background: white; }
.platform-box.target { background: var(--ink); color: white; border-color: var(--ink); }
.platform-box small { color: var(--gold-deep); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.platform-box.target small { color: var(--gold); }
.platform-box strong { display: block; margin-top: 15px; font-family: var(--display); font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1; }
.platform-box p { margin: 15px 0 0; color: var(--muted); font-size: .9rem; }
.platform-box.target p { color: #c5c9d0; }
.arrow-line { display: grid; place-items: center; color: var(--gold-deep); font-size: 2.3rem; font-weight: 900; }
.three-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.three-notes div { padding: 13px 14px; border-radius: 11px; background: rgba(15,18,25,.055); }
.three-notes strong { display: block; font-size: .77rem; }
.three-notes span { color: var(--muted); font-size: .73rem; }

.engine-panel { padding: 29px; border: 1px solid var(--line-light); background: rgba(255,255,255,.045); }
.engine-head { display: flex; justify-content: space-between; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.engine-head span { color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.engine-head small { color: #aeb3bb; }
.engine-core { margin: 22px auto; padding: 25px; max-width: 370px; border-radius: 18px; border: 1px solid rgba(232,184,48,.64); background: linear-gradient(145deg, rgba(232,184,48,.13), rgba(15,18,25,.26)); text-align: center; }
.engine-core img { width: 42px; margin: 0 auto 13px; }
.engine-core strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.engine-core span { display: block; margin-top: 10px; color: #bfc3ca; font-size: .84rem; }
.engine-edges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.engine-edges div { padding: 13px; border-radius: 11px; border: 1px solid var(--line-light); text-align: center; color: #c5c8ce; font-size: .78rem; font-weight: 760; }
.product-note { margin-top: 14px; color: #9fa4ad; font-size: .78rem; text-align: center; }

.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-card { min-height: 170px; padding: 23px; border-radius: 17px; border: 1px solid var(--line); background: white; }
.about-card:first-child { grid-column: 1 / -1; min-height: 184px; background: var(--ink); color: white; border-color: var(--ink); }
.about-card small { color: var(--gold-deep); font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.about-card:first-child small { color: var(--gold); }
.about-card h3 { margin-top: 13px; font-size: 1.65rem; }
.about-card p { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.about-card:first-child p { color: #c5c8cf; }

.micro-footer { background: var(--ink); color: #8f949e; border-top: 1px solid rgba(255,255,255,.08); }
.micro-footer .container { height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .72rem; }
.micro-footer nav { display: flex; gap: 16px; }
.micro-footer a:hover { color: var(--gold); }

.contact-fab {
  position: fixed; right: 24px; bottom: 52px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); box-shadow: 0 16px 45px rgba(15,18,25,.25);
  font-weight: 900; font-size: .87rem;
}
.contact-fab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(15,18,25,.1); }
.contact-fab:hover { transform: translateY(-2px); }

dialog.contact-dialog { width: min(540px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--text); box-shadow: 0 34px 120px rgba(0,0,0,.42); }
dialog.contact-dialog::backdrop { background: rgba(6,8,12,.75); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 25px 27px 21px; background: var(--ink); color: white; }
.dialog-head h2 { font-size: 2rem; }
.dialog-head p { margin: 8px 0 0; color: #bfc3ca; font-size: .9rem; }
.dialog-close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; color: white; font-size: 1.2rem; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 20px 27px 0; }
.contact-option { min-height: 72px; display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; border-radius: 13px; border: 1px solid var(--line); background: white; }
.contact-option:hover { border-color: var(--gold-deep); }
.contact-option strong { font-size: .92rem; }
.contact-option span { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.callback-form { padding: 20px 27px 25px; }
.callback-form > p { margin: 0 0 12px; color: var(--muted); font-size: .84rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-top: 10px; }
.field label { display: block; margin-bottom: 5px; font-size: .73rem; font-weight: 850; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 10px 12px; color: var(--text); }
.field textarea { min-height: 76px; resize: vertical; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; }
.form-actions small { color: var(--muted); font-size: .7rem; }
.form-actions button { border: 0; }

.legal-stage { align-items: start; overflow: auto; padding: 54px 0; }
.legal { max-width: 820px; }
.legal h1 { font-size: 2.8rem; }
.legal h2 { margin-top: 30px; font-size: 1.65rem; }
.legal p { margin: 11px 0 0; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(10px); animation: reveal .48s ease forwards; }
.reveal.delay { animation-delay: .08s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; animation: none; } .btn:hover, .contact-fab:hover { transform: none; } }

@media (max-width: 1000px) {
  .site-nav { gap: 17px; }
  .site-nav a { font-size: .82rem; }
  .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); gap: 38px; }
  .choice-card { padding: 18px; min-height: 220px; }
}

@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .page-shell { display: block; min-height: 100dvh; }
  .site-header { position: sticky; top: 0; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 74px; display: none; padding: 18px 22px 22px;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.3);
  }
  .site-nav.open { display: grid; gap: 0; }
  .site-nav a, .site-nav .talk-button { width: 100%; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .talk-button { margin-top: 12px; justify-content: center; border: 1px solid rgba(232,184,48,.55); }
  .page-stage { overflow: visible; min-height: calc(100dvh - 74px); padding: 58px 0 72px; }
  .stage-grid { grid-template-columns: 1fr; gap: 42px; }
  h1 { font-size: clamp(2.3rem, 9.4vw, 3.7rem); }
  h2 { font-size: clamp(2.1rem, 8.6vw, 3.4rem); }
  .choice-cards { grid-template-columns: 1fr; }
  .choice-card { min-height: 205px; }
  .migration-arrow { grid-template-columns: 1fr; }
  .arrow-line { transform: rotate(90deg); height: 50px; }
  .three-notes { grid-template-columns: 1fr; }
  .engine-edges { grid-template-columns: 1fr; }
  .about-panel { grid-template-columns: 1fr; }
  .about-card:first-child { grid-column: auto; }
  .micro-footer { min-height: 54px; }
  .micro-footer .container { height: auto; min-height: 54px; }
  .contact-fab { right: 16px; bottom: 18px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 30px), var(--content)); }
  .brand img { width: 196px; }
  .actions { display: grid; }
  .btn { width: 100%; }
  .contact-options, .form-row { grid-template-columns: 1fr; }
  .dialog-head, .contact-options, .callback-form { padding-left: 20px; padding-right: 20px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .micro-footer .container { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 0; }
}

@media (min-width: 821px) and (min-height: 690px) {
  body { overflow: hidden; }
}
@media (min-width: 821px) and (max-height: 760px) {
  .page-stage { padding: 24px 0; }
  h1 { font-size: clamp(2.1rem, 4vw, 3.9rem); }
  h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); }
  .lede { margin-top: 18px; }
  .actions { margin-top: 24px; }
  .choice-card { min-height: 205px; }
  .choice-card p { margin-top: 10px; }
  .choice-card a { padding-top: 12px; }
  .signal-item { padding: 14px 17px; }
  .platform-box { min-height: 210px; }
  .about-card { min-height: 145px; }
  .about-card:first-child { min-height: 155px; }
}
