:root {
  --blue: #1d63ed;
  --blue-dark: #0b4fd1;
  --navy: #00153c;
  --ink: #1b2a45;
  --muted: #5b6b86;
  --line: #e1e8f5;
  --soft: #f3f7ff;
  --soft-2: #e8f0ff;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 21, 60, 0.07);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.brand img { width: 38px; height: 30px; display: block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--soft-2); color: var(--blue); }
.nav a.active { background: var(--soft-2); color: var(--blue); }
.nav a.cta { background: var(--blue); color: #fff; margin-left: 8px; }
.nav a.cta:hover { background: var(--blue-dark); color: #fff; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; background: radial-gradient(900px 400px at 85% 0%, #dbe8ff 0%, transparent 70%), linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft-2); color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.03em; color: var(--navy); font-weight: 800; margin-bottom: 20px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 21px; line-height: 1.3; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 580px; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* terminal block */
.term { background: var(--navy); color: #cfe0ff; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 21, 60, .25); overflow: hidden; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }
.term-bar { display: flex; gap: 7px; padding: 14px 16px; background: rgba(255,255,255,.06); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d5588; display: block; }
.term pre { padding: 20px 22px 24px; white-space: pre-wrap; line-height: 1.75; }
.term .p { color: #6fa0ff; }
.term .o { color: #8fa4cc; }
.term .g { color: #5ee0a0; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.alt { background: var(--soft); }
.head { max-width: 720px; margin-bottom: 44px; }
.head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: #b9cdf7; }
.card p { color: var(--muted); font-size: 16px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--soft-2); color: var(--blue); margin-bottom: 12px; letter-spacing: .03em; }

/* timeline (index) */
.timeline { position: relative; display: grid; gap: 0; max-width: 820px; }
.timeline li { position: relative; padding: 0 0 36px 74px; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .num { position: absolute; left: 0; top: 0; margin: 0; }
.timeline p { color: var(--muted); }

/* tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
th { background: var(--soft); color: var(--navy); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--navy); }

/* faq */
.faq { max-width: 820px; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
details[open] { border-color: #b9cdf7; box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--muted); }

/* cta band */
.band { background: var(--blue); color: #fff; border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: #d6e4ff; max-width: 560px; }

/* ---------- software page ---------- */
.hero-center { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.chips a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; color: var(--navy); }

.row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: none; }
.row .side { position: sticky; top: 100px; }
.row .side .badge { margin-bottom: 14px; }
.row ul.dots li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.row ul.dots li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.row p { color: var(--muted); margin-bottom: 16px; }

.pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pick .card strong { color: var(--blue); display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- download page ---------- */
.dl-hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.dl-hero .head { margin-bottom: 30px; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--soft-2); border-radius: 999px; margin-bottom: 26px; flex-wrap: wrap; }
.tab { padding: 11px 24px; border-radius: 999px; border: none; background: transparent; font-family: inherit; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; }
.tab.on { background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(0,21,60,.1); }
.panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); grid-template-columns: 1fr 1fr; gap: 40px; }
.panel.on { display: grid; }
.panel h3 { font-size: 26px; }
.panel p { color: var(--muted); margin-bottom: 22px; }
.reqs li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.reqs li:last-child { border-bottom: none; }
.reqs span:first-child { color: var(--muted); }
.reqs span:last-child { font-weight: 600; color: var(--navy); text-align: right; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: 15.5px; }

.check { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #cfe0ff; border-radius: 14px; padding: 14px 16px 14px 20px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 15px; margin-bottom: 12px; }
.copy-line button { background: rgba(255,255,255,.12); border: none; color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 13px; }
.copy-line button:hover { background: rgba(255,255,255,.22); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #a9bbdd; padding: 64px 0 36px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer p { font-size: 15px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .03em; }
.footer li { margin-bottom: 9px; font-size: 15px; }
.footer li a:hover { color: #fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .row, .check, .panel.on { grid-template-columns: 1fr; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .row .side { position: static; }
  .band { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .g3, .g2, .g4, .steps, .pick { grid-template-columns: 1fr; }
  .panel { padding: 26px; }
  .footer .cols { grid-template-columns: 1fr; }
}
.muted { color: var(--muted); }

/* ---------- header v2 ---------- */
.header { background: var(--navy); border-bottom: none; backdrop-filter: none; }
.header .wrap { height: 68px; }
.header .brand { color: #fff; }
.header .brand img { filter: brightness(0) invert(1); }
.nav { flex: 1; justify-content: center; gap: 4px; }
.nav a { color: #a9bbdd; border-radius: 0; padding: 22px 14px; border-bottom: 3px solid transparent; }
.nav a:hover { background: none; color: #fff; }
.nav a.active { background: none; color: #fff; border-bottom-color: #4c8dff; }
.head-cta { background: #fff; color: var(--navy); padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .2s; }
.head-cta:hover { background: var(--soft-2); }
.head-cta span { color: var(--blue); }
.burger { border-color: rgba(255,255,255,.2); order: 3; }
.burger span { background: #fff; }
@media (max-width: 720px) {
  .header .wrap { gap: 12px; }
  .head-cta { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .nav { top: 68px; background: var(--navy); border-bottom: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.active { border-bottom-color: #4c8dff; }
}

/* ---------- dropdown + new pages ---------- */
.dd { position: relative; }
.dd-btn { background: none; border: none; font: inherit; font-weight: 600; font-size: 15px; color: #a9bbdd; padding: 22px 14px; cursor: pointer; border-bottom: 3px solid transparent; }
.dd-btn::after { content: " ▾"; font-size: 11px; }
.dd-btn:hover, .dd:hover .dd-btn { color: #fff; }
.dd-btn.active { color: #fff; border-bottom-color: #4c8dff; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,21,60,.25); }
.dd:hover .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; color: var(--navy); padding: 11px 14px; border-radius: 10px; border-bottom: none; }
.dd-menu a:hover, .dd-menu a.active { background: var(--soft-2); color: var(--blue); border-bottom: none; }
.nav a { white-space: nowrap; }
.hero-flip .wrap { grid-template-columns: 0.9fr 1.1fr; }
.release h3 { font-size: 26px; margin-bottom: 14px; }
.cmd-list { max-width: 640px; }
.copy-line code { overflow-wrap: anywhere; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a, .dd-btn { padding: 12px 0; text-align: left; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dd-menu { display: block; position: static; background: none; box-shadow: none; padding: 0 0 0 14px; }
  .dd-menu a { color: #a9bbdd; border-radius: 0; }
  .dd-menu a:hover, .dd-menu a.active { background: none; color: #fff; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 960px) { .hero-flip .wrap { grid-template-columns: 1fr; } .hero-flip .term { order: 2; } }
