/* ============================================================
   HSEI.IO — hero.css
   HOME page: two-column Hero + System Pulse Monitor (Section 3.3)
   + Formula Strip + content sections.
   Colours standardized to palette tokens (Section 1.1).
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 40px 28px;
  border-bottom: 0.5px solid var(--border-gold);
  max-width: var(--container-wide);
  margin: 0 auto;
}
.hero-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow {
  color: var(--teal-accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-logo-wrap {
  margin-bottom: 14px;
}
.hero-logo-img {
  display: block;
  width: 108px;
  height: auto;
}
.hero-brand {
  margin-bottom: 6px;
}
.hero-brand,
.hero-brand.type-h1 {
  font-size: clamp(84px, 15vw, 132px);
}
.hero-institute {
  color: rgba(228, 184, 174, 0.6);
  margin-bottom: 4px;
}
.hero-regenesis {
  color: var(--teal-accent);
  margin-bottom: 18px;
}
.hero-statement {
  color: var(--text-main);
  max-width: 600px;
  margin-bottom: 12px;
}
.hero-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 20px;
}
.hero-ctas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-ctas .btn {
  padding: 10px 20px;
}
.hero-note {
  color: var(--text-ghost);
}

/* ---------- macOS WINDOW · State Dynamics Radar ---------- */
.mac-window {
  width: 100%;
  max-width: 420px;
  background: var(--sf);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: visible;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.45),
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 10px 20px rgba(0, 0, 0, 0.22);
}

.mac-window__titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 0.5px solid var(--border-neutral);
  border-radius: 12px 12px 0 0;
}

.mac-window__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.mac-dot--close { background: #ff5f56; opacity: 0.9; }
.mac-dot--minimize { background: #ffbd2e; opacity: 0.9; }
.mac-dot--maximize { background: #27c93f; opacity: 0.9; }

.mac-window__title {
  justify-self: center;
  font-size: 12px;
  line-height: 1;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* ---------- SYSTEM PULSE MONITOR (Section 3.3) ---------- */
.hero-col-right {
  display: flex;
  justify-content: center;
}
.pulse-monitor {
  width: 100%;
  padding: 14px 16px 16px;
}
.mac-window__body.pulse-monitor {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.pm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pm-label,
.pm-live {
}
.pm-label {
  color: var(--text-ghost);
}
.pm-live {
  color: var(--teal-accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pm-live .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-accent);
  display: inline-block;
}

.pm-svg-wrap {
  position: relative;
  height: 80px;
}
.pm-svg {
  width: 100%;
  height: 80px;
  display: block;
}
.pulse-line {
  fill: none;
  stroke: var(--teal-accent);
  stroke-width: 1.2px;
  stroke-linecap: round;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-line.draw {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: signal-draw 7.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .pulse-line.breathing {
    animation: signal-breathe 4s ease-in-out infinite;
  }
  .pulse-cursor.blink {
    animation: cursor-blink 1.4s step-end infinite;
  }
}
.pulse-cursor {
  fill: var(--teal-accent);
}

/* Vector readouts */
.pm-readouts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  border-top: 0.5px solid var(--border-neutral);
  padding-top: 10px;
  margin-top: 4px;
  overflow: visible;
}
.readout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: default;
}
.readout-bar {
  width: 100%;
  height: 28px;
  background: var(--bg-main);
  border: 0.5px solid var(--border-neutral);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.readout-fill {
  width: 100%;
  height: 0;
  background: rgba(14, 207, 180, 0.35);
  border-top: 1px solid var(--teal-accent);
}
.readout-fill.warn {
  background: rgba(228, 184, 174, 0.3);
  border-top-color: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .readout-fill {
    transition: height 1.2s ease;
  }
}
.readout-v {
  color: var(--text-ghost);
}
.readout-name {
  color: var(--text-muted);
  text-align: center;
}
.readout-val {
  color: var(--teal-accent);
}
.readout-val.warn {
  color: var(--gold);
}
.readout:hover .readout-bar {
  border-color: var(--border-gold);
}
.readout-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
  background: var(--bg-surface-light);
  border: 0.5px solid var(--border-gold-md);
  border-radius: 4px;
  padding: 9px 11px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 20;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
}
.readout:hover .readout-tip {
  opacity: 1;
}

/* ---------- FORMULA STRIP (Section 3.4) ---------- */
.formula-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 0.5px solid var(--border-gold);
  border-bottom: 0.5px solid var(--border-gold);
}
.fs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 28px;
}
.fs-q {
  color: var(--teal-accent);
  margin-bottom: 3px;
}
.fs-brand {
  color: var(--gold);
  margin-bottom: 4px;
}
.fs-role {
  color: var(--text-ghost);
}
.fs-sep {
  color: rgba(228, 184, 174, 0.25);
  padding: 0 4px;
}

/* ---------- CONTENT SECTIONS ---------- */
.section {
  padding: 50px 28px;
  border-bottom: 0.5px solid var(--border-gold);
}
.section-inner {
  max-width: 880px;
  margin: 0 auto;
}
.sec-label {
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
  text-transform: uppercase;
}
.sec-title {
  margin-bottom: 20px;
  color: var(--text-main);
}
.sec-title .gold {
  color: var(--gold);
}
.sec-body {
  color: var(--text-muted);
  max-width: 600px;
}
.sec-body strong {
  color: var(--text-main);
}
.sec-body em {
  color: var(--gold);
}

/* Problem grid */
.problem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.prob-card {
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-neutral);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.prob-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-surface-light);
}
.pc-icon {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--teal-accent);
  opacity: 0.85;
}
.pc-title {
  color: var(--text-main);
  margin-bottom: 6px;
}
.pc-text {
  color: var(--text-ghost);
}
.prob-card.accent-card {
  border-color: var(--border-gold-md);
  background: var(--gold-dim2);
}
.accent-card .pc-title {
  color: var(--gold);
}

