:root {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-text: #111826;
  --color-muted: #5f6b84;
  --color-primary: #1b64f2;
  --color-primary-soft: rgba(27, 100, 242, 0.2);
  --color-border: rgba(17, 24, 38, 0.15);
  --color-cta-bg: #0f1729;
  --color-cta-text: #f8fafc;
  --color-button-text: #ffffff;
  --shadow-lg: 0 35px 65px rgba(15, 23, 42, 0.15);
  --shadow-md: 0 20px 45px rgba(12, 23, 54, 0.08);
  --shadow-sm: 0 15px 40px rgba(15, 23, 42, 0.07);
  --hero-grad-start: #e0f2ff;
  --hero-grad-end: #f5f7fb;
  --status-pill-bg: #e2edff;
  --status-pill-text: #1b64f2;
}

body[data-theme="dark"] {
  --color-bg: #050915;
  --color-surface: #0f1729;
  --color-surface-alt: #0b1221;
  --color-text: #f3f6ff;
  --color-muted: #a5b4d5;
  --color-primary: #7dc4ff;
  --color-primary-soft: rgba(125, 196, 255, 0.25);
  --color-border: rgba(236, 242, 255, 0.18);
  --color-cta-bg: #01040c;
  --color-cta-text: #f1f5ff;
  --color-button-text: #041027;
  --shadow-lg: 0 25px 45px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 18px 35px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.45);
  --hero-grad-start: #101b35;
  --hero-grad-end: #050915;
  --status-pill-bg: rgba(125, 196, 255, 0.18);
  --status-pill-text: #d6e9ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: clip;
  width: 100%;
}

html {
  overflow-x: clip;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  max-width: 100%;
  height: auto;
}

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

header,
nav,
main,
section {
  max-width: 100%;
}
.hero {
  padding: 2.5rem clamp(1rem, 5vw, 5rem) 4rem;
  background: radial-gradient(
    circle at top left,
    var(--hero-grad-start),
    var(--hero-grad-end) 55%
  );
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.nav-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-button {
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-button.active {
  background: var(--color-primary);
  color: var(--color-button-text);
}

.hero-content {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: start;
}

.hero-content > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  max-width: 35rem;
}

.founder-note {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  max-width: 34rem;
  margin: 1rem 0 0;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  box-shadow: 0 15px 30px var(--color-primary-soft);
}

.button-outline {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.button:hover,
.link-button:hover,
.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
}

.link-button {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle-icon {
  font-size: 1.1rem;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.stat {
  font-size: 2rem;
  color: var(--color-text);
}

.hero-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  justify-self: stretch;
}

.hero-graphic .graphic {
  background: var(--color-surface-alt);
  border-radius: 16px;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.hero-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.graphic-caption {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-weight: 500;
}

.graphic-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.graphic-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
}

.dot-lab {
  background: #1b64f2;
}

.dot-digital {
  background: #7dc4ff;
}

.dot-savings {
  background: #10b981;
}

@media (max-width: 900px) {
  .nav {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1rem;
    margin-left: 0;
  }

  .nav.open .nav-menu {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: none;
    margin-top: 1.5rem;
  }

  .section-split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .section-split.reverse > :first-child {
    order: 0;
  }

  .section-split.reverse .section-header {
    margin-left: 0;
    text-align: left;
  }

  .section-illustration {
    max-width: none;
    margin-top: 1.5rem;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.status-pill {
  background: var(--status-pill-bg);
  color: var(--status-pill-text);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.section {
  padding: 4rem clamp(1rem, 5vw, 5rem);
  background: var(--color-bg);
  transition: background 0.3s ease;
}

.section.alt {
  background: var(--color-surface);
}

.section.dark {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
}

.hero-cta {
  padding: 5rem clamp(1rem, 7vw, 6rem);
  margin-top: 3rem;
}

.hero-cta .cta {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 3rem;
}

.cta-subtext {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 1rem;
}

.section-header {
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.5rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.section-split > * {
  min-width: 0;
}

.section-split.reverse > :first-child {
  order: 2;
}

.section-split.reverse .section-header {
  margin-left: auto;
  text-align: right;
}

.section-illustration {
  background: var(--color-surface-alt);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-self: stretch;
}

.section-illustration::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(27, 100, 242, 0.08),
    rgba(125, 196, 255, 0.15)
  );
  z-index: 0;
}

.section-illustration svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.service-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface-alt);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.service-cta p {
  margin: 0;
  max-width: 38rem;
  font-weight: 600;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.question-grid article {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.question-grid h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

input,
select,
textarea {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

textarea {
  resize: vertical;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  align-items: start;
  min-width: 0;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-form label {
  color: var(--color-cta-text);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-cta-text);
  width: 100%;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form button {
  align-self: stretch;
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
  background: var(--color-bg);
}

@media (max-width: 768px) {
  .section-split {
    display: block;
    gap: 0;
  }

  .section-split .section-header {
    max-width: 100%;
    width: 100%;
  }

  .section-split .section-illustration {
    order: 2;
    margin-top: 1rem;
    width: 100%;
    clear: both;
  }

  .hero-stats {
    flex-wrap: wrap;
  }
}
