/* ─── Variables ─── */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;
  --green-950: #022c22;

  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #f8fafb;
  --border: #e2e8f0;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1100px;

  --glow: 0 0 80px rgba(52, 211, 153, 0.3);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: none; border-radius: 10px; cursor: pointer;
  transition: all 0.25s var(--ease); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
}
.btn-outline { background: transparent; color: var(--green-600); border: 2px solid var(--green-600); }
.btn-outline:hover { background: var(--green-50); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--green-800); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-sm { padding: 8px 18px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; padding: 14px 24px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── Header ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--green-700); }
.logo svg { color: var(--green-600); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav a:hover { color: var(--green-600); }
.header-cta { margin-left: 8px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─── Hero ─── */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, #022c22 0%, #064e3b 30%, #065f46 60%, #047857 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; top: -300px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(52,211,153,0.25) 0%, transparent 60%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -200px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 500px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: rgba(52, 211, 153, 0.15); border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green-400);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  border-radius: 100px; margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--green-400); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; } 50% { opacity: 1; }
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 56px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--green-400); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 36px; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-actions .btn-primary {
  background: #fff; color: var(--green-800);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
  font-size: 17px; padding: 16px 36px;
}
.hero-actions .btn-primary:hover {
  box-shadow: 0 8px 40px rgba(255,255,255,0.3); transform: translateY(-2px);
}
.hero-actions .btn-primary svg { stroke: var(--green-600); }
.hero-trust { font-size: 13px; color: rgba(255,255,255,0.4); }

/* Hero Mockup */
.hero-mockup {
  background: rgba(255,255,255,0.05); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), var(--glow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mockup-url { margin-left: 12px; font-size: 11px; color: rgba(255,255,255,0.35); }
.mockup-screen { position: relative; }
.mockup-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; background: var(--green-700);
}
.tb-icon { width: 20px; height: 20px; border-radius: 4px; background: rgba(255,255,255,0.15); }
.tb-icon.active { background: rgba(255,255,255,0.3); }
.tb-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); margin: 0 4px; }
.tb-color { width: 18px; height: 18px; border-radius: 4px; background: #ef4444; border: 2px solid rgba(255,255,255,0.3); }
.tb-select { width: 50px; height: 20px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.mockup-content { padding: 16px; min-height: 220px; background: rgba(255,255,255,0.95); position: relative; }
.mc-header { width: 100%; height: 10px; background: var(--green-200); border-radius: 5px; margin-bottom: 14px; }
.mc-hero-block { width: 70%; height: 44px; background: linear-gradient(135deg, var(--green-100), var(--green-50)); border-radius: 8px; margin-bottom: 18px; }
.mc-cards { display: flex; gap: 8px; margin-bottom: 16px; }
.mc-card { flex: 1; height: 55px; background: #fff; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.mc-arrow { position: absolute; top: 95px; right: 30px; }
.mc-blur { position: absolute; bottom: 44px; left: 20px; width: 80px; height: 32px; background: rgba(100,100,100,0.25); border-radius: 6px; backdrop-filter: blur(5px); }
.mc-text { position: absolute; bottom: 22px; right: 20px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #ef4444; }

/* ─── Section Headers ─── */
.section-header { text-align: center; max-width: 560px; margin: 0 auto 60px; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px;
}
.section-header p { font-size: 17px; color: var(--ink-soft); }

/* ─── Features ─── */
.features { padding: 110px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 30px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--green-600));
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--green-300); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(5,150,105,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: 12px; margin-bottom: 18px; color: var(--green-600);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ─── How it works ─── */
.how-it-works { padding: 110px 0; background: var(--green-950); color: #fff; position: relative; overflow: hidden; }
.how-it-works::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(52,211,153,0.1) 0%, transparent 70%);
}
.how-it-works .section-header h2 { color: #fff; }
.how-it-works .section-header p { color: rgba(255,255,255,0.5); }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; position: relative; z-index: 1; }
.step { text-align: center; flex: 1; max-width: 280px; padding: 0 24px; }
.step-num {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: var(--green-950);
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  border-radius: 16px; margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}
.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.step p { font-size: 15px; color: rgba(255,255,255,0.55); }
.step-connector { width: 60px; height: 2px; background: rgba(52, 211, 153, 0.25); margin-top: 28px; flex-shrink: 0; }

/* ─── Pricing ─── */
.pricing { padding: 110px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.price-card {
  padding: 36px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); position: relative; transition: all 0.3s var(--ease);
}
.price-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.price-card-pro { border-color: var(--green-400); border-width: 2px; background: linear-gradient(180deg, var(--green-50) 0%, #fff 40%); }
.price-badge {
  position: absolute; top: -13px; right: 20px;
  padding: 5px 16px; background: linear-gradient(135deg, var(--green-500), var(--green-700)); color: #fff;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  border-radius: 100px; box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}
.price-tier { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.price-amount { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.price-currency { font-size: 24px; vertical-align: top; margin-right: 2px; }
.price-period { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.price-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.price-features { margin-bottom: 32px; }
.price-features li {
  padding: 10px 0 10px 28px; font-size: 14.5px; color: var(--ink-soft);
  position: relative; border-bottom: 1px solid var(--surface-alt);
}
.price-features li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 9px;
}
.pricing-note { text-align: center; font-size: 13px; color: var(--ink-muted); margin-top: 28px; }

/* ─── API Promo ─── */
.api-promo {
  padding: 120px 0;
  background: linear-gradient(160deg, #022c22 0%, #064e3b 40%, #047857 100%);
  position: relative; overflow: hidden;
}
.api-promo::before {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(52,211,153,0.2) 0%, transparent 60%);
  animation: float 10s ease-in-out infinite;
}
.api-promo::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 60%);
  animation: float 12s ease-in-out infinite reverse;
}
.api-header {
  text-align: center; max-width: 600px; margin: 0 auto 56px; position: relative; z-index: 1;
}
.api-eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-400); margin-bottom: 14px;
}
.api-header h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px);
  font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em;
}
.api-header p { font-size: 18px; color: rgba(255,255,255,0.6); }

.api-features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 48px; position: relative; z-index: 1;
}
.api-card {
  padding: 24px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); transition: all 0.3s var(--ease);
}
.api-card:hover {
  background: rgba(255,255,255,0.1); border-color: var(--green-400);
  transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.api-card-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(52,211,153,0.15); border-radius: 10px; margin-bottom: 14px; color: var(--green-400);
}
.api-card-icon svg { width: 22px; height: 22px; }
.api-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.api-card p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.55; }