/* Profession grid */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}
.prof-card {
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-neutral);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.prof-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-surface-light);
}
.pc-num {
  color: var(--gold);
  margin-bottom: 7px;
  opacity: 0.7;
}
.pc-skill {
  color: var(--text-main);
  margin-bottom: 5px;
}
.pc-desc {
  color: var(--text-ghost);
}

/* 5 Vectors */
.vectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 28px;
}
.vector-card {
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-neutral);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}
.vector-card:hover {
  border-color: var(--border-gold);
}
.vc-v {
  color: var(--gold);
  margin-bottom: 7px;
  opacity: 0.7;
}
.vc-title {
  color: var(--text-main);
  margin-bottom: 6px;
}
.vc-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vc-item {
  color: var(--text-ghost);
  display: flex;
  gap: 6px;
}
.vc-item::before {
  content: "·";
  color: var(--teal-accent);
  flex-shrink: 0;
}
.vector-card.v5 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.vectors-note {
  color: var(--text-ghost);
  margin-top: 16px;
}

/* For whom */
.whom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
}
.whom-card {
  padding: 16px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-neutral);
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.whom-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-surface-light);
}
.wc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--teal-accent);
}
.whom-card.whom-selected .wc-icon {
  color: var(--gold);
}
.wc-title {
  color: var(--text-main);
  margin-bottom: 5px;
}
.wc-desc {
  color: var(--text-ghost);
}

/* CTA section */
.cta-section {
  padding: 50px 28px;
  text-align: center;
}
.cta-inner {
  max-width: 520px;
  margin: 0 auto;
}
.cta-tag {
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
  text-transform: uppercase;
}
.cta-title {
  margin-bottom: 14px;
  color: var(--text-main);
}
.cta-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 12px;
}
.cta-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-neutral-md);
  border-radius: 3px;
  color: var(--text-main);
  outline: none;
}
.cta-input::placeholder {
  color: var(--text-ghost);
}
.cta-input:focus {
  border-color: var(--border-gold-md);
}
.cta-note {
  color: var(--text-ghost);
}
.cta-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cta-badge {
  color: var(--text-ghost);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cta-badge::before {
  content: "✓";
  color: var(--gold);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero-col-right {
    order: 3;
  }
  .prof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 40px 16px;
  }
  .hero-brand {
  }
  .section {
    padding: 48px 16px;
  }
  .sec-title {
  }
  .problem-row,
  .prof-grid,
  .vectors-grid,
  .whom-grid {
    grid-template-columns: 1fr;
  }
  .vector-card.v5 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cta-section {
    padding: 48px 16px;
  }
  .cta-title {
  }
  .cta-form {
    flex-direction: column;
  }
  .fs-sep {
    display: none;
  }
}
