:root {
  --accent: #3d8cfa;
  --accent-mint: #4fc9a4;
  --accent-purple: #9b7bf0;
  --accent-orange: #f5a04a;
  --safe: #1f9367;
  --danger: #f05a5a;
  --warning: #fa9e3d;
  --bg-dark-1: #0d1120;
  --bg-dark-2: #080b16;
  --text-primary: #f4f6fb;
  --text-secondary: rgba(244, 246, 251, 0.68);
  --text-tertiary: rgba(244, 246, 251, 0.48);
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark-2);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 15% -5%, rgba(61, 140, 250, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 15%, rgba(79, 201, 164, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 75%, rgba(155, 123, 240, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-dark-1), var(--bg-dark-2) 30%);
}

a { color: inherit; text-decoration: none; }
code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }

.icon { width: 20px; height: 20px; }
.icon-sm { width: 15px; height: 15px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(8, 11, 22, 0.65);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.brand-icon { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: 0.88rem; }
.btn-large { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary {
  background: linear-gradient(180deg, #58a2ff, var(--accent) 60%, #2f6fd6);
  color: white;
  box-shadow: 0 10px 28px rgba(61, 140, 250, 0.3);
}
.btn-coffee {
  background: linear-gradient(180deg, #ffc369, #f5a04a);
  color: #2b1a00;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(245, 160, 74, 0.28);
}

/* Eyebrow / kicker labels */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kicker-blue { background: rgba(61, 140, 250, 0.15); color: #7fb4ff; }
.kicker-mint { background: rgba(79, 201, 164, 0.15); color: #7fddc0; }
.kicker-orange { background: rgba(245, 160, 74, 0.15); color: #ffbf7d; }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 3.1rem; margin: 0 0 18px; }
.hero-tagline { font-size: 1.12rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 32px; max-width: 480px; }
.hero-actions { margin-bottom: 28px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 7px 14px;
  border-radius: 999px;
}
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(61, 140, 250, 0.35), transparent 70%);
  filter: blur(10px);
}
.hero-icon {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 46px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* Section shared */
section h2 { font-size: 2rem; margin: 0 0 14px; }
.section-sub { color: var(--text-secondary); margin: 0 auto 44px; max-width: 520px; }
.more-modules, .install, .founder { text-align: center; }
.more-modules h2, .more-modules .section-sub, .install h2, .install .section-sub { text-align: center; }
.more-modules { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 90px; }

/* Spotlight (alternating feature stories) */
.spotlight {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.spotlight.reverse .spotlight-text { order: 2; }
.spotlight.reverse .spotlight-visual { order: 1; }
.spotlight-text h2 { font-size: 1.9rem; }
.spotlight-text p { color: var(--text-secondary); line-height: 1.65; font-size: 0.98rem; margin: 0 0 16px; }
.spotlight-visual { display: flex; justify-content: center; }

/* Mock window visuals */
.mock-window {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.mock-titlebar { display: flex; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); }
.mock-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.mock-icon .icon { width: 16px; height: 16px; }
.mock-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mock-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.mock-line.dim { background: rgba(255, 255, 255, 0.08); height: 6px; }
.w-70 { width: 70%; } .w-60 { width: 60%; } .w-80 { width: 80%; } .w-40 { width: 40%; } .w-30 { width: 30%; } .w-45 { width: 45%; }
.mock-total {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mock-total span { font-size: 0.75rem; font-weight: 500; color: var(--text-tertiary); margin-left: 6px; }

.mock-log {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.mock-log-line { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.mock-log-line.dim { color: var(--text-tertiary); font-style: italic; }
.mock-time { margin-left: auto; color: var(--text-tertiary); font-size: 0.78rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); flex-shrink: 0; }
.dot-mint { background: var(--accent-mint); }
.dot-blue { background: var(--accent); }
.dot-orange { background: var(--accent-orange); }

.mock-bar { display: flex; align-items: center; gap: 12px; }
.mock-bar-label { width: 54px; font-size: 0.85rem; color: var(--text-secondary); flex-shrink: 0; }
.mock-bar-track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mock-bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-orange), #ff7a5c); }
.mock-bar-val { font-size: 0.8rem; color: var(--text-tertiary); width: 52px; text-align: right; font-variant-numeric: tabular-nums; }

/* Languages */
.languages {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 70px;
  text-align: center;
}
.language-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.lang-pill {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s, border-color 0.15s;
}
.lang-pill:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); }

/* Module grid (icon color variants) */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  text-align: left;
}
.module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.module-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); }
.module-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 14px; }
.module-card h3 { font-size: 1rem; margin: 0 0 6px; }
.module-card p { color: var(--text-secondary); font-size: 0.87rem; line-height: 1.5; margin: 0; }

.icon-blue { background: linear-gradient(160deg, #62a6ff, #3d7ce0); }
.icon-mint { background: linear-gradient(160deg, #6fdcb8, #34b088); }
.icon-purple { background: linear-gradient(160deg, #b79bfa, #8f68e8); }
.icon-orange { background: linear-gradient(160deg, #ffc177, #ec8f3a); }

/* Install */
.install { max-width: 680px; margin: 0 auto; padding: 30px 24px 90px; }
.install-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.checksum-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.checksum-row code { font-size: 0.78rem; word-break: break-all; }
.checksum-copy {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
}
.checksum-copy:hover { color: var(--text-primary); }
.checksum-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.checksum-hint code { font-size: 0.76rem; }

.install-note {
  margin-top: 32px;
  text-align: left;
  background: rgba(250, 158, 61, 0.07);
  border: 1px solid rgba(250, 158, 61, 0.22);
  border-radius: 14px;
  padding: 22px 26px;
}
.install-note h4 { display: flex; align-items: center; gap: 8px; color: var(--warning); margin: 0 0 12px; font-size: 0.98rem; }
.install-note p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.install-note ol { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; padding-left: 20px; }

/* Founder */
.founder { max-width: 600px; margin: 0 auto; padding: 30px 24px 100px; }
.founder-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}
.founder h2 { margin-bottom: 20px; }
.founder p { color: var(--text-secondary); line-height: 1.65; margin: 0 0 16px; }
.founder-note { color: var(--text-tertiary); font-size: 0.84rem; margin-top: 18px; }

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.84rem;
}
.footer p { margin: 4px 0; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .badge-row { justify-content: center; }
  .hero-visual { order: -1; }
  .spotlight, .spotlight.reverse { grid-template-columns: 1fr; text-align: center; }
  .spotlight.reverse .spotlight-text, .spotlight.reverse .spotlight-visual { order: initial; }
  .spotlight-text p { text-align: left; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
}
