:root {
  --ink: #0b1016;
  --paper: #f3f0e9;
  --paper-deep: #e8e4dc;
  --orange: #ff4b18;
  --sky: #66d9ff;
  --line: #0b101624;
  --muted: #676e75;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, #0b101606 1px, transparent 1px),
    linear-gradient(#0b101606 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

.page-nav {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  clip-path: polygon(0 0, calc(100% - 7px) 0, calc(100% - 7px) 4px, 100% 4px, 100% 100%, 7px 100%, 7px calc(100% - 4px), 0 calc(100% - 4px));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.brand-copy {
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.25em;
  opacity: 0.5;
}

.page-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-nav nav a {
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.page-nav nav a:hover,
.page-nav nav a:focus-visible,
.page-nav nav a[aria-current="page"] {
  border-color: var(--orange);
}

.page-nav nav a:focus-visible,
.button:focus-visible,
.inline-link:focus-visible,
.footer-links a:focus-visible,
.contents a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 42%, #28415b 0, #111d28 22%, transparent 43%),
    var(--ink);
  color: #f6f3ed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
}

.hero-inner {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 72px;
  align-items: center;
  padding: 76px 0 70px;
}

.eyebrow,
.meta-label,
.section-number,
.app-id,
.footer-note {
  font-family: "Courier New", monospace;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2 {
  font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span,
h2 span {
  color: var(--orange);
  font-style: italic;
}

.hero-lead {
  max-width: 720px;
  margin: 27px 0 0;
  color: #b9c0c6;
  font-size: 18px;
  line-height: 1.8;
}

.hero-card {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #152535, #080d12);
  border: 1px solid #ffffff24;
  clip-path: polygon(0 0, calc(100% - 12px) 0, calc(100% - 12px) 6px, 100% 6px, 100% calc(100% - 12px), calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) 100%, 12px 100%, 12px calc(100% - 6px), 0 calc(100% - 6px));
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid #66d9ff3d;
  border-radius: 50%;
}

.hero-card::after {
  width: 215px;
  height: 215px;
  border-style: dashed;
  border-color: #ff4b184a;
}

.hero-card img {
  position: relative;
  z-index: 1;
  width: 116px;
  height: 116px;
  object-fit: none;
  object-position: 50% 25%;
  background: #05213b;
  border-radius: 24px;
  box-shadow: 9px 9px 0 #ff4b1835;
}

.date-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  padding: 19px 0;
  border-top: 1px solid #ffffff20;
  color: #e0e4e7;
  font-size: 13px;
}

.date-row strong {
  color: var(--orange);
}

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding: 76px 0 105px;
}

.contents {
  position: sticky;
  top: 24px;
  padding: 24px;
  background: var(--paper-deep);
  border-top: 4px solid var(--ink);
}

.contents p {
  margin: 0 0 16px;
  color: var(--orange);
  font: 700 10px "Courier New", monospace;
  letter-spacing: 0.14em;
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: section;
}

.contents li {
  counter-increment: section;
  border-top: 1px solid var(--line);
}

.contents a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}

.contents a::before {
  content: counter(section, decimal-leading-zero);
  color: var(--orange);
  font: 700 9px "Courier New", monospace;
}

.article-intro {
  margin: 0 0 60px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
  color: #4f565d;
  font-size: 18px;
  line-height: 1.85;
}

.policy-section {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 54px;
  scroll-margin-top: 24px;
}

.section-number {
  padding-top: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.policy-section h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.policy-section h3 {
  margin: 28px 0 9px;
  font-size: 17px;
}

.policy-section p,
.policy-section li {
  color: #50575e;
  font-size: 15px;
  line-height: 1.85;
}

.policy-section p {
  margin: 0 0 14px;
}

.policy-section ul,
.policy-section ol {
  margin: 16px 0 0;
  padding-left: 1.25em;
}

.policy-section li + li {
  margin-top: 9px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact b {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.app-id {
  word-break: break-all;
}

.notice {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--ink);
  color: #f6f3ed;
  border-left: 4px solid var(--orange);
}

.notice p,
.notice li {
  color: #d5dadd;
}

.notice strong {
  color: #fff;
}

.mode-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mode-card,
.step-card {
  padding: 24px;
  background: var(--paper-deep);
  border-top: 3px solid var(--ink);
}

.mode-card small,
.step-card small {
  color: var(--orange);
  font: 700 10px "Courier New", monospace;
}

.mode-card h3,
.step-card h3 {
  margin: 13px 0 9px;
}

.mode-card p,
.step-card p {
  margin: 0;
  font-size: 14px;
}

.contact-card {
  margin-top: 8px;
  padding: 30px;
  background: var(--orange);
  color: var(--ink);
}

.contact-card p {
  color: #241611;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 15px 18px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 #ffffff80;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.12s steps(2, end), box-shadow 0.12s steps(2, end);
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #ffffff80;
}

.inline-link {
  color: #ca3308;
  font-weight: 800;
  text-underline-offset: 3px;
}

.page-footer {
  background: var(--ink);
  color: #f6f3ed;
}

.footer-inner {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 38px 0;
}

.footer-note {
  margin: 16px 0 0;
  color: #899198;
  font-size: 10px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-links a {
  color: #cdd2d6;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--orange);
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    width: min(100%, 360px);
    min-height: 230px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contents {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 28px);
  }

  .page-nav {
    min-height: 74px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .page-nav nav {
    gap: 13px;
  }

  .page-nav nav a {
    font-size: 11px;
  }

  .page-nav nav a:first-child {
    display: none;
  }

  .hero-inner {
    min-height: 0;
    padding: 58px 0 54px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-lead,
  .article-intro {
    font-size: 16px;
  }

  .date-row {
    display: grid;
    gap: 8px;
  }

  .layout {
    padding: 48px 0 72px;
  }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 45px;
  }

  .fact-grid,
  .mode-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* Bases Loaded product page */
.app-landing {
  background-color: var(--paper);
}

.product-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, #17344d 0, #0d1823 27%, transparent 49%),
    var(--ink);
  color: #f6f3ed;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 100%);
}

.product-hero-inner {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 76px;
  align-items: center;
  padding: 72px 0 64px;
}

.product-hero-copy h1 {
  max-width: 700px;
  font-size: clamp(58px, 6.6vw, 94px);
}

.product-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 30px 0 0;
  color: #b6bdc3;
  font-size: 18px;
  line-height: 1.85;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid #ffffff8c;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.12s steps(2, end), box-shadow 0.12s steps(2, end);
}

.product-button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 #ffffffb3;
}

.product-button:hover {
  transform: translate(3px, 3px);
}

.product-button.primary:hover {
  box-shadow: 1px 1px 0 #ffffffb3;
}

.product-button:focus-visible,
.guide-link:focus-visible,
.local-links a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.product-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 410px;
  height: 410px;
  border: 1px solid #66d9ff3b;
  border-radius: 50%;
}

.product-visual::after {
  width: 505px;
  height: 505px;
  border-style: dashed;
  border-color: #ff4b183d;
}

.product-phone {
  position: relative;
  width: 272px;
  height: 574px;
  padding: 10px;
  background: #07090c;
  border: 3px solid #505964;
  border-radius: 42px;
  box-shadow: 25px 34px 75px #000c, inset 0 0 0 2px #9ca4ad52;
  transform: rotateY(-10deg) rotateZ(2deg);
}

.product-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
}

