/* ============================================================
   Innovaite — homepage styles
   Ported from the Claude Design prototype (Innovaite - Site.dc.html)
   Palette
     #FCFBF7  warm off-white base
     #16140F  near-black ink
     #E10000  accent red (AA on light bg — text/buttons)
     #FE0000  brand red (wordmark + canvas art)
     #FF7A6E  light red (on dark bg)
     #4A453D / #6E685F  muted ink
     #E6E2D8 / #DDD8CC / #E0DBCF / #C9C4B8  borders
     #F4F1E9  cream section / #F6F3EB  row hover
   ============================================================ */

:root {
  --bg: #FCFBF7;
  --ink: #16140F;
  --red: #DE0000;
  --red-bright: #FE0000;
  --red-light: #FF7A6E;
  --muted: #4A453D;
  --muted-2: #6E685F;
  --line: #E6E2D8;
  --line-2: #DDD8CC;
  --line-3: #E0DBCF;
  --cream: #F4F1E9;
  --row-hover: #F6F3EB;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--bg); }

a { color: inherit; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- wordmark ---------- */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .ai { color: var(--red-bright); }

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--red);
}
.mono { font-family: var(--mono); }

/* serif headings */
.serif { font-family: var(--serif); font-weight: 400; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  background: rgba(252, 251, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wordmark { font-size: 22px; }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); align-items: center; }
.nav-links a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--red); }

.nav-item { position: relative; }
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-trigger .caret { font-size: 9px; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  padding-top: 14px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-inner {
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -16px rgba(22, 20, 15, 0.25);
  padding: 10px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}
.nav-dropdown-inner a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.nav-dropdown-inner a:hover,
.nav-dropdown-inner a:focus-visible { background: var(--row-hover); color: var(--red); }
.nav-dropdown-inner a .num { font-family: var(--mono); font-size: 11px; color: var(--red); }
.nav-dropdown-sep { border-top: 1px solid var(--line); margin: 8px 14px; }
.nav-dropdown-overview { padding: 9px 14px !important; color: var(--muted-2) !important; font-size: 13px; }
.nav-dropdown-overview:hover { color: var(--red) !important; background: transparent !important; }

.btn-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-pill:hover, .btn-pill:focus-visible { background: var(--red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  outline: none;
}
.hero-canvas-wrap { position: absolute; inset: 0; }
.hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(252,251,247,0.92) 0%, rgba(252,251,247,0.55) 45%, rgba(252,251,247,0.1) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 110px 64px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 1020px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-shrink: 0; padding-bottom: 6px; }

.btn-primary {
  font-size: 15px;
  font-weight: 500;
  color: var(--bg);
  background: var(--red);
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink); transform: translateY(-2px); }
.btn-secondary {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--c9, #C9C4B8);
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  background: rgba(252, 251, 247, 0.6);
  transition: border-color 0.2s ease;
}
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--ink); }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line-2);
  background: rgba(252, 251, 247, 0.5);
}
.stat { padding: 28px 32px 40px 32px; border-right: 1px solid var(--line-2); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: none; }
.stat-num { font-family: var(--serif); font-size: 46px; line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted-2); margin-top: 8px; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap { position: relative; }
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
  background: var(--bg);
}
.ticker-track { display: flex; align-items: center; width: max-content; }
.ticker-item {
  font-family: var(--serif);
  font-size: 26px;
  white-space: nowrap;
  padding: 0 28px;
}
.ticker-diamond {
  width: 9px; height: 9px;
  background: var(--red-bright);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.motion-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 1px solid var(--muted-2);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
}
.motion-toggle:hover, .motion-toggle:focus-visible { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 110px 64px 90px 64px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head-left { display: flex; flex-direction: column; gap: 18px; }
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-head-note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 360px;
  text-wrap: pretty;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 340px;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  transition: background 0.25s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { background: var(--row-hover); }
.service-num { font-family: var(--mono); font-size: 14px; color: var(--red); align-self: start; padding-top: 8px; }
.service-body { display: flex; flex-direction: column; gap: 14px; }
.service-body h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 38px; }
.service-desc { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  border: 1px solid var(--line-2);
  padding: 5px 12px;
  border-radius: 100px;
}
.service-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
  margin-top: 6px;
  align-self: flex-start;
}
.service-link:hover, .service-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.service-viz canvas { display: block; }

/* ============================================================
   PROCESS (dark)
   ============================================================ */
.process { padding: 100px 64px 110px 64px; background: var(--ink); color: var(--bg); }
.process .eyebrow { color: var(--red-light); }
.process-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 72px; }
.process-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.05;
  max-width: 720px;
  text-wrap: balance;
}
.process-bar { height: 2px; background: rgba(252, 251, 247, 0.18); margin-bottom: 56px; position: relative; }
.process-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); width: 0%; transition: width 0.2s linear; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.process-step { display: flex; flex-direction: column; gap: 14px; }
.process-step .step-meta { font-family: var(--mono); font-size: 13px; color: var(--red-light); }
.process-step h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.process-step p { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(252, 251, 247, 0.65); text-wrap: pretty; }

/* ============================================================
   RESULTS (cream)
   ============================================================ */
.results { padding: 110px 64px; background: var(--cream); }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.results-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1.05; }
.results-head-left { display: flex; flex-direction: column; gap: 18px; }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--red); text-decoration: none; flex-shrink: 0; }
.link-arrow:hover, .link-arrow:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card {
  background: var(--bg);
  border: 1px solid var(--line-3);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(22, 20, 15, 0.25); }
