:root {
  --bg: #f4f1ea;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --ink: #171717;
  --muted: #5f5b54;
  --line: rgba(23, 23, 23, 0.1);
  --accent: #a74a2f;
  --accent-dark: #803420;
  --highlight: #e8d5ba;
  --shadow: 0 18px 50px rgba(32, 24, 15, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(167, 74, 47, 0.11), transparent 28%),
    radial-gradient(circle at right 20%, rgba(232, 213, 186, 0.85), transparent 24%),
    linear-gradient(180deg, #f7f3ec 0%, var(--bg) 52%, #efe7dc 100%);
}

body.modal-open {
  overflow: hidden;
}

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

p {
  margin: 0;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(40, 28, 18, 0.06);
}

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

.nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8f0;
}

.nav .nav-cta:hover {
  color: #fff8f0;
  background: #252525;
}

.section {
  margin-bottom: 24px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

#services,
#how-it-works {
  scroll-margin-top: 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 249, 242, 0.7)),
    linear-gradient(135deg, #f2ede5 0%, #f7f3ed 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.section h3,
.footer h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
}

.lead {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

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

.hero-actions .button {
  min-height: 60px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff8f0;
}

.button-primary:hover {
  background: #252525;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.hero-points li {
  padding: 10px 14px;
  border: 1px solid rgba(167, 74, 47, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card,
.video-frame,
.info-card,
.split-card,
.process-step,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.hero-card {
  padding: 28px;
  display: grid;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 255, 255, 0.96));
}

.card-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-top: 12px;
  font-size: 1.9rem;
  line-height: 1.1;
}

.hero-card p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-card-visual {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(167, 74, 47, 0.12);
  border-radius: calc(var(--radius-md) - 4px);
  background:
    radial-gradient(circle at top right, rgba(167, 74, 47, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 239, 228, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.hero-card-grid path {
  stroke: rgba(23, 23, 23, 0.08);
  stroke-width: 1;
}

.hero-card-orbits path {
  fill: none;
  stroke: rgba(23, 23, 23, 0.12);
  stroke-width: 2.25;
  stroke-linecap: round;
}

.hero-card-brain .brain-shell {
  fill: rgba(255, 252, 247, 0.96);
  stroke: rgba(167, 74, 47, 0.2);
  stroke-width: 2.5;
}

.hero-card-brain .brain-centerline,
.hero-card-brain .brain-fold {
  fill: none;
  stroke: rgba(167, 74, 47, 0.46);
  stroke-width: 2.25;
  stroke-linecap: round;
}

.hero-card-links path {
  fill: none;
  stroke: rgba(167, 74, 47, 0.38);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hero-card-nodes circle {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(23, 23, 23, 0.08);
  stroke-width: 1.5;
}

.hero-card-nodes .hero-card-core {
  fill: rgba(255, 248, 240, 0.98);
  stroke: rgba(167, 74, 47, 0.2);
  stroke-width: 2;
}

.hero-card-dots circle {
  fill: rgba(167, 74, 47, 0.78);
}

.hero-card-visual text {
  fill: #fff9f3;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.section-heading p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.video-placeholder {
  position: relative;
}

.video-frame {
  min-height: 420px;
  padding: 36px;
  display: grid;
  align-content: center;
  justify-items: start;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.95), rgba(64, 31, 22, 0.9)),
    linear-gradient(180deg, #121212 0%, #412015 100%);
  color: #fff8f0;
  overflow: hidden;
}

.video-frame-embed {
  gap: 24px;
  align-content: stretch;
}

.video-embed-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background: #090909;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-embed-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.video-frame h3 {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.video-frame p {
  max-width: 34rem;
  margin: 16px 0 24px;
  color: rgba(255, 248, 240, 0.78);
  line-height: 1.75;
}

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

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

.info-card,
.split-card,
.process-step {
  padding: 24px;
}

.info-card h3,
.split-card h3,
.process-step h3 {
  font-size: 1.3rem;
  line-height: 1.15;
}

.info-card p,
.split-card p,
.process-step p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.process-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cta-panel {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(232, 213, 186, 0.56), rgba(255, 255, 255, 0.9));
}

.cta-panel h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
}

.cta-panel p:last-of-type {
  max-width: 50rem;
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: center;
}

.contact-list a {
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 700;
  line-height: 1.35;
}

.cta-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.cta-contact-row .button {
  flex: 0 0 auto;
}

.cta-contact-list {
  gap: 10px;
}

.cta-contact-row .contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
}

.cta-contact-row .contact-list a {
  text-align: center;
  white-space: nowrap;
}

.cta-panel .button {
  min-height: 60px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.contact-list a:hover,
.nav a:hover {
  color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.18s;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.48);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 28px 80px rgba(32, 24, 15, 0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-dialog h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.modal-copy {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.audit-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(167, 74, 47, 0.18);
  border-color: rgba(167, 74, 47, 0.28);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #25603c;
}

.form-status.is-error {
  color: #9a3320;
}

.botcheck {
  display: none;
}

@media (max-width: 960px) {
  .hero,
  .card-grid,
  .split-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .topbar,
  .section {
    padding: 20px;
    border-radius: 22px;
  }

  .topbar {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .hero-card,
  .hero-points {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }

  .video-frame {
    min-height: 300px;
    padding: 24px;
  }

  .video-frame-embed {
    gap: 18px;
  }

  .cta-panel {
    padding: 24px;
  }

  .cta-contact-row {
    align-items: flex-start;
  }

  .cta-contact-row .contact-list {
    gap: 12px;
  }

  .modal-dialog {
    padding: 24px 20px;
  }
}
