:root {
  --bg: #04071a;
  --surface: #080e20;
  --card: rgba(8, 14, 32, 0.9);
  --accent: #4f8ef7;
  --accent-2: #7c5cfc;
  --accent-3: #00c8e0;
  --text: #e8edf5;
  --muted: #5a6580;
  --border: rgba(79, 142, 247, 0.16);
  --border-hover: rgba(79, 142, 247, 0.45);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 18% 0%, rgba(79, 142, 247, 0.13), transparent),
    radial-gradient(ellipse 55% 40% at 88% 88%, rgba(124, 92, 252, 0.1), transparent),
    linear-gradient(rgba(79, 142, 247, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 35%, var(--accent-2) 65%, transparent 100%);
  opacity: 0.65;
  z-index: 100;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 96px 0; }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(4, 7, 26, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(79, 142, 247, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo { width: 66px; height: 66px; object-fit: contain; flex-shrink: 0; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { background: rgba(79, 142, 247, 0.1); color: var(--text); }

.header-right { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(79, 142, 247, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.lang-toggle:hover { background: rgba(79, 142, 247, 0.2); border-color: var(--border-hover); color: var(--text); }

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: rgba(79, 142, 247, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Typography ---- */

h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.045em; line-height: 1.0; }
h1 {
  font-size: clamp(38px, 5.5vw, 70px);
  margin-bottom: 16px;
  max-width: 860px;
  font-weight: 800;
  color: var(--text);
}
h2 { font-size: clamp(32px, 4.5vw, 62px); margin-bottom: 22px; font-weight: 700; color: var(--text); }
h3 { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 10px; font-weight: 600; color: var(--text); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.hero-text { color: var(--muted); font-size: 16px; line-height: 1.72; max-width: 580px; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 6px 22px rgba(79, 142, 247, 0.35);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79, 142, 247, 0.5); }
.button.secondary { border-color: var(--border); background: rgba(79, 142, 247, 0.07); color: var(--text); }
.button.secondary:hover { background: rgba(79, 142, 247, 0.14); border-color: var(--border-hover); transform: translateY(-1px); }

/* ---- Newsletter modal ---- */

.nl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nl-modal.is-open { display: flex; }

.nl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nl-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nl-modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 36px; right: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-2) 60%, transparent);
  opacity: 0.7;
}

.nl-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.nl-modal-close:hover { color: var(--text); background: rgba(79, 142, 247, 0.1); }

.nl-modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
}

.nl-modal-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}

.nl-modal-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 24px;
}

.nl-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.nl-modal-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: rgba(4, 7, 26, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.nl-modal-input:focus { border-color: rgba(79, 142, 247, 0.55); }
.nl-modal-input::placeholder { color: var(--muted); }

.nl-modal-submit { width: 100%; justify-content: center; }

.nl-modal-gdpr {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  line-height: 1.6;
}
.nl-modal-gdpr a { color: var(--muted); font-size: 11px; }
.nl-modal-gdpr a:hover { color: var(--text); }

.nl-msg {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
  min-height: 18px;
}
.nl-msg.success { color: #4ade80; }
.nl-msg.error { color: #f87171; }

/* ---- Hero ---- */

.hero { padding-top: 78px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; }

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 2px;
  animation: blink 1s step-end infinite;
}

/* ---- Hero Panel ---- */

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #07112a 0%, #050d22 60%, #090820 100%);
  box-shadow: var(--shadow), 0 0 60px rgba(79, 142, 247, 0.07);
  overflow: hidden;
  color: var(--text);
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 62% 28%, rgba(79, 142, 247, 0.2), transparent 34%),
    radial-gradient(circle at 22% 72%, rgba(124, 92, 252, 0.14), transparent 30%);
  filter: blur(4px);
  pointer-events: none;
}

.panel-topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 11px;
  color: rgba(232, 237, 245, 0.5);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.panel-topline span:first-child { color: var(--accent-3); font-weight: 600; }

.panel-dots { display: flex; gap: 5px; align-items: center; }
.panel-dots span { width: 9px; height: 9px; border-radius: 50%; }
.panel-dots span:first-child { background: rgba(255, 95, 87, 0.7); }
.panel-dots span:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.panel-dots span:last-child { background: rgba(40, 201, 64, 0.6); }

/* Panel body — replaces orbital diagram */
.panel-body {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.panel-scan { margin-bottom: 18px; }
.scan-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-3);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}
.scan-bar-wrap { display: flex; align-items: center; gap: 10px; }
.scan-bar {
  flex: 1;
  height: 3px;
  background: rgba(79, 142, 247, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.scan-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: 999px;
  animation: scanLoad 2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}
.scan-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  min-width: 32px;
}

