:root {
  --bg-dark: #080a0f;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-purple: #818cf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8, #818cf8);
  --container-max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Backdrops */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
}

.glow-2 {
  top: 600px;
  right: 10%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12), transparent 70%);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #080a0f;
  font-weight: 700;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 900px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

/* Terminal Mockup */
.hero-mockup {
  width: 100%;
  max-width: 860px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}

.mockup-header {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #1e293b;
  border-bottom: 1px solid var(--bg-card-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.mockup-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.mockup-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-user { color: #38bdf8; font-weight: 600; }
.code-agent { color: #818cf8; font-weight: 600; }
.code-dim { color: #64748b; }
.code-success { color: #10b981; }
.code-check { margin-right: 6px; }
.code-highlight { color: #fde047; font-weight: 500; }

/* Metrics Bar */
.metrics-bar {
  padding: 40px 0;
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  background: rgba(15, 23, 42, 0.4);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-val {
  font-size: 38px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.metric-lbl {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sections Common */
.features-section, .models-section, .pricing-section, .faq-section {
  padding: 100px 0;
}

.section-head {
  margin-bottom: 60px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* How It Works Grid */
.how-section {
  padding: 100px 0;
  border-top: 1px solid var(--bg-card-border);
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
}

.highlight-step {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
}

.step-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.step-glow {
  background: var(--accent-gradient);
  color: #080a0f;
  border: none;
}

.how-icon {
  font-size: 34px;
  margin-bottom: 18px;
}

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

.how-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Models Grid */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.model-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.highlight-box {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.model-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.pro-badge {
  background: var(--accent-gradient);
  color: #080a0f;
}

.model-box h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}

.model-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.model-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-perks li {
  font-size: 14.5px;
  color: #e2e8f0;
  font-weight: 500;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.featured-card {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #080a0f;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
}

.plan-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price {
  margin-bottom: 28px;
}

.amount {
  font-size: 44px;
  font-weight: 800;
}

.period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  color: #cbd5e1;
}

/* FAQ */
.faq-container {
  max-width: 800px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 24px;
}

.faq-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--bg-card-border);
  padding: 60px 0 30px;
  background: #05070a;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

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

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

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

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
}

/* Payment Trust Badges */
.payment-trust {
  margin-top: 50px;
  text-align: center;
  padding: 30px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
}

.trust-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.2s;
}

.badge-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #0d121f;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.15);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.checkout-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.input-text {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-text:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.checkout-actions {
  margin-top: 10px;
}

.modal-error {
  margin-top: 14px;
  font-size: 13px;
  color: #f87171;
  min-height: 18px;
  text-align: center;
}

/* Success Modal */
.success-modal {
  text-align: center;
}

.success-icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.success-modal h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.success-modal p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.license-key-box {
  background: #030712;
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.license-key-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: #38bdf8;
  word-break: break-all;
  letter-spacing: 0.5px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 7px;
  white-space: nowrap;
}

.success-instructions {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.success-instructions strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.success-instructions ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 900px) {
  .hero-title { font-size: 38px; }
  .features-grid, .pricing-grid, .models-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { transform: none; }
}
