:root {
  --background: #f7f5f1;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #eeeae2;
  --muted-foreground: #57534e;
  --primary: #1e3a8a;
  --primary-hover: #2f55c7;
  --accent-soft: #e3e8f5;
  --border: #e5e1d8;
  --dark: #111111;
  --dark-muted: rgba(255, 255, 255, 0.72);
  --radius: 10px;
  --shadow: 0 24px 70px rgba(10, 10, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.caption {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-xl,
.display-l,
.display-m,
.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.015em;
}

.display-xl {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.04;
  font-weight: 750;
}

.display-l {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.08;
  font-weight: 720;
}

.display-m {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.16;
  font-weight: 700;
}

.muted {
  color: var(--muted-foreground);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 20px 0;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding: 12px 0;
  border-bottom: 1px solid rgba(229, 225, 216, 0.8);
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.desktop-nav,
.desktop-actions {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 28px;
}

.desktop-nav a,
.phone-link {
  color: rgba(10, 10, 10, 0.76);
  font-size: 0.92rem;
  font-weight: 600;
}

.desktop-nav a:hover,
.phone-link:hover {
  color: var(--foreground);
}

.desktop-actions {
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.18);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border-color: var(--border);
  background: var(--background);
}

.btn-outline:hover {
  background: var(--muted);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--foreground);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  padding: 150px 0 104px;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 10, 10, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: -260px;
  right: -240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.12), transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 850px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 32px;
  border: 1px solid rgba(30, 58, 138, 0.16);
  border-radius: 999px;
  background: var(--accent-soft);
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 34px;
  color: var(--muted-foreground);
  font-size: 1.18rem;
}

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

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.stats-strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.42);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 26px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.stat small {
  color: var(--muted-foreground);
}

.logo-marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 35s linear infinite;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 700;
}

.logo-chip b {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--accent-soft);
  font-size: 0.78rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-size: 1.08rem;
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.vertical-card,
.plain-card,
.faq-item,
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.vertical-card {
  padding: 30px;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 9px;
  color: var(--primary);
  background: var(--accent-soft);
}

.vertical-card h3,
.plain-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.vertical-card p,
.plain-card p {
  color: var(--muted-foreground);
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li:before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--primary);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.2 16.2 4.8 11.8 3.4 13.2l5.8 5.8L21 7.2 19.6 5.8z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.problem-section {
  background: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
}

.problem-list,
.method-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

.plain-card {
  padding: 24px;
}

.method-grid {
  grid-template-columns: repeat(2, 1fr);
}

.dark-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.dark-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.08), transparent 36%), radial-gradient(circle at 78% 72%, rgba(30, 58, 138, 0.32), transparent 40%);
  pointer-events: none;
}

.dark-section .container {
  position: relative;
}

.dark-section .caption {
  color: #cfd8ff;
}

.dark-section p {
  color: var(--dark-muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.case-card h3 {
  margin: 18px 0 14px;
}

.case-card p {
  font-size: 0.95rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.metric strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  line-height: 1.2;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
}

.step-number {
  color: var(--primary);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2.4rem;
  font-weight: 760;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin: 54px auto 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
  text-align: left;
  font-weight: 750;
}

.faq-question:after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1.35rem;
}

.faq-item.is-open .faq-question:after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--muted-foreground);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 30px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-links a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.form-card {
  padding: 30px;
  color: var(--foreground);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.form-error {
  min-height: 0;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
}
.form-error:not(:empty) {
  margin-bottom: 12px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  color: #17432b;
  background: #dff3e8;
  font-weight: 700;
}

.form-card.is-sent .form-success {
  display: block;
}

.site-footer {
  padding: 58px 0 34px;
  background: #080808;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.55fr);
  gap: 34px;
}

.footer-grid p,
.footer-grid a,
.legal-line {
  color: rgba(255, 255, 255, 0.66);
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.legal-line {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.legal-page {
  padding: 132px 0 80px;
}

.legal-content {
  max-width: 820px;
}

.legal-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted-foreground);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (max-width: 980px) {
  .desktop-nav,
  .desktop-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    box-shadow: 0 24px 50px rgba(10, 10, 10, 0.12);
  }

  .site-header.is-open .mobile-panel {
    display: block;
  }

  .mobile-panel .container {
    display: grid;
    gap: 2px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .mobile-panel a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(229, 225, 216, 0.7);
    font-weight: 700;
  }

  .stats-grid,
  .vertical-grid,
  .method-grid,
  .case-grid,
  .process-grid,
  .about-panel,
  .contact-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .about-panel {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 128px 0 76px;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-card {
    padding: 22px;
  }
}