.product-speaker {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 84px;
  height: 20px;
  translate: -50% 0;
  background: #050608;
  border-radius: 14px;
}

.score-ticker {
  position: absolute;
  z-index: 2;
  top: 92px;
  left: -18px;
  display: grid;
  grid-template-columns: auto 38px 9px 38px auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: #080d12e8;
  border-left: 3px solid var(--orange);
  box-shadow: 9px 12px 26px #0008;
  font-family: "Courier New", monospace;
}

.score-ticker span {
  color: #8d969e;
  font-size: 8px;
  font-weight: 700;
}

.score-ticker b {
  color: #fff;
  font-size: 23px;
  text-align: center;
}

.score-ticker i {
  color: var(--orange);
  font-style: normal;
}

.visual-code {
  position: absolute;
  right: -4px;
  bottom: 38px;
  margin: 0;
  padding: 7px 9px;
  background: #080d12c7;
  border-left: 1px solid var(--sky);
  color: var(--sky);
  font: 8px "Courier New", monospace;
  letter-spacing: 0.08em;
}

.trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ffffff26;
}

.trust-strip div {
  padding: 23px 22px 25px;
  border-right: 1px solid #ffffff1f;
}

.trust-strip div:first-child {
  padding-left: 0;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip b,
.trust-strip span {
  display: block;
}

.trust-strip b {
  color: var(--orange);
  font: 900 20px "Courier New", monospace;
}

.trust-strip span {
  margin-top: 6px;
  color: #89929a;
  font-size: 11px;
}

.landing-section,
.guide-section {
  padding: 112px 0;
}

.landing-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.landing-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.landing-heading > p {
  margin: 0;
  color: #646b72;
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.feature-card {
  min-height: 245px;
  padding: 32px;
  background: var(--paper-deep);
  border-top: 4px solid var(--ink);
}

.feature-card.feature-wide {
  grid-column: 1 / -1;
  min-height: 280px;
  background: var(--ink);
  color: #f6f3ed;
  border-color: var(--orange);
}

.feature-card small {
  color: var(--orange);
  font: 700 9px "Courier New", monospace;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  margin: 42px 0 13px;
  font-size: 29px;
}

.feature-wide h3 {
  margin-top: 34px;
  font-size: clamp(34px, 4vw, 50px);
}

.feature-card p {
  max-width: 720px;
  margin: 0;
  color: #626970;
  line-height: 1.8;
}

.feature-wide p {
  color: #aeb5bb;
}

.mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mode-tags span {
  padding: 8px 11px;
  border: 1px solid #ffffff35;
  color: var(--sky);
  font: 700 9px "Courier New", monospace;
}

.mode-section {
  padding: 112px 0;
  background: var(--ink);
  color: #f6f3ed;
}

.light-heading > p {
  color: #939ba2;
}

.mode-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: #ffffff21;
  border: 1px solid #ffffff21;
}

.mode-comparison article {
  padding: 38px;
  background: #121920;
}

.mode-comparison small,
.mode-comparison b {
  display: block;
}

.mode-comparison small {
  color: var(--sky);
  font: 700 9px "Courier New", monospace;
  letter-spacing: 0.12em;
}

.mode-comparison b {
  margin: 17px 0 18px;
  color: var(--orange);
  font-size: 34px;
}

.mode-comparison p,
.mode-comparison li {
  color: #a4abb1;
  line-height: 1.75;
}

.mode-comparison ul {
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #ffffff1b;
  list-style: none;
}

.mode-comparison li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
}

