/* ===========================================================
   Think Codex — Hero variants (home only)
   =========================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--tc-header-h) + 80px);
  padding-bottom: 120px;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(232,168,56,0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(74,127,184,0.10), transparent 60%),
    linear-gradient(180deg, #0b1a33 0%, #1a2d4d 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(1200px 700px at 50% 40%, #000 30%, transparent 80%);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 64px; }
}
.hero .eyebrow { color: var(--tc-amber); }
.hero h1 {
  font-family: var(--tc-font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 18px 0 24px;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--tc-amber-400), var(--tc-orange-500) 60%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero .ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .ctas .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.25); }
.hero .ctas .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.04); }
.hero .hero-foot {
  margin-top: 40px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--tc-font-display); color: rgba(255,255,255,0.55); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero .hero-foot span strong { color: #fff; display: block; font-size: 19px; letter-spacing: -0.01em; margin-top: 3px; font-weight: 800; }

/* Visual stage (hero right column) */
.hero-visual { position: relative; min-height: 540px; }
.hero-variant { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 350ms var(--tc-ease); }
body[data-hero="sim"]      .hero-variant.v-sim,
body[data-hero="photos"]   .hero-variant.v-photos,
body[data-hero="dash"]     .hero-variant.v-dash,
body[data-hero="abstract"] .hero-variant.v-abstract { opacity: 1; pointer-events: auto; }

