/* rosud.com — same night-navy ground and signal colours as the product (DESIGN.md). No external fonts or scripts. */
:root {
  --page: #0d1426; --surface: #121b33; --surface-2: #16213f; --border: #24345e; --border-strong: #33467a;
  --text: #f2f4f8; --text-2: #c3cbe0; --muted: #98a4c4; --accent: #8fb3ff; --accent-soft: rgba(79, 124, 230, .18);
  --cut: #e3262f; --warn: #ff8a3d; --alert: #f5c542; --via: #dfe5f2;
  --radius: 10px; --gutter: clamp(16px, 4vw, 32px);
  --font: "Noto Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", -apple-system, "Apple SD Gothic Neo", "Hiragino Sans", "PingFang SC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.65 var(--font); -webkit-text-size-adjust: 100%; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #b5ccff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--page); padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px var(--gutter); max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--text); display: inline-block; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-right: auto; font-size: 15px; }
.menu a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
.menu a:hover { color: var(--text); }
.langs ul { display: flex; flex-wrap: wrap; gap: 4px 4px; }
.langs a { display: inline-block; padding: 5px 10px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; border: 1px solid transparent; }
.langs a:hover { border-color: var(--border-strong); color: var(--text); }
.langs a[aria-current] { background: var(--accent-soft); border-color: var(--border-strong); color: var(--text); font-weight: 700; }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(40px, 7vw, 76px) 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 26px; }
h3 { font-size: 18px; margin-bottom: 8px; }
.muted { color: var(--muted); }

.hero { padding-top: clamp(32px, 6vw, 72px); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: -.025em; max-width: 18ch; }
html[lang="ko"] h1, html[lang="ja"] h1, html[lang="zh-Hans"] h1 { max-width: 20ch; word-break: keep-all; }
html[lang="de"] h1 { hyphens: auto; max-width: 22ch; }
.lead { color: var(--text-2); font-size: clamp(17px, 2.1vw, 20px); max-width: 62ch; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.badge { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; background: var(--text); color: var(--page); font-weight: 700; text-decoration: none; }
.btn:hover { background: #fff; color: var(--page); }

/* the incident as a route: ① where it started → ② what it passed through → ③ where the alert fired */
.route-fig { margin: 44px 0 0; padding: 24px var(--gutter) 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.route { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.route::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 22px; height: 3px; background: linear-gradient(90deg, var(--warn), var(--via), var(--alert)); border-radius: 2px; }
.route li { display: grid; justify-items: center; gap: 12px; text-align: center; position: relative; font-weight: 600; font-size: 15px; padding: 0 6px; }
.dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--page); background: var(--via); border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--border-strong); }
.s1 .dot { background: var(--warn); }
.s3 .dot { background: var(--alert); }
.s1 .dot, .s3 .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--border-strong), 0 0 0 0 rgba(255, 138, 61, .0); } 50% { box-shadow: 0 0 0 2px var(--border-strong), 0 0 0 10px rgba(255, 138, 61, .18); } }
.mapsvg { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.mapsvg .lyr line { stroke: var(--border-strong); stroke-width: 1.5; }
.mapsvg .lyr text { fill: var(--muted); font-size: 15px; font-family: var(--font); }
.mapsvg .bgedge { stroke: #1f2c52; stroke-width: 1.5; }
.mapsvg .bg { fill: #2b3c6b; }
.mapsvg .route-line { stroke: var(--warn); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.mapsvg .st { stroke: var(--surface); stroke-width: 3; }
.mapsvg .st1 { fill: var(--warn); } .mapsvg .st2 { fill: var(--via); } .mapsvg .st3 { fill: var(--alert); }
.mapsvg .halo { stroke-width: 2; opacity: .55; }
.mapsvg .h1 { stroke: var(--warn); } .mapsvg .h3 { stroke: var(--alert); }
.mapsvg .stn { fill: var(--page); font-size: 15px; font-weight: 800; font-family: var(--font); }
.route-fig figcaption { color: var(--muted); font-size: 14px; text-align: center; margin: 22px auto 0; max-width: 70ch; }

.namesec .muted { margin: -14px 0 24px; }
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.letters li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.letters .ltr { font-size: 40px; font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -.02em; min-width: 64px; }
.letters li:nth-child(1) .ltr { color: var(--warn); } .letters li:nth-child(4) .ltr { color: var(--alert); }
.letters p { color: var(--text-2); font-size: 15px; }
#ontology > .muted { margin: -14px 0 24px; max-width: 70ch; }
.band { padding: 0; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.three li { background: var(--surface); padding: 22px 24px; }
.three p { color: var(--text-2); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.grid p { color: var(--text-2); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px; border: 1px solid var(--border-strong); }
.steps p { color: var(--text-2); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips li { padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-2); font-size: 15px; }

.cta { text-align: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: clamp(36px, 6vw, 60px) var(--gutter); margin-bottom: 56px; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-2); max-width: 56ch; margin: 0 auto; }

.foot { border-top: 1px solid var(--border); padding: 26px var(--gutter) 40px; max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .mapsvg .lyr text { font-size: 19px; } .mapsvg .stn { font-size: 18px; }
  .route { grid-template-columns: 1fr; gap: 20px; }
  .route::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; background: linear-gradient(180deg, var(--warn), var(--via), var(--alert)); }
  .route li { grid-template-columns: 46px 1fr; justify-items: start; text-align: left; align-items: center; gap: 16px; }
  .menu { order: 3; width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .s1 .dot, .s3 .dot { animation: none; } }
