:root {
  --bg: #0a0a0f;
  --surface: #121218;
  --surface-2: #14141c;
  --border: #1e1e24;
  --border-strong: #27272a;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #6366f1;
  --accent-hover: #5558e6;
  --accent-soft: #c7c8ff;
  --footer: #52525b;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

nav.container {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
}
nav .logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
nav .logo span { color: var(--accent); }
nav .nav-links { display: flex; align-items: center; gap: 32px; }
nav .nav-links a { padding: 6px 0; font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color .2s; }
nav .nav-links a:hover { color: #fff; }
nav .nav-links .nav-portal {
  background: var(--accent); color: #fff; padding: 7px 15px; border-radius: 7px;
  font-size: 0.85rem; font-weight: 600;
}
nav .nav-links .nav-portal:hover { background: var(--accent-hover); color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -30%; left: -10%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero .btn-group { justify-content: flex-start; }

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #0d0d13;
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: block; }
.terminal-title { margin-left: 8px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.terminal-body {
  padding: 22px;
  font-size: 0.82rem;
  line-height: 1.95;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.t-prompt { color: var(--accent); }
.t-ok { color: var(--accent-soft); }

.hero-meta {
  list-style: none;
  display: flex;
  gap: 22px;
  margin-top: 44px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.hero-card .material-symbols-rounded {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--border); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.hero-card h4 {
  font-size: 0.98rem; font-weight: 600; margin-bottom: 2px;
}
.hero-card p {
  font-size: 0.84rem; color: var(--muted);
}

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: #fff; }

section { padding: 92px 0; border-top: 1px solid var(--border); }
.hero { border-top: none; }

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 20ch;
}
.section-sub {
  color: var(--muted);
  max-width: 54ch;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.features-grid--bento .feature-card:nth-child(1) { grid-column: span 3; }
.features-grid--bento .feature-card:nth-child(2) { grid-column: span 3; }
.features-grid--bento .feature-card:nth-child(6) { grid-column: span 3; }
.features-grid--bento .feature-card:nth-child(7) { grid-column: span 3; }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent); margin-bottom: 20px;
}
.feature-card:nth-child(1) {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: transparent;
  color: #fff;
}
.feature-card:nth-child(1) .icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.feature-card:nth-child(1) p { color: rgba(255, 255, 255, 0.85); }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

.scale-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 48px;
}
.scale-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; position: relative;
}
.scale-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10) 0%, rgba(99, 102, 241, 0.02) 100%);
}
.scale-icon {
  width: 42px; height: 42px; display: block; margin-bottom: 20px;
  font-size: 2.5rem; color: var(--accent);
}
.scale-count {
  display: block; font-family: var(--mono);
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 20px;
}
.scale-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.scale-card p { font-size: 0.9rem; color: var(--muted); }
.scale-tag {
  display: inline-block; margin-top: 20px; padding: 4px 10px;
  border-radius: 999px; background: var(--border); color: var(--accent-soft);
  font-size: 0.75rem; font-weight: 600; border: 1px solid transparent;
}
.scale-tag-althost { background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.45); padding: 6px 14px; font-size: 0.85rem; }
.scale-tag-althost .wordmark { color: var(--text); font-weight: 600; }
.scale-tag-dot { color: var(--accent); }

.steps { display: flex; flex-direction: column; margin-top: 48px; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step .num {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent); font-weight: 600; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--muted); }

.db-list {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;
}
.db-badge {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 20px; font-weight: 500; font-size: 0.9rem; font-family: var(--mono);
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 32px; max-width: 480px; margin-inline: auto; }

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

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(6),
  .feature-card:nth-child(7) { grid-column: auto; }
  .scale-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2.4rem; }
  nav .nav-links { display: none; }
  section { padding: 64px 0; }
  .section-title { font-size: 1.7rem; }
  .cta { padding: 48px 24px; }
}
