/* ─── Design tokens ─── */
:root {
  --bg:           #0d0f14;
  --surface:      #161a24;
  --surface-2:    #1e2332;
  --accent:       #3b82f6;
  --accent-glow:  #3b82f630;
  --accent-2:     #10b981;
  --accent-2-glow:#10b98130;
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --border:       #2e3550;
  --radius:       0.75rem;
  --radius-sm:    0.4rem;
  --font:         system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --max-w:        72rem;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563eb; box-shadow: 0 0 0 4px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; font-weight: 500; }
.btn-ghost:hover { color: var(--text); }

/* ─── Nav ─── */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 3.75rem;
  background: var(--bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.wordmark { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.nav-bar nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-bar nav a { padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-muted); transition: color 0.15s; }
.nav-bar nav a:hover { color: var(--text); }

/* ─── Hero ─── */
#hero {
  position: relative; overflow: hidden; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0f1a35 0%, var(--bg) 70%);
}
.hero-globe {
  position: absolute; right: -4rem; top: 50%; transform: translateY(-50%);
  width: min(540px, 55vw); opacity: 0.18; pointer-events: none;
}
.hero-globe svg { width: 100%; height: auto; }
.globe-ring { stroke: var(--accent); }
.globe-dot { fill: var(--accent); }
.globe-line { stroke: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-globe { animation: globe-drift 28s ease-in-out infinite alternate; }
}
@keyframes globe-drift { from { transform: translateY(-50%) rotate(-2deg); } to { transform: translateY(-52%) rotate(2deg); } }

.hero-content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; max-width: 38rem; }
.hero-badge {
  display: inline-block; margin-bottom: 1.25rem;
  padding: 0.25rem 0.75rem; border-radius: 2rem;
  background: var(--accent-glow); border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 30rem; margin-bottom: 2.25rem; line-height: 1.7; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ─── Sections ─── */
.section { padding: 6rem 0; }
.section--surface { background: var(--surface); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.section-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3.5rem; }

/* ─── Cards (what it does) ─── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.section--surface .card { background: var(--surface-2); }
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm);
  background: var(--accent-glow); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--accent);
}
.card-icon svg { width: 1.25rem; height: 1.25rem; }
.card-icon--green { background: var(--accent-2-glow); border-color: var(--accent-2); color: var(--accent-2); }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }
.card-example {
  font-family: var(--font-mono); font-size: 0.82rem;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: 0.6rem 0.85rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); line-height: 1.5;
}
.card-example--green { border-color: var(--accent-2); }

/* ─── Features grid ─── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2rem 3rem; }
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  background: var(--accent-glow); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-icon svg { width: 1.15rem; height: 1.15rem; }
.feature-icon--green { background: var(--accent-2-glow); border-color: var(--accent-2); color: var(--accent-2); }
.feature h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.3rem; }
.feature p { color: var(--text-muted); font-size: 0.88rem; }

/* ─── Steps (how it works) ─── */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap;
}
.step { flex: 1; min-width: 14rem; text-align: center; padding: 0 1.5rem; }
.step-number {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 1.15rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step-number--green { background: var(--accent-2); }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; max-width: 16rem; margin: 0 auto; }
.step-connector {
  flex: 0; width: 2.5rem; align-self: center;
  height: 2px; background: var(--border); margin-top: -1.5rem;
}

/* ─── CTA band ─── */
.section--cta {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.cta-inner > p { color: var(--text-muted); margin-bottom: 2rem; }
.cta-form {
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: 32rem; margin: 0 auto 1rem; text-align: left;
}
.cta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cta-row > input { flex: 1 1 12rem; min-width: 0; }
.cta-form input[type="text"],
.cta-form input[type="email"],
.cta-form textarea {
  width: 100%; padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s;
}
.cta-form textarea { resize: vertical; min-height: 5.5rem; }
.cta-form ::placeholder { color: var(--text-muted); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--accent); }
.cta-form .btn { align-self: center; }
/* Honeypot: kept in the layout flow but moved off-screen so bots fill it. */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.cta-note { color: var(--accent-2); font-weight: 600; margin-top: 1rem; }
.cta-error { color: #f87171; }
.cta-or { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }
.cta-or a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cta-or a:hover { color: #93c5fd; }

/* ─── Footer ─── */
.footer { padding: 2.5rem 1.5rem; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }
.footer-privacy { flex-basis: 100%; max-width: 70ch; }

/* ─── Privacy consent bar ─── */
#consent-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 0.7rem 1.25rem;
  background: rgba(17, 24, 39, 0.96); color: #e5e7eb;
  font-size: 0.85rem; box-shadow: 0 -1px 10px rgba(0,0,0,0.3);
}
#consent-bar span { max-width: 60ch; }
#consent-bar button {
  cursor: pointer; padding: 0.35rem 0.95rem; border-radius: 6px;
  border: none; font: inherit; font-weight: 600;
}
#consent-ok { background: var(--accent, #3b82f6); color: #fff; }
#consent-no { background: transparent; color: #e5e7eb; border: 1px solid #4b5563; }
/* The id rule above outranks the UA [hidden] rule, so honor `hidden` explicitly —
   otherwise the bar never hides (on load for returning visitors, or on OK/Decline). */
#consent-bar[hidden] { display: none; }

/* ─── Scroll animations ─── */
.fade-up { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--delay, 0s); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .nav-bar nav .btn-ghost { display: none; }
  .hero-globe { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { width: 2px; height: 2rem; margin: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
