
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37,99,235,0.3);
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg: #030712;
  --bg-secondary: #0f172a;
  --bg-card: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--primary), #8b5cf6, #ec4899);
  width: 0%; transition: width 0.1s linear;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ---- NAVBAR ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="dark"] nav { background: rgba(3,7,18,0.85); }
.nav-logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 1002;
}
.nav-menu-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  flex: 1; margin-left: 3rem;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-weight: 500;
  font-size: 0.9rem; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: 8px; border: none;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.875rem;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 28px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
#themeToggle {
  background: none; border: 1.5px solid var(--border); cursor: pointer;
  color: var(--text); border-radius: 8px; padding: 0.5rem 0.7rem;
  font-size: 1rem; transition: var(--transition);
}
#themeToggle:hover { border-color: var(--primary); color: var(--primary); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 5% 4rem;
  position: relative; overflow: hidden;
  background: #0a0a1a;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('ai-8859373_1280.jpg') center center / cover no-repeat;
  opacity: 1.0;
  filter: saturate(1.2) brightness(1.15);
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    var(--bg-secondary) 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: none;
}
/* Floating orbs */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width:400px;height:400px;background:rgba(37,99,235,0.18);top:-100px;left:-100px;animation-delay:0s; }
.orb2 { width:300px;height:300px;background:rgba(139,92,246,0.14);bottom:5%;right:-80px;animation-delay:3s; }
.orb3 { width:200px;height:200px;background:rgba(236,72,153,0.10);bottom:25%;left:15%;animation-delay:5s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.08); }
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(37,99,235,0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent);
}
.hero-content {
  text-align: center; max-width: 800px; position: relative; z-index: 2; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.3);
  color: var(--primary); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem; animation: fadeInDown 0.6s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; color: rgba(255,255,255,0.75);
  max-width: 600px; margin: 0 auto 2.5rem;
  animation: fadeInUp 0.7s 0.2s ease both;
}
/* typing cursor */
.typing-cursor { border-right: 2px solid var(--primary); animation: blink 0.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-actions .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 12px; }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 0.7s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; font-family:'Space Grotesk',sans-serif; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ---- SECTIONS ---- */
section { padding: 6rem 5%; }
.section-tag {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 100px;
  background: rgba(37,99,235,0.1); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 560px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 4rem; }

