/* ============================================================
   APICar LP — Design System & Styles
   ============================================================ */

/* --- Reset & Variables --- */
:root {
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: hsl(199, 89%, 48%);
  --accent-secondary: hsl(199, 89%, 30%);
  --accent-gradient: linear-gradient(135deg, hsl(199, 89%, 48%) 0%, hsl(199, 89%, 30%) 100%);
  --accent-glow: hsla(199, 89%, 48%, 0.3);
  --green: #10b981;
  --red: #f43f5e;
  --yellow: #f59e0b;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --radius: 1rem;
  --radius-lg: 2rem;
  --shadow-sm: 0 4px 16px -2px rgba(0,0,0,.07), 0 1px 4px -1px rgba(0,0,0,.05);
  --shadow-md: 0 12px 28px -4px rgba(0,0,0,.11), 0 4px 8px -2px rgba(0,0,0,.07);
  --shadow-lg: 0 20px 48px -8px rgba(0,0,0,.15), 0 8px 16px -4px rgba(0,0,0,.1);
  --font-sans: 'Zen Kaku Gothic New', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #8ba0ff; }

code { font-family: var(--font-mono); font-size: 0.85em; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(199, 89%, 48%, 0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.1);
  color: var(--text-primary);
}

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 999px; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(241, 245, 249, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon { font-size: 24px; }
.logo-text {
  font-size: 20px;
  font-weight: 400;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 10px 20px;
  background: var(--accent-gradient);
  color: white !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafc 0%, #e6f4fb 55%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(199, 89%, 48%, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(199, 89%, 48%, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--accent-primary);
  top: -200px; right: -100px;
  opacity: 0.15;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--accent-secondary);
  bottom: 0; left: -100px;
  opacity: 0.1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: hsla(199, 89%, 48%, 0.1);
  border: 1px solid hsla(199, 89%, 48%, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
  background-image: repeating-linear-gradient(-45deg, hsla(199, 89%, 48%, 0.15) 0, hsla(199, 89%, 48%, 0.15) 3px, transparent 3px, transparent 6px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 40%;
  padding-bottom: 4px;
  color: var(--text-primary);
  -webkit-text-fill-color: initial;
  background-clip: border-box;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.stat-number {
  font-size: 28px;
  font-weight: 400;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-code {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* --- Code Block --- */
.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.code-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }

.code-body {
  padding: 20px;
  background: #f8fafc;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #e0e0ff;
}

.code-comment { color: #6a6a8a; }
.code-cmd { color: #00d4aa; }
.code-string { color: #ffd93d; }
.code-key { color: #667eea; }
.code-number { color: #f5576c; }
.code-placeholder { color: var(--text-secondary); font-style: italic; }

/* --- Section Common --- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge { display: block; font-family: var(--font-heading); font-size: 0.65rem; font-weight: 300; letter-spacing: 0.28em; color: var(--accent-primary); text-transform: uppercase; margin-bottom: 0.6rem; background: none; border: none; padding: 0; }
.section-title { font-size: clamp(1.5rem, 5vw, 2.4rem); font-family: var(--font-heading); font-weight: 300; margin-bottom: 0.75rem; letter-spacing: 0.06em; line-height: 1.3; color: var(--text-primary); }
.section-subtitle { font-size: 0.875rem; color: var(--text-muted); letter-spacing: 0.06em; max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* --- Features --- */
.features {
  padding: 120px 0;
  background: var(--bg-surface);
}

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

.feature-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: hsl(199, 89%, 80%); transform: translateY(-2px); }
.feature-card.featured {
  border-color: hsla(199, 89%, 48%, 0.3);
  background: linear-gradient(135deg, hsla(199, 89%, 48%,0.08), hsla(199, 89%, 30%,0.08));
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(199, 89%, 48%, 0.1);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent, var(--accent-primary));
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--accent-gradient);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* --- Demo --- */
.demo {
  padding: 120px 0;
}

.demo-container {
  max-width: 800px;
  margin: 0 auto;
}

.demo-input-area {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.demo-field {
  flex: 1;
  min-width: 180px;
}
.demo-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.demo-field input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.demo-field input:focus,
.demo-field select:focus {
  border-color: var(--accent-primary);
}
.demo-field input::placeholder { color: var(--text-secondary); }

.demo-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.demo-field select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.demo-notice {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.demo-input-area .btn {
  align-self: flex-end;
}

.demo-result {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.demo-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.demo-status.ready { color: var(--text-secondary); }
.demo-status.loading { color: var(--yellow); }
.demo-status.success { color: var(--green); }
.demo-status.error { color: var(--red); }

/* Demo Tabs */
.demo-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.demo-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-tab:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.demo-tab.active {
  color: var(--text-primary);
  background: #f8fafc;
  border-color: var(--border);
}

.demo-tab-badge {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-gradient);
  color: white;
  border-radius: 4px;
}

/* --- Pricing --- */
.pricing {
  padding: 120px 0;
  background: var(--bg-surface);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.toggle-label.active { color: var(--text-primary); }

.toggle-discount {
  background: rgba(0, 212, 170, 0.15);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { box-shadow: var(--shadow-md); border-color: hsl(199, 89%, 80%); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, hsla(199, 89%, 48%,0.08) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.02);
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent-gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 24px; }
.pricing-name {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}
.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.pricing-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.price-amount {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.price-period {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li code {
  background: hsla(199, 89%, 48%, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-primary);
}

.pricing-features .included { color: var(--text-primary); }
.pricing-features .excluded { color: var(--text-secondary); }
.pricing-features .highlight { color: var(--accent-primary); }

.check { color: var(--green); font-weight: 700; }
.cross { color: var(--text-secondary); }

.pricing-cta { width: 100%; justify-content: center; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

/* --- Docs --- */
.docs {
  padding: 120px 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.docs-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.docs-step {
  font-size: 48px;
  font-weight: 300;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.docs-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.docs-card p {
  font-size: 14px;
  color: var(--text-secondary);
}
.docs-code {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
}

.docs-endpoints {
  max-width: 800px;
  margin: 0 auto;
}
.docs-endpoints h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.endpoint:hover { border-color: var(--border-hover); }

.method {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  flex-shrink: 0;
}
.method.get { background: rgba(0, 212, 170, 0.15); color: var(--green); }
.method.post { background: hsla(199, 89%, 48%, 0.15); color: var(--accent-primary); }

.endpoint .path {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.endpoint .desc {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.plan-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.plan-tag.all { background: rgba(0,212,170,0.1); color: var(--green); }
.plan-tag.pro { background: hsla(199, 89%, 48%,0.1); color: var(--accent-primary); }

@media (max-width: 768px) {
  .docs-grid { grid-template-columns: 1fr; }
  .endpoint { flex-wrap: wrap; }
  .endpoint .desc { flex-basis: 100%; order: 4; }
}

/* --- FAQ --- */
.faq {
  padding: 120px 0;
  background: var(--bg-surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: hsla(199, 89%, 48%, 0.3); }

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  padding: 80px 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.cta-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  margin-bottom: 12px;
  position: relative;
}
.cta-content p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-actions .btn-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-actions .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.cta-actions .btn-ghost {
  background: rgba(0,0,0,0.2);
  color: white;
  border: 1px solid rgba(0,0,0,0.3);
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
}
.footer-company {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  margin-top: 4px !important;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-source { margin-top: 8px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Scroll-triggered animations */
.feature-card,
.docs-card,
.pricing-card,
.faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.feature-card.visible,
.docs-card.visible,
.pricing-card.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.pricing-card.featured.visible {
  transform: scale(1.02);
}

.mark { background-image: repeating-linear-gradient(-45deg, hsla(199, 89%, 48%, 0.15) 0, hsla(199, 89%, 48%, 0.15) 3px, transparent 3px, transparent 6px); background-repeat: no-repeat; background-position: left bottom; background-size: 100% 40%; padding-bottom: 2px; }
/* --- Excel Integration --- */
.excel-integration {
  padding: 100px 0;
  background: var(--bg-surface);
}
.excel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}
.excel-feature {
  margin-bottom: 30px;
}
.excel-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: hsla(199, 89%, 48%, 0.1);
  color: var(--accent-primary);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.excel-feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 38px;
  line-height: 1.6;
}
.excel-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .excel-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
