:root {
  --bg: #06080c;
  --bg-soft: #0a0f17;
  --surface: #0e1622;
  --surface-strong: #14202f;
  --darkblue: #0d2138;
  --line: #213040;
  --line-soft: rgba(125, 180, 230, 0.14);
  --text: #eaf1f9;
  --muted: #93a6bd;
  --subtle: #5f7186;
  --blue: #6db1f2;
  --blue-bright: #9cccff;
  --blue-deep: #3f7fc4;
  --green: #5cc78e;
  --amber: #e0b65a;
  --red: #e7655f;
  --accent: #635bff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(109, 177, 242, 0.12), transparent 60%),
    linear-gradient(180deg, #0a1320 0%, var(--bg) 46%, #05070b 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue-bright); }

.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }
.narrow { max-width: 760px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 8, 12, 0.74);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(100% - 40px, var(--max));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-logo span:not(.logo-mark) { color: var(--blue); }

.logo-mark {
  width: 46px;
  height: auto;
  padding: 6px 8px;
  border-radius: 9px;
  background: linear-gradient(180deg, #eaf2fb, #cfe1f5);
  box-shadow: 0 0 0 1px rgba(125, 180, 230, 0.25), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(109, 177, 242, 0.12);
  color: var(--text);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100vh - 66px));
  display: flex;
  align-items: center;
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.95) 0%, rgba(6, 8, 12, 0.7) 46%, rgba(6, 8, 12, 0.88) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.2), var(--bg) 96%),
    url("/astur%20background.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 177, 242, 0.45), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.hero-copy { max-width: 620px; }

.eyebrow,
.section-label,
.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  opacity: 0.7;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.01em; }

.hero h1 {
  margin-top: 20px;
  max-width: 760px;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 850;
  background: linear-gradient(180deg, #ffffff 28%, #aecbe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin-top: 22px;
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #c6d3e1;
  font-size: 15px;
}

.hero-points li { position: relative; padding-left: 22px; }

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(109, 177, 242, 0.55);
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 55%, var(--blue-deep));
  color: #04121f;
  box-shadow: 0 14px 34px rgba(109, 177, 242, 0.28);
}

.btn-primary:hover { box-shadow: 0 18px 42px rgba(109, 177, 242, 0.42); }

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn-secondary:hover { border-color: rgba(109, 177, 242, 0.5); }

.btn-donate {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(99, 91, 255, 0.3);
}

.btn:hover { transform: translateY(-2px); }

.platform-card {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(109, 177, 242, 0.24);
  border-radius: var(--radius);
  background: rgba(109, 177, 242, 0.07);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.platform-card strong { color: var(--text); font-size: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.hero-stats div { border-left: 2px solid rgba(109, 177, 242, 0.55); padding-left: 16px; }

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-size: 13px;
}

/* ---------- hero visual ---------- */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-mark {
  position: absolute;
  top: -34px;
  left: 50%;
  width: min(118%, 760px);
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.16;
  filter: brightness(0) saturate(100%) invert(74%) sepia(18%) saturate(900%) hue-rotate(178deg) brightness(96%) contrast(92%);
  pointer-events: none;
}

.desktop-preview {
  width: min(100%, 680px);
  aspect-ratio: 16 / 10;
  padding: 16px;
  border: 1px solid rgba(125, 180, 230, 0.26);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(14, 22, 34, 0.92), rgba(5, 7, 11, 0.95)),
    url("/astur%20background.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.preview-bar {
  height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(125, 180, 230, 0.2);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-bar strong {
  justify-self: center;
  color: #04121f;
  padding: 3px 13px;
  border-radius: 5px;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(109, 177, 242, 0.45);
}

.preview-bar span:last-child { justify-self: end; }

.preview-grid {
  height: calc(100% - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.preview-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 180, 230, 0.24);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.preview-master { grid-row: span 2; border-color: rgba(109, 177, 242, 0.75); box-shadow: inset 0 0 0 1px rgba(109, 177, 242, 0.22); }

.window-title {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid rgba(125, 180, 230, 0.14);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.terminal-lines, .code-lines, .browser-lines { display: grid; gap: 10px; padding: 16px; }

.terminal-lines span, .code-lines span, .browser-lines span {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: rgba(147, 166, 189, 0.24);
}

.terminal-lines span:nth-child(1) { width: 68%; background: rgba(109, 177, 242, 0.55); }
.terminal-lines span:nth-child(2) { width: 48%; }
.terminal-lines span:nth-child(3) { width: 82%; }
.terminal-lines span:nth-child(4) { width: 36%; background: rgba(156, 204, 255, 0.5); }
.code-lines span:nth-child(1) { width: 78%; }
.code-lines span:nth-child(2) { width: 55%; background: rgba(109, 177, 242, 0.45); }
.code-lines span:nth-child(3) { width: 70%; }
.browser-lines span:nth-child(1) { width: 62%; background: rgba(63, 127, 196, 0.55); }
.browser-lines span:nth-child(2) { width: 86%; }
.browser-lines span:nth-child(3) { width: 44%; }

.preview-caption {
  height: 22px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
  text-align: right;
}

.command-panel {
  position: absolute;
  right: -10px;
  bottom: 14px;
  width: min(88%, 440px);
  overflow: hidden;
  border: 1px solid rgba(109, 177, 242, 0.24);
  border-radius: var(--radius);
  background: rgba(6, 8, 12, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.panel-top span { width: 10px; height: 10px; border-radius: 999px; background: var(--red); }
.panel-top span:nth-child(2) { background: var(--amber); }
.panel-top span:nth-child(3) { background: var(--green); }

pre, code, kbd { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }

pre {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(3, 5, 9, 0.72);
  color: #d4e4f6;
  font-size: 13px;
  line-height: 1.75;
}

.command-panel pre { border: 0; border-radius: 0; background: transparent; padding: 20px; }

/* ---------- sections ---------- */
.band, .features, .install, .hotkeys, .donate-section { padding: 88px 0; }

.band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(109, 177, 242, 0.08), rgba(13, 33, 56, 0.5));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 56px;
  align-items: start;
}

.split-section h2, .section-head h2, .subpage-hero h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 850;
}

.split-section p { color: var(--muted); font-size: 19px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.text-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--blue);
  transition: color 0.15s ease;
}

.text-link:hover { color: var(--blue-bright); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card, .step, .donate-card, .support-list {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(125, 180, 230, 0.06), rgba(125, 180, 230, 0.02));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.25);
}

.feature-card {
  min-height: 228px;
  padding: 26px 24px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-card:hover { border-color: rgba(109, 177, 242, 0.38); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }

.feature-card h3 { margin-top: 18px; font-size: 21px; }
.feature-card p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step { min-height: 210px; padding: 26px 24px; counter-increment: step; }

.step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(109, 177, 242, 0.42);
  background: rgba(109, 177, 242, 0.13);
  color: var(--blue);
  font-weight: 850;
}

.step-num::before { content: counter(step); }
.step h3 { margin-top: 18px; font-size: 21px; }
.step p { margin-top: 10px; color: var(--muted); }
.step pre { margin-top: 14px; padding: 14px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(125, 180, 230, 0.03);
}

table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }

