/* @section: design-system */
:root {
  color-scheme: light;
  --navy-950: #07152f;
  --navy-900: #0b2045;
  --navy-800: #153461;
  --yellow: #f6d20a;
  --yellow-soft: #ffe96b;
  --paper: #f4f3ed;
  --surface: #ffffff;
  --ink: #0c1b35;
  --muted: #5e6879;
  --border: #d6d9df;
  --success: #217346;
  --warning: #8a4b00;
  --shadow: 0 20px 60px rgba(7, 21, 47, 0.12);
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }

/* @section: hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(246,210,10,.08) 40%, rgba(246,210,10,.08) 58%, transparent 58%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 430px; height: 430px; right: -180px; top: -120px; border: 70px solid rgba(246,210,10,.12); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(5.5rem, 11vw, 9rem); }
.season-label, .eyebrow { color: var(--navy-800); font-size: .78rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.season-label { display: inline-block; margin-bottom: 1.2rem; padding: .45rem .7rem; background: var(--yellow); color: var(--navy-950); }
.hero h1 { max-width: 900px; margin-bottom: 1.5rem; font-size: clamp(3rem, 8vw, 6.7rem); line-height: .91; letter-spacing: -.055em; }
.hero h1 span { color: var(--yellow); }
.hero-copy { max-width: 790px; margin-bottom: 2rem; color: #d1d9e8; font-size: clamp(1.03rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; padding: .85rem 1.2rem; border: 2px solid transparent; border-radius: 7px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow-soft); outline-offset: 3px; }
.button-primary { background: var(--yellow); color: var(--navy-950); }
.button-primary:hover { background: var(--yellow-soft); }
.button-secondary { border-color: rgba(255,255,255,.35); color: white; }
.button-secondary:hover { background: white; color: var(--navy-950); }
.update-note { display: flex; align-items: center; gap: .55rem; margin: 0; color: #abb8cf; font-size: .9rem; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(246,210,10,.14); }

/* @section: summary */
.summary-strip { background: var(--yellow); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.summary-grid div { min-height: 120px; padding: 1.7rem 1.3rem; border-left: 1px solid rgba(7,21,47,.22); }
.summary-grid div:last-child { border-right: 1px solid rgba(7,21,47,.22); }
.summary-grid strong, .summary-grid span { display: block; }
.summary-grid strong { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.04em; }
.summary-grid span { margin-top: .35rem; color: var(--navy-800); font-size: .88rem; font-weight: 650; }

/* @section: notice */
.notice-section { padding: clamp(2.4rem, 5vw, 4rem) 0 0; }
.notice-box { padding: clamp(1.5rem, 4vw, 2.4rem); border-left: 7px solid var(--yellow); background: var(--surface); box-shadow: var(--shadow); }
.notice-box h2 { margin-bottom: .6rem; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.1; }
.notice-box p:last-child { max-width: 900px; margin-bottom: 0; color: var(--muted); }
.notice-box strong { color: var(--ink); }

/* @section: content */
.section-heading { max-width: 720px; margin-bottom: 2.6rem; }
.section-heading h2, .url-layout h2, .download-inner h2 { margin-bottom: .8rem; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.section-heading > p:last-child, .download-inner p, .url-layout > div > p:last-child { color: var(--muted); }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.device-card { position: relative; min-height: 430px; padding: clamp(1.7rem, 4vw, 2.6rem); background: var(--surface); border-top: 6px solid var(--navy-900); box-shadow: var(--shadow); }
.device-card:nth-child(2) { border-top-color: var(--yellow); }
.device-index { color: #c8ccd4; font-size: 3rem; font-weight: 900; letter-spacing: -.05em; }
.device-card h3 { font-size: 1.65rem; }
.device-card ol { display: grid; gap: 1rem; padding-left: 1.3rem; color: var(--muted); }
.device-card strong { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.2rem; padding: 0; border: 0; background: transparent; color: var(--navy-800); font-weight: 850; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }
.copy-feedback { min-height: 1.5rem; margin-top: .6rem; color: var(--success); font-size: .9rem; }

/* @section: url */
.section-navy { background: var(--navy-900); color: white; }
.yellow { color: var(--yellow); }
.url-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2rem, 7vw, 5rem); }
.url-layout > div > p:last-child { color: #bec9da; }
.url-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.url-box code { overflow-x: auto; padding: 1.15rem; color: #f5f7fb; white-space: nowrap; }
.url-box button { padding: .9rem 1.15rem; border: 0; background: var(--yellow); color: var(--navy-950); font-weight: 850; cursor: pointer; }
.protocol-warning { margin: .8rem 0 0; color: #ffe3b3; font-size: .9rem; }

/* @section: notes */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.notes-grid article { padding-top: 1.4rem; border-top: 2px solid var(--border); }
.note-number { margin-bottom: .8rem; color: var(--navy-800); font-size: .8rem; font-weight: 900; letter-spacing: .15em; }
.notes-grid h3 { font-size: 1.25rem; line-height: 1.25; }
.notes-grid article > p:last-child { color: var(--muted); }

/* @section: download */
.download-section { padding: 3.5rem 0; background: var(--surface); border-block: 1px solid var(--border); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.download-inner > div { max-width: 700px; }
.download-inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.button-outline { flex: 0 0 auto; border-color: var(--navy-900); color: var(--navy-900); }
.button-outline:hover { background: var(--navy-900); color: white; }

/* @section: footer */
footer { padding: 2.2rem 0; background: var(--navy-950); color: #9fabc0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: 0; }

@media (max-width: 820px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid div:nth-child(2) { border-right: 1px solid rgba(7,21,47,.22); }
  .device-grid, .url-layout, .notes-grid { grid-template-columns: 1fr; }
  .device-card { min-height: 0; }
  .download-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero-inner { padding-block: 4.7rem; }
  .hero h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .summary-grid div { min-height: 104px; padding: 1.3rem .8rem; }
  .url-box { grid-template-columns: 1fr; }
  .url-box button { min-height: 3rem; }
  .button-outline { width: 100%; }
}

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