/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=JetBrains+Mono:wght@600;700;800&display=swap');

/* === Design Tokens === */
:root {
  /* Dark mode (default) */
  --bg: #090e18;
  --text: #ffffff;
  --text-muted: #7a9bb5;
  --text-faint: #556;
  --accent-orange: #e8842a;
  --accent-blue: #2d8ac7;
  --card-bg: rgba(232,132,42,0.08);
  --card-border: rgba(232,132,42,0.18);
  --input-bg: rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --divider: rgba(232,132,42,0.15);
  --surface: rgba(255,255,255,0.03);
  --surface-border: rgba(255,255,255,0.06);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --text: #0f1a2e;
    --text-muted: #5a7a8f;
    --text-faint: #8a9aaa;
    --card-bg: linear-gradient(135deg, #f0f6fa, #e8f0f6);
    --card-border: #d4e2ec;
    --input-bg: #f4f7fa;
    --input-border: #d4e2ec;
    --divider: #e8edf2;
    --surface: #f4f7fa;
    --surface-border: #d4e2ec;
  }
}

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

html { scroll-behavior: smooth; }

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

/* === Layout === */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent-orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-orange);
  font-family: 'JetBrains Mono', monospace;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* === Hero === */
.hero {
  padding: 60px 0 48px;
  text-align: center;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}

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

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

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

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

.btn-blue {
  background: var(--accent-blue);
}

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

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

/* === Section Label === */
.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-orange);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

/* === Featured Product === */
.featured {
  padding-bottom: 48px;
}

.featured-card {
  background: linear-gradient(135deg, rgba(45,138,199,0.1), rgba(232,132,42,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px;
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.featured-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.featured-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
}

.featured-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

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

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.featured-point {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 12px;
}

.featured-point-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 3px;
}

.featured-point-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.featured-ctas {
  display: flex;
  gap: 10px;
}

/* === Services === */
.services {
  padding-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 22px;
}

.service-card-icon {
  margin-bottom: 12px;
}

.service-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.service-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-card-desc strong {
  color: var(--text);
}

/* === Contact === */
.contact {
  padding-bottom: 48px;
}

.contact h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.contact .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row input {
  flex: 1;
}

.form-field {
  display: block;
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field:focus {
  border-color: var(--accent-blue);
}

.form-field::placeholder {
  color: var(--text-faint);
}

textarea.form-field {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 10px;
}

.form-feedback {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

.form-feedback--success {
  color: #22d68a;
}

.form-feedback--error {
  color: #ff4d6a;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--divider);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* === Product Page === */
.product-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.product-hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.product-hero p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-hero .hero-ctas {
  margin-bottom: 12px;
}

.product-hero .widget-hint {
  font-size: 11px;
  color: var(--text-faint);
}

/* Feature grid */
.features {
  padding-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 20px;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(45,138,199,0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing */
.pricing {
  padding-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

.pricing-card--featured {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(45,138,199,0.08), rgba(45,138,199,0.02));
}

.pricing-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
}

.pricing-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.pricing-features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.pricing-features li {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
}

/* Final CTA */
.final-cta {
  padding-bottom: 48px;
  text-align: center;
}

.final-cta h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* === Light mode overrides === */
@media (prefers-color-scheme: light) {
  .service-card {
    background: linear-gradient(135deg, #f0f6fa, #e8f0f6);
  }

  .featured-card {
    background: linear-gradient(135deg, rgba(45,138,199,0.08), rgba(232,132,42,0.04));
    border-color: var(--card-border);
  }

  .featured-point {
    background: rgba(0,0,0,0.03);
  }

  .feature-card {
    background: #f4f7fa;
    border-color: #d4e2ec;
  }

  .feature-card-icon {
    background: rgba(45,138,199,0.1);
  }

  .pricing-card {
    background: #f4f7fa;
    border-color: #d4e2ec;
  }

  .pricing-card--featured {
    background: linear-gradient(135deg, rgba(45,138,199,0.06), rgba(45,138,199,0.02));
    border-color: var(--accent-blue);
  }
}

/* === Responsive === */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

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

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

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

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

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

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

  .form-row {
    flex-direction: column;
  }

  .form-row input {
    width: 100%;
  }

  .product-hero h1 {
    font-size: 22px;
  }
}
