/* ===================================================
   RE-KORD website — Midnight theme
   Colors from KORD src/index.css + themeCatalog.ts
=================================================== */

/* ── Material Symbols Rounded ── */
.mi {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: normal;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-variation-settings: "FILL" 0, "wght" 300, "OPSZ" 24, "GRAD" 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.mi-lg { font-size: 1.5rem; }
.mi-xl { font-size: 2rem; }

:root {
  /* ── Sfondi (da --bg / --surface* di KORD) ── */
  --bg:        #0a0e14;
  --surface:   #121820;
  --surface2:  #161d28;
  --surface3:  #1c2532;

  /* ── Testo ── */
  --text:      #eef2f7;
  --muted:     #94a3b8;
  --muted2:    #64748b;
  --on-accent: #07101b;

  /* ── Accenti (da themeCatalog + :root KORD) ── */
  --coral:     #ff8f5c;   /* accent principale — corallo */
  --coral-dim: rgba(255, 143, 92, 0.14);
  --coral-glow:rgba(255, 143, 92, 0.22);
  --sky:       #64d4ff;   /* accent secondario — ciano */
  --sky-dim:   rgba(100, 212, 255, 0.12);
  --sky-glow:  rgba(100, 212, 255, 0.18);

  /* ── Bordi ── */
  --border:    rgba(148, 163, 184, 0.13);
  --border-h:  rgba(148, 163, 184, 0.28);

  /* ── Gradienti ── */
  --grad:       linear-gradient(135deg, #ff8f5c 0%, #fbc26b 50%, #64d4ff 100%);
  --grad-text:  linear-gradient(110deg, #ff8f5c 0%, #f5a97a 45%, #64d4ff 100%);
  --grad-coral: linear-gradient(135deg, #ff8f5c, #f97316);

  /* ── Misc ── */
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  --max-w:  1100px;
  --nav-h:  60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Glow ambientale — identico a KORD */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 15% 10%,  var(--coral-glow), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 85%,  var(--sky-glow),   transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 20%,  rgba(100,212,255,.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ── Base ── */
a { color: var(--sky); text-decoration: none; transition: color .18s; }
a:hover { color: #a8eaff; }

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

code {
  font-family: var(--font-mono);
  font-size: .82em;
  background: rgba(100,212,255,.08);
  border: 1px solid var(--border);
  padding: .12em .4em;
  border-radius: 4px;
  color: var(--sky);
}

/* card-icon uses .mi inside it */
.card-icon .mi { font-size: 1.3rem; }

kbd {
  font-family: var(--font-mono);
  font-size: .78em;
  background: var(--surface2);
  border: 1px solid var(--border-h);
  padding: .1em .4em;
  border-radius: 4px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(6, 13, 22, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  line-height: 1;
}

.logo:hover { opacity: .82; }

.logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Logo hero — più grande nell'hero */
.hero-logo {
  display: block;
  height: 90px;
  width: 90px;
  object-fit: contain;
  margin: 0 auto 2rem;
  border-radius: 20px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 32px rgba(0,0,0,.45);
}

@media (max-width: 480px) {
  .logo-img { height: 30px; }
  .hero-logo { height: 56px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: .875rem;
  padding: .42rem .8rem;
  border-radius: 8px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active { color: var(--text); background: var(--surface2); }

/* nav-actions: lang switch + download CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Language switcher */
.lang-switch {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: .25rem .6rem;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--coral);
  color: var(--on-accent);
}

.nav-cta {
  background: var(--coral) !important;
  color: var(--on-accent) !important;
  -webkit-text-fill-color: var(--on-accent) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  padding: .42rem .9rem !important;
  border-radius: 8px !important;
  white-space: nowrap;
  transition: background .18s;
}
.nav-cta:hover { background: #ffaa7a !important; color: var(--on-accent) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .38rem .62rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
main { flex: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral);
  display: block;
  margin-bottom: .65rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .55rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--muted);
  font-size: 1.025rem;
  max-width: 580px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.75rem;
}

.page-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin-bottom: .5rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: transform .14s, box-shadow .18s, opacity .18s, background .18s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--coral);
  color: var(--on-accent);
  -webkit-text-fill-color: var(--on-accent);
}
.btn-primary:hover {
  background: #ffaa7a;
  color: var(--on-accent);
  -webkit-text-fill-color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,143,92,.3);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  background: var(--surface3);
  border-color: var(--border-h);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: var(--surface);
  transform: translateY(-1px);
}

.btn-sky {
  background: var(--sky-dim);
  color: var(--sky);
  border: 1px solid rgba(100,212,255,.22);
  -webkit-text-fill-color: var(--sky);
}
.btn-sky:hover {
  background: rgba(100,212,255,.18);
  color: var(--sky);
  -webkit-text-fill-color: var(--sky);
  transform: translateY(-1px);
}

.btn-sm { padding: .52rem 1rem; font-size: .825rem; }
.btn-xs { padding: .35rem .75rem; font-size: .77rem; }

.btn:disabled, .btn.disabled {
  opacity: .36;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════
   HERO — centered
═══════════════════════════════════════════════ */
.hero {
  padding: 6rem 0 4.5rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--coral);
  background: var(--coral-dim);
  border: 1px solid rgba(255,143,92,.22);
  padding: .32rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.07;
  margin-bottom: 1.1rem;
}

.hero h1 .gr {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .77rem;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: .28rem .72rem;
  border-radius: 99px;
}

/* ── App mockup (rimosso dall'homepage, mantenuto per compatibilità futura) ── */
.app-mockup {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,143,92,.05),
    0 40px 90px rgba(0,0,0,.55),
    0  0  60px rgba(255,143,92,.06),
    0  0  80px rgba(100,212,255,.04);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mockup-titlebar .dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-titlebar .dot-r { background: #ff5f56; }
.mockup-titlebar .dot-y { background: #ffbd2e; }
.mockup-titlebar .dot-g { background: #27c93f; }
.mockup-titlebar-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted2);
  margin-left: .5rem;
}

.mockup-shell {
  display: grid;
  grid-template-rows: 1fr auto;
}

.mockup-main {
  display: grid;
  grid-template-columns: 140px 1fr;
}

/* Sidebar */
.mockup-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: .85rem .6rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.m-nav {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem;
  border-radius: 8px;
  font-size: .73rem;
  color: var(--muted2);
  font-weight: 500;
}
.m-nav.active {
  background: var(--surface2);
  color: var(--text);
}
.m-nav .m-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-left: auto;
  flex-shrink: 0;
}

/* Content area */
.mockup-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 220px;
}

.mockup-content-title {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.m-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.m-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .65rem;
  text-align: center;
}
.m-stat-v {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--coral);
  display: block;
}
.m-stat-l {
  font-size: .62rem;
  color: var(--muted2);
}

.m-album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
}

.m-album {
  border-radius: 6px;
  aspect-ratio: 1;
  background: var(--surface3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.m-track-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.m-track {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  background: var(--surface2);
  font-size: .7rem;
  color: var(--muted);
}
.m-track.playing { background: rgba(255,143,92,.1); color: var(--text); }
.m-track .m-play-icon { font-size: .65rem; color: var(--coral); }
.m-track .m-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-track .m-dur { font-family: var(--font-mono); font-size: .62rem; color: var(--muted2); }

/* Player bar */
.mockup-player {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: .6rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
}

.m-player-track {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.m-player-thumb {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}
.m-player-info .m-pt { font-size: .68rem; font-weight: 600; color: var(--text); }
.m-player-info .m-pa { font-size: .6rem; color: var(--muted2); }

.m-player-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  color: var(--muted);
}
.m-play-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  color: var(--on-accent);
}

.m-waveform {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 18px;
  justify-content: flex-end;
}
.m-waveform span {
  width: 2px;
  border-radius: 1px;
  background: var(--coral);
  opacity: .5;
  animation: mwave 1.3s ease-in-out infinite alternate;
}
.m-waveform span:nth-child(even) { opacity: .8; }
.m-waveform span:nth-child(3n) { animation-duration: 1.0s; }
.m-waveform span:nth-child(5n) { animation-duration: 1.7s; }

@keyframes mwave {
  from { height: 20%; }
  to   { height: 90%; }
}

/* ═══════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════ */
.stats-strip {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}

.stat {
  flex: 1;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: .2rem;
}

.stat-label {
  font-size: .78rem;
  color: var(--muted2);
}

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--coral-dim);
  border: 1px solid rgba(255,143,92,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .9rem;
  flex-shrink: 0;
}
.card-icon.sky {
  background: var(--sky-dim);
  border-color: rgba(100,212,255,.2);
}
.card-icon.neutral {
  background: var(--surface2);
  border-color: var(--border);
}

.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; letter-spacing: -.01em; }
.card p  { color: var(--muted); font-size: .875rem; line-height: 1.55; }

/* ═══════════════════════════════════════════════
   FEATURE LIST
═══════════════════════════════════════════════ */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.feature-list li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s;
}
.feature-list li:hover { border-color: var(--border-h); }

