/* ─── Variables ─── */
:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --border: #1a1a1f;
  --text: #e8e8ed;
  --text-2: #7a7a85;
  --accent: #7c6cf0;
  --green: #3ecf8e;
  --red: #ef4444;
  --radius: 8px;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ─── Nav ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

#nav.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.nav-cta:hover {
  border-color: #333;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #0a0a0b;
}

.btn-primary:hover {
  background: #34b87d;
}

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

.btn-outline:hover {
  border-color: #333;
  background: rgba(255, 255, 255, 0.04);
}

.btn-text {
  background: none;
  color: var(--text-2);
  padding: 12px 0;
}

.btn-text:hover {
  color: var(--text);
}

/* ─── Hero ─── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(124, 108, 240, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ─── Terminal ─── */
.terminal {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
}

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

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.terminal-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono);
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}

.t-line {
  display: flex;
  gap: 12px;
}

.t-line + .t-line {
  margin-top: 4px;
}

.t-label {
  flex-shrink: 0;
  width: 32px;
  font-weight: 500;
  text-align: right;
}

.t-user {
  color: var(--text-2);
}

.t-user .t-label {
  color: var(--accent);
}

.t-bot {
  color: var(--green);
}

.t-bot .t-label {
  color: var(--green);
}

/* ─── Feature list ─── */
.feature-list {
  max-width: 600px;
}

.feature-list li {
  padding: 16px 0 16px 20px;
  border-left: 2px solid var(--border);
  font-size: 16px;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}

.feature-list li:hover {
  border-left-color: var(--accent);
}

.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Steps ─── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.step {
  text-align: center;
  flex: 0 1 220px;
}

.step-num {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-2);
}

.step-line {
  width: 64px;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
  flex-shrink: 0;
}

/* ─── Stack grid ─── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.stack-item {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}

.stack-item:hover {
  background: rgba(124, 108, 240, 0.04);
}

.stack-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.stack-desc {
  font-size: 13px;
  color: var(--text-2);
}

.stack-license {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  opacity: 0.7;
}

.stack-footer {
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
  padding-top: 8px;
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.pricing-featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 500;
  vertical-align: top;
  position: relative;
  top: 6px;
  margin-right: 2px;
}

.pricing-period {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
}

.pricing-features {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(26, 26, 31, 0.5);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  margin-top: 32px;
}

/* ─── Trust bar ─── */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-2);
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Footer ─── */
.footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

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

.footer-location {
  font-size: 14px;
  color: var(--text-2);
}

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 64px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step-line {
    width: 1px;
    height: 32px;
    margin: 0;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .terminal-body {
    font-size: 12px;
    padding: 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .t-label {
    width: 24px;
    font-size: 11px;
  }
}