.api-bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  position: relative; z-index: 1;
}
.api-code {
  background: #0a0f1a; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.code-bar { display: flex; gap: 5px; padding: 12px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.api-code pre { padding: 22px; overflow-x: auto; }
.api-code code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.55); white-space: pre; }
.c-kw { color: #c792ea; }
.c-fl { color: #89ddff; }
.c-str { color: #c3e88d; }

.api-cta-block {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 32px;
  display: flex; align-items: center; gap: 28px;
  backdrop-filter: blur(8px);
}
.api-cta-text { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.api-cta-number {
  font-family: var(--font-display); font-size: 64px; font-weight: 800;
  color: var(--green-400); line-height: 1;
}
.api-cta-label { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.3; }
.api-cta-right { flex: 1; }
.api-cta-right p { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.btn-api-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: 10px;
  background: #fff; color: var(--green-800);
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
  text-decoration: none;
}
.btn-api-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,255,255,0.25);
}
.btn-api-cta svg { stroke: var(--green-600); }

/* ─── FAQ ─── */
.faq { padding: 110px 0; background: var(--surface-alt); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 22px 0; font-family: var(--font-display); font-size: 16px; font-weight: 600;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--green-600); }
.faq-item summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--ink-muted); transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.faq-item p a { color: var(--green-600); text-decoration: underline; }

/* ─── Footer ─── */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo svg { color: var(--green-400); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); }
.footer-links h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,0.4); padding: 5px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); }

/* ─── Reveal ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { align-items: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .api-features-grid { grid-template-columns: repeat(2, 1fr); }
  .api-bottom { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: 34px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 20px; }
  .step-connector { width: 2px; height: 30px; margin: 0 auto; }
  .api-features-grid { grid-template-columns: 1fr; }
  .api-cta-block { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
