/* ==========================================================================
   Ruh Estimator — Landing Page
   Brand tokens from ruh-branding skill v2.6.0
   ========================================================================== */

:root {
  /* Ruh brand */
  --purple:        #AE00D0;
  --purple-deep:   #7B5AFF;
  --ink:           #12195E;
  --ink-body:      #111111;
  --body:          #2d2f4a;
  --muted:         #64668c;
  --gray:          #888888;
  --tint:          #F3EEFF;
  --rule:          #D8D0F0;
  --surface:       #ffffff;
  --surface-alt:   #faf9fd;
  --ink-dark:      #0a0f38;

  /* Type */
  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-sans:    "Inter", "Calibri", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale */
  --container:    1240px;
  --radius:       14px;
  --radius-sm:    8px;

  /* Motion */
  --ease:         cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========== Typography =========== */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 900;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}
p { margin: 0; color: var(--body); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--tint); }

.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}

.sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin-top: 14px;
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 20px rgba(174, 0, 208, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(174, 0, 208, 0.35);
  background: #9900b7;
}
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid transparent;
}
.btn-ghost:hover { color: var(--purple); }
.btn-ghost-light {
  color: #fff;
}
.btn-ghost-light:hover { color: var(--tint); }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* =========== Nav =========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 1px 0 var(--rule), 0 8px 24px rgba(18, 25, 94, 0.04);
  background: rgba(255, 255, 255, 0.95);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-logo { height: 28px; width: auto; display: block; }
