@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0b0614;
  --bg-elevated: #150c24;
  --panel: #170f28;
  --text: #f4f1fb;
  --text-muted: #a99fc0;
  --text-faint: #776d92;
  --accent: #9333ea;
  --accent-bright: #c084fc;
  --accent2: #ec4899;
  --cyan: #22d3ee;
  --border: #2a1f3d;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

a { color: inherit; }

/* ---------- NAV ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 6, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav .brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-menu-btn span {
  width: 16px;
  height: 1.5px;
  background: var(--text-muted);
  display: block;
}

/* ---------- HERO ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.stat-row {
  display: flex;
  gap: 40px;
}

.stat-row .stat strong {
  display: block;
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-row .stat span {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- HERO VISUAL ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}

.orbit-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring { animation: none; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.45), transparent 70%);
  filter: blur(10px);
}

.hero-card {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card svg { width: 150px; height: 150px; }

.floating-badge {
  position: absolute;
  bottom: 18px;
  right: -20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-badge strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
}

.floating-badge span {
  color: var(--text-faint);
  font-size: 0.75rem;
}

/* ---------- FEATURES ---------- */
.features {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 40px 32px 80px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  margin: 0 0 10px;
}

.section-title p {
  color: var(--text-muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 22px; height: 22px; stroke: white; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- GENERIC PAGE (about/projects/contact) ---------- */
main.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

main.page h1 { font-size: 2.2rem; margin-bottom: 8px; }

main.page p.subtitle { color: var(--text-muted); font-size: 1.05rem; margin-top: 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

.card h3 { margin: 0 0 6px 0; }
.card p { color: var(--text-muted); margin: 0; }

footer {
  text-align: center;
  color: var(--text-faint);
  padding: 30px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