.fi {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.feature-list h4 { font-size: .92rem; font-weight: 600; margin-bottom: .18rem; }
.feature-list p  { color: var(--muted); font-size: .845rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 5px;
  background: var(--coral-dim);
  color: var(--coral);
  border: 1px solid rgba(255,143,92,.22);
  white-space: nowrap;
}
.badge.sky   { background: var(--sky-dim); color: var(--sky); border-color: rgba(100,212,255,.22); }
.badge.soon  { background: rgba(234,179,8,.1); color: #fbbf24; border-color: rgba(234,179,8,.22); }
.badge.muted { background: var(--surface2); color: var(--muted); border-color: var(--border); }

/* ═══════════════════════════════════════════════
   DOWNLOAD PAGE
═══════════════════════════════════════════════ */
.dl-platform { margin-bottom: 2.75rem; }

.dl-platform-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .5rem;
}
.dl-platform-head h2 { font-size: 1.25rem; font-weight: 700; }

.dl-platform-desc {
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 1.1rem;
  margin-left: .15rem;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  transition: border-color .18s, transform .18s;
}
.dl-card:hover { border-color: var(--border-h); transform: translateY(-2px); }

.dl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.dl-card-top h3 { font-size: .98rem; font-weight: 600; margin-bottom: .15rem; }

.dl-card-desc { color: var(--muted); font-size: .845rem; line-height: 1.5; margin-bottom: .85rem; }
.dl-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--muted2); margin-bottom: .85rem; }
.dl-actions { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ═══════════════════════════════════════════════
   TUTORIAL
═══════════════════════════════════════════════ */
.tut-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.tut-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}

