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

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

/* ── Light mode ── */
:root {
  --bg:           #ffffff;
  --bg2:          #f7f8f7;
  --bg3:          #efefef;
  --border:       #e4e4e4;
  --border2:      #c8c8c8;
  --text:         #0d0d0d;
  --text2:        #3a3a3a;
  --muted:        #737373;
  --accent:       #1a7a3a;
  --accent2:      #22a04e;
  --accent-bg:    #f0faf3;
  --accent-border:#b6dfc3;
  --green:        #1a7a3a;
  --red:          #dc2626;
  --yellow:       #d97706;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    6px;
  --nav-bg:       rgba(255,255,255,0.92);
  --code-bg:      #0d0d0d;
  --code-border:  #1e1e1e;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #000000;
    --bg2:          #0d0d0d;
    --bg3:          #181818;
    --border:       #222222;
    --border2:      #333333;
    --text:         #f0f0f0;
    --text2:        #c0c0c0;
    --muted:        #666666;
    --accent:       #22a04e;
    --accent2:      #2ecc66;
    --accent-bg:    #0a1a0f;
    --accent-border:#1a4a2a;
    --green:        #22a04e;
    --red:          #f87171;
    --yellow:       #fbbf24;
    --nav-bg:       rgba(0,0,0,0.92);
    --code-bg:      #0d0d0d;
    --code-border:  #1e1e1e;
  }
}

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Font Awesome icon sizing inside icon boxes ── */
.why-icon i, .feature-icon i { font-size: 16px; }
.why-icon i, .feature-icon i { pointer-events: none; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center;
  padding: 0 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
}
.nav-logo-icon {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.nav-logo-text { color: var(--text); }
.nav-logo-text em { font-style: normal; color: var(--accent); font-weight: 800; }

@media (prefers-color-scheme: dark) {
  .nav-logo-text { color: #ffffff; }
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .2s;
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--text2);
  transition: background .15s;
}
.mobile-menu a:hover { background: var(--bg2); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all .15s; white-space: nowrap;
  font-family: inherit;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: var(--radius); }

.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg2); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-dark {
  background: var(--text); color: var(--bg);
}
.btn-dark:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 128px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  opacity: 0.5;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 99px;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.2px; margin-bottom: 28px; position: relative;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }

