/* ==================== CSS Variables ==================== */
:root {
  /* Colors */
  --bg-dark: #070E16;
  --bg-card: #0E1A24;
  --bg-elevated: #0A141D;
  --border: #163040;
  --border-hover: #1F4660;
  --primary: #06B6D4;
  --primary-light: #22D3EE;
  --accent: #10B981;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --container-max: 1100px;
  --section-padding: 90px 0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ==================== Container ==================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ==================== Typography ==================== */
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  text-align: center;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(6, 182, 212, 0.3);
}

/* ==================== Section Layout ==================== */
.section { padding: var(--section-padding); background: var(--bg-dark); }
.section-alt { background: var(--bg-elevated); }
.section-header { text-align: center; margin-bottom: 56px; }

/* ==================== Header ==================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; display: flex; align-items: center;
  background: rgba(7, 14, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(22, 48, 64, 0.6);
  transition: all 0.3s ease;
}

.header.scrolled { background: rgba(7, 14, 22, 0.95); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text-primary); }

.header-actions { display: flex; gap: 12px; align-items: center; }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: all 0.2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--gradient-primary); color: #04141A; font-weight: 700; box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(6, 182, 212, 0.45); }
.btn-outline { border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-card); }
.btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-ghost { color: var(--text-tertiary); padding: 10px 16px; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ==================== Hero ==================== */
.hero { position: relative; padding: 140px 0 80px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.14) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: 100px; background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.3); font-size: 13px; color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-title { font-family: var(--font-heading); font-size: 54px; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-bottom: 24px; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 660px; margin: 0 auto 40px; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }

/* ==================== Code Block ==================== */
.code-block {
  max-width: 680px; margin: 0 auto; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border);
  overflow: hidden; text-align: left;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(6, 182, 212, 0.1);
}
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.code-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }
.code-url { font-family: var(--font-code); font-size: 13px; color: var(--text-tertiary); }
.code-body { padding: 20px 24px; font-family: var(--font-code); font-size: 14px; line-height: 1.6; overflow-x: auto; }
.code-comment { color: var(--text-tertiary); }
.code-endpoint { color: var(--primary-light); font-weight: 500; display: block; margin: 8px 0; }
.code-auth { color: var(--text-secondary); display: block; margin-bottom: 8px; }
.code-json { color: #E2E8F0; display: block; }

/* ==================== Trust ==================== */
.trust-signal { margin-top: 48px; text-align: center; }
.trust-label { font-size: 14px; color: var(--text-tertiary); margin-bottom: 16px; }
.trust-logos { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.trust-logos span { font-size: 16px; font-weight: 600; color: #475569; }

/* ==================== Features Grid ==================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3); }
.card-icon { margin-bottom: 20px; }
.card-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.card-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ==================== Pricing ==================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); }
.pricing-card-featured { border-color: rgba(6, 182, 212, 0.5); border-width: 2px; box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2); transform: scale(1.03); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 100px; background: var(--gradient-primary); color: #04141A; white-space: nowrap; }
.pricing-name { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 16px; }
.pricing-card-featured .pricing-name { color: var(--text-primary); }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price { font-family: var(--font-heading); font-size: 40px; font-weight: 800; color: var(--text-primary); }
.price-unit { font-size: 16px; color: var(--text-tertiary); }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-features li { font-size: 14px; color: var(--text-secondary); padding-left: 24px; position: relative; }
.pricing-features li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 11L12 14L20 6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }

/* ==================== Final CTA ==================== */
.final-cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 1000px; height: 400px; background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-heading); font-size: 44px; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.cta-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-trust { font-size: 14px; color: var(--text-tertiary); margin-top: 24px; }

/* ==================== Footer ==================== */
.footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 56px 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; margin-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer-tagline { font-size: 14px; color: var(--text-tertiary); line-height: 1.6; margin-top: 16px; }
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--text-tertiary); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 13px; color: var(--text-tertiary); }
.footer-powered { font-size: 13px; color: #475569; }

/* ==================== Animations ==================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card-featured { transform: none; }
}

@media (max-width: 768px) {
  .header-actions { gap: 8px; }
  .hero-title { font-size: 34px; }
  .section-title { font-size: 26px; }
  .cta-title { font-size: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .code-block { max-width: 100%; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 60px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 27px; }
  .section-title { font-size: 22px; }
  .container { padding: 0 16px; }
}