.tut-sidebar-title {
  font-family: var(--font-mono);
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted2);
  margin-bottom: .6rem;
  padding-left: .6rem;
}

.tut-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.tut-sidebar a {
  display: block;
  color: var(--muted);
  font-size: .83rem;
  padding: .42rem .65rem;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all .15s;
  line-height: 1.4;
}
.tut-sidebar a:hover { color: var(--text); background: var(--surface2); border-left-color: var(--border-h); }
.tut-sidebar a.active { color: var(--coral); background: var(--coral-dim); border-left-color: var(--coral); }

.tut-content { min-width: 0; }

.tut-step {
  margin-bottom: 3.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.tut-step-num {
  font-family: var(--font-mono);
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral);
  margin-bottom: .28rem;
}

.tut-step h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: .55rem; }
.tut-step > p { color: var(--muted); margin-bottom: 1.35rem; max-width: 680px; line-height: 1.6; }

.screenshot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
}
.screenshot img { width: 100%; height: 100%; object-fit: cover; }

.screenshot-ph {
  text-align: center;
  color: var(--muted2);
  font-size: .83rem;
  padding: 2rem;
}
.screenshot-ph .sc-icon { font-size: 2rem; margin-bottom: .55rem; opacity: .25; }
.screenshot-ph small {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted2);
}

.tip {
  padding: .85rem 1.1rem;
  background: rgba(255,143,92,.06);
  border: 1px solid rgba(255,143,92,.14);
  border-radius: var(--radius);
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.55;
}
.tip + .tip { margin-top: .5rem; }
.tip strong { color: var(--coral); }

.tip.sky {
  background: rgba(100,212,255,.06);
  border-color: rgba(100,212,255,.14);
}
.tip.sky strong { color: var(--sky); }

