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

:root {
  --bg: #06060a;
  --surface: #0c0c14;
  --surface-2: #111120;
  --border: #1a1a2e;
  --blue: #3b82f6;
  --sky: #38bdf8;
  --text: #f0f0f5;
  --text-dim: #6b7280;
  --text-muted: #374151;
  --green: #22c55e;
  --amber: #f59e0b;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 800; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 40px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.stat:first-child { padding-left: 0; }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === TERMINAL === */
.hero-right { display: flex; align-items: center; }

.code-terminal {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(59, 130, 246, 0.05);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.tb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tb-red { background: #ef4444; }
.tb-yellow { background: #f59e0b; }
.tb-green { background: #22c55e; }

.tb-title {
  margin-left: 10px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-line {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tb-prompt {
  color: var(--blue);
  font-weight: 600;
  flex-shrink: 0;
}

.tb-cmd { color: var(--text-dim); }
.tb-success { color: var(--green); }
.tb-warn { color: var(--amber); }
.tb-info { color: var(--sky); }
.tb-dim { color: var(--text-muted); }
.tb-blur { opacity: 0.6; }
.tb-icon { flex-shrink: 0; width: 18px; }
.tb-cursor { color: var(--blue); animation: blink 1s step-end infinite; }

.tb-cursor-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === SCROLL HINT === */
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: absolute;
  bottom: 40px;
  left: 60px;
}

.scroll-text { color: var(--text-muted); }
.scroll-arrow {
  animation: bob 2s ease-in-out infinite;
  color: var(--text-muted);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* === MANIFESTO === */
.manifesto {
  padding: 120px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 32px;
}

.manifesto-text {
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 36px;
}

.manifesto-strike {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.4);
  text-decoration-thickness: 2px;
}

.manifesto-detail {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === FEATURES === */
.features {
  padding: 120px 60px;
  background: var(--bg);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.features-title {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
  cursor: default;
}

.feature-card:hover {
  background: var(--surface-2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--blue);
  margin-bottom: 24px;
}

.feature-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* === STACK === */
.stack-section {
  padding: 120px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stack-title {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 60px;
}

.stack-logos {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 40px;
}

.stack-logo-group {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.stack-logo-group:last-child { border-bottom: none; }

.logo-item {
  padding: 20px 40px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  flex: 1;
  transition: color 0.2s, background 0.2s;
}

.logo-item:hover { color: var(--text); background: var(--surface-2); }
.logo-item:last-child { border-right: none; }

.stack-note {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* === CLOSING === */
.closing {
  padding: 140px 60px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    var(--bg);
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.closing-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface);
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

/* === FOOTER === */
.footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-sep { color: var(--border); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { padding: 80px 28px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .hero-scroll-hint { left: 28px; }
  .manifesto, .features, .stack-section, .closing { padding: 80px 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .stack-logo-group { flex-wrap: wrap; border-bottom: none; }
  .logo-item { border-bottom: 1px solid var(--border); flex: 0 0 50%; text-align: center; }
  .footer { padding: 32px 28px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .logo-item { flex: 0 0 100%; border-right: none; }
}