.mode-comparison li + li {
  margin-top: 8px;
}

.mode-comparison li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 6px;
}

.guide-grid {
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.guide-grid article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 28px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.guide-grid article > b {
  color: var(--orange);
  font: 900 25px "Courier New", monospace;
}

.guide-grid h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.guide-grid p {
  margin: 0;
  color: #646b72;
}

.guide-link {
  display: inline-block;
  margin-top: 34px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.local-section {
  padding: 100px 0;
  background: var(--orange);
}

.local-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.local-inner .eyebrow {
  color: var(--ink);
}

.local-inner h2 {
  margin: 20px 0 0;
  font-size: clamp(43px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.local-inner h2 span {
  color: #fff;
}

.local-inner > div:last-child p {
  margin: 0 0 16px;
  color: #291812;
  line-height: 1.85;
}

.local-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
}

.local-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

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

  .product-visual {
    width: min(100%, 560px);
    margin: auto;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .landing-heading,
  .local-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .product-hero-inner {
    min-height: 0;
    padding: 58px 0 44px;
  }

  .product-hero-copy h1 {
    font-size: 50px;
  }

  .product-hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .product-actions {
    display: grid;
  }

  .product-visual {
    min-height: 505px;
  }

  .product-visual::before {
    width: 310px;
    height: 310px;
  }

  .product-visual::after {
    width: 370px;
    height: 370px;
  }

  .product-phone {
    width: 226px;
    height: 478px;
  }

  .score-ticker {
    top: 70px;
    left: 0;
    grid-template-columns: auto 30px 7px 30px auto;
  }

  .score-ticker b {
    font-size: 19px;
  }

  .visual-code {
    right: 0;
    bottom: 24px;
  }

  .trust-strip div,
  .trust-strip div:first-child {
    padding: 19px 12px;
  }

  .trust-strip div:nth-child(odd) {
    padding-left: 0;
  }

  .trust-strip div:nth-child(n + 3) {
    border-top: 1px solid #ffffff1f;
  }

  .trust-strip b {
    font-size: 16px;
  }

  .landing-section,
  .guide-section,
  .mode-section,
  .local-section {
    padding: 76px 0;
  }

  .landing-heading h2,
  .local-inner h2 {
    font-size: 42px;
  }

  .feature-grid,
  .mode-comparison {
    grid-template-columns: 1fr;
  }

  .feature-card.feature-wide {
    grid-column: auto;
  }

  .feature-card,
  .mode-comparison article {
    min-height: 0;
    padding: 26px 22px;
  }

  .feature-card h3 {
    margin-top: 28px;
  }

  .guide-grid article {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-button {
    transition: none;
  }
}