.tut-substeps {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 1rem 0;
}

.tut-substep {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem .95rem;
}
.tut-substep .sn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--coral);
}
.tut-substep .sn .mi {
  font-size: .95rem;
  color: var(--coral);
}
.tut-substep p { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.tut-substep p strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════
   PROSE (About)
═══════════════════════════════════════════════ */
.prose { max-width: 740px; }
.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 2.5rem 0 .7rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 1rem; line-height: 1.65; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .35rem; line-height: 1.55; }

.prose blockquote {
  border-left: 3px solid var(--coral);
  padding: .7rem 0 .7rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: .6rem; bottom: .6rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--coral), transparent);
}
.tl-item { position: relative; margin-bottom: 1.85rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2rem; top: .5rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateX(-4px);
  box-shadow: 0 0 0 3px var(--coral-dim);
}
.tl-item h4 { font-size: .98rem; font-weight: 600; margin-bottom: .25rem; }
.tl-item p  { color: var(--muted); font-size: .875rem; line-height: 1.55; }

/* ═══════════════════════════════════════════════
   CREATOR PAGE
═══════════════════════════════════════════════ */
.creator-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.creator-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1f35, #1c2532, #0d1a28);
  border: 2px solid rgba(255,143,92,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(255,143,92,.12);
}

.creator-info h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: .2rem; }
.creator-info .role {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--coral);
  margin-bottom: .8rem;
}
.creator-info p { color: var(--muted); max-width: 520px; margin-bottom: .5rem; line-height: 1.6; }
.creator-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }

/* ── Donation usage block ── */
.donation-usage {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.6rem;
  margin-bottom: 2.5rem;
}
.du-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4rem;
}
.du-intro {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.du-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.du-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.du-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--coral-dim);
  border: 1px solid rgba(255,143,92,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}
.du-item h4 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .3rem;
}
.du-item p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.du-note {
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin: 0;
  font-style: italic;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.donation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  text-align: center;
  transition: border-color .18s, transform .18s;
}
.donation-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.donation-card .dc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--coral-dim);
  border: 1px solid rgba(255,143,92,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .85rem;
  color: var(--coral);
}
.donation-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.donation-card p  { color: var(--muted); font-size: .845rem; margin-bottom: 1.15rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════ */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 0%, var(--coral-dim), transparent);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .45rem; letter-spacing: -.025em; }
.cta-banner p  { color: var(--muted); margin-bottom: 1.5rem; font-size: .975rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 2.5rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.footer-brand small {
  display: block;
  font-size: .7rem;
  color: var(--muted2);
  -webkit-text-fill-color: var(--muted2);
  margin-top: .3rem;
  font-weight: 400;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .85rem;
  list-style: none;
  align-items: center;
}
.footer-nav a { color: var(--muted2); font-size: .835rem; transition: color .15s; }
.footer-nav a:hover { color: var(--text); }

.footer-right { margin-left: auto; }

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--muted2);
  font-size: .77rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  margin-top: .25rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .app-mockup { max-width: 520px; margin: 0 auto; }
  .mockup-main { grid-template-columns: 110px 1fr; }
}

@media (max-width: 720px) {
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,13,22,.97);
    border-bottom: 1px solid var(--border);
    padding: .65rem 1rem 1rem;
    backdrop-filter: blur(20px);
    gap: .1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .68rem .85rem; }
  /* hide download from mobile nav-actions on very small screens to save space */

  .hero { padding: 3.5rem 0 2.75rem; }
  .section { padding: 2.75rem 0; }

  .tut-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tut-sidebar {
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
  }
  .tut-sidebar ul { flex-direction: row; flex-wrap: wrap; gap: .25rem; }
  .tut-sidebar a { padding: .35rem .65rem; border-left: none; border-bottom: 2px solid transparent; border-radius: 6px; }
  .tut-sidebar a:hover,
  .tut-sidebar a.active { border-left-color: transparent; border-bottom-color: var(--coral); }

  .stats-strip { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .footer-right { margin-left: 0; }
  .footer-inner { gap: 1rem 1.5rem; }

  .mockup-sidebar { display: none; }
  .mockup-main { grid-template-columns: 1fr; }
}
