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

/* --- Reset & Variables --- */
:root {
  --bg-dark: #0a0a1a;
  --bg-card: #111127;
  --bg-card-hover: #181840;
  --bg-surface: #0d0d24;
  --text-primary: #f0f0ff;
  --text-secondary: #9898b8;
  --text-muted: #6a6a8a;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-glow: rgba(102, 126, 234, 0.3);
  --green: #00d4aa;
  --red: #f5576c;
  --yellow: #ffd93d;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --font-sans: 'Inter', 'Noto Sans JP', -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: 10px;
  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 rgba(102, 126, 234, 0.5);
  color: white;
}

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

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

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

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

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  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: 800;
  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;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 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: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 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: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.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: 800;
  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-muted); 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: #1a1a2e;
  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-muted); font-family: var(--font-mono); }

.code-body {
  padding: 20px;
  background: #0d0d1a;
  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-muted); font-style: italic; }

/* --- Section Common --- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- 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);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card.featured {
  border-color: rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 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-muted);
  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: 10px;
  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-muted); }

.demo-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  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-muted);
  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-muted); }
.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-muted);
  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(255,255,255,0.03); }
.demo-tab.active {
  color: var(--text-primary);
  background: #0d0d1a;
  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-muted);
  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);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(102,126,234,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: 800;
  margin-bottom: 4px;
}
.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
}

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

.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: rgba(102, 126, 234, 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-muted); }
.pricing-features .highlight { color: var(--accent-primary); }

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

.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;
}
.docs-step {
  font-size: 48px;
  font-weight: 900;
  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: rgba(102, 126, 234, 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-muted);
  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: rgba(102,126,234,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: rgba(102, 126, 234, 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-muted);
  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(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.cta-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  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(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,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-muted) !important;
  margin-top: 4px !important;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  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-muted);
}
.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);
}
