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

:root {
  --bg: #f8f3e8;
  --bg-soft: #f2ece0;
  --surface: #fffdf8;
  --surface-strong: #fef8ea;
  --ink: #13292b;
  --ink-soft: #445d5f;
  --border: #d3cdbf;
  --brand: #0f7a6c;
  --brand-dark: #0b5c51;
  --accent: #df6325;
  --accent-soft: #ffe2cf;
  --focus: #1244cc;
  --shadow: 0 10px 28px rgba(19, 41, 43, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 8%, #f6e8c5 0%, transparent 35%),
    radial-gradient(circle at 88% 18%, #f4d9ca 0%, transparent 33%),
    linear-gradient(180deg, var(--bg) 0%, #f7f0e3 100%);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.section {
  padding: 88px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.7) 0%, rgba(242, 236, 224, 0.66) 100%);
  border-block: 1px solid rgba(19, 41, 43, 0.08);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
}

.bg-orb-a {
  width: 280px;
  height: 280px;
  top: 120px;
  right: -80px;
  background: rgba(223, 99, 37, 0.26);
}

.bg-orb-b {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: 120px;
  background: rgba(15, 122, 108, 0.18);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 243, 232, 0.78);
  border-bottom: 1px solid rgba(19, 41, 43, 0.1);
}

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

.brand {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--brand);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 122, 108, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(15, 122, 108, 0.36);
}

.btn-ghost {
  border-color: rgba(19, 41, 43, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  border-color: rgba(19, 41, 43, 0.24);
  background: transparent;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.hero {
  padding-top: 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font: 700 0.75rem/1.4 var(--font-body);
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  margin-top: 20px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
}

.hero-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 250, 239, 0.98) 100%);
  border: 1px solid rgba(19, 41, 43, 0.16);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-proof h2 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-proof ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-proof li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-proof strong {
  color: var(--ink);
}

.hero-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font: 500 0.76rem/1 var(--font-mono);
  color: var(--brand-dark);
  border: 1px solid rgba(15, 122, 108, 0.28);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(15, 122, 108, 0.08);
}

.section-head {
  margin-bottom: 32px;
  max-width: 760px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-card,
.solution-card,
.step-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(19, 41, 43, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 251, 243, 0.96) 100%);
  padding: 22px;
  box-shadow: 0 6px 18px rgba(19, 41, 43, 0.08);
}

.problem-card h3,
.solution-card h3,
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.problem-card p,
.solution-card p,
.step-card p {
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.problem-label {
  font: 600 0.74rem/1.2 var(--font-mono);
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-group {
  display: flex;
  flex-direction: column;
}

.feature-list {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.feature-list li {
  border-top: 1px solid rgba(19, 41, 43, 0.12);
  padding-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-list strong {
  color: var(--ink);
}

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

.step-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 241, 226, 0.98) 100%);
}

.step-index {
  display: inline-block;
  font: 700 0.78rem/1 var(--font-mono);
  color: var(--brand-dark);
  background: rgba(15, 122, 108, 0.12);
  border: 1px solid rgba(15, 122, 108, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  margin-bottom: 12px;
}

.step-snippet {
  margin-top: 14px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(19, 41, 43, 0.2);
  background: #172427;
}

.step-snippet pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
}

.step-snippet code {
  font: 500 0.78rem/1.55 var(--font-mono);
  color: #d9f8f3;
  white-space: pre;
}

.close-section {
  padding-top: 72px;
  padding-bottom: 94px;
}

.close-card {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(19, 41, 43, 0.14);
  background:
    radial-gradient(circle at 80% 10%, rgba(223, 99, 37, 0.16) 0%, transparent 35%),
    linear-gradient(140deg, #fff8ea 0%, #f7f0e0 100%);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.close-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.close-card p {
  margin-top: 12px;
  max-width: 700px;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid rgba(19, 41, 43, 0.12);
  background: rgba(250, 245, 236, 0.72);
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-wrap a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.footer-wrap a:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 18, 0.52);
}

.modal-panel {
  position: relative;
  width: min(100%, 520px);
  border-radius: var(--radius);
  border: 1px solid rgba(19, 41, 43, 0.2);
  background: #fff;
  padding: 28px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
  animation: modal-in 0.24s ease;
}

.modal-video {
  width: min(100%, 840px);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(19, 41, 43, 0.22);
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-soft);
}

.modal-copy {
  margin-top: 6px;
  color: var(--ink-soft);
}

.lead-form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.lead-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.lead-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(19, 41, 43, 0.24);
  background: #fff;
  padding: 0 12px;
  font: 500 0.95rem/1 var(--font-body);
  color: var(--ink);
}

.lead-form input:focus {
  outline: 3px solid rgba(18, 68, 204, 0.2);
  border-color: var(--focus);
}

.form-feedback {
  min-height: 24px;
  font-size: 0.88rem;
  color: var(--brand-dark);
}

.video-frame {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(19, 41, 43, 0.2);
  background: #091012;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .problems-grid,
  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-proof {
    order: 2;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 16px;
  }

  .site-nav {
    position: static;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    order: 3;
    gap: 18px;
  }

  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .nav-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .hero-layout,
  .problems-grid,
  .solutions-grid,
  .steps,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-wrap {
    min-height: auto;
    padding: 20px 0;
    text-align: center;
    justify-items: center;
  }

  .section {
    padding: 72px 0;
  }

  .modal-panel {
    padding: 22px;
  }
}
