/* Kryon OS site — static, no build. Dark theme using the distro's own palette. */
:root {
  --brand-cyan:   #8fd3f4;  /* SGR 96 — bright cyan */
  --brand-blue:   #1793d1;  /* PRETTY_NAME 38;2;23;147;209 */
  --brand-yellow: #ffda00;  /* SGR 93 — bright yellow */
  --brand-grey:   #8a8a8a;  /* SGR 90 — dim grey */
  --brand-bg:     #005db9;  /* SGR 46 — dark cyan (text on it is cyan) */
  --dark:         #0b1016;
  --surface:    #121b26;
  --muted:      #9fb3c8;
  --border:     #233347;
  --white:      #ffffff;
  --radius:     8px;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, monospace;
  --body:     system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  background: var(--dark);
  color: var(--muted);
  font-family: var(--body);
  line-height: 1.6;
}

a { color: var(--brand-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,22,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px; height: 60px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; font-size: 1.25rem; }
.brand svg { height: 28px; width: auto; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a.active, .nav-links a:hover { color: var(--brand-cyan); }
.nav-links a.active { border-bottom: 2px solid var(--brand-yellow); }

/* ---------- main ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 40px 20px; min-height: calc(100vh - 60px); }
h1, h2, h3, h4 { color: var(--white); margin-bottom: .5em; }
h1 { font-size: 2.2rem; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-top: 40px; }
h3 { font-size: 1.2rem; color: var(--brand-cyan); }
p { margin-bottom: 1em; }
code {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 4px; font-family: var(--font);
}
pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; overflow-x: auto;
  font-family: var(--font); font-size: .9rem; color: #e3edfb;
}
pre .hl { color: var(--brand-yellow); }
pre .c1 { color: var(--brand-grey); }
pre .hl-arg { color: var(--brand-cyan); }
blockquote {
  border-left: 3px solid var(--brand-yellow);
  padding: 8px 16px; margin: 16px 0;
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand-cyan); }
.card h3 { margin-top: 0; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  background: rgba(143,211,244,.12); color: var(--brand-cyan);
  font-size: .75rem; font-family: var(--font); border: 1px solid rgba(143,211,244,.35);
}
.badge.warn { background: rgba(255,218,0,.12); color: var(--brand-yellow); border-color: rgba(255,218,0,.35); }
.badge.bad { background: rgba(215,90,90,.12); color: #ff8a8a; border-color: rgba(215,90,90,.35); }

/* ---------- home hero ---------- */
.hero { display: grid; gap: 20px; align-items: center; min-height: 520px; }
.hero-left { max-width: 620px; }
.hero-logo {
  display: inline-block; width: 220px; margin-bottom: 10px;
  filter: drop-shadow(0 0 16px rgba(143,211,244,.35));
}
.hero-sub { font-size: 1.2rem; color: var(--muted); }
.kicker { color: var(--brand-blue); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.cta { display: inline-flex; gap: 12px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--brand-cyan); color: var(--dark); }
.btn-primary:hover { background: #bce4f7; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); }

/* ---------- install progress ---------- */
.steps { list-style: none; }
.steps li {
  padding-left: 36px; position: relative; margin-bottom: 14px;
  border-left: 2px solid var(--border);
}
.steps li::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand-cyan);
  color: var(--brand-cyan); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li.done { border-color: var(--brand-cyan); }
.steps li.done::before { background: var(--brand-cyan); color: var(--dark); }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--brand-cyan); font-weight: 700; font-size: .9rem; }
td { font-size: .95rem; }
code:not(.hl) { background: #16202d; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 20px; color: var(--brand-grey); font-size: .85rem; }
.footer { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; }
.footer a { color: var(--brand-grey); }
.footer a:hover { color: var(--brand-cyan); }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-logo { width: 180px; }
  h1 { font-size: 1.7rem; }
  .nav-links { display: none; }
  .footer { flex-direction: column; gap: 16px; }
}