/* ---------- Variant: Simulation UI ---------- */
.sim-frame {
  background: #FDF6EE;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg) translateZ(0);
  transform-origin: center;
  font-family: var(--tc-font-body);
  color: #1F1A17;
  animation: floaty 8s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  to   { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}
.sim-titlebar {
  background: linear-gradient(180deg, #1a2d4d, #0f2240);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85);
  font-family: var(--tc-font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.sim-titlebar .dots { display: flex; gap: 6px; }
.sim-titlebar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #4a3f38; display: block; }
.sim-titlebar .dots i:nth-child(1) { background: #E8501E; }
.sim-titlebar .dots i:nth-child(2) { background: #FCC419; }
.sim-titlebar .dots i:nth-child(3) { background: #4F8A4B; }
.sim-titlebar .scenario { display: flex; align-items: center; gap: 10px; }
.sim-titlebar .scenario .pill {
  background: rgba(232,168,56,0.18);
  color: var(--tc-amber);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.sim-titlebar .scenario .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc-amber); box-shadow: 0 0 0 3px rgba(232,168,56,0.25); }
.sim-titlebar .timer { margin-left: auto; font-feature-settings: "tnum"; font-weight: 700; color: #fff; font-size: 14px; letter-spacing: 0.02em; }
.sim-tabs { display: flex; gap: 0; background: #FBEFE6; border-bottom: 1px solid #EADFD3; }
.sim-tab {
  padding: 12px 18px;
  font-family: var(--tc-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #6B5A50;
  border-right: 1px solid #EADFD3;
}
.sim-tab.active { background: #FDF6EE; color: #1F1A17; box-shadow: inset 0 -3px 0 var(--tc-amber); }

.sim-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 360px;
}
.sim-panel {
  padding: 22px 20px;
}
.sim-panel + .sim-panel { border-left: 1px solid #EADFD3; }
.sim-panel h4 {
  font-family: var(--tc-font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tc-navy);
  margin: 0 0 12px;
}
.sim-panel .scenario-title {
  font-family: var(--tc-font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.sim-panel .scenario-brief {
  font-size: 13px;
  line-height: 1.55;
  color: #4A3F38;
  margin: 0 0 16px;
}
.sim-decision-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sim-decision-list li {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid #EADFD3;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: default;
  transition: border-color 150ms, background 150ms;
}
.sim-decision-list li:hover { border-color: var(--tc-amber-soft); }
.sim-decision-list li.chosen { border-color: var(--tc-amber); background: rgba(232,168,56,0.07); }
.sim-decision-list li .num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #FBEFE6;
  color: #1F1A17;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--tc-font-display);
  font-weight: 700; font-size: 12px;
  flex: none;
}
.sim-decision-list li.chosen .num { background: var(--tc-amber); color: #0b1a33; }
.sim-decision-list li .meta { margin-left: auto; font-family: var(--tc-font-display); font-size: 11px; letter-spacing: 0.06em; color: #8C7A6E; }
.sim-decision-list li.chosen .meta { color: var(--tc-navy); font-weight: 700; }

.sim-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sim-kpi {
  background: #FBEFE6;
  border-radius: 8px;
  padding: 10px 12px;
}
.sim-kpi .lbl { font-family: var(--tc-font-display); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #6B5A50; font-weight: 700; }
.sim-kpi .v { font-family: var(--tc-font-display); font-weight: 800; font-size: 22px; line-height: 1; margin-top: 4px; font-feature-settings: "tnum"; }
.sim-kpi .v .delta { font-size: 12px; color: #4F8A4B; margin-left: 6px; font-weight: 700; }

.sim-radar {
  position: relative;
  margin: 4px 0 10px;
}
.sim-radar svg { width: 100%; height: auto; }
.sim-radar .label {
  position: absolute;
  font-family: var(--tc-font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4A3F38;
}

.sim-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #EADFD3; font-size: 12px; }
.sim-row:last-child { border-bottom: 0; }
.sim-row .who { font-weight: 700; font-family: var(--tc-font-display); width: 96px; }
.sim-row .bar { flex: 1; height: 6px; background: #FBEFE6; border-radius: 4px; overflow: hidden; }
.sim-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tc-amber-400), var(--tc-orange-600)); }
.sim-row .score { font-family: var(--tc-font-display); font-weight: 700; width: 28px; text-align: right; font-feature-settings: "tnum"; color: #1F1A17; }

/* floating mini cards */
.sim-tag {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(31,26,23,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  font-family: var(--tc-font-display);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: #1F1A17;
}
.sim-tag.right { top: 20px; right: -28px; }
.sim-tag.bottom { bottom: -24px; left: 28px; }
.sim-tag .dot { width: 28px; height: 28px; border-radius: 8px; background: #FBEFE6; color: var(--tc-orange-600); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sim-tag .meta { font-size: 11px; color: #8C7A6E; letter-spacing: 0.04em; }
.sim-tag strong { font-size: 13px; }

/* ---------- Variant: Photo collage ---------- */
.v-photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 8px;
}
.v-photos > div {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.v-photos > div img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-photos .p1 { grid-row: span 2; }
.v-photos .badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(11,26,51,0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--tc-font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Variant: Analytics dashboard ---------- */
.dash-frame {
  background: #FDF6EE;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  color: #1F1A17;
  transform: perspective(1600px) rotateY(-6deg) translateZ(0);
}
.dash-head { padding: 18px 20px; border-bottom: 1px solid #EADFD3; display: flex; align-items: center; gap: 14px; background: #fff; }
.dash-head .t { font-family: var(--tc-font-display); font-weight: 800; font-size: 14px; }
.dash-head .pill { background: rgba(79,138,75,0.12); color: #4F8A4B; padding: 4px 10px; border-radius: 999px; font-family: var(--tc-font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.dash-head .pill::before { content: "●"; margin-right: 4px; font-size: 9px; }
.dash-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dash-stat { padding: 18px 20px; border-right: 1px solid #EADFD3; border-bottom: 1px solid #EADFD3; }
.dash-stat:nth-child(2n) { border-right: 0; }
.dash-stat .lbl { font-family: var(--tc-font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6B5A50; font-weight: 700; }
.dash-stat .v { font-family: var(--tc-font-display); font-weight: 800; font-size: 32px; line-height: 1; margin-top: 6px; font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.dash-stat .spark { margin-top: 10px; height: 32px; }
.dash-stat .spark path { fill: none; stroke: var(--tc-amber); stroke-width: 2; }
.dash-stat .spark .area { fill: rgba(232,168,56,0.14); stroke: none; }

.dash-chart { padding: 20px; border-bottom: 1px solid #EADFD3; }
.dash-chart h4 { font-family: var(--tc-font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6B5A50; font-weight: 700; margin: 0 0 12px; }
.dash-bars { display: flex; flex-direction: column; gap: 10px; }
.dash-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.dash-bar-row .who { font-family: var(--tc-font-display); font-weight: 700; width: 92px; }
.dash-bar-row .bar { flex: 1; height: 8px; background: #FBEFE6; border-radius: 4px; overflow: hidden; }
.dash-bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tc-amber-400), var(--tc-orange-600)); }
.dash-bar-row .v { font-family: var(--tc-font-display); font-weight: 700; width: 36px; text-align: right; }

/* ---------- Variant: Abstract logo motif ---------- */
.v-abstract { display: flex; align-items: center; justify-content: center; }
.v-abstract svg { width: 95%; height: auto; max-height: 500px; }
