:root {
  --navy: #111923;
  --charcoal: #20252b;
  --ink: #1f2429;
  --muted: #68717b;
  --steel: #dde2e6;
  --paper: #fbf6ed;
  --white: #ffffff;
  --orange: #f47b20;
  --orange-dark: #c95312;
  --sage: #617568;
  --line: rgba(17, 25, 35, 0.14);
  --shadow: 0 20px 60px rgba(17, 25, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

input,
textarea,
button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-accent {
  background: #ebe5da;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 25, 35, 0.94);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 118px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #cfd6dc;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: #eef2f4;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--orange);
  color: #17120e;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(244, 123, 32, 0.24);
}

.button:hover,
.button:focus-visible {
  background: #ff8b31;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  color: #17120e !important;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(244, 123, 32, 0.7);
  color: var(--orange-dark);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  background: rgba(244, 123, 32, 0.1);
}

.section-dark .secondary-cta,
.button-call {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-call {
  min-width: 150px;
}

.call-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.call-cta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.section-dark .call-cta span {
  color: #d6dee2;
}

.hero {
  position: relative;
  min-height: calc(100vh - 112px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 36px 0 32px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/catelleon-calls-hero.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(0.9) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 25, 35, 0.98) 0%, rgba(17, 25, 35, 0.88) 38%, rgba(17, 25, 35, 0.42) 72%, rgba(17, 25, 35, 0.3) 100%),
    linear-gradient(0deg, rgba(17, 25, 35, 0.7), rgba(17, 25, 35, 0.08));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 4.95vw, 4.55rem);
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.03;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.15;
}

.hero-lede {
  max-width: 690px;
  color: #f1f3f4;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.trade-line {
  max-width: 660px;
  color: #d6dee2;
  font-weight: 700;
}

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

.signal-board {
  display: grid;
  gap: 16px;
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 25, 35, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.signal-card,
.mini-phone,
.phone-card,
.calc-card,
.contact-form {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.signal-card {
  padding: 18px;
}

.signal-card span,
.phone-card span,
.demo-number small,
.timeline-grid span,
.pain-card span {
  display: block;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong,
.signal-card small {
  display: block;
}

.signal-card small {
  color: var(--muted);
}

.flow-line {
  width: 3px;
  height: 34px;
  margin-left: 26px;
  background: var(--orange);
}

.message-stack {
  display: grid;
  gap: 10px;
}

.mini-phone {
  padding: 16px;
  border-left: 5px solid var(--orange);
}

.mini-phone.customer {
  border-left-color: var(--sage);
}

.mini-phone p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading p,
.custom-grid p,
.demo-copy p,
.founder-grid p,
.calculator p,
.contact-cta p,
.text-grid p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-heading p,
.section-dark .text-grid p,
.section-dark .faq-grid p {
  color: #cbd3d8;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pain-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.pain-card h3 {
  margin: 22px 0 10px;
}

.pain-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.demo-grid,
.text-grid,
.custom-grid,
.founder-grid,
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.video-shell {
  width: min(506px, 100%);
  aspect-ratio: 506 / 900;
  justify-self: center;
  padding: 0;
  border: 10px solid var(--navy);
  background: var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.demo-number {
  margin: 22px 0 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(17, 25, 35, 0.08);
}

.demo-number strong,
.demo-number span {
  display: block;
}

.demo-number span {
  color: var(--muted);
}

.demo-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr);
  gap: 14px;
  align-items: stretch;
}

.demo-actions .button,
.demo-actions .secondary-cta {
  width: 100%;
  min-height: 60px;
}

.demo-actions .call-cta {
  padding: 10px 12px;
  border: 1px solid rgba(244, 123, 32, 0.5);
  background: rgba(255, 255, 255, 0.55);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  min-height: 238px;
  padding: 26px;
  background: var(--white);
  border-top: 7px solid var(--orange);
}

.step span {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 24px;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

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

.phone-wrap {
  display: grid;
  gap: 18px;
}

.phone-card {
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.phone-card p {
  margin: 14px 0 0;
  color: var(--ink);
}

.phone-card.customer {
  margin-left: 50px;
  border-color: rgba(97, 117, 104, 0.4);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px 18px 18px 48px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  font-weight: 800;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 20px;
  width: 13px;
  height: 13px;
  background: var(--orange);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline-grid article {
  min-height: 150px;
  padding: 22px;
  background: var(--white);
  border-bottom: 6px solid var(--navy);
}

.timeline-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.08rem;
}

.fine-print {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem !important;
}

.founder-media {
  min-height: 380px;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--charcoal);
  background: var(--charcoal);
  overflow: hidden;
}

.founder-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.calc-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.calc-card label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd1d6;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(244, 123, 32, 0.5);
  outline-offset: 3px;
}

.calc-output {
  margin-top: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--orange-dark);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
}

.calc-output + span {
  color: var(--muted);
  font-weight: 800;
}

.faq-grid {
  columns: 2;
  column-gap: 18px;
}

details {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
}

details p {
  margin: 14px 0 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-cta {
  max-width: 760px;
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 35, 0.78);
  backdrop-filter: blur(8px);
}

.demo-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(92vh, 1120px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.demo-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  margin: 12px 12px 0 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.demo-modal-header {
  padding: 30px 30px 12px;
}

.demo-modal-header h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
}

.demo-modal-frame {
  height: 1001px;
  padding: 0 18px 18px;
}

.field-pair label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.field-full {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--sage) !important;
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
  background: var(--charcoal);
  color: var(--white);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #d9dee1;
}

.footer-logo {
  width: 96px;
  height: 48px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .demo-grid,
  .text-grid,
  .custom-grid,
  .founder-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: rgba(17, 25, 35, 0.82);
  }

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

  .signal-board {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 68px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    padding: 22px 16px 28px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

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

  .nav-menu a {
    padding: 10px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 10.7vw, 3.25rem);
  }

  .hero {
    padding: 40px 0 34px;
  }

  .hero-media {
    background-position: center;
  }

  .hero-actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .signal-board {
    display: none;
  }

  .button {
    width: 100%;
  }

  .secondary-cta {
    width: 100%;
  }

  .call-cta {
    width: 100%;
  }

  .demo-actions {
    grid-template-columns: 1fr;
  }

  .demo-modal {
    padding: 12px;
  }

  .demo-modal-panel {
    max-height: 94vh;
  }

  .demo-modal-header {
    padding: 24px 18px 10px;
  }

  .demo-modal-frame {
    padding: 0 10px 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 96px;
    height: 48px;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .pain-grid,
  .steps-grid,
  .timeline-grid,
  .feature-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .pain-card,
  .step {
    min-height: auto;
  }

  .phone-card.customer {
    margin-left: 0;
  }

  .faq-grid {
    columns: 1;
  }
}

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