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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-terminal: #0d0d14;
  --border: #1e1e2e;
  --text: #e4e4ef;
  --text-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --green: #00e676;
  --yellow: #ffd600;
  --red: #ff5252;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* === Sections === */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 160px 24px 60px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* === Install box === */
.hero-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px 12px 20px;
  margin-bottom: 28px;
}
.hero-install code {
  font-size: 1rem;
  background: none;
  padding: 0;
  color: var(--green);
}
.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--accent-light); }

/* === Buttons === */
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-light); }
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }

/* === Terminal === */
.terminal-demo { padding-top: 20px; padding-bottom: 20px; }
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(30, 30, 46, 0.5);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }
.terminal-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.terminal-body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
.terminal-line { color: var(--text); }
.prompt { color: var(--accent-light); margin-right: 8px; }
.terminal-output {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.diff-output .g { color: var(--green); }
.diff-output .y { color: var(--yellow); }
.diff-output .r { color: var(--red); }

/* === Platforms === */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}
.platform-card:hover { border-color: var(--accent); }
.platform-name { font-weight: 600; font-size: 1.1rem; }
.platform-tags { display: flex; gap: 8px; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-green { background: rgba(0, 230, 118, 0.12); color: var(--green); }
.tag-blue { background: rgba(108, 92, 231, 0.12); color: var(--accent-light); }
.tag-gray { background: rgba(136, 136, 160, 0.12); color: var(--text-muted); }
.platform-status { font-size: 0.85rem; }
.platform-status.live { color: var(--green); }
.platform-status.soon { color: var(--yellow); }
.platform-status.planned { color: var(--text-muted); }

/* === Architecture === */
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.arch-step { text-align: center; }
.arch-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.arch-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 40px;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.arch-ir {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent-light);
}
.arch-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.arch-arrow {
  font-size: 2rem;
  color: var(--text-muted);
}

/* === Why === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === CTA === */
.cta { text-align: center; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-logo { font-weight: 700; color: var(--text); }
.footer-license { font-size: 0.85rem; color: var(--text-muted); }
.footer-license a { color: var(--text-muted); }
.footer-license a:hover { color: var(--text); }
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: var(--text-muted); font-size: 0.9rem; }
.footer-right a:hover { color: var(--text); text-decoration: none; }

/* === Responsive === */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .hero { padding: 120px 16px 40px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; text-align: center; }
}
