:root {
  --ink: #111318;
  --muted: #626873;
  --line: #dfe2e8;
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #3778f6;
  --blue-dark: #1551c8;
  --night: #131b2a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 100; padding: 12px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header { width: min(calc(100% - 40px), var(--max)); height: 82px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand img { border-radius: 10px; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 15px; line-height: 1.35; }
.brand span { min-width: 0; }
.hero-copy, .security-band > div { min-width: 0; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.08; overflow-wrap: anywhere; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.site-header nav { display: flex; gap: 30px; color: #3d424b; font-size: 14px; }
.site-header nav a:hover, footer a:hover { color: var(--blue); }
.header-link { justify-self: end; color: var(--blue-dark); font-size: 14px; font-weight: 700; }

.hero { position: relative; width: min(calc(100% - 40px), var(--max)); min-height: calc(100vh - 82px); max-height: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--blue-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.eyebrow span { width: 25px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 26px; font-size: clamp(54px, 6.3vw, 94px); line-height: .94; letter-spacing: 0; }
.hero-lead { max-width: 590px; color: var(--muted); font-size: 19px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; font-size: 14px; font-weight: 750; }
.primary { background: var(--blue); color: white; box-shadow: 0 10px 28px rgba(55,120,246,.24); }
.primary:hover { background: var(--blue-dark); }
.text-link { padding-inline: 4px; color: var(--blue-dark); }
.text-link span { margin-left: 8px; }
.hero-facts { display: flex; gap: 40px; margin: 50px 0 0; padding-top: 25px; border-top: 1px solid var(--line); }
.hero-facts div { min-width: 90px; }
.hero-facts dt { font-size: 18px; font-weight: 800; }
.hero-facts dd { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.hero-art { min-width: 0; }
.concept-hero { margin: 0; }
.concept-hero img { width: 100%; height: auto; border-radius: 24px; }
.concept-display { position: relative; min-width: 0; padding-top: 60px; background: #edf3fc; border-radius: 20px; overflow: hidden; }
.concept-label { position: absolute; top: 20px; left: 24px; display: flex; align-items: center; gap: 12px; }
.concept-label span { color: var(--muted); font-size: 12px; }
.concept-label strong { color: var(--blue-dark); font-size: 14px; }
.concept-detail { margin: 0; transition: opacity .18s ease; }
.concept-detail img { width: 100%; height: auto; }
.concept-detail.changing { opacity: 0; }
.icon-stage { position: absolute; top: 11%; left: 2%; width: 43%; aspect-ratio: 1; display: grid; place-items: center; background: #e4edff; border: 1px solid #c9d9fb; }
.icon-stage img { width: 68%; border-radius: 24%; box-shadow: 0 25px 55px rgba(31,83,183,.2); }
.phone { margin: 0; overflow: hidden; border: 8px solid #181a1f; border-radius: 39px; background: #f2f2f7; box-shadow: 0 35px 70px rgba(23,36,64,.22); }
.phone img { width: 100%; height: auto; }
.phone-main { position: absolute; z-index: 2; right: 1%; top: 5%; width: 55%; }
.code-chip { position: absolute; z-index: 3; left: 0; bottom: 14%; width: 54%; padding: 20px 24px; background: white; border-left: 4px solid var(--blue); box-shadow: 0 20px 45px rgba(31,48,82,.16); }
.code-chip span { display: block; color: var(--muted); font-size: 11px; }
.code-chip strong { display: block; margin-top: 7px; font-size: 30px; letter-spacing: 4px; }
.code-chip i { position: absolute; top: 30px; right: 20px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 10px; font-style: normal; }
.scroll-cue { position: absolute; left: 0; bottom: 20px; width: 32px; height: 44px; border: 1px solid #aeb4be; border-radius: 18px; }
.scroll-cue span { position: absolute; left: 14px; top: 9px; width: 2px; height: 8px; background: var(--blue); animation: scroll 1.8s ease infinite; }
@keyframes scroll { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(13px); opacity: 1; } }

.feature-band { padding: 110px max(20px, calc((100% - var(--max))/2)); background: white; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr 1.5fr; gap: 35px; align-items: end; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.08; }
.section-intro > p:last-child { max-width: 510px; margin: 0 0 7px; color: var(--muted); line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 65px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { position: relative; min-height: 310px; padding: 38px 36px; border-right: 1px solid var(--line); }
.feature-grid article:first-child { border-left: 1px solid var(--line); }
.feature-number { position: absolute; top: 20px; right: 22px; color: #a7acb5; font-size: 11px; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 45px; border: 1px solid #b9cffd; color: var(--blue); font-size: 22px; font-weight: 700; }
.feature-grid h3 { margin-bottom: 16px; font-size: 22px; }
.feature-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.screens-section { width: min(calc(100% - 40px), var(--max)); min-height: 760px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; padding: 105px 0; }
.screens-copy > p:not(.eyebrow) { max-width: 470px; margin: 28px 0 40px; color: var(--muted); line-height: 1.8; }
.screen-tabs { display: grid; max-width: 390px; border-top: 1px solid var(--line); }
.screen-tabs button { position: relative; height: 58px; padding: 0 36px 0 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; font: inherit; cursor: pointer; }
.screen-tabs button::after { content: "→"; position: absolute; right: 5px; color: #a7acb5; }
.screen-tabs button[aria-selected="true"] { color: var(--blue-dark); font-weight: 800; }
.screen-tabs button[aria-selected="true"]::after { color: var(--blue); }
.screen-display { position: relative; min-height: 620px; display: grid; place-items: center; background: #e8ecf3; overflow: hidden; }
.screen-label { position: absolute; left: 25px; top: 25px; display: grid; gap: 4px; }
.screen-label span { color: var(--blue-dark); font-size: 10px; font-weight: 800; }
.screen-label strong { font-size: 14px; }
.phone-detail { position: relative; z-index: 1; width: 277px; border-width: 7px; border-radius: 34px; transition: opacity .18s ease, transform .18s ease; }
.phone-detail.changing { opacity: 0; transform: translateY(10px); }

.security-band { min-height: 310px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 45px; padding: 65px max(20px, calc((100% - var(--max))/2)); background: var(--night); color: white; }
.security-band > img { border-radius: 24px; }
.eyebrow.light { color: #8fb5ff; }
.security-band h2 { max-width: 680px; font-size: clamp(34px, 4vw, 54px); }
.security-band p:not(.eyebrow) { max-width: 660px; margin: 20px 0 0; color: #aeb9ca; line-height: 1.7; }
.light-button { border: 1px solid #5b6678; color: white; }
.light-button:hover { background: white; color: var(--night); }

footer { width: min(calc(100% - 40px), var(--max)); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding-block: 30px; color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); }
footer nav { display: flex; gap: 24px; }

.legal-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: white; }
.legal-header, .legal-main, .legal-footer { width: min(calc(100% - 40px), 880px); margin-inline: auto; }
.legal-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.legal-header > a:last-child { color: var(--blue-dark); font-size: 14px; font-weight: 700; }
.legal-main { padding: 80px 0 120px; }
.legal-main h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); }
.legal-placeholder { min-height: 240px; margin-top: 46px; border-top: 1px solid var(--line); }
.legal-footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.legal-footer nav { display: flex; gap: 24px; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: auto; max-height: none; grid-template-columns: 1fr; gap: 30px; padding: 70px 0 50px; }
  h1 { font-size: clamp(51px, 15vw, 74px); }
  .hero-lead { font-size: 16px; }
  .hero-facts { gap: 18px; justify-content: space-between; }
  .hero-facts div { min-width: 0; }
  .hero-visual { height: 590px; min-height: 0; }
  .icon-stage { width: 48%; top: 7%; }
  .phone-main { width: 58%; }
  .scroll-cue { display: none; }
  .feature-band { padding-block: 80px; }
  .section-intro { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:first-child { min-height: 250px; border-left: 1px solid var(--line); }
  .screens-section { grid-template-columns: 1fr; gap: 50px; padding-block: 80px; }
  .screen-display { min-height: 590px; }
  .security-band { grid-template-columns: auto 1fr; }
  .security-band .button { grid-column: 1 / -1; width: fit-content; }
  footer { grid-template-columns: 1fr auto; padding-block: 30px; }
  footer > p { display: none; }
}

@media (max-width: 520px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); height: 72px; }
  .header-link { display: none; }
  .hero { width: min(calc(100% - 28px), var(--max)); padding-top: 52px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .hero-actions .button { width: 100%; }
  .hero-facts { margin-top: 34px; }
  .hero-facts dt { font-size: 15px; }
  .hero-visual { height: 500px; }
  .phone-main { width: 65%; top: 6%; }
  .icon-stage { left: 0; width: 47%; }
  .code-chip { bottom: 6%; width: 67%; padding: 15px 16px; }
  .code-chip strong { font-size: 23px; }
  .code-chip i { top: 23px; right: 13px; }
  .feature-band { padding-inline: 14px; }
  .section-intro, .feature-grid { margin-inline: 0; }
  .feature-grid article { padding-inline: 24px; }
  .screens-section { width: min(calc(100% - 28px), var(--max)); }
  .screen-display { min-height: 545px; }
  .phone-detail { width: 245px; }
  .security-band { grid-template-columns: 1fr; gap: 25px; padding-block: 60px; }
  .security-band > img { width: 76px; }
  footer { width: min(calc(100% - 28px), var(--max)); grid-template-columns: 1fr; gap: 16px; }
  footer nav { order: 2; }
  .legal-header, .legal-main, .legal-footer { width: min(calc(100% - 28px), 880px); }
  .legal-header > a:last-child { font-size: 12px; }
  .legal-main { padding-top: 55px; }
  .legal-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
