:root {
  --bg: #0d1224;
  --bg-deep: #0b101f;
  --card: #18213b;
  --card-2: #1f2a4a;
  --line: #2c3a5e;
  --ink: #eaf0fb;
  --muted: #93a3c6;
  --green: #34d399;
  --green-deep: #16351f;
  --green-rgb: 52 211 153;
  --blue: #5b8def;
  --blue-rgb: 91 141 239;
  --amber: #f5b14c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgb(0 0 0 / 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.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;
}

/* ============ header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 12px 28px;
  background: rgb(11 16 31 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(44 58 94 / 0.6);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 130px;
}

.brand-logo {
  width: 130px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a,
.nav-cta,
.button {
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid rgb(var(--green-rgb) / 0.45);
  border-radius: 8px;
  padding: 9px 15px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: rgb(var(--green-rgb) / 0.12);
  border-color: var(--green);
}

/* ============ hero ============ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: 88svh;
  padding: 84px 28px 96px;
  overflow: hidden;
  background:
    url("./assets/hero-backdrop.svg") center / cover no-repeat,
    var(--bg-deep);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin-left: max(0px, calc((100vw - 1240px) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: white;
}

.hero-statement {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-frame {
  margin: 0 -60px 0 0;
  transform: perspective(1400px) rotateY(-6deg) rotateX(1.5deg);
  transform-origin: left center;
}

/* ============ framed screenshots ============ */

.hero-frame,
.layer-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}

.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.frame-bar span:first-child {
  background: rgb(var(--green-rgb) / 0.75);
}

.frame-bar em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-frame img,
.layer-frame img {
  width: 100%;
  height: auto;
  background: #f6f9fd;
}

.hero-frame img {
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  object-position: top right;
}

/* ============ buttons ============ */

.button {
  min-height: 46px;
  border-radius: 9px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

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

.button-primary {
  background: var(--green);
  color: #08130c;
  box-shadow: 0 10px 32px rgb(var(--green-rgb) / 0.28);
}

.button-primary:hover {
  background: #4be0aa;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgb(255 255 255 / 0.04);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 0.09);
  border-color: rgb(147 163 198 / 0.6);
}

/* ============ sections ============ */

.section {
  padding: 100px 28px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  font-weight: 700;
  color: white;
}

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

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

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============ problem ============ */

.problem-section {
  background: var(--bg-deep);
  border-top: 1px solid rgb(44 58 94 / 0.4);
  border-bottom: 1px solid rgb(44 58 94 / 0.4);
}

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

.fail-card,
.module-card,
.outcome-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.fail-card:hover,
.module-card:hover,
.outcome-card:hover {
  border-color: rgb(var(--green-rgb) / 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.35);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card-2);
  color: var(--green);
}

.fail-card .card-icon {
  color: var(--amber);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.fail-card h3,
.module-card h3,
.outcome-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
}

.fail-card p,
.module-card p,
.outcome-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.stat-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 36px;
  margin-top: 44px;
  padding: 28px 34px;
  border: 1px solid rgb(245 177 76 / 0.4);
  border-radius: var(--radius);
  background: rgb(245 177 76 / 0.06);
}

.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.stat-band p {
  margin: 0;
  max-width: 640px;
  font-size: 1.02rem;
}

.stat-band strong {
  color: var(--amber);
}

/* ============ insight ============ */

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

.compare-col {
  border-radius: var(--radius);
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--card);
}

.compare-col.good {
  border-color: rgb(var(--green-rgb) / 0.5);
  background: var(--green-deep);
}

