/* ===== Base ===== */
:root {
  --bg: #0b0d12;
  --bg-alt: #11141c;
  --surface: #171b26;
  --border: #262c3b;
  --text: #e8eaf0;
  --text-muted: #9aa3b5;
  --accent: #ffb224;
  --accent-strong: #ff8a00;
  --accent-ink: #1a1205;
  --radius: 14px;
  --container: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.lede, .section-lede {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-top: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  box-shadow: 0 4px 20px rgba(255, 164, 20, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255, 164, 20, 0.4); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }

.btn-small { padding: 8px 18px; font-size: 0.9rem; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px; /* comfortable tap target */
}
.brand-mark {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; }

/* ===== Solutions submenu ===== */
.has-submenu { position: relative; }

.submenu-toggle .caret {
  display: inline-block;
  font-size: 0.7em;
  transition: transform 0.15s ease;
}
.has-submenu.open .submenu-toggle .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.has-submenu.open .submenu { display: block; }

@media (hover: hover) {
  .has-submenu:hover .submenu { display: block; }
}

/* Desktop: stretch the nav item to the full header height and hang the panel
   off its bottom edge. Without this there is dead space between the link and
   the dropdown, and the cursor loses :hover crossing it. */
@media (min-width: 721px) {
  .nav-links { align-self: stretch; }
  .nav-links .has-submenu {
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  .submenu { top: 100%; }
}

.submenu li { width: 100%; }
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.submenu a:hover { background: var(--bg-alt); color: var(--text); }
.submenu a.active { color: var(--accent); font-weight: 650; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}

.hero-inner { position: relative; z-index: 1; }
.hero .lede { margin-left: auto; margin-right: auto; }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 340px at 50% 10%, rgba(255, 164, 20, 0.16), transparent 70%),
    radial-gradient(900px 500px at 80% 0%, rgba(120, 90, 255, 0.10), transparent 70%);
  pointer-events: none;
}

/* ===== Stats ===== */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 40px;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: inherit;
  text-decoration: none;
  display: block;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
}

/* ===== Solution detail pages ===== */
.page-hero { padding: 80px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lede { margin-left: 0; margin-right: 0; }

.detail-list { list-style: none; display: grid; gap: 22px; margin-top: 40px; }
.detail-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.detail-list h3 { margin-bottom: 6px; }
.detail-list p { color: var(--text-muted); font-size: 0.97rem; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
  list-style: none;
  counter-reset: step;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.checklist { list-style: none; display: grid; gap: 18px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
}
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 178, 36, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CTA banner ===== */
.cta-banner {
  padding: 96px 0;
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(255, 164, 20, 0.18), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-inner p { color: var(--text-muted); margin: 14px auto 32px; max-width: 36rem; }

/* ===== Contact form ===== */
.contact-form {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { display: grid; gap: 6px; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.18);
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-actions .btn { border: none; cursor: pointer; font: inherit; font-weight: 650; }
.form-actions .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.form-status { margin: 0; font-size: 0.95rem; }
.form-status.ok { color: #6fdc8c; }
.form-status.err { color: #ff8389; }

.contact-alt { font-size: 0.9rem; margin-top: 28px; }
.contact-alt a {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  padding: 12px 4px; /* comfortable tap target */
}
.contact-alt a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-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;
}
.brand-footer .brand-name { font-size: 1rem; }
.footer-copy { color: var(--text-muted); font-size: 0.88rem; }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 0 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; padding: 10px 0; }

  /* submenu rendered inline and always expanded inside the mobile menu */
  .submenu {
    display: block;
    position: static;
    transform: none;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 6px 0 0;
  }
  .submenu a { padding: 8px 0; font-size: 0.88rem; }
  .submenu-toggle .caret { display: none; }

  .hero { padding: 72px 0 64px; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
}
