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

:root {
  --bg: #0a0a0b;
  --bg-card: #111114;
  --bg-hover: #18181c;
  --border: #222228;
  --text: #e4e4e7;
  --text-dim: #8b8b94;
  --accent: #6ee7b7;
  --accent-dim: #34d399;
  --accent-bg: rgba(110, 231, 183, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
}

.logo-svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-links a:not(.btn) {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm { padding: 6px 16px; font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

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

.btn-outline:hover {
  border-color: var(--text-dim);
  background: var(--bg-hover);
}

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

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(110, 231, 183, 0.12);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Terminal ────────────────────────────────────── */
.terminal-section {
  padding: 40px 0 100px;
}

.terminal {
  background: #0d0d10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

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

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

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

.terminal-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}

.t-comment { color: #555; }
.t-keyword { color: #c084fc; }
.t-fn { color: #60a5fa; }
.t-string { color: #6ee7b7; }
.t-num { color: #fbbf24; }

/* ── Products ────────────────────────────────────── */
.products, .channels, .pricing {
  padding: 100px 0;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 52px;
}

.category-heading {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 20px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.category-heading:first-of-type {
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.product-card:hover {
  border-color: #333;
  background: var(--bg-hover);
}

.product-card.coming-soon {
  border-style: dashed;
  opacity: 0.6;
}

.product-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  object-fit: contain;
}

.product-icon {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  background: var(--accent-bg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(110, 231, 183, 0.1);
}

.product-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-left: auto;
}

.product-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 14px;
  transition: opacity 0.2s;
}

.product-link:hover { opacity: 0.8; }

.product-link-soon {
  color: var(--text-dim);
  font-style: italic;
}

/* ── Channels ────────────────────────────────────── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.channel-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.channel-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.channel-card ul {
  margin-bottom: 24px;
}

.channel-card li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.channel-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.channel-coming-soon {
  opacity: 0.55;
  border-style: dashed;
}

.coming-soon-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(110, 231, 183, 0.12);
  margin-left: 8px;
  vertical-align: middle;
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.text-dim { color: var(--text-dim); }

/* ── Pricing ─────────────────────────────────────── */
.pricing-table {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--bg-card);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

td {
  border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }

td code {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
}

/* ── CTA ─────────────────────────────────────────── */
.cta {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 32px; }
  .stat-num { font-size: 22px; }
  .nav-links a:not(.btn) { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}
