:root {
  --radius: 18px;
  --container: min(1120px, 92vw);
}

body[data-theme="dark"] {
  --bg: #060a14;
  --bg-soft: #0b1222;
  --surface: #101a2f;
  --surface-2: #0f172b;
  --line: #223255;
  --text: #ecf2ff;
  --muted: #9bb0d3;
  --brand: #0b1faa;
  --brand-2: #1446ff;
  --nav-bg: rgba(6, 10, 20, 0.82);
  --panel-bg: rgba(16, 26, 47, 0.68);
  --logo-chip: rgba(17, 29, 54, 0.75);
  --strip-bg: #070e1b;
  --card-grad-1: rgba(15, 23, 43, 0.95);
  --card-grad-2: rgba(11, 18, 34, 0.95);
  --section-alt-1: rgba(8, 13, 26, 0.9);
  --section-alt-2: rgba(10, 17, 33, 0.9);
  --cta-bg: #0b1223;
  --cal-bg: #0a1120;
}

body[data-theme="light"] {
  --bg: #eef3ff;
  --bg-soft: #f6f9ff;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --line: #cfdcf5;
  --text: #10233c;
  --muted: #415a7e;
  --brand: #0b1faa;
  --brand-2: #1446ff;
  --nav-bg: rgba(245, 249, 255, 0.9);
  --panel-bg: rgba(239, 244, 255, 0.92);
  --logo-chip: rgba(238, 245, 255, 0.95);
  --strip-bg: #f1f5ff;
  --card-grad-1: rgba(255, 255, 255, 0.98);
  --card-grad-2: rgba(245, 249, 255, 0.98);
  --section-alt-1: rgba(239, 245, 255, 0.8);
  --section-alt-2: rgba(232, 240, 255, 0.8);
  --cta-bg: #f4f8ff;
  --cal-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, rgba(20, 70, 255, 0.24), transparent 32%),
    radial-gradient(circle at 10% 20%, rgba(10, 31, 170, 0.2), transparent 32%),
    var(--bg);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(120, 145, 196, 0.35) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  z-index: -1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: 0.04em;
}

.desktop-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 10px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-bg);
}

.switch-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 52px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.switch-btn.is-active {
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 70, 255, 0.3);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-2) 55%, var(--text));
  font-weight: 700;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.lead {
  margin: 22px 0 28px;
  max-width: 62ch;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-kpis {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-kpis div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-bg);
  padding: 14px;
}

.hero-kpis strong {
  display: block;
  font-size: 1.28rem;
  color: color-mix(in srgb, var(--brand-2) 65%, var(--text));
}

.hero-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn,
.btn-sm {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(20, 70, 255, 0.3);
}

.btn-sm {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-strip {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--strip-bg);
}

.logos {
  display: grid;
  gap: 12px;
}

.logos > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.logo-list div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: var(--logo-chip);
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 26ch;
}

.problem-grid,
.steps,
.service-grid,
.case-grid {
  display: grid;
  gap: 14px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  margin: 0;
  background: linear-gradient(165deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card p,
.step p,
.cta-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, var(--section-alt-1), var(--section-alt-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--panel-bg);
}

.step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #1f49ff, #0b1faa);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.case ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.case li + li {
  margin-top: 6px;
}

.case strong {
  color: var(--text);
}

.final-cta {
  padding-top: 76px;
}

.cta-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 42px);
  background: radial-gradient(circle at top right, rgba(20, 70, 255, 0.2), transparent 45%), var(--cta-bg);
  text-align: center;
}

.cta-box h2 {
  max-width: 26ch;
  margin-inline: auto;
}

.cta-box p {
  max-width: 70ch;
  margin-inline: auto;
}

.cta-box .hero-actions {
  justify-content: center;
  margin-top: 16px;
}

.calendly-wrap {
  margin: 24px auto 0;
  max-width: 1020px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cal-bg);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fab-wrap {
  display: none;
}

.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(5, 14, 30, 0.35);
}

.fab-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(5, 14, 30, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.fab-wrap.open .fab-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .brand {
    font-size: 2.1rem;
  }
}

@media (max-width: 1024px) {
  .desktop-controls {
    display: none;
  }

  .fab-wrap {
    display: block;
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 40;
  }
}

@media (max-width: 980px) {
  .nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }

  .brand {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .header-book {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(20, 70, 255, 0.22);
  }

  .hero-grid,
  .problem-grid,
  .steps,
  .service-grid,
  .case-grid,
  .logo-list,
  .hero-kpis,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .hero-kpis {
    gap: 8px;
  }

  .calendly-wrap .calendly-inline-widget {
    height: 860px !important;
  }

  .footer-wrap {
    align-items: center;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  .footer-wrap p {
    margin: 0;
  }

  .footer-wrap a {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.8rem;
  }

  .header-book {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
  }

  .fab-panel {
    width: 178px;
    bottom: 56px;
  }

  .fab-option {
    font-size: 0.84rem;
    padding: 9px 10px;
  }
}
