/* SailingLab — site styles */

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #080c17;
  --bg-3: #0c1222;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #e9eef8;
  --text-2: #a3adc2;
  --text-3: #6b7590;
  --cyan: #22d3ee;
  --blue: #4f8cff;
  --violet: #a78bfa;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(79, 140, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }

/* Global backdrop: faint grid + noise-free vignette */
.backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, 0.07), transparent 60%),
    var(--bg);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.scrolled, .nav.open {
  background: rgba(5, 7, 13, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
          backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: 0.08em; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 6px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s, border-color 0.2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  color: #050810;
  background: linear-gradient(120deg, #5ee4f5 0%, #6fa0ff 50%, #b9a2ff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 8px 30px -8px rgba(79, 140, 255, 0.65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 12px 40px -8px rgba(79, 140, 255, 0.85); }
.btn-ghost { color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(79, 140, 255, 0.08); border: 1px solid rgba(79, 140, 255, 0.25);
  font-size: 13px; color: var(--text-2);
}
.pill b { font-weight: 600; color: var(--text); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: 4px; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 200px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 1000px; height: 800px; left: 50%; margin-left: -500px; top: -300px;
  background: radial-gradient(closest-side, rgba(79, 140, 255, 0.18), rgba(167, 139, 250, 0.06) 55%, transparent 70%);
  filter: blur(10px);
}
.hero-copy { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(42px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.04em;
  margin: 28px 0 22px;
}
.hero h1 .grad-text { display: inline-block; padding-bottom: 0.06em; }
.hero .lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--text-2); max-width: 620px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 36px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--cyan); }

.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(5, 7, 13, 0), var(--bg)); pointer-events: none; }

