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

:root {
  --color-bg: #0a0a0f;
  --color-surface: #12121a;
  --color-surface-2: #1a1a25;
  --color-text: #f0f0f5;
  --color-text-muted: #888899;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-accent: #22d3ee;
  --color-success: #22c55e;
  --color-border: #27273a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-brand {
  color: var(--color-text);
}

.logo-tld {
  color: var(--color-primary);
}

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

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
}

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

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(34, 211, 238, 0.1), transparent 60%);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* Pricing Table */
.pricing {
  background: var(--color-surface);
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-text);
  font-weight: 600;
}

.pricing-table td {
  color: var(--color-text-muted);
}

.pricing-table .official {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

.pricing-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
}

.pricing-cta {
  text-align: center;
  margin-top: 32px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.feature-list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
}

/* Calculator Table */
.calculator {
  background: var(--color-surface);
}

.calculator-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.calculator-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.calculator-table th,
.calculator-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.calculator-table th {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-text);
  font-weight: 600;
}

.calculator-table td {
  color: var(--color-text-muted);
}

.calculator-table .highlight {
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(34, 211, 238, 0.05);
}

.calculator-table .save {
  color: var(--color-success);
  font-weight: 600;
}

.calculator-table .sub {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.calculator-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 24px;
  line-height: 1.8;
}

/* Users Section */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.user-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.user-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.user-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.user-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.user-cost {
  font-size: 0.85rem !important;
  color: var(--color-accent) !important;
}

/* CTA Section */
.cta-section {
  background:
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2), transparent 70%),
    var(--color-surface);
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

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

.step {
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cta-note a {
  color: var(--color-primary);
}

/* Footer */
.footer {
  background: var(--color-surface-2);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-social a {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 600px;
  text-align: center;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 100;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

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

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
  }
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background: var(--color-surface);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.faq-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item code {
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Code Examples Section */
.code-examples {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.code-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-card h3 {
  padding: 16px 24px;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-primary);
}

.code-card pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  background: #1e1e2e;
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-card code {
  color: #a9b1d6;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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