.panel-findings { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.finding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  opacity: 0;
}
.finding-1 { animation: fadeSlideIn 0.35s ease 1.5s forwards; }
.finding-2 { animation: fadeSlideIn 0.35s ease 1.85s forwards; }
.finding-3 { animation: fadeSlideIn 0.35s ease 2.2s forwards; }
.finding-status { color: #46dc80; flex-shrink: 0; font-size: 13px; }
.finding-name { color: rgba(232, 237, 245, 0.85); flex: 1; }
.finding-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.tag-manual { background: rgba(255, 95, 87, 0.12); border: 1px solid rgba(255, 95, 87, 0.25); color: rgba(255, 130, 120, 0.9); }
.tag-steps { background: rgba(255, 189, 46, 0.1); border: 1px solid rgba(255, 189, 46, 0.22); color: rgba(255, 200, 80, 0.9); }
.tag-time { background: rgba(124, 92, 252, 0.12); border: 1px solid rgba(124, 92, 252, 0.28); color: rgba(170, 145, 252, 0.9); }

.panel-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
  opacity: 0;
  animation: fadeIn 0.3s ease 2.6s forwards;
}
.panel-results {
  opacity: 0;
  animation: fadeSlideIn 0.4s ease 2.8s forwards;
}
.results-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result-item strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.result-item span { font-size: 11px; color: var(--muted); line-height: 1.4; display: block; }

.metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.metrics div { padding: 18px 20px; border-right: 1px solid var(--border); }
.metrics div:last-child { border-right: 0; }
.metrics strong {
  display: block;
  margin-bottom: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.metrics span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---- Logos ---- */

.logos {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.logo-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(232, 237, 245, 0.45);
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Approach ---- */

.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; }
.body-copy p { color: var(--muted); font-size: 17px; line-height: 1.85; margin-bottom: 16px; }

/* ---- Dark Band ---- */

.dark-band {
  background: linear-gradient(180deg, #020510 0%, #03071a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement { max-width: 880px; }
.statement p {
  color: var(--accent-3);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.statement h2 { margin-bottom: 0; }
.narrow { max-width: 740px; }

/* ---- Process ---- */

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.process-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  min-height: 410px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.process-card:hover { border-color: var(--border-hover); box-shadow: 0 0 40px rgba(79, 142, 247, 0.12), var(--shadow); transform: translateY(-3px); }
.step { color: rgba(79, 142, 247, 0.18); font-size: 60px; font-weight: 800; letter-spacing: -0.08em; line-height: 1; font-family: 'JetBrains Mono', monospace; }
.icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.24);
  color: var(--accent-3);
  font-size: 21px;
  margin: 10px 0 18px;
}
.process-card p, .benefit p { color: var(--muted); line-height: 1.75; font-size: 14px; }
ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
li { position: relative; padding-left: 20px; margin: 7px 0; color: rgba(232, 237, 245, 0.75); font-weight: 500; font-size: 13px; }
li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 2px; }

/* ---- Benefits ---- */

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.benefit {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.benefit:hover { border-color: var(--border-hover); box-shadow: 0 0 30px rgba(79, 142, 247, 0.1); transform: translateY(-2px); }
.benefit h3 { font-size: 16px; margin-bottom: 8px; }

/* ---- Origin ---- */

.origin-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.origin-card p { color: var(--muted); line-height: 1.82; font-size: 16px; margin-bottom: 0; }

/* ---- Contact ---- */

.contact-section { padding-bottom: 120px; }
.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #07102a 0%, #050c1e 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-card > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.78; font-size: 16px; margin-bottom: 0; }
.contact-form { display: grid; gap: 12px; }
label {
  display: grid;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(79, 142, 247, 0.2);
  background: rgba(4, 7, 26, 0.7);
  color: var(--text);
  border-radius: 11px;
  padding: 12px 15px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.14); }
textarea { resize: vertical; }
.contact-card .button.primary { justify-self: start; margin-top: 4px; }

/* ---- Footer ---- */

.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-grid > div:first-child p { max-width: 380px; line-height: 1.72; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.footer-right { display: flex; gap: 56px; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 3px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { display: flex; flex-direction: column; gap: 2px; }
.footer-legal a { color: var(--muted); font-size: 13px; padding: 3px 0; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* ---- Reveal Animations ---- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Keyframes ---- */

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scanLoad { to { width: 73%; } }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ---- Mobile 900px ---- */

@media (max-width: 900px) {
  .section-pad { padding: 72px 0; }
  .hero { padding-top: 72px; }
  .hero-grid, .split, .origin-card, .contact-card { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { min-height: auto; }
  .logos { flex-direction: column; align-items: flex-start; }
  .footer-grid { flex-direction: column; }
  .footer-right { gap: 32px; }
  .nav {
    display: none;
    position: absolute;
    right: 12px;
    top: 58px;
    flex-direction: column;
    align-items: stretch;
    width: 200px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(4, 7, 26, 0.97);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-button { display: inline-flex; }
}

/* ---- Mobile 560px ---- */

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-right: 0; border-bottom: 1px solid var(--border); }
  .metrics div:last-child { border-bottom: 0; }
  .panel-body { padding: 16px; }
  .result-item strong { font-size: 18px; }
  .contact-card, .origin-card { padding: 24px; }
  .process-card { min-height: auto; }
  .footer-right { flex-direction: column; gap: 20px; }
}