.case-vignette { height: 180px; background: var(--cream); border-bottom: 1px solid var(--line-3); overflow: hidden; }
.case-body { padding: 28px 28px 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.case-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); }
.case-body h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.case-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* vignette internals */
.vg { padding: 18px 22px 14px 22px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.vg-head { display: flex; justify-content: space-between; align-items: center; }
.vg-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }
.vg-pill { font-family: var(--mono); font-size: 10px; color: var(--red); background: var(--bg); padding: 3px 8px; border-radius: 100px; }
.vg-live { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.vg-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* GTM bar chart */
.vg-bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; border-bottom: 1px solid var(--line-2); }
.vg-bars .bar { flex: 1; }
.vg-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--muted-2); }

/* Automation log */
.vg-log { padding: 16px 20px; gap: 7px; }
.vg-log-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); padding: 7px 10px;
}
.vg-log-row.alert { border-color: rgba(225,0,0,0.4); }
.vg-log-time { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.vg-badge { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 100px; }
.vg-badge.escalated { color: var(--bg); background: var(--red); border-color: var(--red); }

/* Training cohort */
.vg-cohort { padding: 16px 20px; gap: 9px; }
.vg-cohort-item { display: flex; flex-direction: column; gap: 4px; }
.vg-cohort-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.vg-track { height: 8px; background: var(--line); }
.vg-track > div { height: 100%; background: var(--red); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 110px 64px; }
.pricing-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.pricing-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1.05; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line-3);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg);
  position: relative;
}
.price-card.featured { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.price-tag-flag {
  position: absolute; top: -12px; left: 36px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--red); color: var(--bg); padding: 4px 12px;
}
.price-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted-2); }
.price-card.featured .price-kicker { color: rgba(252,251,247,0.6); }
.price-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.price-desc { font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.price-card.featured .price-desc { color: rgba(252,251,247,0.7); }
.price-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.price-card.featured .price-list { color: rgba(252,251,247,0.85); }
.price-list-item { display: flex; gap: 10px; align-items: baseline; }
.price-list-item .diamond { width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); flex-shrink: 0; }
.price-foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.price-card.featured .price-foot { border-top-color: rgba(252,251,247,0.2); }
.price-amount { font-family: var(--serif); font-size: 26px; }
.price-amount.italic { font-style: italic; }
.price-cta { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.price-cta:hover, .price-cta:focus-visible { color: var(--red); }
.price-card.featured .price-cta { color: var(--bg); }
.price-card.featured .price-cta:hover, .price-card.featured .price-cta:focus-visible { color: var(--red); }

/* ============================================================
   CONTACT (dark) + footer
   ============================================================ */
.contact { background: var(--ink); color: var(--bg); padding: 110px 64px 0 64px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 100px; }
.contact-left { display: flex; flex-direction: column; gap: 24px; }
.contact-left .eyebrow { color: var(--red-light); }
.contact-left h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.05; text-wrap: balance; }
.contact-left p { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(252,251,247,0.65); max-width: 440px; text-wrap: pretty; }
.contact-email { font-family: var(--mono); font-size: 14px; color: rgba(252,251,247,0.85); margin-top: 12px; }

.form { display: flex; flex-direction: column; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form input, .form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(252,251,247,0.3);
  color: var(--bg);
  font-size: 16px;
  font-family: inherit;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(252,251,247,0.45); }
.form input:focus, .form textarea:focus { border-bottom-color: var(--red); }
.form textarea { resize: vertical; line-height: 1.6; }
.form-block { display: flex; flex-direction: column; gap: 14px; }
.form-block-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(252,251,247,0.5); }
.interests { display: flex; gap: 10px; flex-wrap: wrap; }
.interest {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  background: transparent;
  color: rgba(252,251,247,0.85);
  border: 1px solid rgba(252,251,247,0.5);
  transition: all 0.2s ease;
}
.interest[aria-pressed="true"] { background: var(--red); color: var(--bg); border-color: var(--red); }
.form-submit-row { display: flex; align-items: center; gap: 20px; }
.btn-send {
  font-size: 15px; font-weight: 500; font-family: inherit;
  color: var(--bg); background: var(--red);
  padding: 16px 32px; border-radius: 100px; border: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-send:hover, .btn-send:focus-visible { background: var(--bg); color: var(--ink); transform: translateY(-2px); }
.form-error { font-size: 13px; color: var(--red-light); }
.form-success {
  border: 1px solid rgba(252,251,247,0.25);
  padding: 48px 44px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-success .diamond { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.form-success h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; }
.form-success p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(252,251,247,0.65); }
[hidden] { display: none !important; }

/* footer */
.footer {
  border-top: 1px solid rgba(252,251,247,0.15);
  padding: 32px 0 40px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer .wordmark { font-size: 20px; color: var(--bg); }
.footer-copy { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(252,251,247,0.62); }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { color: rgba(252,251,247,0.65); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--red-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero h1 { font-size: 72px; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-viz { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { padding-right: 0; border-right: none; }
  .stat:nth-child(3) { padding-left: 0; }
}
@media (max-width: 860px) {
  .nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .hero-inner, .services, .process, .results, .pricing, .contact { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 52px; }
  .section-head, .results-head { flex-direction: column; }
  .results-grid, .pricing-grid, .process-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-left h2 { font-size: 44px; }
  .process-head h2, .section-head h2, .results-head h2, .pricing-head h2 { font-size: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 22px 0; border-right: none; border-bottom: 1px solid var(--line-2); }
}

/* reduced motion: canvases freeze (handled in JS); soften transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