/* ---- API CARDS ---- */
#apis { background: var(--bg-secondary); }
.apis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.api-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition); cursor: pointer; position: relative;
  overflow: hidden;
}
.api-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.api-card:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 24px 60px rgba(37,99,235,0.18); border-color: var(--primary); }
.api-card:hover::before { transform: scaleX(1); }
/* shimmer on card */
.api-card::after {
  content:''; position:absolute; inset:0; border-radius:var(--radius);
  background: linear-gradient(120deg,transparent 40%,rgba(37,99,235,0.06) 50%,transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.api-card:hover::after { transform: translateX(100%); }
.api-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
}
.api-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.api-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.api-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.api-tag {
  padding: 0.25rem 0.7rem; border-radius: 6px;
  background: rgba(37,99,235,0.08); color: var(--primary);
  font-size: 0.75rem; font-weight: 600;
}
.api-status {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
}
.status-live { background: rgba(16,185,129,0.1); color: #10b981; }
.status-beta { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* ---- FEATURES ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.feature-card {
  padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(37,99,235,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- HOW IT WORKS ---- */
#how-it-works { background: var(--bg-secondary); }
.steps { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; max-width: 1100px; margin: 0 auto; }
.step {
  flex: 1; min-width: 220px; text-align: center;
  padding: 2rem; background: var(--bg-card);
  border-radius: var(--radius); border: 1px solid var(--border);
  position: relative; transition: var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin: 0 auto 1rem;
}
.step h3 { font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- CODE PLAYGROUND ---- */
#playground { background: var(--bg); }
.playground-wrapper { max-width: 900px; margin: 0 auto; }
.code-tabs { display: flex; gap: 0.5rem; margin-bottom: 0; flex-wrap: wrap; }
.code-tab {
  padding: 0.6rem 1.2rem; border-radius: 8px 8px 0 0;
  border: 1px solid var(--border); border-bottom: none;
  background: var(--bg-secondary); color: var(--text-muted);
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; transition: var(--transition);
}
.code-tab.active, .code-tab:hover { background: var(--bg-card); color: var(--primary); }
.code-block {
  background: #0f172a; border-radius: 0 12px 12px 12px;
  border: 1px solid var(--border); overflow: hidden; position: relative;
}
[data-theme="dark"] .code-block { background: #020617; }
.code-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }
.copy-btn {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6); padding: 0.3rem 0.8rem;
  border-radius: 6px; cursor: pointer; font-size: 0.8rem;
  font-family: 'Inter', sans-serif; transition: var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
pre {
  padding: 1.5rem; overflow-x: auto; font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; line-height: 1.7;
}
.code-content { display: none; }
.code-content.active { display: block; }
.kw { color: #8b5cf6; }
.str { color: #34d399; }
.com { color: #6b7280; }
.fn { color: #60a5fa; }
.num { color: #f97316; }
.var { color: #f1f5f9; }

/* ---- TESTIMONIALS ---- */
#testimonials { background: var(--bg-secondary); }
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.testi-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 1rem; }
.testi-text { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.testi-name { font-weight: 700; font-size: 0.9rem; }
.testi-role { font-size: 0.8rem; color: var(--text-muted); }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1050px; margin: 0 auto; align-items: start;
}
.pricing-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  position: relative; transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 0.25rem 1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.pricing-plan { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.pricing-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.5rem; }
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--text-muted); }
.price-amount { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.price-period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.pricing-features li.no::before { content: '✗'; color: var(--text-muted); }
.pricing-features li.no { color: var(--text-muted); }

/* ---- TRIAL KEY FORM ---- */
.trial-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  padding: 5rem 5%; text-align: center;
}
.trial-section h2 { color: #fff; font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 1rem; }
.trial-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2.5rem; }
.trial-form {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; max-width: 560px; margin: 0 auto;
}
.trial-input {
  flex: 1; min-width: 220px; padding: 0.85rem 1.2rem;
  border-radius: 10px; border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 0.95rem; font-family: 'Inter',sans-serif;
  outline: none; transition: var(--transition);
}
.trial-input::placeholder { color: rgba(255,255,255,0.6); }
.trial-input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.18); }
.btn-white {
  background: #fff; color: var(--primary);
  border: none; font-weight: 700; padding: 0.85rem 1.8rem;
  border-radius: 10px; cursor: pointer; font-family: 'Inter',sans-serif;
  font-size: 0.95rem; transition: var(--transition);
}
.btn-white:hover { background: #f1f5f9; transform: translateY(-1px); }
#trial-result { margin-top: 1.5rem; }
.key-display {
  display: inline-flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px; padding: 0.8rem 1.4rem; color: #fff; font-family: 'JetBrains Mono',monospace; font-size: 0.9rem;
}

/* ---- FAQ ---- */
#faq { background: var(--bg-secondary); }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  user-select: none;
}
.faq-arrow { transition: transform 0.3s; color: var(--text-muted); font-size: 1.2rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 1.5rem 1.2rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ---- FOOTER ---- */
footer {
  background: #030712; color: rgba(255,255,255,0.7);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-20px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes floatUp {
  0%,100% { transform:translateY(0); }
  50%     { transform:translateY(-12px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-text {
  background: linear-gradient(270deg, #38bdf8, #a78bfa, #f472b6, #fbbf24);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }
/* floating api card icons */
.api-card-icon { animation: floatUp 4s ease-in-out infinite; }
.api-card:nth-child(2) .api-card-icon { animation-delay:0.5s; }
.api-card:nth-child(3) .api-card-icon { animation-delay:1s; }
.api-card:nth-child(4) .api-card-icon { animation-delay:1.5s; }
.api-card:nth-child(5) .api-card-icon { animation-delay:2s; }
.api-card:nth-child(6) .api-card-icon { animation-delay:2.5s; }

/* ---- RESPONSIVE ---- */
@media(max-width:768px) {
  section {
    padding: 4rem 4% 3rem;
  }
  .section-title {
    font-size: 1.85rem;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  nav {
    padding: 0.75rem 4%;
  }
  nav .nav-logo {
    font-size: 1.25rem;
    white-space: nowrap;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 1000;
    padding: 2rem;
    pointer-events: none;
    opacity: 0;
  }
  .nav-menu-wrapper.open {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
  }
  nav .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }
  nav .nav-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  nav .nav-actions .btn-outline {
    display: inline-flex;
  }
  
  /* Hamburger Open State animation */
  nav.menu-open .hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
  }
  nav.menu-open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  nav.menu-open .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .hero {
    padding: 8rem 4% 4rem;
  }
  .hero h1 {
    display: none; /* Hide 'Your API Khajana For Every Need' in mobile view */
  }
  .hero-badge {
    margin-bottom: 1.5rem;
  }
  #hero-sub {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 4.5rem; /* Pushes buttons lower in mobile view */
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-stats {
    display: none !important; /* Hide '50+ API Endpoints', '12,000+ Developers', etc. on mobile */
  }
  
  .code-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .code-tab {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .faq-q {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }
  .faq-a-inner {
    padding: 0 1.2rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .steps { flex-direction: column; align-items: center; }
  
  .trial-form {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .trial-input, .btn-white {
    width: 100%;
    text-align: center;
  }
  
  /* Disable scroll reveal and float animations on mobile devices */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .api-card-icon {
    animation: none !important;
  }
}
@media(max-width:480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats {
    display: none !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius:4px; }
