* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --card: #13131d;
  --border: rgba(255,255,255,0.06);
  --text: #f0f0f5;
  --text-dim: #a0a0b0;
  --text-mute: #606070;
  --accent: #f97316;
  --teal: #14b8a6;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.container.narrow {
  max-width: 768px;
}

.center {
  text-align: center;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #000;
  font-size: 14px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
}

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

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

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #fb923c;
  box-shadow: 0 0 30px rgba(249,115,22,0.3);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #0a0a0f;
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Hero */
.hero {
  padding: 128px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(249,115,22,0.15);
  color: var(--accent);
  border: 1px solid rgba(249,115,22,0.25);
}

.hero h1 {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-dim);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline {
  border: 1px solid #333;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
}

.hero-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-mute);
}

/* Matrix */
.matrix {
  padding: 64px 24px;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.matrix-inner {
  max-width: 800px;
  margin: 0 auto;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

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

.live-indicator span {
  font-size: 14px;
  color: var(--text-dim);
}

.matrix-comment {
  font-size: 12px;
  font-family: monospace;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.matrix-count {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.matrix-desc {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 24px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.cell {
  aspect-ratio: 1;
  border-radius: 4px;
}

.cell.on {
  background: var(--teal);
}

.cell.off {
  background: #333;
}

/* Sections */
.section {
  padding: 96px 24px;
}

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

.section h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 64px;
  font-size: 18px;
}

/* Cards */
.cards-3, .cards-4 {
  display: grid;
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 24px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-num {
  font-size: 14px;
  font-family: monospace;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.card h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* How it works */
.how-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-auto {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
}

.btn-step {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-step:hover {
  border-color: var(--accent);
}

.how-content {
  padding: 32px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
}

.how-num {
  font-size: 14px;
  font-family: monospace;
  color: var(--text-mute);
  margin-bottom: 8px;
}

.how-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* MCP */
.mcp-code {
  padding: 24px;
  border-radius: 12px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #000;
  border: 1px solid var(--border);
}

.mcp-label {
  font-size: 12px;
  font-family: monospace;
  color: var(--text-mute);
}

.mcp-command {
  font-size: 14px;
  color: var(--teal);
  flex: 1;
}

.btn-copy {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
}

/* Pricing */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover, .tab.active {
  border-color: var(--accent);
}

.pricing-card {
  padding: 32px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
}

.pricing-credits {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 18px;
  color: var(--text-mute);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.faq-question span {
  font-size: 20px;
  color: var(--text-mute);
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* CTA */
.cta {
  padding: 96px 24px;
  background: var(--accent);
  text-align: center;
}

.cta h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
}

.cta p {
  color: rgba(0,0,0,0.7);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #000;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-cta-primary:hover {
  background: #333;
}

.btn-cta-outline {
  border: 2px solid #000;
  color: #000;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-cta-outline:hover {
  background: rgba(0,0,0,0.1);
}

/* Footer */
.footer {
  padding: 64px 24px;
  background: #000;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dim);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

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

.footer-col a:hover {
  color: #fff;
}

.footer-form {
  display: flex;
}

.footer-form input {
  flex: 1;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px 0 0 8px;
  color: #fff;
  font-size: 14px;
}

.footer-form button {
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-mute);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-mute);
}

.footer-links a:hover {
  color: #fff;
}

/* Product page */
.product-hero {
  padding: 128px 24px 64px;
  text-align: center;
}

.product-features {
  padding: 64px 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px;
  border-radius: 12px;
  background: #13131d;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(249,115,22,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #a0a0b0;
}

/* Auth pages */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 448px;
  padding: 32px;
  border-radius: 12px;
  background: #13131d;
  border: 1px solid rgba(255,255,255,0.06);
}

.auth-card h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card .sub {
  color: #a0a0b0;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #a0a0b0;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #f97316;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #a0a0b0;
}

.form-options a {
  font-size: 14px;
  color: #f97316;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: #f97316;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-full:hover {
  background: #fb923c;
}

.auth-link {
  text-align: center;
  font-size: 14px;
  margin-top: 24px;
  color: #606070;
}

.auth-link a {
  color: #f97316;
}

/* Pricing page */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ==================== */
/* RESPONSIVE BREAKPOINTS */
/* ==================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 80px 24px;
  }

  .section {
    padding: 64px 24px;
  }

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

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

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

  .mcp-code {
    flex-direction: column;
    align-items: flex-start;
  }

  .mcp-command {
    word-break: break-all;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  .hero {
    padding: 64px 16px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 48px 16px;
  }

  .section h2 {
    font-size: 28px;
  }

  .cards-3, .cards-4 {
    grid-template-columns: 1fr;
  }

  .matrix-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .how-menu {
    justify-content: center;
  }

  .how-content {
    padding: 24px;
  }

  .pricing-tabs {
    justify-content: center;
  }

  .pricing-card {
    padding: 24px;
  }

  .pricing-price {
    font-size: 36px;
  }

  .cta {
    padding: 64px 16px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons a {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .auth-card {
    padding: 24px;
  }

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

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

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .badge {
    font-size: 10px;
    padding: 4px 12px;
  }

  .matrix-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .btn-primary, .btn-outline {
    padding: 12px 24px;
    font-size: 14px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }
}