.hero h1 {
  font-size: clamp(40px, 6.5vw, 84px); font-weight: 900;
  line-height: 1.04; letter-spacing: -2.5px;
  margin-bottom: 24px; position: relative;
}
.hero h1 .hi { color: var(--text); }
.hero h1 .green {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--muted); font-weight: 400;
  max-width: 560px; margin: 0 auto 40px; position: relative; line-height: 1.65;
}
.hero-actions {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center; position: relative; margin-bottom: 72px;
}
.hero-stats {
  display: flex; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg2); position: relative; overflow: hidden;
}
.stat-item {
  padding: 24px 40px; text-align: center; flex: 1;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 30px; font-weight: 800; color: var(--text);
  letter-spacing: -1px; line-height: 1;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ── Page wrapper ── */
.page-content { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Section ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tag {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: 99px;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 14px;
}
.section-sub {
  font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.65;
}

/* ── Divider ── */
.divider {
  height: 1px; background: var(--border);
  max-width: 1200px; margin: 0 auto;
}

/* ── Why cards ── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 56px;
}
.why-card {
  padding: 32px; background: var(--bg);
  transition: background .2s;
  position: relative;
}
.why-card:hover { background: var(--bg2); }
.why-card:hover .why-icon { border-color: var(--accent); color: var(--accent); }
.why-card.featured { background: var(--accent-bg); }
.why-card.featured:hover { background: var(--accent-bg); }
.why-card.featured .why-icon { border-color: var(--accent-border); color: var(--accent); }
.why-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 20px;
  color: var(--text2); transition: border-color .2s, color .2s;
}
.why-label {
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px;
}
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.why-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Feature list ── */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 56px;
}
.feature-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 28px; background: var(--bg);
  transition: background .2s;
}
.feature-card:hover { background: var(--bg2); }
.feature-card:hover .feature-icon { border-color: var(--accent); color: var(--accent); }
.feature-icon {
  width: 38px; height: 38px; border-radius: var(--radius-xs);
  border: 1px solid var(--border2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--text2); transition: border-color .2s, color .2s;
}
.feature-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ── Countries band ── */
.countries-band {
  background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 40px; text-align: center;
}
.countries-inner { max-width: 1200px; margin: 0 auto; }
.countries-band h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.countries-band .lead { color: var(--muted); font-size: 17px; max-width: 500px; margin: 0 auto 48px; }
.map-placeholder {
  max-width: 860px; margin: 0 auto 36px;
  height: 280px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px; gap: 10px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  padding: 5px 14px; border-radius: 99px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.new { border-color: var(--accent-border); color: var(--accent); background: var(--accent-bg); font-weight: 600; }

/* ── Code section ── */
.code-band {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.code-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.code-block {
  background: var(--code-bg); border: 1px solid var(--code-border);
  border-radius: var(--radius); overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 18px; background: #111; border-bottom: 1px solid var(--code-border);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-filename {
  margin-left: auto; font-size: 11px; color: #555;
  font-family: 'JetBrains Mono', monospace;
}
pre {
  padding: 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.85; overflow-x: auto; color: #ccc;
}
.kw  { color: #7ec8a0; }
.str { color: #a8d8a8; }
.fn  { color: #79c0e0; }
.cm  { color: #555; font-style: italic; }
.num { color: #e6b87a; }
.op  { color: #888; }

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px; align-items: start;
}
.pricing-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  position: relative; transition: border-color .2s;
}
.pricing-card:hover { border-color: var(--border2); }
.pricing-card.popular {
  border-color: var(--accent); background: var(--bg);
}
.popular-tag {
  display: inline-flex; position: absolute; top: -13px; left: 28px;
  padding: 3px 12px; border-radius: 99px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pricing-tier { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; }
.pricing-price {
  font-size: 44px; font-weight: 900; letter-spacing: -2px;
  color: var(--text); line-height: 1; margin-bottom: 4px;
}
.pricing-price sup { font-size: 22px; font-weight: 700; vertical-align: 10px; }
.pricing-period { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li { font-size: 14px; color: var(--text2); display: flex; gap: 10px; align-items: flex-start; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; font-size: 13px; margin-top: 1px; }

/* ── CTA band ── */
.cta-band {
  padding: 100px 40px; text-align: center;
  border-top: 1px solid var(--border);
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-size: clamp(32px, 5vw, 60px); font-weight: 900;
  letter-spacing: -2px; margin-bottom: 16px; line-height: 1.05;
}
.cta-band p { font-size: 18px; color: var(--muted); margin-bottom: 40px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer-wrap { border-top: 1px solid var(--border); }
.footer-main {
  max-width: 1200px; margin: 0 auto; padding: 56px 40px 40px;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px;
}
.footer-brand-desc { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 240px; line-height: 1.65; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom a { font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Scroll-reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .page-content { padding: 0 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .code-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 28px 32px; }
}

/* Mobile landscape */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 20px 60px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-stats { flex-direction: column; gap: 0; width: 100%; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 24px; }
  .stat-item:last-child { border-bottom: none; }

  .page-content { padding: 0 20px; }
  .section { padding: 64px 0; }

  .why-grid { grid-template-columns: 1fr; border-radius: var(--radius-sm); }
  .features-grid { grid-template-columns: 1fr; }

  .countries-band, .code-inner { padding: 56px 20px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .popular-tag { top: -13px; }

  .cta-band { padding: 72px 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 40px 20px 28px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero { padding: 90px 16px 48px; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .page-content { padding: 0 16px; }
  .section { padding: 52px 0; }
  .why-card, .feature-card { padding: 24px; }
  .pricing-card { padding: 24px; }
  .footer-main { grid-template-columns: 1fr; padding: 32px 16px 24px; }
  .footer-bottom { padding: 16px; }
  .chips { gap: 6px; }
  pre { font-size: 12px; padding: 18px; }
}
