:root {
  --bg: #f3f0e8;
  --bg-soft: rgba(255, 255, 255, 0.58);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #fcfbf7;
  --line: rgba(11, 44, 69, 0.12);
  --line-strong: rgba(11, 44, 69, 0.22);
  --text: #0d1823;
  --muted: #506271;
  --brand: #103a5d;
  --brand-deep: #081b2d;
  --accent: #bc9b5f;
  --shadow: 0 20px 60px rgba(8, 27, 45, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(188, 155, 95, 0.24), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(16, 58, 93, 0.18), transparent 24%),
    linear-gradient(180deg, #f6f4ee 0%, #f1ede4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(16, 58, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 93, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

.page-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 0;
  left: 50%;
  z-index: 20;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  padding-left: max(20px, calc((100vw - 1200px) / 2));
  padding-right: max(20px, calc((100vw - 1200px) / 2));
  backdrop-filter: blur(18px);
  background: transparent;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  backdrop-filter: none;
}

.brand-mark {
  width: min(100%, 300px);
  max-width: 100%;
  display: block;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  min-width: 420px;
  justify-content: center;
  padding: 10px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 251, 247, 0.72);
  box-shadow: 0 10px 30px rgba(8, 27, 45, 0.06);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-deep);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 42px 0 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.module-card h2,
.cta-panel h2,
.proof-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.cta-panel h2 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.3vw, 5.4rem);
  max-width: 12.5ch;
  line-height: 0.98;
  overflow-wrap: anywhere;
  word-break: normal;
}

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

.hero-text,
.section-heading p,
.module-card p,
.process-card p,
.feature-card p,
.cta-panel p,
.proof-panel p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.04rem;
}

.hero-text {
  max-width: 61ch;
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

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

.button:focus-visible,
.topnav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.button-primary {
  color: #f7f5ef;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  box-shadow: 0 16px 32px rgba(16, 58, 93, 0.25);
}

.button-secondary {
  color: var(--brand-deep);
  border: 1px solid var(--line-strong);
  background: rgba(252, 251, 247, 0.78);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 32px 0 0;
}

.hero-stats li,
.feature-card,
.process-card,
.module-card,
.proof-panel,
.cta-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-stats li {
  min-height: 128px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  font-family: "Sora", sans-serif;
  color: var(--brand-deep);
}

.hero-stats span {
  color: var(--muted);
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
}

.visual-card-main {
  width: min(100%, 520px);
  padding: 28px;
  color: #f6f3eb;
  background:
    radial-gradient(circle at top right, rgba(188, 155, 95, 0.24), transparent 24%),
    linear-gradient(155deg, rgba(8, 27, 45, 0.98), rgba(16, 58, 93, 0.88));
  box-shadow: 0 28px 70px rgba(8, 27, 45, 0.28);
}

.card-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(247, 245, 239, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #76d6a2;
  box-shadow: 0 0 16px rgba(118, 214, 162, 0.65);
}

.visual-card-main h2 {
  margin: 24px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.visual-card-main p,
.visual-card-main span {
  color: rgba(247, 245, 239, 0.82);
}

.visual-metrics {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.visual-metrics article {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-metrics span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-metrics strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(16, 58, 93, 0.1);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 58, 93, 0.08);
}

.section {
  padding: 120px 0 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading h2,
.module-card h2,
.proof-panel h2,
.cta-panel h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.feature-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.module-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 58, 93, 0.08);
}

.module-card-accent .module-label {
  color: #f5f1e8;
  background: rgba(255, 255, 255, 0.08);
}

.feature-card h3,
.process-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

.module-card {
  padding: 34px;
  border-radius: 30px;
  overflow: hidden;
}

.module-card-accent {
  color: #f5f1e8;
  background:
    radial-gradient(circle at top left, rgba(188, 155, 95, 0.22), transparent 25%),
    linear-gradient(160deg, rgba(16, 58, 93, 0.97), rgba(8, 27, 45, 0.98));
}

.module-card-accent p,
.module-card-accent li,
.module-card-accent h2 {
  color: #f5f1e8;
}

.module-card ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.module-card li {
  position: relative;
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

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

.process-card {
  padding: 26px;
  border-radius: 24px;
}

.process-card-dark {
  color: #f6f3eb;
  background: linear-gradient(180deg, rgba(8, 27, 45, 0.95), rgba(16, 58, 93, 0.9));
}

.process-card-dark h3,
.process-card-dark p,
.process-card-dark span {
  color: #f6f3eb;
}

.proof-panel,
.cta-panel {
  display: grid;
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
}

.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-tags span {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--brand-deep);
  font-weight: 700;
  border: 1px solid rgba(16, 58, 93, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.cta-section {
  padding-bottom: 56px;
}

.cta-panel {
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(188, 155, 95, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 22px 0 6px;
  border-top: 1px solid rgba(13, 24, 35, 0.12);
}

.legal-footer__copy,
.legal-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer__copy span,
.legal-footer__copy a,
.legal-link {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.legal-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.legal-link:hover,
.legal-footer__copy a:hover {
  color: var(--brand-deep);
}

.legal-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.legal-dialog::backdrop {
  background: rgba(8, 27, 45, 0.42);
  backdrop-filter: blur(10px);
}

.legal-dialog__panel {
  border: 1px solid rgba(13, 24, 35, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(188, 155, 95, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.96), rgba(248, 245, 238, 0.94));
  box-shadow: 0 28px 70px rgba(8, 27, 45, 0.18);
}

.legal-dialog__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid rgba(13, 24, 35, 0.08);
}

.legal-dialog__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-dialog__head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.legal-dialog__close {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(13, 24, 35, 0.12);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.legal-dialog__body {
  display: grid;
  gap: 18px;
  padding: 22px 26px 28px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.legal-dialog__body section h3 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.legal-dialog__body section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-dialog__body a {
  color: var(--brand);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding-top: 20px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .feature-grid,
  .modules-shell,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .topbar {
    position: static;
    left: auto;
    width: auto;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
  }

  .topnav {
    min-width: 0;
    justify-content: center;
  }

  .hero-stats,
  .feature-grid,
  .modules-shell,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 12vw, 4.2rem);
  }

  .hero-stats li {
    min-height: unset;
  }

  .hero-visual {
    min-height: auto;
  }

  .section {
    padding-top: 88px;
  }

  .module-card h2,
  .proof-panel h2,
  .cta-panel h2,
  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .legal-footer {
    flex-direction: column;
    align-items: start;
  }

  .legal-dialog__head {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 210px;
  }

  .topnav {
    gap: 12px;
  }

  .hero {
    gap: 24px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .visual-card-main {
    padding: 22px;
  }

  .hero-visual {
    min-height: auto;
  }

  .module-card,
  .proof-panel,
  .cta-panel,
  .feature-card,
  .process-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
