/* eGoals AI — Design System v1.0 (DSY-001) */

:root {
  --red:        #B8092F;
  --red-deep:   #8a0623;
  --black:      #222222;
  --ink:        #0e0e10;
  --grey-light: #FBFBFB;
  --grey-dark:  #CFCFCF;
  --grey-mid:   #E6E6E6;
  --grey-soft:  #F2F2F2;
  --hairline:        rgba(34,34,34,.12);
  --hairline-strong: rgba(34,34,34,.22);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Exo', sans-serif;

  --s-4:   4px;  --s-8:   8px;  --s-16: 16px; --s-24: 24px;
  --s-40: 40px; --s-72: 72px; --s-120: 120px;
}

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--black);
  background: var(--grey-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
blockquote { margin: 0; }

/* ─── layout ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.rule   { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
.rule-strong { border-top: 1px solid var(--black); }
.rule-red { border: 0; border-top: 2px solid var(--red); width: 56px; margin: 0; }

/* ─── meta type ─── */
.overline {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); font-weight: 500;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--black); font-weight: 500;
}
.eyebrow .dot { color: var(--red); }
.num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--red); font-weight: 500; }
.body-lg { font-size: 18px; line-height: 1.6; color: #383838; margin: 0; }

/* ─── nav ─── */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,251,251,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 56px; gap: 32px; max-width: 1320px; margin: 0 auto;
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
  height: 100%;
}
.topnav-brand img {
  height: 26px; width: auto; display: block;
}
.topnav-links {
  display: flex; gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
}
.topnav-links a {
  text-decoration: none; color: var(--black);
  opacity: .55; transition: opacity .15s, border-color .15s;
  border-bottom: 1px solid transparent; padding-bottom: 2px; white-space: nowrap;
}
.topnav-links a:hover, .topnav-links a.active { opacity: 1; border-bottom-color: var(--red); }
.lang-switch {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
.lang-switch a { text-decoration: none; color: var(--black); opacity: .5; transition: opacity .15s; }
.lang-switch a.active { opacity: 1; font-weight: 700; border-bottom: 1px solid var(--red); }
.lang-switch span { opacity: .35; }

/* ─── hero ticker strip ─── */
.hero-ticker {
  background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  padding: 9px 0; position: relative;
}
.hero-ticker span { display: inline-block; padding: 0 20px; }
.hero-ticker .tick-dot { color: var(--red); padding: 0 4px; opacity: .6; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-ticker { animation: ticker 28s linear infinite; display: flex; width: max-content; }

/* ─── hero (block 1) ─── */
.hero {
  background: var(--ink); color: #fff;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.hero:not(.hero-immersive)::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(184,9,47,.20) 0%, transparent 65%);
  pointer-events: none;
}
.hero:not(.hero-immersive)::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,9,47,.4) 50%, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px;
  align-items: center; padding: 88px 0 80px;
}