th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(109, 177, 242, 0.06); }

kbd {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 1px 2px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-color: #3a5570;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- subpages ---------- */
.subpage-hero {
  position: relative;
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(109, 177, 242, 0.08), transparent);
}

.subpage-hero p { margin-top: 18px; color: var(--muted); font-size: 19px; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 56px 0 88px;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(125, 180, 230, 0.04);
}

.docs-sidebar h4 {
  margin: 22px 0 8px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; padding: 0; }
.docs-sidebar li + li { margin-top: 4px; }

.docs-sidebar a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; }
.docs-sidebar a:hover { color: var(--blue); }

.docs-content { max-width: 780px; }

.docs-content h2 {
  margin: 48px 0 14px;
  padding-top: 42px;
  border-top: 1px solid var(--line-soft);
  font-size: 30px;
  font-weight: 850;
}

.docs-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.docs-content h3 { margin: 28px 0 10px; font-size: 20px; }
.docs-content p, .docs-content li { color: var(--muted); font-size: 16px; }
.docs-content p { margin-bottom: 16px; }
.docs-content ul { margin: 0 0 18px 20px; padding: 0; }
.docs-content pre { margin: 16px 0 18px; padding: 18px; }

.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.donate-card, .support-list { padding: 32px 30px; }
.donate-card h2, .support-list h2 { margin-top: 14px; font-size: 30px; }
.donate-card p, .support-list li { color: var(--muted); }
.donate-card p { margin: 14px 0 22px; }

.fine-print { margin-top: 18px !important; color: var(--subtle) !important; font-size: 13px; }

.support-list ul { margin: 18px 0 22px 18px; padding: 0; }
.support-list li + li { margin-top: 10px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 32px 0; color: var(--subtle); }

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--blue); }

.footer-note {
  width: min(100% - 40px, var(--max));
  margin: 14px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--subtle);
  opacity: 0.8;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { min-height: auto; padding: 48px 0 64px; }
  .hero-grid, .split-section, .docs-layout, .donate-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .hero-mark { width: min(90%, 560px); top: -10px; }
  .desktop-preview { width: min(100%, 620px); }
  .feature-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
}

@media (max-width: 640px) {
  .container, .nav-inner, .footer-inner { width: min(100% - 28px, var(--max)); }
  .nav-inner { min-height: 64px; padding: 12px 0; align-items: center; gap: 12px; }
  .nav-logo { font-size: 17px; }
  .logo-mark { width: 40px; padding: 5px 7px; }
  .nav-links { justify-content: flex-end; gap: 2px; }
  .nav-links a { min-height: 34px; padding: 0 9px; font-size: 13px; }
  .hero h1 { font-size: 34px; }
  .hero-lead, .split-section p, .subpage-hero p { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; min-height: 48px; padding: 0 14px; white-space: normal; text-align: center; }
  .hero-stats, .feature-grid, .steps, .docs-sidebar { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero-visual { min-height: 0; display: block; }
  .desktop-preview { width: 100%; aspect-ratio: 4 / 3.1; padding: 10px; }
  .preview-bar { height: 30px; padding: 0 9px; font-size: 10px; }
  .preview-grid { height: calc(100% - 58px); gap: 6px; margin-top: 10px; }
  .window-title { height: 25px; padding: 0 8px; font-size: 10px; }
  .terminal-lines, .code-lines, .browser-lines { gap: 7px; padding: 10px; }
  .preview-caption { margin-top: 7px; font-size: 10px; }
  .command-panel { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .command-panel pre { padding: 16px; font-size: 12px; }
  .band, .features, .install, .hotkeys, .donate-section { padding: 60px 0; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-flex; margin-top: 16px; }
  .docs-layout { gap: 24px; padding: 32px 0 64px; }
  .docs-sidebar { max-height: none; padding: 14px; }
  .docs-content h2 { margin-top: 34px; padding-top: 30px; font-size: 26px; }
}

@media (max-width: 430px) {
  .container, .nav-inner, .footer-inner { width: min(100% - 22px, var(--max)); }
  .nav-logo { font-size: 16px; }
  .nav-links a { padding: 0 6px; font-size: 12px; }
  .hero h1 { font-size: 30px; }
  .hero-stats strong { font-size: 26px; }
  .feature-card, .step, .donate-card, .support-list { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .feature-card:hover { transform: none; }
}
