/* andi.projects — landing page
   Design tokens are centralized here; components reference them. */

:root {
  --bg: #0a0b10;
  --bg-soft: #11131c;
  --card: #141725;
  --card-border: rgba(255, 255, 255, 0.07);
  --fg: #e8eaf2;
  --fg-dim: #9aa1b5;
  --accent: #6d8bff;
  --accent-glow: rgba(109, 139, 255, 0.35);
  --live: #4ade80;
  --soon: #fbbf24;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---- ambient glow ---- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 15% -10%, var(--accent-glow), transparent 70%),
    radial-gradient(500px 350px at 85% 10%, rgba(167, 109, 255, 0.18), transparent 70%);
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 6vw, 64px);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--card-border);
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.brand-dim { color: var(--fg-dim); font-weight: 500; }

.nav-links { display: flex; gap: 26px; }

.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.btn-small { padding: 8px 18px; font-size: 0.88rem; }
#private-link { margin-left: 18px; white-space: nowrap; }

/* ---- hero ---- */
main { position: relative; z-index: 1; }

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(80px, 16vh, 160px) 24px;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
  background: var(--bg-soft);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.gradient {
  background: linear-gradient(92deg, var(--accent), #a76dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--fg-dim);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
}

.btn-ghost:hover {
  background: var(--card);
  transform: translateY(-2px);
}

/* ---- sections ---- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-sub {
  color: var(--fg-dim);
  margin-bottom: 30px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--fg-dim);
  font-size: 0.94rem;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.card-static { cursor: default; }
.card-disabled { opacity: 0.75; }

.card-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag-live { color: var(--live); }
.tag-soon { color: var(--soon); }

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 26px clamp(20px, 6vw, 64px);
  display: flex;
  gap: 10px;
  color: var(--fg-dim);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
}
