:root {
  color-scheme: light;
  --ink: #0d141a;
  --ink-2: #141d24;
  --ink-3: #1d2730;
  --paper: #ffffff;
  --paper-warm: #f7f5f1;
  --paper-cool: #f4f6f7;
  --line: #dfe4e7;
  --line-dark: #2c3841;
  --text: #11181f;
  --muted: #65717b;
  --muted-dark: #a9b4bc;
  --orange: #f59e0b;
  --orange-hot: #f68f00;
  --orange-deep: #d97706;
  --orange-soft: #fff4db;
  --green: #197a52;
  --red: #b42318;
  --shadow-sm: 0 8px 24px rgba(13, 20, 26, 0.06);
  --shadow-md: 0 20px 60px rgba(13, 20, 26, 0.12);
  --shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-height: 78px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0; min-width: 320px; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p, h1, h2, h3, h4 { margin-top: 0; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { color: inherit; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 780; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 720; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-160%);
  border-radius: 8px; background: var(--paper); color: var(--ink); padding: 10px 14px;
  font-weight: 700; transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(52px, 7vw, 88px) 0; }
.surface-warm { background: var(--paper-warm); }
.surface-cool { background: var(--paper-cool); }
.surface-dark { background: var(--ink); color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  color: var(--orange-deep); font-size: 0.78rem; font-weight: 780;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 2px; background: currentColor; content: ""; }
.surface-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #ffb640; }
.lede {
  max-width: 720px; color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.7;
}
.surface-dark .lede, .hero .lede, .page-hero .lede { color: #c5cdd3; }
.section-heading { margin-bottom: clamp(38px, 6vw, 64px); }
.section-heading h2 { max-width: 840px; margin-bottom: 20px; }
.section-heading .lede { margin-bottom: 0; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 100;
  height: var(--header-height); color: var(--paper);
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height); gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand-symbol { width: 31px; height: 33px; flex: 0 0 31px; object-fit: contain; }
.brand-wordmark {
  display: block; width: 122px; height: 28px; flex: 0 0 122px;
  background: currentColor;
  -webkit-mask-image: url('/assets/brand/correlta-wordmark.svg');
  mask-image: url('/assets/brand/correlta-wordmark.svg');
  -webkit-mask-position: left center; mask-position: left center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-mobile-actions { display: none; }
.main-nav a:not(.button) {
  position: relative; color: #d5dce1; font-size: 0.92rem;
  font-weight: 620; text-decoration: none;
}
.main-nav a:not(.button)::after {
  position: absolute; right: 0; bottom: -8px; left: 0; height: 2px;
  transform: scaleX(0); transform-origin: left; background: var(--orange);
  content: ""; transition: transform 160ms ease;
}
.main-nav a:not(.button):hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  background: rgba(255,255,255,0.05); color: #fff; cursor: pointer; font-size: .78rem; font-weight: 700;
}

/* Buttons */
.button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 9px; padding: 11px 17px;
  font-size: 0.92rem; font-weight: 750; line-height: 1; text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 28px rgba(245,158,11,0.18); }
.button-primary:hover { background: #ffac19; box-shadow: 0 14px 34px rgba(245,158,11,0.26); }
.button-ghost { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.045); color: var(--paper); }
.button-ghost:hover { border-color: rgba(255,255,255,0.34); background: rgba(255,255,255,0.08); }
.button-dark { background: var(--ink); color: #fff; }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: #b9c0c5; background: var(--paper-cool); }
.button-link { min-height: auto; justify-content: flex-start; padding: 0; color: var(--orange-deep); font-weight: 750; }
.button-link:hover { transform: none; color: #b95f00; }

/* Hero */
.hero {
  position: relative; min-height: 820px; overflow: hidden;
  background: radial-gradient(circle at 76% 28%, rgba(245,158,11,0.14), transparent 30%),
              linear-gradient(120deg, #061019 0%, var(--ink) 54%, #172029 100%);
  color: var(--paper);
}
.hero::after {
  position: absolute; inset: auto 0 0; height: 150px;
  background: linear-gradient(to top, rgba(5,12,18,0.94), transparent);
  content: ""; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 3; display: grid; min-height: 760px;
  grid-template-columns: minmax(0,1.12fr) minmax(400px,.88fr);
  align-items: center; gap: clamp(34px,4.5vw,64px);
  padding-top: calc(var(--header-height) + 48px); padding-bottom: 54px;
}
.hero-copy { position: relative; z-index: 5; max-width: 760px; }
.hero h1 {
  max-width: 760px; margin-bottom: 22px;
  font-size: clamp(3.2rem,5vw,5rem); line-height: 1.02; letter-spacing: -0.03em;
}
.hero .lede { max-width: 660px; margin-bottom: 28px; font-size: clamp(1.05rem,1.45vw,1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.hero-pillars {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 23px;
}
.hero-pillar { display: grid; gap: 11px; padding: 4px 20px 4px 0; }
.hero-pillar + .hero-pillar { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 20px; }
.hero-pillar strong { display: block; margin-bottom: 3px; color: #fff; font-size: 0.9rem; }
.hero-pillar span { display: block; color: #98a5ae; font-size: 0.76rem; line-height: 1.45; }
.hero-visual { position: relative; min-height: 600px; }
.hero-art {
  position: absolute; inset: -52px -10vw -34px -16px;
  width: calc(100% + 10vw + 16px); height: calc(100% + 86px);
  object-fit: cover; object-position: center; opacity: 0.98;
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 100%);
}
.hero-art-shade {
  position: absolute; inset: -52px -10vw -34px -16px;
  background: linear-gradient(90deg, rgba(13,20,26,0.78) 0%, transparent 28%);
  pointer-events: none;
}
.hero-dashboard {
  position: absolute; z-index: 3; right: clamp(-34px,-2vw,-12px); bottom: 24px;
  width: min(560px,96%); border-radius: 12px; box-shadow: var(--shadow-dark);
}

/* Signal strip */
.signal-strip { border-bottom: 1px solid var(--line); background: #fff; }
.signal-strip .container {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px;
  padding-top: 22px; padding-bottom: 22px;
}
.signal-strip strong { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-items {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px;
  color: #4c5861; font-size: 0.88rem; font-weight: 650;
}
.signal-item { display: inline-flex; align-items: center; gap: 8px; }

/* Problem / outcome */
.problem-grid {
  display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr);
  align-items: start; gap: clamp(48px,8vw,100px);
}
.problem-copy { position: sticky; top: 36px; }
.problem-copy h2 { margin-bottom: 22px; }
.problem-copy .lede { margin-bottom: 28px; }
.switching-stack { display: grid; gap: 14px; }
.switch-card {
  display: grid; grid-template-columns: 48px 1fr; align-items: start; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.switch-card-number {
  display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px;
  background: var(--paper-cool); color: var(--muted); font-size: 0.77rem; font-weight: 800;
}
.switch-card.is-after { border-color: #efd29d; background: linear-gradient(135deg,#fff 0%,#fffaf0 100%); }
.switch-card.is-after .switch-card-number { background: var(--orange-soft); color: #a35400; }
.switch-card h3 { margin-bottom: 8px; }
.switch-card p { color: var(--muted); font-size: 0.95rem; }


/* Analytics consent */
.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed; z-index: 1200; right: 18px; bottom: 18px; left: 18px;
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px;
  width: min(860px, calc(100% - 36px)); margin-inline: auto;
  transform: translateY(14px); opacity: 0;
  border: 1px solid rgba(255,255,255,.13); border-radius: 14px;
  background: rgba(10,17,23,.97); color: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.3);
  padding: 20px 22px; transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}
.analytics-consent.is-visible { transform: translateY(0); opacity: 1; }
.analytics-consent-copy { max-width: 590px; }
.analytics-consent-copy strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.analytics-consent-copy p { margin: 0 0 5px; color: #b7c1c8; font-size: .88rem; line-height: 1.5; }
.analytics-consent-copy a { color: #e3e8eb; font-size: .8rem; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button-consent-secondary {
  border-color: rgba(255,255,255,.2); background: transparent; color: #fff;
}
.button-consent-secondary:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.cookie-settings-link {
  appearance: none; border: 0; background: none; color: #87949c;
  padding: 0; cursor: pointer; font: inherit; font-size: inherit; text-decoration: none;
}
.cookie-settings-link:hover { color: #fff; }

@media(max-width:700px) {
  .analytics-consent { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .analytics-consent-actions { justify-content: stretch; }
  .analytics-consent-actions .button { flex: 1 1 0; }
}