.compare-col h3 {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-col.good h3 {
  color: var(--green);
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-col li {
  position: relative;
  padding: 9px 0 9px 32px;
  border-top: 1px solid rgb(44 58 94 / 0.55);
  font-size: 0.98rem;
  color: var(--ink);
}

.compare-col.bad li {
  color: var(--muted);
}

.compare-col li::before {
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  text-align: center;
  font-weight: 700;
}

.compare-col.good li::before {
  content: "✓";
  color: var(--green);
}

.compare-col.bad li::before {
  content: "✕";
  color: var(--amber);
}

.insight-punchline {
  margin: 44px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.5;
}

.insight-punchline strong {
  color: var(--green);
}

/* ============ layers ============ */

.layers-section {
  background: var(--bg-deep);
  border-top: 1px solid rgb(44 58 94 / 0.4);
  border-bottom: 1px solid rgb(44 58 94 / 0.4);
}

.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}

.layer-row + .layer-row {
  border-top: 1px solid rgb(44 58 94 / 0.5);
}

.layer-row.reverse .layer-copy {
  order: 2;
}

.layer-tag {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.layer-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.18;
  font-weight: 700;
  color: white;
}

.layer-copy > p {
  margin: 16px 0 0;
  line-height: 1.7;
}

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(var(--green-rgb) / 0.15);
}

.layer-why {
  display: block;
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid rgb(var(--green-rgb) / 0.35);
  border-radius: var(--radius-sm);
  background: rgb(var(--green-rgb) / 0.07);
  color: var(--ink);
  font-size: 0.96rem;
}

.layer-why span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.layer-frame img {
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  object-position: top right;
}

.layer-frame img[src$=".svg"] {
  object-fit: contain;
  object-position: center;
  background: #f6f9fd;
}

/* ============ trust ============ */

.pipeline {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px 20px;
}

.pipeline li:last-child {
  border-color: rgb(var(--green-rgb) / 0.5);
  background: var(--green-deep);
}

.step-num {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.pipeline h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
}

.pipeline p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.trust-band {
  margin-top: 40px;
  padding: 24px 32px;
  border: 1px solid rgb(var(--green-rgb) / 0.4);
  border-radius: var(--radius);
  background: rgb(var(--green-rgb) / 0.06);
  text-align: center;
}

.trust-band p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--ink);
}

.trust-band strong {
  color: var(--green);
}

/* ============ platform ============ */

.platform-section {
  background: var(--bg-deep);
  border-top: 1px solid rgb(44 58 94 / 0.4);
  border-bottom: 1px solid rgb(44 58 94 / 0.4);
}

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

.platform-note {
  margin: 40px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
}

.platform-note strong {
  color: var(--green);
}

/* ============ outcomes ============ */

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

.outcome-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ cta ============ */

.final-cta {
  padding: 110px 28px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgb(var(--green-rgb) / 0.1), transparent 70%),
    var(--bg-deep);
  text-align: center;
}

.final-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.cta-logo {
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto 30px;
}

.final-inner > p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.demo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.demo-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-form input {
  width: min(300px, 100%);
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.demo-form input::placeholder {
  color: var(--muted);
}

.demo-form input:focus {
  border-color: rgb(var(--green-rgb) / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--green-rgb) / 0.16);
}

.contact-email {
  margin: 30px 0 0;
  font-size: 0.98rem;
}

.contact-email a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgb(var(--green-rgb) / 0.5);
  text-underline-offset: 4px;
}

.contact-email a:hover {
  color: var(--ink);
}

.site-footer {
  padding: 26px 28px;
  border-top: 1px solid rgb(44 58 94 / 0.5);
  background: var(--bg-deep);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============ responsive ============ */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
    padding-bottom: 72px;
  }

  .hero-content {
    margin-left: 0;
    width: min(680px, 100%);
  }

  .hero-frame {
    margin: 0;
    transform: none;
  }

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .site-nav {
    display: none;
  }

  .section {
    padding: 68px 20px;
  }

  .hero {
    padding: 56px 20px 64px;
  }

  .fail-grid,
  .module-grid,
  .outcome-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .layer-row,
  .layer-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  .layer-row.reverse .layer-copy {
    order: 0;
  }

  .stat-band {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-statement {
    font-size: 1.2rem;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .demo-actions,
  .demo-form {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .demo-form input,
  .button {
    width: 100%;
  }
}
