:root {
  --bg: #0b0f17;
  --bg-alt: #111726;
  --surface: #161d2e;
  --text: #e8edf6;
  --muted: #9aa6bd;
  --accent: #5b8cff;
  --accent-2: #34e3b0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(52, 227, 176, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #7aa2ff); color: #0b0f17; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-accent { color: var(--accent); }
.brand-mark { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px rgba(91,140,255,0.6); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 2.2rem; }
.stats { display: flex; gap: 2.4rem; margin: 0; }
.stats dt { font-family: "Sora", sans-serif; font-size: 1.6rem; font-weight: 700; }
.stats dd { margin: 0; color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; height: 340px; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.7; }
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); top: 0; right: 30px; animation: float 7s ease-in-out infinite; }
.orb-2 { width: 160px; height: 160px; background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%); bottom: 10px; left: 20px; animation: float 9s ease-in-out infinite reverse; }
.card-float {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(22, 29, 46, 0.85); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); width: 260px;
}
.cf-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.dot.warn { background: #ffcf5b; box-shadow: 0 0 10px #ffcf5b; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(91,140,255,0.5); }
.feature-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: center; }
.about-grid p { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  background: rgba(52,227,176,0.15); color: var(--accent-2); border-radius: 6px; font-size: 0.8rem; font-weight: 700;
}

/* Contact */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 680px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,0.2); }
.form-note { font-size: 0.9rem; margin: 0.6rem 0 0; min-height: 1.2em; }
.form-note.ok { color: var(--accent-2); }
.form-note.err { color: #ff7a7a; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 2.5rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a:hover { color: var(--accent); }
.footer-base { border-top: 1px solid var(--border); padding-top: 1.4rem; padding-bottom: 1.6rem; }
.footer-base .muted { font-size: 0.85rem; margin: 0; }

/* Footer privacy link */
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-privacy { font-size: 0.85rem; }
.footer-privacy:hover { color: var(--accent); }

/* Consent banner */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: rgba(17, 23, 38, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px -16px rgba(0, 0, 0, 0.7);
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.consent-text { margin: 0; font-size: 0.9rem; color: var(--muted); max-width: 70ch; }
.consent-text strong { color: var(--text); }
.consent-text a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

@media (max-width: 720px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}

/* Device-check test panel */
.fp-test { max-width: 760px; margin: 0 auto; text-align: center; }
.fp-test .btn:disabled { opacity: 0.6; cursor: progress; }
.section-sub code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.9em; }
.fp-output {
  margin: 1.4rem 0 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow: auto;
}
.fp-output.is-error { color: #ff9b9b; border-color: rgba(255, 122, 122, 0.4); }
.fp-output[hidden] { display: none; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 280px; order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 0.5rem 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.5rem 0; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .stats { gap: 1.4rem; }
}
