:root {
  --bg: #0a0e14;
  --bg-alt: #0d1320;
  --surface: #121a2b;
  --surface-hover: #16203570;
  --border: #22304a;
  --text: #e8ecf4;
  --text-dim: #97a3ba;
  --accent: #ff7a33;
  --accent-2: #3bd6c6;
  --accent-glow: rgba(255, 122, 51, 0.35);
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 14px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: var(--font-head); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  padding: 12px 22px;
  letter-spacing: 0.02em;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff5f6d);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 30px var(--accent-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-nav { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,122,51,0.12), transparent 45%),
    radial-gradient(circle at 75% 80%, rgba(59,214,198,0.10), transparent 45%);
}

.loader-content { position: relative; text-align: center; }

.loader-mark { display: flex; justify-content: center; margin-bottom: 22px; }
.loader-gear {
  width: 54px; height: 54px;
  color: var(--accent);
  animation: spin 3.5s linear infinite;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-line { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.loader-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .6s ease forwards .1s;
}
.loader-brand {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  animation: fadeUp .6s ease forwards .35s;
}
.loader-x { color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-bar {
  margin: 28px auto 0;
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width .25s ease;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,14,20,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--border); background: rgba(10,14,20,0.92); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}
.brand-gear { width: 26px; height: 26px; color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 130%;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 40%, transparent 90%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  opacity: .5;
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--surface);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--text); }
.hero-stats span { font-size: 0.82rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
.section-head p { color: var(--text-dim); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 20px; line-height: 1.25; }
.about-copy p { color: var(--text-dim); margin: 0 0 16px; }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(59,214,198,0.15);
  color: var(--accent-2);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

.about-visual {
  position: relative;
  height: 380px;
}
.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 60px var(--accent-glow);
}
.orbit-center span { display: block; font-size: 0.7rem; color: var(--text-dim); font-weight: 500; margin-top: 3px; }

.orbit-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.card-1 { top: 4%; left: 6%; animation-delay: 0s; }
.card-2 { top: 8%; right: 2%; animation-delay: 1.1s; }
.card-3 { bottom: 10%; left: 0%; animation-delay: 2.2s; }
.card-4 { bottom: 4%; right: 8%; animation-delay: 0.6s; }

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

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

/* ---------- Industry toggle ---------- */
.industry-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.industry-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s ease;
  cursor: pointer;
  user-select: none;
}
.industry-label.is-active { color: var(--text); }

.industry-switch {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .25s ease, border-color .25s ease;
}
.industry-switch[aria-checked="true"] { background: rgba(255,122,51,0.18); border-color: var(--accent); }

.industry-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), #2fb8aa);
  transition: transform .25s ease, background .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.industry-switch[aria-checked="true"] .industry-switch-thumb {
  transform: translateX(26px);
  background: linear-gradient(135deg, var(--accent), #ff5f6d);
}

/* ---------- Feature / benefit cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity .2s ease;
}
.cards-grid.is-switching { opacity: 0; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.feature-icon {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1rem; }
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--text-dim); }

@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.benefit h3 { margin: 0 0 10px; font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

@media (max-width: 700px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 24px 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a2338, #101827);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 52px 48px;
}
.cta-band-inner h2 { margin: 0 0 8px; font-size: 1.5rem; }
.cta-band-inner p { margin: 0; color: var(--text-dim); max-width: 420px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-size: 1.05rem; }
.footer-copy { margin: 0; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color .2s ease, border-color .2s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--accent-2); }

.modal h3 { margin: 0 0 6px; font-size: 1.35rem; }
.modal-sub { margin: 0 0 26px; color: var(--text-dim); font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-dim); }

.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(59,214,198,0.15); }
.field input.invalid { border-color: #ff5f6d; }

.field-error {
  font-size: 0.76rem;
  color: #ff8a8a;
  min-height: 14px;
  display: block;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-error {
  font-size: 0.85rem;
  color: #ff8a8a;
  margin: 4px 0 16px;
  min-height: 0;
}
.form-error:empty { margin: 0; }

.success-view { text-align: center; padding: 12px 0 4px; }
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(59,214,198,0.15);
  color: var(--accent-2);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.success-view h3 { margin: 0 0 8px; }
.success-view p { color: var(--text-dim); margin: 0 0 24px; font-size: 0.92rem; }

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 28px 22px; }
}
