:root {
  --navy: #07172c;
  --blue: #0e2a4a;
  --orange: #ff8500;
  --orange-dark: #d76100;
  --cream: #fff7ec;
  --paper: #f6f8fb;
  --ink: #102238;
  --muted: #62748a;
  --line: #dce3eb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7,23,44,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .7rem 1rem; background: var(--orange); color: var(--navy); font-weight: 800; border-radius: .6rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: .6rem clamp(1rem,5vw,5rem); background: rgba(7,23,44,.95); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.brand img { width: 130px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a { color: #eaf0f6; text-decoration: none; font-weight: 700; font-size: .94rem; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--orange); }
.site-header .nav-cta { color: var(--navy); background: var(--orange); padding: .65rem 1rem; border-radius: .7rem; }
.site-header .nav-cta:hover { color: var(--navy); background: #ff9b31; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--navy); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 6rem 4rem 5rem max(2rem,calc((100vw - 1240px)/2)); }
.eyebrow { margin: 0 0 .75rem; color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .16em; }
.hero h1 { max-width: 720px; margin: 0; color: var(--white); font-size: clamp(3rem,6vw,5.7rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--orange); }
.hero-lead { max-width: 650px; margin: 1.8rem 0 0; color: #c8d4e1; font-size: clamp(1.05rem,1.8vw,1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .8rem 1.2rem; border-radius: .75rem; text-decoration: none; font-weight: 900; }
.button-primary { background: var(--orange); color: var(--navy); box-shadow: 0 10px 30px rgba(255,133,0,.22); }
.button-primary:hover { background: #ff9b31; transform: translateY(-1px); }
.button-secondary { color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.button-secondary:hover { border-color: var(--orange); color: var(--orange); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 2.2rem; color: #aebfd1; font-size: .88rem; }
.hero-visual { min-width: 0; background: linear-gradient(135deg,#0b223d,#07172c); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

section:not(.hero) { padding: 5.5rem max(1.25rem,calc((100vw - 1160px)/2)); }
.section-heading { max-width: 720px; margin-bottom: 2.2rem; }
.section-heading h2, .regions h2, .safety h2, .final-cta h2 { margin: 0; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.08; letter-spacing: -.04em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-heading.light h2 { color: var(--white); }
.section-heading.light > p:last-child { color: #aebfd1; }

.quick-start { position: relative; background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; max-width: 800px; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; min-height: 150px; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.steps li > span { display: grid; place-items: center; width: 48px; height: 48px; color: var(--navy); background: var(--orange); border-radius: 50%; font-weight: 900; }
.steps h3 { margin: 0 0 .25rem; }
.steps p { margin: 0; color: var(--muted); }
.code-card { position: absolute; right: max(1.25rem,calc((100vw - 1160px)/2)); top: 10.7rem; display: flex; flex-direction: column; width: 280px; padding: 2rem; color: var(--white); background: var(--navy); border-radius: 1.2rem; box-shadow: var(--shadow); }
.code-card p { margin: 0; color: #aebfd1; font-weight: 700; }
.code-card strong { margin: .35rem 0; color: var(--orange); font-size: 3rem; letter-spacing: .04em; }
.code-card a { color: var(--white); font-size: .9rem; overflow-wrap: anywhere; }

.devices { color: var(--white); background: var(--navy); }
.device-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.device-grid article { min-height: 230px; padding: 1.4rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: var(--blue); }
.device-grid article span { display: grid; place-items: center; width: 48px; height: 48px; color: var(--navy); background: var(--orange); border-radius: .8rem; font-size: 1.4rem; }
.device-grid h3 { margin: 1.1rem 0 .35rem; font-size: 1.3rem; }
.device-grid p { margin: 0; color: #b9c7d6; }
.text-link { display: inline-block; margin-top: 1.6rem; color: var(--orange); font-weight: 900; text-decoration: none; }

.resources { background: var(--paper); }
.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.resource-grid a { display: flex; flex-direction: column; min-height: 205px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); text-decoration: none; box-shadow: 0 8px 24px rgba(7,23,44,.05); transition: transform .2s ease,border-color .2s ease; }
.resource-grid a:hover { transform: translateY(-4px); border-color: var(--orange); }
.resource-grid small { color: var(--orange-dark); font-weight: 900; letter-spacing: .12em; }
.resource-grid strong { margin: .5rem 0; font-size: 1.35rem; }
.resource-grid span { margin-top: auto; color: var(--muted); }

.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; background: var(--cream); }
.regions > div > p:last-child { color: var(--muted); }
.region-links { display: flex; flex-direction: column; }
.region-links a { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid #e4ceb1; text-decoration: none; font-size: 1.1rem; font-weight: 800; }
.region-links a:hover { color: var(--orange-dark); }

.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; color: var(--white); background: linear-gradient(135deg,var(--navy),var(--blue)); }
.safety > div > p:last-child, .safety-list p { color: #c8d4e1; }
.safety-list { padding: 1.6rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: rgba(255,255,255,.04); }
.safety-list .button { margin-top: .7rem; }

.final-cta { text-align: center; background: var(--white); }
.final-cta img { margin: 0 auto 1rem; }
.final-cta p { max-width: 620px; margin: 1rem auto 1.5rem; color: var(--muted); }

.article-main { background: var(--white); }
.article-hero { padding: 5.5rem max(1.25rem,calc((100vw - 980px)/2)); color: var(--white); background: radial-gradient(circle at 85% 20%,#174b78 0,transparent 34%),var(--navy); }
.article-hero-inner { max-width: 860px; }
.article-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.8rem,6vw,5.2rem); line-height: 1; letter-spacing: -.05em; }
.article-hero > div > p:not(.eyebrow) { max-width: 780px; margin: 1.4rem 0 0; color: #c8d4e1; font-size: 1.18rem; }
.domain-hero { background: radial-gradient(circle at 85% 20%,#7a3d00 0,transparent 34%),var(--navy); }
.breadcrumb { display: flex; gap: .6rem; margin-bottom: 2.3rem; color: #aebfd1; font-size: .9rem; }
.breadcrumb a { color: var(--white); }
.article-shell { max-width: 900px; margin: 0 auto; padding: 4.5rem 1.25rem 6rem; font-size: 1.05rem; }
.article-shell h2 { margin: 3.3rem 0 1rem; color: var(--navy); font-size: clamp(1.8rem,4vw,2.7rem); line-height: 1.15; letter-spacing: -.035em; }
.article-shell h3 { margin: 2rem 0 .5rem; color: var(--blue); font-size: 1.35rem; }
.article-shell a { color: #a44700; font-weight: 750; }
.answer-box, .warning, .disclosure { padding: 1.4rem 1.5rem; border-radius: 1rem; }
.answer-box { border: 1px solid #f3c08f; background: var(--cream); }
.answer-box strong { color: var(--orange-dark); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.answer-box p, .warning p, .disclosure { margin: .45rem 0 0; }
.disclosure { margin-top: 1.5rem; color: #53677d; border: 1px solid var(--line); background: var(--paper); }
.warning { border-left: 5px solid var(--orange); background: var(--cream); }
.checklist { display: grid; gap: .9rem; padding: 0; list-style: none; counter-reset: item; }
.checklist li { counter-increment: item; display: grid; grid-template-columns: 48px 1fr; gap: .25rem 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); }
.checklist li::before { content: counter(item); grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--orange); border-radius: 50%; font-weight: 900; }
.checklist li strong, .checklist li span { grid-column: 2; }
.checklist li span { color: var(--muted); }
.domain-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.domain-grid section { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.domain-grid h3 { margin-top: 0; font-size: 1.7rem; }
.intent-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.intent-links a { display: flex; flex-direction: column; padding: 1rem 1.1rem; color: var(--ink); border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); text-decoration: none; }
.intent-links a:hover { border-color: var(--orange); }
.intent-links span { color: var(--muted); font-size: .9rem; }
.article-cta { margin-top: 4rem; padding: 2.4rem; color: var(--white); background: var(--navy); border-radius: 1.2rem; }
.article-cta h2 { margin-top: 0; color: var(--white); }
.article-cta p { color: #c8d4e1; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem max(1.25rem,calc((100vw - 1160px)/2)); color: #aebfd1; background: #04101f; font-size: .88rem; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
footer a { color: #d6e0ea; text-decoration: none; }
footer a:hover { color: var(--orange); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem 1.5rem; }
  .hero-visual { max-height: 520px; }
  .code-card { position: static; width: 100%; margin-top: 1.2rem; }
  .device-grid { grid-template-columns: repeat(2,1fr); }
  .resource-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .site-header { position: static; align-items: flex-start; }
  .site-header nav { justify-content: flex-end; flex-wrap: wrap; gap: .55rem 1rem; }
  .site-header nav a:not(.nav-cta) { font-size: .83rem; }
  .hero h1 { font-size: clamp(2.8rem,14vw,4.2rem); }
  .steps, .device-grid, .resource-grid, .regions, .safety { grid-template-columns: 1fr; }
  .domain-grid, .intent-links { grid-template-columns: 1fr; }
  .regions, .safety { gap: 2rem; }
  footer { flex-direction: column; }
}

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