/* ─── hero immersive (homepage) ─── */
.hero-immersive .hero-inner {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: clamp(560px, 78vh, 760px);
  padding: 96px 0;
  z-index: 2;
}
.hero-immersive .hero-inner {
  padding-left: 64px;
  padding-right: 64px;
}
.hero-immersive .hero-content {
  max-width: 760px;
  display: flex; flex-direction: column;
}
.hero-immersive h1 {
  font-size: clamp(48px, 7.4vw, 104px);
  letter-spacing: -.032em;
}
.hero-immersive p.sub {
  max-width: 540px;
  color: rgba(255,255,255,.78);
}
.hero-immersive .btn-row { margin-top: 8px; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-image: var(--hero-bg, url('/public/assets/imagery/sculpture-04.jpg'));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--hero-bg-pos, 78% center);
  filter: saturate(1.1) contrast(1.06);
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-14px, -6px, 0); }
}
.hero-bg-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg,
      rgba(14,14,16,.97) 0%,
      rgba(14,14,16,.88) 28%,
      rgba(14,14,16,.55) 52%,
      rgba(14,14,16,.18) 78%,
      rgba(14,14,16,.04) 100%),
    radial-gradient(ellipse 60% 80% at 78% 55%, rgba(184,9,47,.32) 0%, transparent 65%),
    linear-gradient(180deg, rgba(14,14,16,.4) 0%, transparent 18%, transparent 78%, rgba(14,14,16,.65) 100%);
}
.hero-bg-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .55;
  mix-blend-mode: overlay;
}
.hero-bg-frame {
  position: absolute; inset: 24px;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.hero-bg-crosshair {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--red);
  border-style: solid;
  border-width: 0;
}
.hero-bg-crosshair.tl { top: 18px;    left: 18px;   border-top-width: 1.5px;    border-left-width: 1.5px; }
.hero-bg-crosshair.tr { top: 18px;    right: 18px;  border-top-width: 1.5px;    border-right-width: 1.5px; }
.hero-bg-crosshair.bl { bottom: 18px; left: 18px;   border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hero-bg-crosshair.br { bottom: 18px; right: 18px;  border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero-meta {
  position: absolute;
  right: 56px; bottom: 48px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  z-index: 3; pointer-events: none;
}
.hero-meta-line { display: inline-block; width: 56px; height: 1px; background: var(--red); }
.hero-meta-text em { color: var(--red); font-style: normal; font-weight: 500; padding-right: 4px; }

.hero-coords {
  position: absolute; left: 56px; bottom: 48px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  z-index: 3; pointer-events: none;
}
.hero-coords .dot { color: var(--red); opacity: .7; }

/* ─── product-hero immersive variant ─── */
.product-hero.hero-immersive {
  background: var(--ink); color: #fff;
  padding: 0; border-bottom: 0;
  position: relative; overflow: hidden; isolation: isolate;
}
.product-hero.hero-immersive .inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: clamp(540px, 70vh, 700px);
  padding: 96px 64px;
  position: relative; z-index: 2;
}
.product-hero.hero-immersive .hero-text { max-width: 720px; }
.product-hero.hero-immersive h1 { color: #fff; }
.product-hero.hero-immersive .lead { color: rgba(255,255,255,.78); max-width: 540px; }
.product-hero.hero-immersive .product-wordmark { color: #fff; }
.product-hero.hero-immersive .product-wordmark em { color: var(--red); }
.product-hero.hero-immersive .product-logo {
  background: #fff;
  padding: 10px 16px;
  height: auto; max-height: 64px;
  width: auto; max-width: 260px;
  margin: 8px 0 24px;
  align-self: flex-start;
}
.product-hero.hero-immersive .btn-ghost {
  border-color: rgba(255,255,255,.45); color: #fff;
}
.product-hero.hero-immersive .btn-ghost:hover {
  background: #fff; color: var(--black); border-color: #fff;
}

/* theme strip stays on top of immersive bg */
.theme-deedalo .product-hero.hero-immersive::before,
.theme-turn-it .product-hero.hero-immersive::before,
.theme-crm .product-hero.hero-immersive::before {
  z-index: 5;
}

/* per-theme veil tint overrides */
.theme-deedalo .product-hero.hero-immersive .hero-bg-veil {
  background:
    linear-gradient(95deg,
      rgba(14,14,16,.97) 0%,
      rgba(14,14,16,.86) 30%,
      rgba(14,14,16,.5) 56%,
      rgba(14,14,16,.16) 80%,
      rgba(14,14,16,.04) 100%),
    radial-gradient(ellipse 60% 80% at 78% 50%, rgba(43,182,115,.32) 0%, transparent 62%),
    linear-gradient(180deg, rgba(14,14,16,.4) 0%, transparent 18%, transparent 78%, rgba(14,14,16,.65) 100%);
}
.theme-turn-it .product-hero.hero-immersive .hero-bg-veil {
  background:
    linear-gradient(95deg,
      rgba(14,14,16,.97) 0%,
      rgba(14,14,16,.86) 30%,
      rgba(14,14,16,.5) 56%,
      rgba(14,14,16,.16) 80%,
      rgba(14,14,16,.04) 100%),
    radial-gradient(ellipse 50% 70% at 78% 38%, rgba(36,121,255,.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 70%, rgba(200,34,141,.22) 0%, transparent 60%),
    linear-gradient(180deg, rgba(14,14,16,.4) 0%, transparent 18%, transparent 78%, rgba(14,14,16,.65) 100%);
}
.theme-deedalo .product-hero.hero-immersive .overline { color: var(--deedalo-2); }
.theme-deedalo .product-hero.hero-immersive .lead::before { background: linear-gradient(90deg, var(--deedalo-1), var(--deedalo-2)); }
.hero-content { display: flex; flex-direction: column; gap: 0; }
.hero-content .overline {
  color: var(--red); margin-bottom: 20px;
  display: flex; align-items: center; gap: 0;
}
.hero h1 {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: .92; letter-spacing: -.028em;
  margin: 0 0 28px; color: #fff;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--red); }
.hero h1 .underscore { color: var(--red); font-weight: 900; font-style: normal; }
.hero p.sub {
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5;
  color: rgba(255,255,255,.72); max-width: 580px; margin: 0 0 36px;
  font-weight: 400;
}
.hero .btn-row { gap: 14px; }

/* hero art frame */
.hero-art {
  aspect-ratio: 1 / 1.05;
  background: url('/public/assets/imagery/sculpture-04.jpg') center/cover no-repeat #141414;
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
}
.hero-art .corner {
  position: absolute; width: 18px; height: 18px;
  border: 1.5px solid var(--red);
}
.hero-art .corner.tl { top: 12px;    left: 12px;   border-right: 0; border-bottom: 0; }
.hero-art .corner.tr { top: 12px;    right: 12px;  border-left: 0;  border-bottom: 0; }
.hero-art .corner.bl { bottom: 12px; left: 12px;   border-right: 0; border-top: 0; }
.hero-art .corner.br { bottom: 12px; right: 12px;  border-left: 0;  border-top: 0; }
.hero-art-caption {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  white-space: nowrap; pointer-events: none;
}

/* hero entry animations */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroIn .65s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d, 0ms);
}

/* ─── scroll reveal ─── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* stagger children of revealed containers */
.stagger-children > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.stagger-children.in-view > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0ms; }
.stagger-children.in-view > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 90ms; }
.stagger-children.in-view > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 180ms; }
.stagger-children.in-view > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: 270ms; }
.stagger-children.in-view > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: 360ms; }
.stagger-children.in-view > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay: 450ms; }

