:root {
  color-scheme: dark;
  --bg: #07100c;
  --bg-soft: #0a1510;
  --panel: #0e1b15;
  --panel-2: #12241a;
  --ink: #f2f8f4;
  --muted: #9caf9f;
  --muted-2: #72877b;
  --accent: #7cf0ae;
  --accent-strong: #46d98a;
  --accent-ink: #06130c;
  --line: #24382e;
  --line-bright: #365344;
  --warm: #f3c988;
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
  font-family: Inter, "SF Pro Display", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 80% 3%, rgba(59, 160, 103, .17), transparent 31rem),
    radial-gradient(ellipse at 10% 38%, rgba(42, 100, 72, .11), transparent 34rem),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  content: "";
  pointer-events: none;
}
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(1240px, calc(100% - 48px));
  height: 82px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav nav, footer nav { display: flex; gap: 28px; align-items: center; }
.nav nav a, footer nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}
.nav nav a:hover, footer nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14,27,21,.88);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 21px;
  font-weight: 790;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: inline-grid;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(124,240,174,.45);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(124,240,174,.22), rgba(124,240,174,.03));
  place-items: center;
}
.brand-mark::before {
  width: 10px;
  height: 8px;
  margin-top: 4px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}
.brand-mark span {
  position: absolute;
  bottom: 6px;
  width: 15px;
  height: 11px;
  border-radius: 3px;
  background: var(--accent);
}