/* Abstract horizon glow under the hero */
.horizon {
  position: absolute; z-index: -1; left: 50%; top: calc(100% - 120px);
  width: 2400px; height: 2400px; margin-left: -1200px; border-radius: 50%;
  background: linear-gradient(180deg, var(--bg) 0, var(--bg) 2.5%, rgba(5, 7, 13, 0) 5%);
  box-shadow: 0 0 0 1px rgba(125, 165, 255, 0.28), 0 -24px 90px -12px rgba(79, 140, 255, 0.55), 0 -4px 30px -6px rgba(34, 211, 238, 0.45), inset 0 40px 80px -40px rgba(167, 139, 250, 0.35);
}
.horizon::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: 900px; height: 2px; margin-left: -450px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.9), rgba(167, 139, 250, 0.9), transparent);
  filter: blur(0.5px);
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section.tight { padding: 88px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 18px 0 16px; }
.sec-head p { color: var(--text-2); font-size: 17px; margin: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Card base with cursor spotlight */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 140, 255, 0.12), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.7), rgba(167, 139, 250, 0.35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- Featured app ---------- */
.featured { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; }
.featured:hover { transform: none; }
.featured-body { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -10px rgba(79, 140, 255, 0.6); }
.app-head h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.2; }
.app-head .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-body > p { color: var(--text-2); margin: 26px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.checks li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--cyan); }
.checks li span { color: var(--text-2); }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.featured-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 13px; }
.featured-links a { color: var(--text-3); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.featured-links a:hover { color: var(--text); border-color: var(--line-2); }

/* Watermark removal demo */
.wm-stage { position: relative; padding: 44px; display: flex; align-items: center; justify-content: center; background: radial-gradient(600px 400px at 60% 40%, rgba(79, 140, 255, 0.14), transparent 70%), rgba(255, 255, 255, 0.015); border-left: 1px solid var(--line); }
.wm-window { width: 100%; max-width: 520px; border-radius: 16px; overflow: hidden; background: #0a0f1c; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03); }
.wm-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.wm-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1d2538; }
.wm-bar b { margin-left: auto; font-weight: 500; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.wm-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; }
.wm-frame svg.scene { width: 100%; height: 100%; }
.wm-mark {
  position: absolute; right: 6%; bottom: 9%; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 2.4cqw, 15px); letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  animation: wm-fade 7s var(--ease) infinite;
}
.wm-mark i { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.wm-select {
  position: absolute; right: 3.5%; bottom: 5%; width: 38%; height: 19%;
  border: 1.5px dashed var(--cyan); border-radius: 6px; background: rgba(34, 211, 238, 0.07);
  animation: wm-select 7s var(--ease) infinite;
}
.wm-select::before, .wm-select::after { content: ""; position: absolute; width: 8px; height: 8px; background: #fff; border: 2px solid var(--cyan); border-radius: 2px; }
.wm-select::before { left: -5px; top: -5px; }
.wm-select::after { right: -5px; bottom: -5px; }
.wm-select span { position: absolute; left: 0; top: -22px; font-family: var(--font-mono); font-size: 10px; color: #04121a; background: var(--cyan); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.wm-beam {
  position: absolute; top: 0; bottom: 0; width: 22%; left: -25%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), rgba(255, 255, 255, 0.55) 50%, rgba(167, 139, 250, 0.35), transparent);
  mix-blend-mode: screen; filter: blur(2px);
  animation: wm-beam 7s var(--ease) infinite;
}
.wm-foot { display: flex; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.wm-foot .tag { flex: none; }
.wm-progress { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.wm-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); animation: wm-progress 7s var(--ease) infinite; }
.wm-pct { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); min-width: 64px; text-align: right; }
@keyframes wm-select { 0%, 6% { opacity: 0; transform: scale(1.08); } 14%, 62% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 0; transform: scale(1); } }
@keyframes wm-beam { 0%, 22% { left: -25%; opacity: 0; } 24% { opacity: 1; } 56% { left: 105%; opacity: 1; } 58%, 100% { left: 105%; opacity: 0; } }
@keyframes wm-fade { 0%, 34% { opacity: 1; filter: blur(0); } 50%, 86% { opacity: 0; filter: blur(6px); } 96%, 100% { opacity: 1; filter: blur(0); } }
@keyframes wm-progress { 0%, 20% { width: 0; } 60% { width: 100%; } 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

.apps-more { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.apps-more a { color: var(--text-2); border-bottom: 1px solid var(--line-2); transition: color 0.2s, border-color 0.2s; }
.apps-more a:hover { color: var(--text); border-color: var(--cyan); }

/* ---------- Principles / About ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { padding: 32px; }
.principle .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(79, 140, 255, 0.1); border: 1px solid rgba(79, 140, 255, 0.25); color: var(--cyan); margin-bottom: 22px; }
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; margin: 0 0 10px; }
.principle p { color: var(--text-2); font-size: 15px; margin: 0; }
.principle .k { position: absolute; right: 24px; top: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; }

.company { margin-top: 16px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.company:hover { transform: none; }
.company > div { padding: 36px; }
.company > div + div { border-left: 1px solid var(--line); }
.company h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 14px 0 6px; letter-spacing: -0.02em; }
.company .cn { color: var(--text-2); font-size: 15px; margin: 0 0 18px; }
.company p { color: var(--text-2); font-size: 15px; margin: 0; }
.kv { display: grid; gap: 14px; margin: 0; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; }
.kv dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }
.kv dd a { border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; }
.kv dd a:hover { border-color: var(--cyan); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 64px; border: 1px solid var(--line-2); background: radial-gradient(700px 300px at 85% 0%, rgba(167, 139, 250, 0.22), transparent 65%), radial-gradient(600px 300px at 0% 100%, rgba(34, 211, 238, 0.18), transparent 65%), var(--bg-3); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 14px; }
.cta p { color: var(--text-2); margin: 0; max-width: 520px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-align: center; letter-spacing: 0.03em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(8, 12, 23, 0.8)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer p { color: var(--text-3); font-size: 14px; margin: 16px 0 0; max-width: 320px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 56px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 800px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(79, 140, 255, 0.2), transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.03em; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 22px 0 16px; }
.page-hero .lead { color: var(--text-2); font-size: 18px; max-width: 680px; margin: 0; }
.page-hero .lead .mono { font-size: 0.85em; overflow-wrap: anywhere; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Document layout (policies) ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 24px 0 96px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.toc h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; color: var(--text-3); transition: color 0.2s, border-color 0.2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; margin-right: 10px; opacity: 0.6; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--cyan); }

.prose { max-width: 760px; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose > section { padding-top: 8px; margin-bottom: 44px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); margin: 0 0 16px; display: flex; align-items: baseline; gap: 14px; }
.prose h2 .n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--cyan); letter-spacing: 0.04em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, 0.45); transition: border-color 0.2s, color 0.2s; }
.prose a:hover { color: var(--cyan); border-color: var(--cyan); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--text-3); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); }
.callout { display: flex; gap: 14px; padding: 18px 20px; margin: 0 0 20px; border-radius: 14px; background: rgba(79, 140, 255, 0.07); border: 1px solid rgba(79, 140, 255, 0.22); color: var(--text); font-size: 15px; line-height: 1.65; }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--cyan); margin-top: 2px; }
.callout.ok { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.25); }
.callout.ok svg { color: var(--green); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.contact-card { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card .email-box, .contact-card .checklist { align-self: stretch; }
.contact-card:hover, .sla-card:hover { transform: none; }
.contact-card h2, .sla-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin: 16px 0 10px; }
.contact-card > p { color: var(--text-2); margin: 0 0 26px; }
.email-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); }
.email-box .addr { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; font-size: 14px; color: var(--text-2); }
.checklist li svg { width: 18px; height: 18px; flex: none; color: var(--cyan); margin-top: 2px; }
.checklist code { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text); }
.sla-card { padding: 40px; display: flex; flex-direction: column; }
.sla-big { font-family: var(--font-display); font-size: 72px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 24px 0 6px; }
.sla-big small { font-size: 22px; color: var(--text-2); letter-spacing: -0.01em; margin-left: 8px; }
.sla-card > p { color: var(--text-2); margin: 0 0 24px; }
.timeline { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: 14px; color: var(--text-2); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { color: var(--text); font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 500; font-size: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a a { color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, 0.45); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: #111a2e; border: 1px solid var(--line-2); font-size: 14px; color: var(--text); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); display: inline-flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--green); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px; }
.notfound .code { font-family: var(--font-display); font-weight: 600; font-size: clamp(110px, 22vw, 220px); line-height: 0.9; letter-spacing: -0.06em; }
.notfound p { color: var(--text-2); font-size: 18px; margin: 18px 0 32px; }
.notfound .hero-actions { justify-content: center; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .featured { grid-template-columns: 1fr; }
  .wm-stage { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 860px) {
  :root { --nav-h: 62px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 16px 24px; background: var(--bg); border-top: 1px solid var(--line); }
  .nav-links a + a { border-top: 1px solid var(--line); border-radius: 0; }
  .nav.open { background: var(--bg); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 88px 0; }
  .principles { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .company > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 150px; }
  .horizon { top: calc(100% - 90px); }
  .featured-body, .wm-stage { padding: 28px 20px; }
  .contact-card, .sla-card { padding: 28px 20px; }
  .company > div { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc ol { columns: 1; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .email-box { flex-wrap: wrap; padding: 14px; }
  .email-box .addr { flex-basis: 100%; white-space: normal; word-break: break-all; }
  .email-box .btn { flex: 1; }
  .featured-actions .btn, .email-actions .btn, .hero-actions .btn { flex: 1 1 auto; }
  .prose td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