/* ─── sections ─── */
.sec { padding: 120px 0 96px; border-top: 1px solid var(--hairline); }
.sec.dark { background: var(--black); color: #fff; border-top-color: rgba(255,255,255,.12); }
.sec-products { background: var(--grey-soft); }

.sec-head {
  display: grid; grid-template-columns: 200px 1fr; gap: 48px;
  align-items: end; margin-bottom: 64px;
}
.sec-tag {
  font-family: var(--mono); font-size: 11px; color: var(--red);
  letter-spacing: .14em; font-weight: 500; text-transform: uppercase;
}
.sec-title {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .93; letter-spacing: -.022em; margin: 0;
}
.sec-title em { font-style: italic; font-weight: 500; color: var(--red); }
.sec-lede {
  font-size: 18px; line-height: 1.55; max-width: 640px;
  color: #4a4a4a; margin-top: 20px; font-weight: 400;
}
.sec.dark .sec-lede { color: rgba(255,255,255,.72); }

/* ─── pullquote ─── */
.pullquote {
  border-left: 3px solid var(--red);
  background: rgba(184,9,47,.055);
  padding: 28px 32px;
  font-family: var(--sans);
  font-style: italic; font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35;
  color: var(--black);
  margin-top: 0;
  position: relative;
}
.pullquote::before {
  content: "";
  position: absolute; top: 0; left: -3px; width: 3px; height: 24px;
  background: var(--black);
}

/* ─── grids ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ─── cards ─── */
.card {
  background: #fff; padding: 32px;
  position: relative; transition: border-color .2s;
}
.card:hover { outline: 1px solid var(--red); z-index: 1; }
.grid-3 .card { border: none; }

.card-pin {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(34,34,34,.3);
  margin-bottom: 20px;
}
.icon-wrap {
  width: 56px; height: 56px; background: var(--grey-soft);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon-wrap img { width: 40px; height: 40px; object-fit: contain; }
.card h3 {
  font-family: var(--sans); font-weight: 700; font-size: 22px;
  margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.1;
}
.card p { font-size: 15px; color: #555; line-height: 1.6; margin: 0; }
.card .meta {
  font-family: var(--mono); font-size: 11px; color: #999;
  letter-spacing: .12em; text-transform: uppercase;
}
.card .pin {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px; color: var(--red); letter-spacing: .12em;
  text-transform: uppercase;
}

/* product card variant */
.product-card { display: flex; flex-direction: column; gap: 0; }
.product-card .logo-slot {
  display: flex; align-items: center;
  font-family: var(--sans); font-weight: 900; font-size: 30px;
  letter-spacing: -.015em; line-height: 1; margin-bottom: 4px;
  padding-top: 24px;
}
.product-card .logo-slot em { font-style: italic; font-weight: 400; color: var(--red); }
.product-card .tagline { font-size: 15px; color: #505050; line-height: 1.55; margin-bottom: 20px; flex: 1; }
.product-card .btn-link { margin-top: auto; align-self: flex-start; }

/* ─── buttons ─── */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .15s, color .15s, border-color .15s; background: none; color: inherit;
  text-decoration: none; white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-ghost { border-color: var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: #fff; }
.btn-ghost.on-dark { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost.on-dark:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn-link {
  padding: 0; color: var(--red);
  border: none; border-bottom: 1px solid rgba(184,9,47,.5);
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px;
}
.btn-link:hover { color: var(--red-deep); border-bottom-color: var(--red-deep); }
.btn-sm  { padding: 9px 16px; font-size: 12px; }
.btn-lg  { padding: 16px 28px; font-size: 15px; }
.btn:disabled, .btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ─── badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--hairline); color: var(--black);
}
.badge .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* ─── forms ─── */
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--black); font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; padding: 12px 14px;
  background: var(--grey-light); border: 1px solid var(--grey-dark);
  color: var(--black); outline: none; border-radius: 2px;
  transition: border-color .15s, background .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red); background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field .hint { font-family: var(--mono); font-size: 11px; color: #888; letter-spacing: .04em; }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

/* ─── final CTA ─── */
.cta-band {
  background: var(--ink); color: #fff;
  padding: 120px 0; text-align: center;
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(184,9,47,.24) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 48px; background: var(--red); opacity: .5;
}
.cta-band > .wrap { position: relative; }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -.022em; margin: 0 0 20px; line-height: 1.0;
}
.cta-band h2 em { font-style: italic; font-weight: 500; color: var(--red); }
.cta-band p { font-size: 18px; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 36px; line-height: 1.55; }
.cta-band .btn-row { justify-content: center; }

/* ─── product page hero ─── */
.product-hero {
  background: var(--grey-light); padding: 88px 0;
  border-bottom: 1px solid var(--hairline);
}
.product-hero .inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.product-hero h1 {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95; letter-spacing: -.025em; margin: 16px 0 20px;
}
.product-hero h1 em { font-style: italic; font-weight: 500; color: var(--red); }
.product-hero .lead { font-size: 18px; line-height: 1.6; color: #444; max-width: 560px; }
.product-hero .visual {
  aspect-ratio: 1/1; background-size: cover; background-position: center;
  border: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.product-hero .visual.themed-visual { background: #fff; }
.product-hero .visual .visual-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

/* product page logo + wordmark */
.product-logo {
  height: 52px; width: auto; display: block;
  margin: 8px 0 24px;
  max-width: 280px; object-fit: contain;
}
.product-wordmark {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -.022em; line-height: 1;
  margin: 8px 0 24px; color: var(--black);
}
.product-wordmark em { font-style: italic; font-weight: 400; color: var(--red); }
.product-wordmark .underscore { color: var(--red); font-weight: 900; font-style: normal; }

/* dot row (turn-it accent) */
.dot-row { display: flex; gap: 10px; margin: 24px 0 8px; }
.dot-row span {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}

/* deedalo maze decoration chip */
.maze-deco {
  position: absolute; bottom: 16px; right: 16px;
  width: 88px; height: 88px;
  background: rgba(14,14,16,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 12px;
  pointer-events: none; z-index: 1;
}
.theme-deedalo .maze-deco { color: var(--deedalo-1); }
/* CRM port decoration chip */
.port-deco {
  position: absolute; bottom: 16px; right: 16px;
  width: 110px; height: 76px;
  background: rgba(14,14,16,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 10px;
  pointer-events: none; z-index: 1;
}
.theme-crm .port-deco { color: var(--red); }
/* Turn-IT shift grid overlay */
.shift-grid {
  position: absolute; top: 14px; left: 14px;
  display: grid; grid-template-columns: repeat(4, 12px);
  grid-template-rows: repeat(2, 12px); gap: 6px;
  pointer-events: none;
}
.shift-grid span {
  width: 12px; height: 12px;
  background: rgba(255,255,255,.65);
}
.theme-turn-it .shift-grid span:nth-child(1) { background: #1FB351; }
.theme-turn-it .shift-grid span:nth-child(2) { background: #C8228D; }
.theme-turn-it .shift-grid span:nth-child(3) { background: #F4C81E; }
.theme-turn-it .shift-grid span:nth-child(4) { background: #2479FF; }

/* ─── per-page themes ─── */
:root {
  --deedalo-1: #1FAFC9;
  --deedalo-2: #2BB673;
  --turnit-1: #1FB351;
  --turnit-2: #C8228D;
  --turnit-3: #F4C81E;
  --turnit-4: #2479FF;
}

/* Deedalo theme: teal→green */
.theme-deedalo .product-hero { position: relative; }
.theme-deedalo .product-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--deedalo-1), var(--deedalo-2));
  z-index: 2;
}
.theme-deedalo .product-hero .overline { color: var(--deedalo-2); }
.theme-deedalo .product-hero .lead::before {
  content: ""; display: block; width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--deedalo-1), var(--deedalo-2));
  margin-bottom: 18px;
}
.theme-deedalo .feature:hover {
  background: linear-gradient(135deg, rgba(31,175,201,.05), rgba(43,182,115,.05));
}
.theme-deedalo .sec-tag { color: var(--deedalo-2); }
.theme-deedalo .sec-title em { color: var(--deedalo-2); }

/* Turn-IT theme: multicolor */
.theme-turn-it .product-hero { position: relative; }
.theme-turn-it .product-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--turnit-1) 0%, var(--turnit-1) 25%,
    var(--turnit-2) 25%, var(--turnit-2) 50%,
    var(--turnit-3) 50%, var(--turnit-3) 75%,
    var(--turnit-4) 75%, var(--turnit-4) 100%);
  z-index: 2;
}
.theme-turn-it .feature:nth-child(5n+1) { border-top: 2px solid var(--turnit-1); }
.theme-turn-it .feature:nth-child(5n+2) { border-top: 2px solid var(--turnit-2); }
.theme-turn-it .feature:nth-child(5n+3) { border-top: 2px solid var(--turnit-3); }
.theme-turn-it .feature:nth-child(5n+4) { border-top: 2px solid var(--turnit-4); }
.theme-turn-it .feature:nth-child(5n+5) { border-top: 2px solid var(--turnit-1); }

/* CRM theme: stay on brand red, add port-strip motif */
.theme-crm .product-hero { position: relative; }
.theme-crm .product-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 24px, transparent 24px 32px);
  z-index: 2;
}

/* feature-grid 7-item layout */
.feature-grid.feature-grid-7 { grid-template-columns: repeat(4, 1fr); }

/* feature grid (why X pages) */
.feature-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline);
}
.feature {
  background: #fff; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s;
}
.feature:hover { background: var(--grey-soft); }
.feature .icon { width: 44px; height: 44px; margin-bottom: 4px; }
.feature h4 {
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  margin: 0; letter-spacing: -.005em; line-height: 1.2;
}
.feature p { font-size: 14px; color: #555; line-height: 1.55; margin: 0; }

/* ─── footer ─── */
.colophon {
  padding: 48px 56px; border-top: 1px solid var(--hairline);
  background: var(--grey-light);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: #666;
  line-height: 1.8;
}
.colophon strong {
  color: var(--black); display: block; margin-bottom: 10px;
  font-weight: 500; font-size: 10px;
}
.colophon-logo {
  height: 28px; width: auto; display: block;
  margin-bottom: 14px;
}
.colophon .acc { color: var(--red); margin: 0 6px; }
.colophon a { color: inherit; text-decoration: none; display: block; }
.colophon a:hover { color: var(--red); }

/* ─── nav toggle (hamburger) — hidden by default; shown via media queries ─── */
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 8px; gap: 5px;
  flex-direction: column; justify-content: center; align-items: stretch;
  background: transparent; border: 1px solid var(--hairline); cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--black);
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── responsive ─── */
/* Laptop ≤ 1366 */
@media (max-width: 1366px) {
  .wrap { max-width: 1200px; padding: 0 40px; }
  .topnav-inner { max-width: 1200px; padding: 0 40px; }
  .colophon { padding: 48px 40px; }
  .hero-inner { gap: 48px; padding: 80px 0 72px; }
  .sec { padding: 104px 0 80px; }
}

