/* ═══════════════════════════════════════════
   SECTIONS — Homepage section layouts
   ═══════════════════════════════════════════ */

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 var(--sp-64);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

/* ── Hero dot wave background ── */
.hero-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.2;
}

.hero-dots-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: auto;
  transform: translate(-50%, -50%);
  transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.hero-eyebrow {
  color: var(--fog);
  margin-bottom: var(--sp-24);
}

.hero-headline {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cloud);
  margin-bottom: var(--sp-24);
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--sp-40);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
}


/* ════════════════════════════════
   TRUST BAR
   ════════════════════════════════ */
.trust-bar {
  padding: var(--sp-48) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ink);
}

.trust-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--sp-24);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
}

.trust-logos span {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.trust-logos .divider {
  background: rgba(255, 255, 255, 0.1);
}


/* ════════════════════════════════
   PROBLEM SECTION
   ════════════════════════════════ */
.problem {
  padding: var(--sp-128) 0;
  background: var(--ink);
}

.problem-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--sp-80);
}

.problem-header .eyebrow {
  margin-bottom: var(--sp-16);
}

.problem-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cloud);
}

.problem-cards {
  display: flex;
  gap: var(--sp-24);
  max-width: 1120px;
  margin: 0 auto;
}

.problem-card {
  flex: 1;
  padding: var(--sp-32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: transparent;
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-24);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.problem-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--fog);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-12);
}

.problem-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--fog);
}


/* ════════════════════════════════
   PLATFORM SECTION
   ════════════════════════════════ */
.platform {
  padding: var(--sp-128) 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-header {
  max-width: 1120px;
  margin: 0 auto var(--sp-64);
}

.platform-header .eyebrow {
  margin-bottom: var(--sp-16);
}

.platform-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cloud);
}

/* Feature cards */
.feature-card {
  max-width: 1120px;
  margin: 0 auto var(--sp-32);
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 366px;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card-text {
  flex: 0 0 440px;
  padding: var(--sp-40);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--charcoal);
}

.feature-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-16);
}

.feature-card-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cloud);
  margin-bottom: var(--sp-16);
}

.feature-card-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--fog);
}

.feature-card-mockup {
  flex: 1;
  background: var(--charcoal);
  padding: var(--sp-32);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Context Engine mockup */
.file-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  color: var(--cloud);
}

.file-list-item:last-child {
  border-bottom: none;
}

.file-list-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: none;
  fill: var(--accent);
}

/* Agent Harness mockup */
.feature-card--dark .feature-card-text {
  background: var(--ink);
}

.feature-card--dark .feature-card-label {
  color: var(--accent);
}

.feature-card--dark .feature-card-title {
  color: var(--cloud);
}

.feature-card--dark .feature-card-body {
  color: var(--text-muted);
}

.feature-card--dark .feature-card-mockup {
  background: var(--charcoal);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.workflow-mockup {
  width: 100%;
  max-width: 440px;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-16);
  padding: 14px 0;
  position: relative;
}

.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 42px;
  bottom: -14px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.workflow-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.workflow-dot--slate {
  background: rgba(80, 80, 80, 0.2);
  color: var(--fog);
}

.workflow-step-content {
  padding-top: 4px;
}

.workflow-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cloud);
  margin-bottom: 2px;
}

.workflow-step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.workflow-tags {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-16);
  flex-wrap: wrap;
}

.workflow-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}


/* ════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════ */
.how-it-works {
  padding: var(--sp-128) 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.how-header {
  max-width: 1120px;
  margin: 0 auto var(--sp-64);
}

.how-header .eyebrow {
  margin-bottom: var(--sp-16);
}

.how-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cloud);
  max-width: 600px;
}

.phase-cards {
  display: flex;
  gap: var(--sp-24);
  max-width: 1120px;
  margin: 0 auto;
}

.phase-card {
  flex: 1;
  padding: var(--sp-32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: transparent;
}

.phase-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-24);
}

.phase-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fog);
}

.phase-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 4px 0;
}

.phase-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-12);
}

.phase-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--fog);
  margin-bottom: var(--sp-24);
}

.phase-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.phase-del-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fog);
}

/* Phase 03 dark variant — same as regular */
.phase-card--dark {
  background: transparent;
}


/* ════════════════════════════════
   PROOF POINTS
   ════════════════════════════════ */
.proof-points {
  padding: var(--sp-128) 0;
  background: var(--ink);
}

.proof-header {
  max-width: 1120px;
  margin: 0 auto var(--sp-64);
}

