/* ==========================================================================
   AdvantageX — Complete Design System
   Based on Codex foundation · Expanded for multi-page site
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5d6878;
  --line: #dfe6ee;
  --soft: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.78);
  --blue: #1769ff;
  --cyan: #0aa3b5;
  --green: #0d9b68;
  --violet: #6653d9;
  --red: #E31937;
  --shadow: 0 24px 80px rgba(22, 33, 58, 0.14);
  --radius: 8px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(10, 163, 181, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #ffffff 100%);
  overflow-x: hidden;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
  z-index: -1;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(223, 230, 238, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.brand,
.nav-links,
.hero-actions,
.dashboard-top,
.metric-row,
.insight-panel,
.architecture,
.logo-strip,
.tech-cloud {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--blue), var(--cyan) 52%, var(--green)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.nav-links {
  gap: 18px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-cta {
  padding: 0 18px;
  color: #fff;
  background: #111827;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 100px 36px 48px;
  gap: 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:hover { color: var(--blue); }

.mobile-menu a:last-child {
  margin-top: 24px;
  padding: 16px 0;
  border: none;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.mobile-menu a:last-child:hover {
  background: #1255d4;
  color: #fff;
}

/* ==========================================================================
   EYEBROW + SECTION INTRO
   ========================================================================== */

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 800px;
}

.section-intro p:not(.eyebrow),
.platform-copy p,
.case-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button { padding: 0 22px; }

.primary {
  color: #fff;
  background: linear-gradient(135deg, #111827, #26344d);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
}

.primary:hover {
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.24);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.95);
}

.button-white {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   HERO (HOME)
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 140px 0 60px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
}

/* Orbital animation */
.orbital {
  position: absolute;
  inset: 0;
  filter: blur(0.2px);
}

.orbital span {
  position: absolute;
  border: 1px solid rgba(23, 105, 255, 0.22);
  border-radius: 50%;
  animation: drift 12s linear infinite;
}

.orbital span:nth-child(1) { inset: 32px 40px 64px 24px; }
.orbital span:nth-child(2) { inset: 96px 0 18px 80px; animation-duration: 16s; }
.orbital span:nth-child(3) { inset: 0 112px 112px 6px; animation-duration: 20s; }

@keyframes drift { to { transform: rotate(360deg); } }

