/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0F0F1A;
  --bg-surface: #16162A;
  --fg: #F0EDE6;
  --fg-muted: #8B8A9B;
  --accent: #FF8C42;
  --accent-dim: rgba(255, 140, 66, 0.15);
  --border: rgba(240, 237, 230, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;
  --radius: 6px;
  --radius-lg: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}
.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 140, 66, 0.25);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.65;
}

/* Hero Art — pixel grid */
.hero-art {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-art {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: 220px;
  height: 140px;
}
.grid-cell {
  border-radius: 3px;
  background: rgba(255, 140, 66, 0.1);
  border: 1px solid rgba(255, 140, 66, 0.15);
}
.cell-1, .cell-3, .cell-5, .cell-6, .cell-9, .cell-11, .cell-14 { background: rgba(255, 140, 66, 0.4); }
.cell-7, .cell-13 { background: var(--accent); }
.cell-8 { background: rgba(255, 140, 66, 0.7); }

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 66, 0.12);
}
.orbit-1 { width: 280px; height: 280px; }
.orbit-2 { width: 380px; height: 380px; border-color: rgba(255, 140, 66, 0.06); }

.cursor-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(255, 140, 66, 0.6);
  animation: drift 4s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-60px, -40px); }
  to { transform: translate(60px, 40px); }
}

/* === FEATURES === */
.features {
  padding: var(--space-2xl) 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.features-header { margin-bottom: 4rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 480px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: rgba(255, 140, 66, 0.3); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === MANIFESTO === */
.manifesto {
  padding: var(--space-xl) 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 3rem;
}
.manifesto-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 140, 66, 0.25);
  white-space: nowrap;
  margin-top: 0.5rem;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 1.25rem;
  font-style: normal;
}
.manifesto-body {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
}

/* === PLATFORMS === */
.platforms {
  padding: var(--space-xl) 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.platforms-header { margin-bottom: 2.5rem; }
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.platform-chip {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all 0.2s ease;
}
.platform-chip:hover { border-color: rgba(255, 140, 66, 0.3); color: var(--accent); }
.stack-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.stack-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.stack-tag {
  font-size: 0.75rem;
  font-family: 'DM Sans', monospace;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 140, 66, 0.08);
  color: var(--accent);
  border: 1px solid rgba(255, 140, 66, 0.15);
}

/* === CLOSING === */
.closing {
  padding: var(--space-2xl) 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.closing-body {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer p { font-size: 0.8rem; color: var(--fg-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.5rem 4rem;
    text-align: left;
    min-height: auto;
    gap: 3rem;
  }
  .hero-art { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .features, .platforms, .closing { padding: 4rem 1.5rem; }
  .nav { padding: 1rem 1.5rem; }
  .tagline { display: none; }
}

@media (max-width: 480px) {
  .platform-grid { gap: 0.5rem; }
  .platform-chip { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
}