.proof-header .eyebrow {
  color: var(--accent);
  margin-bottom: var(--sp-16);
}

.proof-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cloud);
}

.proof-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto var(--sp-48);
}

.proof-stat {
  flex: 1;
  text-align: center;
  padding: 0 var(--sp-32);
}

.proof-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-stat-val {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--sp-12);
}

.proof-stat-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.proof-footnote {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.25);
}


/* ════════════════════════════════
   SECURITY
   ════════════════════════════════ */
.security {
  padding: var(--sp-96) 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.security-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  margin-bottom: var(--sp-64);
}

.security-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.security-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cloud);
  text-align: center;
}

.security-layout {
  display: flex;
  align-items: center;
  gap: var(--sp-80);
  max-width: 1120px;
  margin: 0 auto;
}

.security-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
}

.security-col--left {
  text-align: right;
}

.security-col--right {
  text-align: left;
}

.security-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.security-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cloud);
  margin-bottom: 6px;
}

.security-item p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fog);
}

.security-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 180px;
  flex-shrink: 0;
}

/* Shield draw animation — outer → inner → check */
.shield-outer {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1s var(--ease-out);
}

.shield-inner {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  transition: stroke-dashoffset 0.8s var(--ease-out) 0.3s;
}

.shield-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 1s var(--ease-out) 1s;
}

.security-layout.in .shield-outer,
.security-layout.in .shield-inner,
.security-layout.in .shield-check {
  stroke-dashoffset: 0;
}


/* ════════════════════════════════
   COMPARISON
   ════════════════════════════════ */
.comparison {
  padding: var(--sp-96) 0;
  background: var(--ink);
}

.comparison-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--sp-64);
}

.comparison-header .eyebrow {
  margin-bottom: var(--sp-16);
}

.comparison-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cloud);
}

.comparison-cols {
  display: flex;
  gap: var(--sp-32);
  max-width: 1120px;
  margin: 0 auto;
}

.comparison-col {
  flex: 1;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  background: var(--charcoal);
  padding: var(--sp-40);
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
}

.comparison-col--accent {
  border-color: rgba(255, 92, 70, 0.25);
  background: linear-gradient(180deg, rgba(255, 92, 70, 0.04) 0%, var(--charcoal) 100%);
}

.comparison-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}

.comparison-col-label--accent {
  color: var(--accent);
}

/* Status Quo column */
.comparison-category {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.comparison-category-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fog);
}

.comparison-sub-row {
  display: flex;
  gap: var(--sp-12);
}

.comparison-sub-card {
  flex: 1;
  background: #2A2A2A;
  border-radius: var(--radius);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comparison-sub-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
}

.comparison-sub-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-300);
}

/* Parallel Loop column */
.comparison-pl-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding-bottom: var(--sp-24);
  border-bottom: 1px solid rgba(255, 92, 70, 0.12);
}

.comparison-pl-row--last {
  border-bottom: none;
  padding-bottom: 0;
}

.comparison-pl-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--cloud);
}

.comparison-pl-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--fog);
}


/* ════════════════════════════════
   CTA FOOTER
   ════════════════════════════════ */
.cta-footer {
  padding: var(--sp-128) 0 var(--sp-64);
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-footer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 600px 400px at 50% 40%, rgba(80, 80, 80, 0.08) 0%, transparent 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.cta-headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cloud);
  margin-bottom: var(--sp-24);
}

.cta-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--sp-40);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  margin-bottom: var(--sp-80);
}

.cta-footer .footer-links {
  padding-top: var(--sp-32);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 1024px) {
  .feature-card {
    flex-direction: column;
  }

  .feature-card-text {
    flex: 0 0 auto;
  }

  .feature-card-mockup {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 36px;
  }

  .problem-cards,
  .phase-cards,
  .comparison-cols {
    flex-direction: column;
  }

  .proof-stats {
    flex-direction: column;
    gap: var(--sp-32);
  }

  .proof-stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--sp-32);
  }

  .security-layout {
    flex-direction: column;
    gap: var(--sp-48);
  }

  .security-col--left,
  .security-col--right {
    text-align: center;
  }

  .security-shield {
    order: -1;
  }

  .problem,
  .platform,
  .how-it-works,
  .proof-points,
  .security,
  .comparison,
  .cta-footer {
    padding: var(--sp-80) 0;
  }

  .cta-headline {
    font-size: 28px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    gap: var(--sp-12);
  }
}
