:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: #141b36;
  --surface-2: #1a2246;
  --text: #e7ecff;
  --text-muted: #a0aac8;
  --accent: #4f7cff;
  --accent-2: #7aa2ff;
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(11, 16, 32, 0.72);
  --glow-1: #1a2558;
  --glow-2: #20306b;
  --chip-bg: rgba(79,124,255,0.12);
  --chip-border: rgba(79,124,255,0.25);
  --radius: 14px;
  --maxw: 1120px;
}

html[data-theme="light"] {
  --bg: #f6f8ff;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4ff;
  --text: #0b1020;
  --text-muted: #556084;
  --accent: #2e56ff;
  --accent-2: #4f7cff;
  --border: rgba(11, 16, 32, 0.10);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --glow-1: #dde5ff;
  --glow-2: #c9d6ff;
  --chip-bg: rgba(46, 86, 255, 0.08);
  --chip-border: rgba(46, 86, 255, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, var(--glow-1) 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 10%, var(--glow-2) 0%, transparent 55%),
              var(--bg);
  transition: background-color .25s ease, color .25s ease;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-logo { width: 32px; height: 32px; display: block; }
html[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
.nav nav a { color: var(--text-muted); text-decoration: none; margin-left: 28px; font-weight: 500; font-size: 14px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.theme-toggle {
  margin-left: 24px;
  background: rgba(127,127,127,0.08);
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  color: var(--text);
  vertical-align: middle;
}
.theme-toggle:hover { background: rgba(127,127,127,0.16); transform: rotate(12deg); }
html[data-theme="dark"] .theme-icon-light { display: none; }
html[data-theme="light"] .theme-icon-dark { display: none; }
@media (max-width: 680px) { .nav nav { display: none; } }

/* HERO */
.hero { padding: 120px 0 80px; text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text-muted);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -12px var(--accent); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* SECTIONS */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 0 48px; }

/* GRID */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79,124,255,0.35); }
.card.small h3 { margin: 10px 0 6px; font-size: 17px; }
.card.small p { color: var(--text-muted); font-size: 14px; margin: 0; }
.icon { font-size: 28px; }

/* PROJECT CARD */
.project-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s, border-color .2s;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(79,124,255,0.4); }
.project-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.project-card h3 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.01em; }
.project-card p { color: var(--text-muted); margin: 0 0 20px; }
.stack { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  font-size: 12px;
  color: var(--text);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(79,124,255,0.12);
  border: 1px solid rgba(79,124,255,0.25);
}
.project-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.project-link:hover { color: var(--text); }

/* FOUNDERS */
.founders { margin-top: 32px; }
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.founder-card:hover { transform: translateY(-3px); border-color: rgba(79,124,255,0.35); }
.avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 42px; color: #fff;
  box-shadow: 0 14px 40px -12px var(--accent);
  border: 3px solid rgba(255,255,255,0.08);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { letter-spacing: 2px; }
.founder-card h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.01em; }
.role { color: var(--text-muted); margin: 0; font-size: 14px; }

/* CONTACT */
.contact { text-align: center; }
.contact h2 { margin-bottom: 12px; }
.contact .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 28px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