.brand-product {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-left: 12px;
  margin-left: 6px;
  border-left: 1px solid var(--rule);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--body);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  padding: 11px 20px;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* =========== Hero =========== */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 92% -10%, rgba(174, 0, 208, 0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(123, 90, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fdfbff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-trust {
  font-size: 14px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 460px;
}
.hero-trust strong { color: var(--ink); font-weight: 700; }

/* Hero visual — floating mocks */
.hero-visual {
  position: relative;
  min-height: 520px;
}
.mock-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(18, 25, 94, 0.04),
    0 12px 32px -8px rgba(18, 25, 94, 0.12),
    0 30px 60px -20px rgba(174, 0, 208, 0.18);
  padding: 20px 22px;
}
.mock-card-primary {
  top: 30px;
  left: 0;
  width: 86%;
  z-index: 3;
  animation: float-a 9s ease-in-out infinite;
}
.mock-card-secondary {
  bottom: 10px;
  right: -10px;
  width: 72%;
  z-index: 2;
  animation: float-b 11s ease-in-out infinite;
}
.mock-card-tertiary {
  top: -10px;
  right: 20px;
  z-index: 4;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px -6px rgba(18, 25, 94, 0.35);
  animation: float-c 8s ease-in-out infinite;
}
@keyframes float-a { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes float-b { 0%,100% { transform: translateY(0) } 50% { transform: translateY(6px) } }
@keyframes float-c { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }

.mock-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.mock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.mock-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.04em;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  color: var(--body);
  border-bottom: 1px dashed rgba(216, 208, 240, 0.7);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mock-row-muted { padding-top: 10px; }
.mock-pill {
  background: var(--tint);
  color: var(--purple) !important;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.mock-bars { display: flex; flex-direction: column; gap: 10px; }
.mock-bar {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.mock-bar-label { color: var(--muted); }
.mock-bar-track {
  height: 6px;
  background: var(--tint);
  border-radius: 999px;
  overflow: hidden;
}
.mock-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-deep));
  border-radius: 999px;
}
.mock-bar-val {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mock-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mock-chip-count {
  font-size: 11px;
  color: var(--purple);
  background: rgba(174, 0, 208, 0.18);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* =========== Sections =========== */
.section {
  padding: 120px 0;
}
.section-head {
  max-width: 780px;
  margin-bottom: 64px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========== Package / Deliverables =========== */
.section-package { background: var(--surface); }
.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.deliverable {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.deliverable:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 20px 40px -16px rgba(174, 0, 208, 0.22);
}
.deliverable-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.deliverable-icon svg { width: 22px; height: 22px; }
.deliverable h3 { margin-bottom: 10px; }
.deliverable p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.also-produces {
  margin-top: 40px;
  padding: 18px 24px;
  background: var(--surface-alt);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.also-produces .label { margin-bottom: 0; }
.also-produces span:last-child {
  font-size: 14px;
  color: var(--muted);
}

/* =========== Workflow split =========== */
.section-workflow { background: var(--surface-alt); }
.workflow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.workflow-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  position: relative;
  border: 1px solid var(--rule);
}
.workflow-col-unchanged {
  border-left: 4px solid var(--rule);
}
.workflow-col-new {
  border-left: 4px solid var(--purple);
  background: linear-gradient(180deg, #fdfbff 0%, #ffffff 40%);
}
.workflow-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  margin-bottom: 22px;
}
.workflow-tag-new {
  color: var(--purple);
  border-color: var(--purple);
  background: rgba(174, 0, 208, 0.06);
}
.workflow-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.workflow-col li {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 22px;
  position: relative;
}
.workflow-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rule);
}
.workflow-col-new li::before { background: var(--purple); }
.workflow-col li strong { color: var(--ink); font-weight: 700; }
.workflow-col code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--tint);
  color: var(--purple);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

/* =========== Pipeline =========== */
.section-pipeline { background: var(--surface); }
.pipeline {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  position: relative;
}
.pipeline-compact {
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.pipeline-node.pipeline-node-orchestrator {
  background: var(--ink);
  border-color: var(--ink);
}
.pipeline-node.pipeline-node-orchestrator .pipeline-num,
.pipeline-node.pipeline-node-orchestrator .pipeline-name { color: #fff; }
.pipeline-node.pipeline-node-orchestrator:hover { background: #0a0f38; border-color: var(--purple); }
.pipeline-node {
  position: relative;
  padding: 20px 12px 18px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  text-align: left;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pipeline-node:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}
.pipeline-node.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.pipeline-node.is-active .pipeline-num,
.pipeline-node.is-active .pipeline-name { color: #fff; }
.pipeline-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.08em;
}
.pipeline-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pipeline-revision {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pipeline-revision-arrow {
  font-size: 22px;
  color: var(--purple);
}
.pipeline-node-revision {
  background: var(--tint);
  border-color: transparent;
  flex-shrink: 0;
  padding: 14px 18px;
}
.pipeline-revision-note {
  font-size: 14px;
  color: var(--muted);
}
.pipeline-detail {
  margin-top: 32px;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-height: 140px;
  transition: background 0.3s var(--ease);
}
.pipeline-detail.is-revealed { background: #fff; border-color: var(--purple); }
.pipeline-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.pipeline-detail p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}
.pipeline-footnote {
  margin-top: 36px;
  padding: 18px 22px;
  border-left: 3px solid var(--purple);
  font-size: 14px;
  color: var(--muted);
  max-width: 900px;
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pipeline-mapping {
  margin-top: 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.pipeline-mapping > .label { margin-bottom: 18px; }
.pipeline-mapping-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pipeline-mapping-rows > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.pipeline-mapping-rows > div:last-child { border-bottom: 0; }
.pipeline-mapping-rows strong {
  font-size: 14px;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pipeline-mapping-rows span {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.55;
}
@media (max-width: 780px) {
  .pipeline-mapping-rows > div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========== Integrations =========== */
.section-integrations {
  background: var(--ink);
  color: #fff;
  padding: 100px 0;
}
.section-integrations .section-head h2 { color: #fff; }
.section-integrations .eyebrow { color: var(--purple-deep); }
.integrations {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.integration {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.integration:hover {
  border-color: var(--purple);
  background: rgba(174, 0, 208, 0.08);
}
.integration strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.integration span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.integrations-tagline {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  letter-spacing: 0.01em;
}

/* =========== Comparison =========== */
.section-compare { background: var(--surface); }
.compare-table {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  align-items: center;
}
.compare-row > div {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--body);
  border-bottom: 1px solid var(--rule);
}
.compare-row:last-child > div { border-bottom: 0; }
.compare-row > div:first-child {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--ink);
  border-right: 1px solid var(--rule);
}
.compare-cell-old {
  color: var(--gray);
  border-right: 1px solid var(--rule);
}
.compare-cell-new {
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-left: 48px !important;
}
.compare-cell-new::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--purple);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.compare-head > div {
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 24px !important;
  border-bottom: 2px solid var(--ink) !important;
}
.compare-head > div:first-child { border-right: 1px solid var(--rule); }
.compare-head .compare-cell-new::before { display: none; }

/* =========== Moat =========== */
.section-moat {
  background:
    radial-gradient(800px 400px at 30% 0%, rgba(174, 0, 208, 0.8), transparent 60%),
    linear-gradient(135deg, #12195E 0%, #1b1163 100%);
  color: #fff;
  padding: 120px 0;
}
.section-moat h2 { color: #fff; max-width: 760px; }
.moat-body {
  max-width: 680px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.moat-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}
.moat-step {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}
.moat-step-highlight {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(174, 0, 208, 0.6);
}
.moat-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

/* =========== Security =========== */
.section-security { background: var(--surface-alt); }
.security-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.security-tile {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.security-tile:hover { transform: translateY(-3px); border-color: var(--purple); }
.security-tile h3 { margin-bottom: 12px; color: var(--ink); }
.security-tile p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* =========== Case study =========== */
.section-case { background: var(--surface); }
.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.case-copy h2 { margin-bottom: 20px; }
.case-copy p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 560px; }
.link-arrow {
  display: inline-block;
  margin-top: 24px;
  color: var(--purple);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.link-arrow:hover { border-color: var(--purple); }
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  padding: 28px 24px;
  background: var(--surface-alt);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin-bottom: 8px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* =========== Final CTA =========== */
.section-cta {
  background:
    radial-gradient(900px 500px at 50% 120%, rgba(174, 0, 208, 0.55), transparent 60%),
    linear-gradient(180deg, #0a0f38 0%, #12195E 100%);
  color: #fff;
  text-align: center;
  padding: 140px 0;
}
.cta-inner {
  max-width: 780px;
  margin: 0 auto;
}
.section-cta h2 { color: #fff; margin-bottom: 20px; }
.section-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.email-card {
  margin: 40px auto 0;
  max-width: 560px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.email-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.email-card-address {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  flex: 1;
  transition: color 0.2s var(--ease);
  word-break: break-all;
}
.email-card-address:hover { color: var(--tint); }
.email-card-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  flex-shrink: 0;
}
.email-card-copy:hover {
  background: var(--purple);
  border-color: var(--purple);
}
.email-card-copy.is-copied {
  background: #16a34a;
  border-color: #16a34a;
}
.cta-footnote {
  margin-top: 28px !important;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

@media (max-width: 560px) {
  .email-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .email-card-copy { align-self: stretch; justify-content: center; }
}

/* =========== Footer =========== */
.footer {
  background: #fff;
  padding: 80px 0 32px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-logo { height: 36px; }
.footer-tag {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray);
}
.footer-bottom a { color: var(--gray); transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--purple); }

/* =========== Responsive =========== */
@media (max-width: 1080px) {
  .deliverables { grid-template-columns: repeat(2, 1fr); }
  .security-tiles { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: repeat(5, 1fr); }
  .pipeline-compact { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { min-height: 460px; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 80px; }
  .section-head { margin-bottom: 40px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; padding: 14px 20px; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .deliverables { grid-template-columns: 1fr; gap: 16px; }
  .workflow-split { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline-compact { grid-template-columns: repeat(2, 1fr); }
  .pipeline-detail-grid { grid-template-columns: 1fr; gap: 18px; }

  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule);
    padding: 14px 20px;
  }
  .compare-row > div:first-child {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple);
    padding: 14px 20px 6px;
    background: transparent;
  }
  .compare-cell-new { padding-left: 44px !important; }
  .compare-cell-new::before { left: 20px; }
  .compare-head { display: none; }

  .case-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-stats { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