/* Dashboard mock-up */
.dashboard {
  position: relative;
  top: 48px;
  width: min(100%, 620px);
  margin-left: auto;
  padding: 22px;
  border: 1px solid rgba(223, 230, 238, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
}

.dashboard-top {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tiny-label,
.metric-row span,
.insight-panel span,
.capability span,
.arch-column span,
.case-visual span,
.proof-strip span,
.process-grid span,
.goal-grid span,
.use-case-grid span,
.resource-grid span,
.external-card span,
.case-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-top strong { display: block; font-size: 24px; }

.live-dot {
  padding: 8px 12px;
  border-radius: 999px;
  color: #06784f;
  background: rgba(13, 155, 104, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.metric-row { gap: 12px; margin: 20px 0; }

.metric-row article {
  flex: 1;
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.metric-row strong { font-size: 32px; }

.workflow-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #f4f7fb;
}

.node {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.node.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.node.wide { grid-column: span 4; }

.insight-panel {
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: #111827;
}

.panel-copy strong {
  display: block;
  max-width: 360px;
  line-height: 1.35;
}

.confidence { min-width: 100px; text-align: right; }
.confidence strong { font-size: 28px; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */

section:not(.hero):not(.page-hero) {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0;
}

/* Trusted / industry strip */
.trusted { padding-top: 20px; text-align: center; }
.trusted p { color: var(--muted); font-size: 14px; font-weight: 700; }

.logo-strip,
.tech-cloud {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-strip span,
.tech-cloud span {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-weight: 800;
}

.logo-strip span:hover,
.tech-cloud span:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Story grid (4-step) */
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.story-step,
.industry-grid article,
.timeline article,
.proof-strip article,
.case-grid article,
.process-grid article,
.goal-grid a,
.use-case-grid article,
.resource-grid article,
.external-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.story-step:hover,
.industry-grid article:hover,
.timeline article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.story-step span,
.timeline span,
.proof-strip span,
.process-grid span,
.goal-grid span,
.use-case-grid span,
.resource-grid span,
.external-card span {
  display: block;
  margin-bottom: 40px;
  color: var(--blue);
  font-weight: 900;
}

.story-step p,
.industry-grid p,
.timeline p,
.faq p,
.capability p,
.proof-strip p,
.goal-grid p,
.use-case-grid p,
.resource-grid p,
.external-card p,
.case-grid p,
.process-grid p {
  color: var(--muted);
  line-height: 1.55;
}

/* Platform / Approach */
.platform {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.architecture {
  justify-content: space-between;
  gap: 16px;
  min-height: 470px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.arch-column { display: grid; gap: 12px; min-width: 150px; }

.arch-column strong {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.arch-core {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.arch-core::before,
.arch-core::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 105, 255, 0.45), transparent);
}

.arch-core::after { transform: rotate(90deg); }

.core-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  padding: 28px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(135deg, var(--blue), var(--cyan) 54%, var(--green));
  box-shadow: 0 26px 70px rgba(23, 105, 255, 0.25);
}

.core-ring span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Capabilities */
.capability-list { display: grid; gap: 22px; margin-top: 46px; }

.capability {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  transition: box-shadow 0.3s ease;
}

.capability:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.mini-product {
  min-height: 190px;
  border-radius: 22px;
  background: #111827;
  color: #fff;
  overflow: hidden;
}

.copilot { padding: 24px; }

.copilot p {
  display: inline-block;
  margin-bottom: 42px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #111827;
  background: #fff;
}

.copilot strong { display: block; line-height: 1.4; }

.bars {
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding: 28px;
  background: linear-gradient(135deg, #102032, #163d4a);
}

.bars i {
  width: 17%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #8ee7dc, var(--cyan));
  animation: pulseBar 2.8s ease-in-out infinite;
}

.bars i:nth-child(1) { height: 38%; }
.bars i:nth-child(2) { height: 72%; animation-delay: 0.2s; }
.bars i:nth-child(3) { height: 54%; animation-delay: 0.4s; }
.bars i:nth-child(4) { height: 88%; animation-delay: 0.6s; }
.bars i:nth-child(5) { height: 64%; animation-delay: 0.8s; }

@keyframes pulseBar { 50% { transform: scaleY(0.78); } }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 12px;
  padding: 28px;
  background: #f6f8fb;
}

.pipeline b {
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #dce8f7);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pipeline b:nth-child(2) { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.pipeline b:nth-child(4) { background: linear-gradient(135deg, var(--green), #6ee7b7); }

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}

/* Case study */
.case-study {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.case-visual {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  min-height: 360px;
}

.before, .after { padding: 26px; border-radius: 26px; }

.before {
  align-self: end;
  min-height: 220px;
  border: 1px solid var(--line);
  background: #fff;
}

.after {
  min-height: 360px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 163, 181, 0.4), transparent),
    #111827;
  box-shadow: var(--shadow);
}

.after strong {
  display: block;
  margin: 58px 0 18px;
  font-size: 40px;
  line-height: 1;
}

/* Tech cloud */
.tech-cloud { margin-top: 38px; }

/* Journey / Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 46px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 38px;
}

details {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  transition: box-shadow 0.3s ease;
}

details[open] { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); }

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

summary::-webkit-details-marker { display: none; }

details p { margin: 16px 0 0; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 760px; margin-inline: auto; }
.final-cta p { max-width: 680px; margin-inline: auto; }
.final-cta .button { margin-top: 20px; }

/* ==========================================================================
   PROOF STRIP
   ========================================================================== */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 82px;
}

.proof-strip span {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.proof-strip p { margin-bottom: 0; }

/* ==========================================================================
   PROCESS GRID
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.process-grid article { min-height: 190px; }

.process-grid span {
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

/* ==========================================================================
   GOAL SELECTOR (Use Cases)
   ========================================================================== */

.goal-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.goal-tab {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.goal-tab:hover { background: #fff; }

.goal-tab.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

section.goal-game:not(.page-hero) { padding-top: 20px; padding-bottom: 60px; }

.goal-panel {
  display: none;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: start;
}

.goal-panel.active { display: grid; }

.goal-panel h2 { font-size: clamp(32px, 4vw, 56px); }

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.use-case-grid article { min-height: 190px; }

.use-case-grid span {
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   GOAL GRID (Homepage teaser)
   ========================================================================== */

.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.goal-grid a {
  display: block;
  min-height: 190px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.goal-grid a:hover {
  border-color: rgba(23, 105, 255, 0.45);
  box-shadow: 0 18px 50px rgba(22, 33, 58, 0.1);
  transform: translateY(-3px);
}

.goal-grid span {
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goal-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.08;
}

/* ==========================================================================
   CASE GRID (2x2 named case studies)
   ========================================================================== */

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

.case-grid article {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.78);
}

.case-grid article:nth-child(2),
.case-grid article:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(13, 155, 104, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.78);
}

.case-grid span {
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-grid strong {
  display: block;
  margin: 34px 0 14px;
  font-size: 28px;
  line-height: 1.05;
}

.case-grid p { margin-bottom: 0; }

/* ==========================================================================
   RESOURCE GRID
   ========================================================================== */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.resource-grid article { min-height: 190px; }

.resource-grid span {
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-grid a,
.external-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.resource-grid a:hover,
.external-card a:hover { text-decoration: underline; }

.external-card {
  max-width: 760px;
  margin-top: 36px;
}

.resource-section { padding-bottom: 40px; }

/* ==========================================================================
   RESOURCE MAP (Use case to resource mapping)
   ========================================================================== */

.resource-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 46px;
}

.resource-map article {
  display: grid;
  grid-template-columns: 0.28fr 1fr 0.42fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s ease;
}

.resource-map article:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.resource-map span { color: var(--blue); font-weight: 900; }
.resource-map strong { line-height: 1.35; }
.resource-map a { color: var(--blue); font-weight: 900; }
.resource-map a:hover { text-decoration: underline; }

/* ==========================================================================
   JOURNEY PAGE
   ========================================================================== */

.journey-detail { padding-top: 36px; }

.journey-lane { display: grid; gap: 18px; }

.journey-lane article {
  display: grid;
  grid-template-columns: 0.12fr 0.34fr 0.54fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.06), transparent 40%),
    rgba(255, 255, 255, 0.74);
  transition: box-shadow 0.3s ease;
}

.journey-lane article:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.journey-lane span {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.journey-lane h2 { font-size: clamp(28px, 4vw, 46px); }

.journey-lane p,
.journey-lane li {
  color: var(--muted);
  line-height: 1.55;
}

.journey-lane strong { display: block; margin-bottom: 12px; }

.journey-lane ul { margin: 0; padding-left: 18px; }

.business-gets .value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.business-gets .value-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.3s, box-shadow 0.3s;
}

.business-gets .value-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.business-gets .value-grid span {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
  font-weight: 900;
}

.business-gets .value-grid p {
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   TEXT LINK
   ========================================================================== */

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--blue);
  font-weight: 900;
  transition: opacity 0.2s;
}

.text-link:hover { opacity: 0.7; }

/* ==========================================================================
   FINAL CTA — dual buttons
   ========================================================================== */

.final-cta .button + .button { margin-left: 8px; }

/* ==========================================================================
   PAGE HERO (internal pages)
   ========================================================================== */

.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(23, 105, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(10, 163, 181, 0.06), transparent 40%);
}

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

.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin: 0 auto 20px;
  text-align: center;
}

.page-hero p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

.compact-hero h1 {
  max-width: 980px;
  font-size: clamp(44px, 7vw, 86px);
}

.compact-hero p { max-width: 780px; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.stat-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.story-split p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.story-visual {
  min-height: 400px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.15), rgba(10, 163, 181, 0.1)),
    var(--soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.story-visual span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.value-card .value-num {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.value-card h3 { font-size: 22px; margin-bottom: 12px; }

.value-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.team-section { margin-top: 48px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.team-card h3 { font-size: 20px; margin-bottom: 4px; }

.team-card .team-role {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.team-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ==========================================================================
   CAREERS PAGE
   ========================================================================== */

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.perk-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.perk-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.1), rgba(10, 163, 181, 0.08));
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.perk-card h3 { font-size: 20px; margin-bottom: 8px; }
.perk-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.jobs-list {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  transition: box-shadow 0.3s, transform 0.3s;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.job-card h3 { font-size: 20px; margin-bottom: 6px; }

.job-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-apply {
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.job-apply:hover {
  background: var(--soft);
  border-color: var(--blue);
  color: var(--blue);
}

/* ==========================================================================
   CONTACT / LET'S TALK PAGE
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.1), rgba(10, 163, 181, 0.08));
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-value {
  font-weight: 700;
  font-size: 17px;
}

.contact-value a { color: var(--blue); }
.contact-value a:hover { text-decoration: underline; }

.contact-nav {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.contact-nav h3 { margin-bottom: 12px; }

.contact-nav p {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.contact-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-nav-link:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(23, 105, 255, 0.1);
}

.contact-nav-link::after {
  content: "\2192";
  color: var(--muted);
  transition: transform 0.2s;
}

.contact-nav-link:hover::after {
  transform: translateX(4px);
  color: var(--blue);
}

/* ==========================================================================
   LEGAL / CONTENT PAGES
   ========================================================================== */

.content-page {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 100px;
}

.content-page h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.content-page h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.content-page p,
.content-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.content-page li { margin-bottom: 8px; }

.content-page a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page .last-updated {
  display: inline-block;
  padding: 8px 16px;
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-weight: 900;
  color: var(--ink);
  font-size: 16px;
  white-space: nowrap;
}

.footer-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--ink); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero,
  .platform,
  .case-study { grid-template-columns: 1fr; }

  .hero { padding-top: 62px; }
  .hero-visual { min-height: 500px; }
  .dashboard { margin: 0 auto; }

  .story-grid,
  .industry-grid,
  .proof-strip,
  .process-grid,
  .goal-grid,
  .resource-grid,
  .dense-grid { grid-template-columns: repeat(2, 1fr); }

  .goal-panel { grid-template-columns: 1fr; gap: 24px; }
  .goal-panel h2 { font-size: 30px; }
  .compact-hero { padding-bottom: 48px; }
  .goal-controls {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 36px;
  }
  .goal-tab { padding: 8px 8px; font-size: 13px; }

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

  .business-gets .value-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-map article { grid-template-columns: 1fr; }
  .journey-lane article { grid-template-columns: 1fr; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-wrap: wrap; }
  .footer-left { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
    top: 10px;
    border-radius: 18px;
  }

  .goal-controls {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 8px;
    margin: 0 -12px 28px;
    padding: 0 12px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .goal-controls::-webkit-scrollbar { display: none; }

  .goal-tab {
    padding: 6px 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero,
  section:not(.hero):not(.page-hero),
  .footer-inner {
    width: calc(100% - 24px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 80px 0 38px;
  }

  .use-case-grid article { min-height: auto; }

  h1 { font-size: 52px; }

  .page-hero h1 { font-size: 38px; }
  .page-hero { padding: 120px 0 60px; }
  .compact-hero { padding-bottom: 36px; }

  .hero-text,
  .section-intro p:not(.eyebrow),
  .platform-copy p,
  .case-copy p,
  .final-cta p {
    font-size: 17px;
  }

  .hero-visual { min-height: auto; }

  .dashboard {
    top: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .metric-row,
  .insight-panel,
  .architecture,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-row,
  .architecture { display: grid; }

  .workflow-map { grid-template-columns: repeat(2, 1fr); }
  .node.wide { grid-column: span 2; }

  .story-grid,
  .industry-grid,
  .proof-strip,
  .process-grid,
  .goal-grid,
  .use-case-grid,
  .resource-grid,
  .dense-grid,
  .capability,
  .case-visual,
  .case-grid { grid-template-columns: 1fr; }

  .case-grid article { min-height: auto; }

  .business-gets .value-grid { grid-template-columns: 1fr; }

  .final-cta .button + .button { margin-left: 0; }

  section:not(.hero):not(.page-hero) { padding: 68px 0; }
  section.goal-game:not(.page-hero) { padding-top: 6px; padding-bottom: 28px; }
  .goal-panel { gap: 14px; }
  .goal-panel .eyebrow { margin-bottom: 6px; }
  .goal-panel h2 { font-size: 24px; }

  .architecture { min-height: auto; }
  .arch-core { min-height: 260px; }
  .capability { padding: 22px; }
  .case-visual { min-height: auto; }
  .after { min-height: 280px; }

  .stats-strip,
  .values-grid,
  .team-grid,
  .perks-grid { grid-template-columns: 1fr; }

  .story-split { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-sep { display: none; }
  .footer-right { flex-direction: column; align-items: flex-start; gap: 8px; }

  .job-card { grid-template-columns: 1fr; }
  .job-apply { justify-self: start; }

  .contact-grid { gap: 32px; }

  .content-page h2 { font-size: 24px; margin-top: 36px; }
}