main { width: min(1240px, calc(100% - 48px)); margin: auto; }
.hero {
  display: grid;
  min-height: 760px;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 70px 0 80px;
}
.hero-copy { position: relative; z-index: 2; padding-left: 6px; }
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,240,174,.09);
  animation: live-pulse 2.4s ease-in-out infinite;
}
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 5.8vw, 86px);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: .98;
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero-line-accent {
  color: transparent;
  background: linear-gradient(100deg, #eff7f2 8%, #78e9aa 53%, #ddfce9 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.75;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 34px 0 23px;
  flex-wrap: wrap;
}
.primary, .secondary, button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 34px rgba(70,217,138,.17);
}
.primary:hover { box-shadow: 0 14px 42px rgba(70,217,138,.27); transform: translateY(-2px); }
.secondary { border-color: var(--line-bright); background: rgba(8,18,13,.6); color: var(--ink); }
.secondary:hover { border-color: #5b806d; background: rgba(19,35,27,.8); transform: translateY(-2px); }
button:disabled { opacity: .55; cursor: wait; transform: none !important; }
.hero-facts { display: flex; gap: 19px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.hero-facts span { display: inline-flex; gap: 7px; align-items: center; }
.hero-facts i { color: var(--accent); font-style: normal; }

.hero-visual {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(104,147,125,.19);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(20,45,32,.7), rgba(6,13,10,.78)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255,255,255,.016) 55px),
    repeating-linear-gradient(0deg, transparent 0 54px, rgba(255,255,255,.016) 55px);
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
}
.hero-visual::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 24px;
  content: "";
}
.visual-glow {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(92,232,151,.10);
  filter: blur(55px);
  transform: translateX(-50%);
  animation: glow-breathe 4s ease-in-out infinite;
}
.unlock-illustration { position: relative; display: block; width: 100%; height: auto; }
.svg-caption, .svg-label, .svg-tiny, .svg-micro, .svg-pill-title, .svg-pill-sub { font-family: Inter, system-ui, sans-serif; }
.svg-caption { fill: #8eb8a3; font-size: 8px; letter-spacing: 2px; }
.svg-label { fill: #779186; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.svg-tiny { fill: #d9ede1; font-size: 9px; font-weight: 700; }
.svg-micro { fill: #7e9c8e; font-size: 6px; }
.svg-pill-title { fill: #e4f5ea; font-size: 11px; font-weight: 700; }
.svg-pill-sub { fill: #7f9f8f; font-size: 7px; }
.signal-path path { fill: none; stroke: #67d99a; stroke-dasharray: 4 8; stroke-width: 1.5; opacity: .55; }
.signal-path circle { fill: #92f7bd; filter: url(#soft-glow); }
.device-float { animation: float 5s ease-in-out infinite; transform-origin: center; }
.device-float-delayed { animation: float 5.6s .8s ease-in-out infinite; transform-origin: center; }
.hero-lock .lock-shackle { animation: unlock-shackle 4.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.verified-pill { animation: pill-pulse 4.8s ease-in-out infinite; transform-origin: center; }

.trust-strip {
  display: grid;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}
.trust-strip span {
  display: flex;
  min-height: 28px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
}
.trust-strip span:last-child { border-right: 0; }

.section { padding: 150px 0 0; }
.section-heading { max-width: 760px; margin-bottom: 58px; }
.section-heading.compact { max-width: 900px; margin-bottom: 48px; }
.section-heading h2, .security-copy h2, .download-section h2 {
  margin: 0;
  font-size: clamp(38px, 5.1vw, 68px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.06;
}
.section-heading > p:last-child {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.scenario-card {
  position: relative;
  min-height: 380px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18,35,26,.79), rgba(9,19,14,.87));
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.scenario-card:hover { border-color: #426450; transform: translateY(-5px); }
.scenario-card.featured { background: radial-gradient(circle at 80% 12%, rgba(91,225,147,.12), transparent 47%), linear-gradient(145deg, #14271d, #0a1510); }
.scenario-card::after {
  position: absolute;
  right: -35%;
  bottom: -40%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(124,240,174,.09);
  border-radius: 50%;
  content: "";
}
.scene-icon {
  position: relative;
  height: 145px;
  margin: -3px 0 27px;
  border-radius: 16px;
  background: rgba(3,10,6,.29);
  overflow: hidden;
}
.scene-icon::after { position: absolute; inset: auto 12% 18px; height: 1px; background: #355044; content: ""; }
.mini-icon span {
  position: absolute; right: 17%; bottom: 22px; width: 38%; height: 32px; border-radius: 9px; background: #b8c5bf;
  box-shadow: 0 -72px 0 -1px #111d18, 0 -72px 0 1px #4d685b;
}
.mini-icon span::after { position: absolute; right: 10px; top: 14px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); content: ""; }
.clamshell-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .18));
}
.shared-icon span { position: absolute; top: 25px; left: 50%; width: 76px; height: 94px; border: 2px solid #4c6b5b; border-radius: 18px; background: #0b1711; transform: translateX(-50%) rotate(-9deg); }
.shared-icon span::before, .shared-icon span::after { position: absolute; top: 30px; border: 2px solid var(--accent); border-left: 0; border-radius: 0 18px 18px 0; content: ""; }
.shared-icon span::before { right: 20px; width: 12px; height: 28px; }
.shared-icon span::after { right: 13px; width: 19px; height: 40px; top: 24px; opacity: .55; }
.card-kicker { margin: 0 0 9px; color: var(--accent); font-size: 10px; font-weight: 760; letter-spacing: .17em; }
.scenario-card h3, .route-card h3, .steps h3 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.scenario-card > p:last-child, .route-card p, .steps p { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.routes-section { padding-top: 170px; }
.route-list { border-top: 1px solid var(--line); }
.route-card {
  display: grid;
  min-height: 156px;
  padding: 27px 15px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 70px 100px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  transition: background .25s ease;
}
.route-card:hover { background: linear-gradient(90deg, transparent, rgba(61,137,93,.08), transparent); }
.route-number { color: var(--muted-2); font-size: 11px; font-weight: 700; }
.route-symbol { position: relative; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 23px; background: #0c1912; }
.tile-symbol { display: grid; padding: 16px; grid-template-columns: 1fr 1fr; gap: 5px; }
.tile-symbol span { border-radius: 7px; background: #1a3024; }
.tile-symbol span:first-child { background: var(--accent); }
.nfc-symbol span { position: absolute; top: 50%; left: 50%; border: 2px solid var(--accent); border-left: 0; border-radius: 0 40px 40px 0; transform: translate(-50%,-50%); }
.nfc-symbol span:nth-child(1) { width: 12px; height: 25px; }
.nfc-symbol span:nth-child(2) { width: 25px; height: 43px; opacity: .7; }
.nfc-symbol span:nth-child(3) { width: 39px; height: 58px; opacity: .35; }
.watch-symbol { display: grid; border-radius: 28px; place-items: center; }
.watch-symbol::before, .watch-symbol::after { position: absolute; left: 23px; width: 24px; height: 13px; background: #30483b; content: ""; }
.watch-symbol::before { top: -13px; border-radius: 7px 7px 0 0; }
.watch-symbol::after { bottom: -13px; border-radius: 0 0 7px 7px; }
.watch-symbol span { display: grid; width: 34px; height: 34px; border-radius: 50%; background: #1c3a29; color: var(--accent); place-items: center; }
.route-card > div:nth-of-type(2) { max-width: 570px; }
.route-time { padding: 7px 10px; border: 1px solid var(--line); border-radius: 50px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.security-section {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 90px;
  align-items: center;
  padding-top: 190px;
}
.lead-small { max-width: 680px; margin: 25px 0 36px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.security-list { margin: 0 0 35px; padding: 0; list-style: none; }
.security-list li { display: grid; padding: 19px 0; border-top: 1px solid var(--line); grid-template-columns: 46px 1fr; gap: 8px; }
.security-list li:last-child { border-bottom: 1px solid var(--line); }
.security-list > li > span { padding-top: 3px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 10px; }
.security-list strong, .security-list small { display: block; }
.security-list strong { margin-bottom: 7px; font-size: 15px; }
.security-list small { color: var(--muted); font-size: 13px; line-height: 1.65; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(2px,-2px); }
.security-diagram {
  position: relative;
  min-height: 610px;
  padding: 54px 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at 50% 37%, rgba(62,159,102,.17), transparent 35%), rgba(8,17,12,.73);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.security-diagram::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}
.diagram-node, .local-vault, .privacy-chip { position: relative; z-index: 1; }
.diagram-node {
  display: grid;
  width: 70%;
  min-height: 112px;
  margin: auto;
  padding: 20px 20px 20px 70px;
  border: 1px solid #355345;
  border-radius: 18px;
  align-content: center;
  background: rgba(14,31,21,.94);
}
.diagram-node strong, .diagram-node small { display: block; }
.diagram-node strong { font-size: 15px; }
.diagram-node small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.node-icon { position: absolute; left: 20px; display: grid; width: 35px; height: 35px; border-radius: 11px; background: rgba(124,240,174,.12); color: var(--accent); font-size: 19px; place-items: center; }
.diagram-flow { position: relative; z-index: 1; display: flex; height: 90px; align-items: center; justify-content: center; }
.diagram-flow i { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(var(--accent), #2b4939); }
.diagram-flow i:last-child { display: none; }
.diagram-flow i::after { position: absolute; bottom: -1px; left: -3px; width: 7px; height: 7px; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); content: ""; transform: rotate(45deg); }
.diagram-flow span { position: relative; z-index: 2; padding: 7px 10px; border: 1px solid #345141; border-radius: 30px; background: #0b1710; color: var(--accent); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.local-vault {
  display: flex;
  width: 88%;
  min-height: 98px;
  margin: 70px auto 22px;
  padding: 20px;
  border: 1px dashed #446353;
  border-radius: 18px;
  align-items: center;
  gap: 18px;
  background: rgba(8,18,12,.75);
}
.vault-lock { position: relative; width: 39px; height: 32px; border-radius: 7px; background: var(--accent); flex: 0 0 auto; }
.vault-lock::before { position: absolute; top: -13px; left: 9px; width: 17px; height: 17px; border: 3px solid var(--accent); border-bottom: 0; border-radius: 13px 13px 0 0; content: ""; }
.local-vault strong, .local-vault small { display: block; }
.local-vault strong { margin-bottom: 5px; font-family: ui-monospace, monospace; font-size: 12px; }
.local-vault small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.privacy-chip { width: max-content; max-width: 90%; margin: auto; color: var(--muted); font-size: 10px; text-align: center; }
.privacy-chip span { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.steps-section { padding-top: 180px; }
.steps { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 15px; list-style: none; }
.steps li { min-height: 250px; padding: 28px; border-top: 1px solid var(--line-bright); background: linear-gradient(180deg, rgba(21,39,29,.42), transparent); }
.steps li > span { display: grid; width: 37px; height: 37px; margin-bottom: 60px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--accent); font-family: ui-monospace, monospace; font-size: 11px; place-items: center; }

.download-section {
  display: grid;
  margin-top: 180px;
  padding: clamp(40px, 6vw, 78px);
  border: 1px solid #355441;
  border-radius: 34px;
  background: radial-gradient(circle at 80% 10%, rgba(92,233,151,.15), transparent 39%), linear-gradient(145deg, #13281d, #09130e);
  box-shadow: var(--shadow);
  grid-template-columns: 1.08fr .92fr;
  gap: 65px;
}
.download-section > div:first-child > p:not(.eyebrow):not(.price) { max-width: 610px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.price { color: #c9e5d4; font-size: 12px; }
.download-cards { display: grid; align-content: center; gap: 10px; }
.download-cards a {
  display: grid;
  min-height: 85px;
  padding: 16px 20px;
  border: 1px solid var(--line-bright);
  border-radius: 15px;
  background: rgba(4,12,7,.31);
  grid-template-columns: 35px 1fr auto;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.download-cards a:hover { background: rgba(28,57,40,.6); transform: translateX(4px); }
.download-cards span { grid-row: 1 / 3; color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 9px; }
.download-cards strong { align-self: end; font-size: 14px; }
.download-cards small { align-self: start; color: var(--muted); font-size: 10px; }
.download-cards b { grid-column: 3; grid-row: 1 / 3; color: var(--accent); font-size: 17px; font-weight: 400; }
.compatibility-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.compatibility-note strong { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.compatibility-note p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

footer {
  display: grid;
  width: min(1240px, calc(100% - 48px));
  min-height: 230px;
  margin: 90px auto 0;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 45px;
  align-items: start;
}
.footer-brand { font-size: 18px; }
footer > div p, .copyright { color: var(--muted-2); font-size: 11px; }
.copyright { grid-column: 1 / -1; margin: auto 0 0; }

/* Shared application pages */
.narrow { width: min(760px, 100%); margin: auto; }
.narrow.hero { display: block; min-height: 0; padding-top: 110px; }
.narrow h1 { font-size: clamp(42px, 7vw, 68px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid article, .panel, .device { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,27,21,.88); }
.grid p, .panel p { color: var(--muted); line-height: 1.7; }
.panel { margin-top: 70px; }
.download-grid { display: flex; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
form { display: grid; gap: 18px; margin: 34px 0; }
label { display: grid; gap: 8px; color: var(--muted); }
input, select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #0c1511;
  color: var(--ink);
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,240,174,.08); }
.warning { padding: 16px; border-left: 3px solid var(--warm); background: #201a11; color: #ffe1b7; }
.result { min-height: 1.5em; }
.muted { color: var(--muted); }
.device { display: grid; margin: 12px 0; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.device span { color: var(--muted); }
.entitlement-status {
  display: flex;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.entitlement-status .secondary { min-height: 40px; padding: 0 14px; white-space: nowrap; }
code { color: var(--accent); }

.service-page { padding: 100px 0 120px; }
.service-page h1 { max-width: 720px; }
.service-lead { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.service-form { max-width: 620px; margin-top: 54px; }
.service-note { max-width: 620px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; line-height: 1.7; }
.status-line { min-height: 25px; color: var(--muted); font-size: 14px; }
.status-line.is-working { color: var(--warm); }
.status-line.is-success { color: var(--accent); }
.status-line.is-error { color: #ffaaa3; }
.entitlement-rule {
  display: flex;
  max-width: 680px;
  margin: 45px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d6e8dc;
}
.entitlement-rule i { color: var(--accent); font-size: 24px; font-style: normal; }

.admin-page { background: #07100c; }
.admin-nav {
  display: grid;
  width: min(1440px, calc(100% - 48px));
  min-height: 74px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.admin-nav > span { color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.admin-nav .secondary { min-height: 40px; margin-left: auto; padding: 0 16px; }
.admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-actions > span { max-width: 240px; color: var(--muted-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-actions .secondary { margin-left: 0; }
.admin-shell { width: min(1440px, calc(100% - 48px)); padding: 58px 0 100px; }
.admin-overview { display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.admin-overview h1 { max-width: 700px; font-size: clamp(42px, 5vw, 68px); }
.metrics { display: grid; min-width: min(620px, 52vw); margin: 0; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.metrics > div { padding: 18px 16px 0; border-right: 1px solid var(--line); }
.metrics > div:last-child { border-right: 0; }
.metrics dt { color: var(--muted-2); font-size: 11px; }
.metrics dd { margin: 8px 0 0; font-size: 28px; font-weight: 680; }
.admin-workspace { position: relative; margin-top: 60px; border-top: 1px solid var(--line-bright); }
.admin-tabs { display: flex; gap: 30px; }
.admin-tabs button {
  min-height: 56px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
}
.admin-tabs button.is-active { border-bottom-color: var(--accent); color: var(--ink); }
.admin-tabs span { display: inline-grid; min-width: 20px; height: 20px; border-radius: 20px; background: #5e302c; color: #ffc5bf; font-size: 11px; place-items: center; }
.admin-panel { padding-top: 32px; }
.admin-search { display: grid; margin: 0 0 28px; grid-template-columns: minmax(300px, 1fr) 200px auto; align-items: end; }
.admin-search label span { font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted-2); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
td { color: #dce9e1; font-size: 13px; }
tbody tr { cursor: pointer; transition: background .18s ease; }
tbody tr:hover, tbody tr:focus { outline: 0; background: rgba(124,240,174,.055); }
.state { color: var(--accent); font-family: ui-monospace, monospace; }
.state-refunded, .state-suspended { color: #ffaaa3; }
.empty { padding: 40px; color: var(--muted-2); text-align: center; }
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(520px, 100%);
  height: 100svh;
  padding: 46px;
  border-left: 1px solid var(--line-bright);
  background: #0b1711;
  box-shadow: -30px 0 80px rgba(0,0,0,.45);
  overflow-y: auto;
  animation: drawer-in .22s ease both;
}
.detail-drawer h2 { margin: 0 0 20px; font-size: 30px; }
.detail-drawer h3 { margin-top: 38px; font-size: 14px; }
.detail-drawer ul { padding: 0; list-style: none; }
.detail-drawer li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.detail-close { float: right; min-height: 38px; padding: 0 14px; border-color: var(--line); }
.mono { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.alert-list { border-top: 1px solid var(--line); }
.alert-row { display: grid; padding: 24px 4px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.alert-row strong { font-size: 16px; }
.alert-row p { max-width: 900px; margin: 8px 0; color: var(--muted); font-size: 13px; }
.alert-row small { color: var(--muted-2); font-family: ui-monospace, monospace; }
.severity-critical { border-left: 2px solid #ff7d72; padding-left: 18px; }
.severity-warning { border-left: 2px solid var(--warm); padding-left: 18px; }

@keyframes drawer-in { from { opacity: 0; transform: translateX(30px); } }

.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

.success-page {
  width: min(980px, calc(100% - 48px));
  padding: 96px 0 120px;
}
.sandbox-banner {
  margin: -50px 0 28px;
  padding: 11px 15px;
  border: 1px solid rgba(243,201,136,.32);
  border-radius: 10px;
  background: rgba(243,201,136,.08);
  color: var(--warm);
  font: 700 12px/1.5 ui-monospace, monospace;
  letter-spacing: .03em;
  text-align: center;
}
.success-hero {
  position: relative;
  padding: 66px 68px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 12%, rgba(124,240,174,.18), transparent 17rem),
    linear-gradient(145deg, rgba(18,36,26,.96), rgba(10,21,16,.96));
  box-shadow: var(--shadow);
}
.success-hero::after {
  position: absolute;
  right: -80px;
  bottom: -115px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(124,240,174,.16);
  border-radius: 50%;
  content: "";
}
.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 30px;
  border: 1px solid rgba(124,240,174,.48);
  border-radius: 20px;
  background: rgba(124,240,174,.1);
  box-shadow: 0 0 40px rgba(124,240,174,.09);
  place-items: center;
}
.success-mark svg { width: 34px; fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.success-hero h1 { max-width: 760px; font-size: clamp(46px, 7vw, 76px); }
.success-lead { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.success-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.success-next { padding: 88px 4px 0; }
.section-kicker { color: var(--accent); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.success-next h2 { margin: 12px 0 34px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.045em; }
.success-steps { display: grid; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--line); }
.success-steps li { min-height: 236px; padding: 28px; background: var(--panel); }
.success-steps li > span { display: block; margin-bottom: 48px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; }
.success-steps strong { display: block; font-size: 17px; }
.success-steps p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.success-note { margin-top: 28px; padding: 26px 30px; border-left: 2px solid var(--accent); background: rgba(18,36,26,.65); }
.success-note strong { font-size: 15px; }
.success-note p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.success-note a { color: var(--ink); text-underline-offset: 3px; }

@keyframes live-pulse { 50% { box-shadow: 0 0 0 10px rgba(124,240,174,0); } }
@keyframes glow-breathe { 50% { opacity: .6; transform: translateX(-50%) scale(1.15); } }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes unlock-shackle {
  0%, 31%, 100% { transform: translateY(0) rotate(0); }
  40%, 72% { transform: translateY(-7px) rotate(-18deg); }
  81% { transform: translateY(0) rotate(0); }
}
@keyframes pill-pulse { 0%, 30%, 100% { opacity: .65; } 43%, 76% { opacity: 1; } }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 90px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(720px, 100%); margin: 30px auto 0; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .scenario-card:last-child { grid-column: 1 / -1; }
  .security-section { grid-template-columns: 1fr; gap: 55px; }
  .security-diagram { width: min(620px, 100%); margin: auto; }
  .download-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  main, .nav, footer { width: min(100% - 30px, 1240px); }
  .nav { min-height: 68px; height: auto; flex-wrap: wrap; }
  .nav:not(.nav-enhanced) nav { width: 100%; padding: 8px 0 18px; overflow-x: auto; }
  .nav:not(.nav-enhanced) nav a { min-height: 44px; white-space: nowrap; }
  .nav.nav-enhanced .nav-toggle { display: inline-flex; }
  .nav.nav-enhanced nav {
    position: absolute;
    top: 60px;
    right: 0;
    display: none;
    width: min(340px, calc(100vw - 30px));
    padding: 10px;
    border: 1px solid var(--line-bright);
    border-radius: 17px;
    background: rgba(10,21,16,.98);
    box-shadow: 0 24px 70px rgba(0,0,0,.48);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 2px;
  }
  .nav.nav-enhanced.is-open nav { display: flex; }
  .nav.nav-enhanced nav a {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    align-items: center;
  }
  .nav.nav-enhanced nav a:hover,
  .nav.nav-enhanced nav a:focus-visible { background: var(--panel-2); }
  .hero { padding: 66px 0 58px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .lead { font-size: 17px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions > * { width: 100%; }
  .hero-facts { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hero-visual { border-radius: 22px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip span { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .trust-strip span:nth-child(2) { border-right: 0; }
  .trust-strip span:nth-child(n+3) { border-bottom: 0; }
  .section { padding-top: 110px; }
  .section-heading h2, .security-copy h2, .download-section h2 { font-size: clamp(36px, 11vw, 52px); }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card:last-child { grid-column: auto; }
  .scenario-card { min-height: 350px; }
  .route-card { grid-template-columns: 42px 76px 1fr; }
  .route-symbol { width: 62px; height: 62px; }
  .route-time { display: none; }
  .security-section { padding-top: 125px; }
  .security-diagram { min-height: 535px; padding: 40px 20px; }
  .diagram-node { width: 84%; }
  .local-vault { width: 96%; margin-top: 58px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 210px; }
  .steps li > span { margin-bottom: 35px; }
  .download-section { margin-top: 115px; padding: 34px 22px; border-radius: 23px; }
  footer { grid-template-columns: 1fr; }
  footer nav { align-items: flex-start; flex-direction: column; gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .download-grid { align-items: stretch; flex-direction: column; }
  .download-grid > * { width: 100%; text-align: center; }
  .device { grid-template-columns: 1fr; }
  .device button { width: 100%; }
  .entitlement-status { align-items: stretch; flex-direction: column; }
  .service-page { padding-top: 64px; }
  .entitlement-rule { align-items: flex-start; flex-direction: column; }
  .admin-nav, .admin-shell { width: min(100% - 30px, 1440px); }
  .admin-nav { grid-template-columns: 1fr auto; }
  .admin-nav > span { display: none; }
  .admin-actions > span { display: none; }
  .admin-overview { align-items: flex-start; flex-direction: column; gap: 32px; }
  .metrics { width: 100%; min-width: 0; grid-template-columns: repeat(2, 1fr); }
  .metrics > div { border-bottom: 1px solid var(--line); }
  .admin-search { grid-template-columns: 1fr; }
  .detail-drawer { padding: 30px 22px; }
  .alert-row { grid-template-columns: 1fr; }
  .success-page { width: min(100% - 30px, 980px); padding: 52px 0 80px; }
  .sandbox-banner { margin: -20px 0 20px; }
  .success-hero { padding: 38px 24px 42px; border-radius: 24px; }
  .success-mark { width: 54px; height: 54px; margin-bottom: 25px; border-radius: 17px; }
  .success-hero h1 { font-size: clamp(39px, 12vw, 57px); }
  .success-lead { font-size: 16px; }
  .success-actions { align-items: stretch; flex-direction: column; }
  .success-actions > * { width: 100%; justify-content: center; }
  .success-next { padding-top: 68px; }
  .success-steps { grid-template-columns: 1fr; }
  .success-steps li { min-height: 0; padding: 25px; }
  .success-steps li > span { margin-bottom: 24px; }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(38px, 11.8vw, 50px);
    letter-spacing: -.055em;
  }
}

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