/* Tablet landscape ≤ 1200 */
@media (max-width: 1200px) {
  .wrap { max-width: 100%; padding: 0 32px; }
  .topnav-inner { padding: 0 32px; gap: 24px; }
  .colophon { padding: 40px 32px; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 6.2vw, 72px); }
  .sec-title { font-size: clamp(32px, 4.6vw, 56px); }
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: 40px; padding: 72px 0 64px; }
  .product-hero .inner { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .product-hero { padding: 72px 0; }
  .feature-grid.feature-grid-7 { grid-template-columns: repeat(3, 1fr); }
  .sec-head { gap: 32px; margin-bottom: 48px; }
}

/* Tablet portrait ≤ 1024 */
@media (max-width: 1024px) {
  .topnav-links { gap: 18px; }
  .hero:not(.hero-immersive) .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 56px; }
  .hero-art { aspect-ratio: 16/9; max-height: 360px; }
  .hero-immersive .hero-inner { min-height: 540px; padding: 96px 0 96px; padding-left: 64px; padding-right: 64px; }
  .hero-immersive .hero-content { max-width: 100%; }
  .hero-immersive h1 { font-size: clamp(40px, 7vw, 72px); }
  .product-hero.hero-immersive .inner { min-height: 480px; padding: 80px 48px; }
  .product-hero.hero-immersive .hero-text { max-width: 100%; }
  .hero-bg-img { background-position: 70% center; }
  .hero-meta { right: 32px; bottom: 36px; }
  .hero-coords { left: 32px; bottom: 36px; }
  .product-hero .inner { grid-template-columns: 1fr; gap: 40px; }
  .product-hero .visual { aspect-ratio: 16/10; max-height: 380px; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > *:nth-child(3) { grid-column: span 2; }
  .feature-grid, .feature-grid.feature-grid-7 { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .sec { padding: 80px 0 64px; }
  .colophon { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 88px 0; }
  .cta-band::after { display: none; }
}

/* Mobile landscape ≤ 880 */
@media (max-width: 880px) {
  .hero .hero-inner { padding-left: 32px; padding-right: 32px; }
  .hero-immersive .hero-inner { min-height: 480px; padding-top: 80px; padding-bottom: 100px; }
  .product-hero.hero-immersive .inner { min-height: 440px; padding: 72px 32px; }
  .hero-immersive h1 { font-size: clamp(36px, 7.4vw, 56px); }
  .hero-bg-img { background-position: 65% center; }
  .hero-bg-veil { background:
    linear-gradient(95deg, rgba(14,14,16,.97) 0%, rgba(14,14,16,.85) 45%, rgba(14,14,16,.55) 100%),
    radial-gradient(ellipse at 80% 60%, rgba(184,9,47,.28) 0%, transparent 65%); }
  .hero-meta { display: none; }
  .hero-coords { left: 24px; bottom: 24px; font-size: 9px; gap: 8px; }
  .topnav-inner { padding: 0 24px; height: 52px; gap: 16px; position: relative; }
  .nav-toggle { display: flex; order: 3; }
  .lang-switch { order: 2; margin-left: auto; }
  .topnav-links {
    display: none; order: 4;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-top: 1px solid var(--hairline);
    padding: 8px 24px 16px;
  }
  .topnav-links.open { display: flex; }
  .topnav-links a { padding: 14px 0; border-bottom: 1px solid var(--hairline); opacity: .8; }
  .topnav-links a:last-child { border-bottom: none; }
  .wrap { padding: 0 24px; }
  .colophon { padding: 32px 24px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(36px, 7vw, 56px); }
  .sec-title { font-size: clamp(28px, 5.6vw, 44px); }
  .grid-3 { grid-template-columns: 1fr; background: transparent; border: 1px solid var(--hairline); gap: 0; }
  .grid-3 > *:nth-child(3) { grid-column: auto; }
  .grid-3 .card { border-top: 1px solid var(--hairline); }
  .grid-3 .card:first-child { border-top: none; }
  .feature-grid, .feature-grid.feature-grid-7 { grid-template-columns: 1fr; }
  .product-logo { height: 44px; margin: 4px 0 18px; }
  .product-wordmark { font-size: clamp(28px, 8vw, 44px); }
  .maze-deco, .port-deco { width: 72px; }
  .product-hero { padding: 64px 0; }
  .sec { padding: 64px 0 48px; }
  .cta-band { padding: 72px 0; }
}

/* Mobile portrait ≤ 767 */
@media (max-width: 767px) {
  .hero .hero-inner { padding-left: 28px; padding-right: 28px; }
  .hero-immersive .hero-inner { min-height: 440px; padding-top: 64px; padding-bottom: 84px; }
  .product-hero.hero-immersive .inner { min-height: 400px; padding: 56px 24px; }
  .product-hero.hero-immersive .product-logo { max-height: 48px; padding: 8px 12px; margin: 4px 0 18px; }
  .hero-immersive h1 { font-size: 38px; line-height: .98; }
  .hero-bg-frame { inset: 14px; }
  .hero-bg-crosshair { width: 14px; height: 14px; }
  .hero-bg-crosshair.tl, .hero-bg-crosshair.tr { top: 12px; }
  .hero-bg-crosshair.bl, .hero-bg-crosshair.br { bottom: 12px; }
  .hero-bg-crosshair.tl, .hero-bg-crosshair.bl { left: 12px; }
  .hero-bg-crosshair.tr, .hero-bg-crosshair.br { right: 12px; }
  .hero-coords { display: none; }
  .wrap { padding: 0 18px; }
  .topnav-inner { padding: 0 18px; }
  .topnav-brand img { height: 22px; }
  .colophon { padding: 28px 18px; grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 36px; line-height: .95; }
  .hero p.sub { font-size: 16px; }
  .sec-title { font-size: 28px; }
  .body-lg { font-size: 16px; }
  .sec-lede { font-size: 16px; }
  .pullquote { padding: 22px 22px; font-size: 18px; }
  .card { padding: 24px; }
  .card h3 { font-size: 20px; }
  .feature { padding: 22px; }
  .btn-lg { padding: 13px 18px; font-size: 13px; }
  .btn { font-size: 12px; padding: 12px 16px; }
  .btn-row { gap: 10px; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { justify-content: center; }
  .hero-inner { padding: 48px 0 40px; gap: 32px; }
  .hero-art { aspect-ratio: 4/3; max-height: 260px; }
  .product-hero { padding: 48px 0; }
  .product-hero h1 { font-size: 32px; }
  .product-hero .lead { font-size: 16px; }
  .sec { padding: 48px 0 40px; }
  .sec-head { margin-bottom: 28px; }
  .cta-band { padding: 56px 0; }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: 15px; }
  .hero-ticker { font-size: 9px; padding: 7px 0; }
}
