/* ============ TOKENS ============ */
:root {
  --bg: #060b16;
  --bg-alt: #0a1224;
  --panel: #0e1830;
  --panel-2: #12203e;
  --line: rgba(148, 197, 255, 0.14);
  --text: #e8eefb;
  --muted: #93a5c4;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --gold: #fbbf24;
  --ok: #34d399;
  --radius: 16px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, legend { font-family: var(--font-head); line-height: 1.15; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.grad {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  color: #051020;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(56, 189, 248, 0.4); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { color: var(--accent); border-color: rgba(56, 189, 248, 0.4); }
.btn-outline:hover { background: rgba(56, 189, 248, 0.08); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 22, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none !important; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 68% 62%, var(--gold) 0 18%, transparent 19%),
              radial-gradient(circle at 40% 35%, #1c3d6e, #0b1d3a 70%);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}
.brand-name { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); letter-spacing: 0.01em; }
.brand-name strong { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(56, 189, 248, 0.09), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(129, 140, 248, 0.08), transparent 60%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.5rem 3.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.2rem;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.lede { color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; font-size: 1.05rem; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-stats { display: flex; gap: 2.2rem; list-style: none; flex-wrap: wrap; }
.hero-stats li { display: flex; align-items: baseline; gap: 0.6rem; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--accent); }
.hero-stats span { font-size: 0.76rem; color: var(--muted); line-height: 1.35; }

/* Globe */
.hero-globe { text-align: center; }
#globe-container {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
}
#globe-container:active { cursor: grabbing; }
#globe-container canvas { display: block; width: 100% !important; height: 100% !important; }
.globe-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--muted); font-size: 0.85rem;
}
.globe-loading span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.globe-caption { margin-top: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.globe-caption em { opacity: 0.75; }
.loc-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold); margin-right: 2px;
}

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-inner.narrow { max-width: 780px; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 0.7rem;
}
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.section-lede { color: var(--muted); max-width: 44rem; margin-bottom: 2.6rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s, border-color 0.2s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); }
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #051020;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* Dashboard mock */
.dash-mock {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.dash-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.badge-live { background: rgba(52, 211, 153, 0.14); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.35); }
.pipeline { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.pipe-stage {
  flex: 1; min-width: 110px;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.8rem;
}
.pipe-stage span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.pipe-stage.done { color: var(--text); }
.pipe-stage.done span { background: var(--ok); }
.pipe-stage.active { color: var(--text); border-color: rgba(56, 189, 248, 0.5); }
.pipe-stage.active span { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.dash-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.dash-card h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.ms-list, .feed { list-style: none; font-size: 0.87rem; }
.ms-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.ms-list li:last-child { border-bottom: 0; }
.ms-list i { font-style: normal; width: 20px; text-align: center; }
.ms-list .paid i { color: var(--ok); }
.ms-list .hold i { color: var(--gold); }
.ms-list b { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 0.78rem; text-align: right; }
.feed li { padding: 0.45rem 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.feed li:last-child { border-bottom: 0; }
.feed b { color: var(--text); font-weight: 600; }
.feed time { float: right; font-size: 0.75rem; opacity: 0.7; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pkg {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s, border-color 0.2s;
}
.pkg:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); }
.pkg-featured { border-color: rgba(129, 140, 248, 0.55); background: linear-gradient(180deg, rgba(129, 140, 248, 0.09), var(--panel) 55%); }
.pkg-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(129, 140, 248, 0.4); border-radius: 999px;
  padding: 0.22rem 0.7rem; margin-bottom: 1rem;
}
.pkg h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.pkg > p { font-size: 0.86rem; color: var(--muted); margin-bottom: 1rem; }
.pkg-price { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.pkg-price strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--text); }
.pkg ul { list-style: none; font-size: 0.84rem; color: var(--muted); margin-bottom: 1.4rem; flex-grow: 1; }
.pkg ul li { padding: 0.28rem 0 0.28rem 1.3rem; position: relative; }
.pkg ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.pkg .btn { text-align: center; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.6rem; }
.case {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; transition: transform 0.2s, border-color 0.2s;
}
.case:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); }
.case-visual {
  height: 150px; border-radius: 12px; margin-bottom: 1.1rem;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.case-visual span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem;
  color: rgba(255, 255, 255, 0.92); letter-spacing: 0.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.case-trak { background: linear-gradient(135deg, #0ea5e9 0%, #0b3a5e 100%); }
.case-solense { background: linear-gradient(135deg, #7c3aed 0%, #14f195 160%); }
.case-qolana { background: linear-gradient(135deg, #f59e0b 0%, #7c2d12 120%); }
.case h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.case-role { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.case p:last-child { font-size: 0.88rem; color: var(--muted); }
.quote-strip {
  border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.8rem;
}
.quote-strip blockquote { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.5rem; }
.quote-strip cite { color: var(--muted); font-style: normal; font-size: 0.85rem; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.trust-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem;
}
.trust-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.trust-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.9rem; color: var(--muted); }
.trust-card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ============ FORM ============ */
.section-brief {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(56, 189, 248, 0.07), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
#brief-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.form-progress { display: flex; gap: 0.6rem; margin-bottom: 2rem; }
.fp-step {
  flex: 1; display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; color: var(--muted);
  padding-bottom: 0.7rem; border-bottom: 2px solid var(--line);
}
.fp-step::before {
  content: attr(data-step-label);
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.75rem;
  background: var(--panel-2); border: 1px solid var(--line);
}
.fp-step.active { color: var(--text); border-bottom-color: var(--accent); }
.fp-step.active::before { background: var(--accent); color: #051020; border-color: var(--accent); }
.fp-step.done { color: var(--ok); border-bottom-color: var(--ok); }
.fp-step.done::before { content: "✓"; background: rgba(52, 211, 153, 0.15); color: var(--ok); border-color: var(--ok); }

.form-step { display: none; border: 0; }
.form-step.active { display: block; }
.form-step legend { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.3rem; }
.form-step legend small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.radio-cards label { position: relative; cursor: pointer; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards span {
  display: block; padding: 1rem 1.1rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.radio-cards span strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.radio-cards span small { color: var(--muted); font-size: 0.8rem; }
.radio-cards input:checked + span { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); box-shadow: 0 0 0 1px var(--accent); }
.radio-cards label:hover span { border-color: rgba(56, 189, 248, 0.45); }

.gate-note {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.88rem; color: var(--muted);
  margin-bottom: 1.2rem;
}
.gate-note strong { color: var(--gold); }

.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-row label small { font-weight: 400; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 0.92rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-row input.invalid, .form-row select.invalid, .form-row textarea.invalid { border-color: #f87171; }
.form-row textarea { resize: vertical; }
.check-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); margin: 0.4rem 0 1rem; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent); }

.form-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.6rem; }
.form-nav .btn:only-child { margin-left: auto; }

.form-success { text-align: center; padding: 1rem 0; }
.success-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 700; color: #051020;
  background: linear-gradient(135deg, var(--ok), var(--accent));
  box-shadow: 0 10px 40px rgba(52, 211, 153, 0.35);
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.4rem; }
.brief-summary {
  text-align: left; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.3rem; font-size: 0.87rem; color: var(--muted);
  margin-bottom: 1.4rem;
}
.brief-summary b { color: var(--text); }
.brief-summary div { padding: 0.25rem 0; }
.tiny { font-size: 0.75rem !important; opacity: 0.7; margin-top: 0.8rem !important; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto 2rem; padding: 0 1.5rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.foot-tag { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }
.foot-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.foot-fine { text-align: center; color: var(--muted); opacity: 0.6; font-size: 0.75rem; padding: 0 1.5rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-globe { order: -1; }
  #globe-container { width: min(400px, 90vw); }
  .steps, .packages { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .steps, .packages, .trust-grid, .dash-grid, .radio-cards { grid-template-columns: 1fr; }
  .hero-stats { justify-content: center; gap: 1.4rem; }
  #brief-form { padding: 1.3rem; }
  .fp-step span { display: none; }
  .section { padding: 3.5rem 0; }
}
