/* Restarto AI homepage — Tesla / Apple product plate (v2) */

.page-home {
  --home-bg: #000;
  --home-elevated: #0b0b0b;
  --home-panel: #111;
  --home-line: rgba(255, 255, 255, 0.08);
  --home-text: #f5f5f7;
  --home-muted: rgba(245, 245, 247, 0.58);
  --home-dim: rgba(245, 245, 247, 0.38);
  --home-orange: #ff5a1f;
  --home-orange-soft: rgba(255, 90, 31, 0.18);
  --home-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --home-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --home-max: 1080px;

  font-family: var(--home-font);
  background: var(--home-bg);
  color: var(--home-text);
  color-scheme: dark;
}

.page-home a { color: inherit; text-decoration: none; }

/* Beta */
.page-home .beta-banner {
  background: #000;
  border-bottom: 1px solid var(--home-line);
}
.page-home .beta-banner-pill { color: var(--home-orange); }

/* Nav — sparse */
.page-home .home-nav {
  height: 52px;
  padding: 0 clamp(20px, 4vw, 40px);
}
.page-home .nav--dark { color: #fff; background: transparent; }
.page-home .nav.scrolled,
.page-home .nav--dark.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--home-line);
  color: #fff;
}
.page-home .nav.scrolled .logo,
.page-home .nav.scrolled .nav-links a:not(.nav-cta),
.page-home .nav--dark.scrolled .logo,
.page-home .nav--dark.scrolled .nav-links a:not(.nav-cta) {
  color: #fff;
}
.page-home .logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
}
.page-home .logo span { display: inline; }
.page-home .logo-powered {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.45;
  white-space: nowrap;
}
.page-home .nav-links { gap: 28px; }
.page-home .nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.65;
}
.page-home .nav-links a:hover { opacity: 1; }
.page-home .nav-cta,
.page-home .nav--dark .nav-cta,
.page-home .nav.scrolled .nav-cta {
  background: var(--home-orange);
  color: #fff !important;
  opacity: 1 !important;
  border-radius: 980px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.page-home .nav-cta:hover { background: #ff7340; transform: none; }

/* Buttons */
.page-home .btn {
  font-family: var(--home-font);
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 34px;
  min-height: 52px;
  border: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--home-ease);
}
.page-home .btn:hover { transform: scale(1.02); }
.page-home .btn-orange {
  background: var(--home-orange);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.35), 0 12px 40px var(--home-orange-soft);
}
.page-home .btn-orange:hover { background: #ff7340; }
.page-home .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.page-home .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── HERO — full-viewport product plate ── */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 96px clamp(24px, 5vw, 56px) 72px;
  overflow: hidden;
  background: #000;
  text-align: left;
}

.page-home.has-beta-banner .home-hero {
  padding-top: calc(88px + var(--beta-banner-h));
  min-height: calc(100dvh - var(--beta-banner-h));
}

/* When a demo is live/ready, let the factory dock grow below the fold (not clipped by hero). */
.page-home .home-hero:has(#factory[data-factory-mode="complete"]),
.page-home .home-hero:has(#factory[data-factory-mode="live"]) {
  overflow: visible;
  min-height: auto;
  align-content: start;
  place-items: start stretch;
  padding-bottom: 40px;
}

.page-home .home-hero:has(#factory[data-factory-mode="complete"]) .home-hero-viz,
.page-home .home-hero:has(#factory[data-factory-mode="live"]) .home-hero-viz {
  position: relative;
  inset: auto;
  width: min(100%, 720px);
  margin: 0 0 0 auto;
  padding: calc(64px + var(--beta-banner-h, 36px)) 0 0;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 3;
}

.page-home .home-hero:has(#factory[data-factory-mode="complete"]) .home-factory-svg,
.page-home .home-hero:has(#factory[data-factory-mode="live"]) .home-factory-svg {
  display: none;
}

.page-home .home-hero:has(#factory[data-factory-mode="complete"]) .home-hero-frame,
.page-home .home-hero:has(#factory[data-factory-mode="live"]) .home-hero-frame {
  display: none;
}

.page-home #factory {
  scroll-margin-top: calc(72px + var(--beta-banner-h, 36px));
}

.page-home .home-hero-aura {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 28%, rgba(255, 90, 31, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 78% 55%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* AI Factory schematic — labeled pipeline with moving unit */
.page-home .home-hero-viz {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(16px, 3vw, 40px) 0 clamp(8px, 2vw, 24px);
  opacity: 1;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
}

.page-home .home-factory-dock {
  pointer-events: auto;
  width: min(68vw, 720px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -8px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 2;
}

.page-home .home-factory-honesty {
  margin: 0;
  font-family: var(--home-font);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-factory-honesty strong {
  color: #fff;
  font-weight: 600;
}

.page-home .home-factory-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-home .home-factory-form input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--home-font);
  font-size: 14px;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}

.page-home .home-factory-form input:focus {
  outline: 2px solid rgba(255, 90, 31, 0.55);
  outline-offset: 2px;
  border-color: rgba(255, 90, 31, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.page-home .home-factory-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.page-home .home-factory-form .btn {
  min-height: 44px;
  white-space: nowrap;
}

.page-home .home-factory-status {
  margin: 0;
  min-height: 1.2em;
  font-family: var(--home-font);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-factory-status[data-kind="error"] {
  color: #ff8a8a;
}

.page-home .home-factory-status[data-kind="done"] {
  color: rgba(255, 180, 140, 0.95);
}

.page-home .home-factory-delivery {
  margin-top: 4px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  max-height: min(38vh, 280px);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-margin-top: calc(72px + var(--beta-banner-h, 36px));
}

.page-home .home-factory-delivery[hidden] {
  display: none !important;
}

.page-home .home-factory-delivery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.page-home .home-factory-delivery-title {
  margin: 0;
  font-family: var(--home-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .home-factory-delivery-est {
  margin: 0;
  font-family: var(--home-font);
  font-size: 15px;
  font-weight: 600;
  color: #ffb48a;
}

.page-home .home-factory-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.page-home .home-factory-checklist li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 8px 10px;
  align-items: start;
  font-family: var(--home-font);
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-factory-checklist .hf-check-mark {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 1px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  color: transparent;
}

.page-home .home-factory-checklist li[data-state="done"] .hf-check-mark {
  background: rgba(61, 206, 168, 0.25);
  border-color: rgba(61, 206, 168, 0.7);
  color: #3dcea8;
}

.page-home .home-factory-checklist li[data-state="next"] .hf-check-mark {
  border-color: #ff5a1f;
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.2);
}

.page-home .home-factory-checklist li[data-state="done"] .hf-check-label {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .home-factory-checklist li[data-state="next"] .hf-check-label {
  color: #fff;
  font-weight: 600;
}

.page-home .home-factory-checklist .hf-check-detail {
  display: none; /* keep dock short — details live in Open larger strip too */
}

.page-home .home-factory-delivery-note {
  margin: 12px 0 8px;
  font-family: var(--home-font);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

.page-home .home-factory-deliver {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--home-font);
  font-size: 15px;
  font-weight: 600;
  color: #ff5a1f;
  text-decoration: none;
}

.page-home .home-factory-deliver:hover {
  text-decoration: underline;
}

.page-home .home-factory-deliver[hidden] {
  display: none !important;
}

.page-home .home-factory-preview {
  margin-top: 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a0908;
}

.page-home .home-factory-preview[hidden] {
  display: none !important;
}

.page-home .home-factory-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.55);
}

.page-home .home-factory-preview-title {
  margin: 0;
  font-family: var(--home-font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .home-factory-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-home .home-factory-preview-enter {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ff5a1f;
  color: #fff;
  font-family: var(--home-font);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
}

.page-home .home-factory-preview-enter:hover {
  filter: brightness(1.08);
}

.page-home .home-factory-preview-enter[hidden] {
  display: none !important;
}

.page-home .home-factory-preview-open {
  font-family: var(--home-font);
  font-size: 12px;
  font-weight: 600;
  color: #ff5a1f;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-factory-preview-open:hover {
  text-decoration: underline;
}

.page-home .home-factory-preview-open[hidden] {
  display: none !important;
}

.page-home .home-factory-preview-frame {
  display: block;
  width: 100%;
  height: min(64vh, 560px);
  border: 0;
  background: #0a0908;
}

.page-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-home .hf-caption--live {
  fill: #ff5a1f;
}

/* Live / complete: drive stages from JS, pause decorative loop */
.page-home #factory[data-factory-mode="live"] .hf-stage .hf-node-core,
.page-home #factory[data-factory-mode="complete"] .hf-stage .hf-node-core,
.page-home #factory[data-factory-mode="live"] .hf-stage[data-stage="5"] .hf-node--out,
.page-home #factory[data-factory-mode="complete"] .hf-stage[data-stage="5"] .hf-node--out {
  animation: none;
}

.page-home #factory .hf-stage--done .hf-node {
  stroke: rgba(255, 90, 31, 0.85);
}

.page-home #factory .hf-stage--done .hf-node-core {
  fill: #ff5a1f;
}

.page-home #factory .hf-stage--active .hf-node {
  stroke: #ff5a1f;
  stroke-width: 2.25;
}

.page-home #factory .hf-stage--active .hf-node-core {
  fill: #fff;
}

.page-home .home-factory-svg {
  width: min(72vw, 720px);
  height: auto;
  max-height: 68vh;
  opacity: 0;
  animation: homeVizIn 1.2s var(--home-ease) 0.2s both;
  /* No left fade — it was clipping IDEA / DESIGN stages */
  mask-image: none;
  -webkit-mask-image: none;
  overflow: visible;
}

.page-home .hf-caption {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--home-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.page-home .hf-caption--dim {
  fill: rgba(255, 90, 31, 0.85);
}

.page-home .hf-rail {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
}

.page-home .hf-rail--ghost {
  stroke: rgba(255, 90, 31, 0.2);
  stroke-width: 6;
  stroke-linecap: round;
}

.page-home .hf-orbit {
  fill: none;
  stroke: rgba(255, 90, 31, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}

.page-home .hf-orbit--inner {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 2 10;
}

.page-home .hf-hub {
  fill: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-family: inherit;
}

.page-home .hf-hub--strong {
  fill: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: inherit;
}

.page-home .hf-node {
  fill: rgba(12, 12, 12, 0.9);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
}

.page-home .hf-node-core {
  fill: rgba(255, 255, 255, 0.35);
}

.page-home .hf-node--out {
  fill: rgba(255, 90, 31, 0.12);
  stroke: rgba(255, 90, 31, 0.75);
  stroke-width: 1.75;
}

.page-home .hf-check {
  fill: none;
  stroke: #ff5a1f;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .hf-label {
  fill: rgba(255, 255, 255, 0.72);
  font-family: var(--home-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.page-home .hf-label--accent {
  fill: #ff5a1f;
}

.page-home .hf-status {
  fill: rgba(255, 255, 255, 0.32);
  font-family: var(--home-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.page-home .hf-status--done {
  fill: rgba(255, 90, 31, 0.7);
}

.page-home .hf-flow {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  animation: homeDash 1.6s linear infinite;
}

.page-home .hf-packet-body {
  fill: #ff5a1f;
  stroke: #ff8a55;
  stroke-width: 1;
}

.page-home .hf-packet-dot {
  fill: #fff;
}

.page-home .hf-tick {
  stroke: rgba(255, 90, 31, 0.7);
  stroke-width: 1.5;
  stroke-linecap: square;
}

/* Stage lights: pulse as the packet would hit each station */
.page-home .hf-stage .hf-node-core {
  animation: homeStagePulse 7s ease-in-out infinite;
}
.page-home .hf-stage[data-stage="1"] .hf-node-core { animation-delay: 0s; }
.page-home .hf-stage[data-stage="2"] .hf-node-core { animation-delay: 1.25s; }
.page-home .hf-stage[data-stage="3"] .hf-node-core { animation-delay: 2.5s; }
.page-home .hf-stage[data-stage="4"] .hf-node-core { animation-delay: 3.75s; }
.page-home .hf-stage[data-stage="5"] .hf-node--out {
  animation: homeShipFlash 7s ease-in-out infinite;
  animation-delay: 5s;
}

@keyframes homeVizIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes homeDash {
  to { stroke-dashoffset: -20; }
}

@keyframes homeStagePulse {
  0%, 12%, 100% { fill: rgba(255, 255, 255, 0.28); }
  4%, 8% { fill: #ff5a1f; }
}

@keyframes homeShipFlash {
  0%, 18%, 100% { stroke: rgba(255, 90, 31, 0.55); fill: rgba(255, 90, 31, 0.1); }
  6%, 12% { stroke: #ff5a1f; fill: rgba(255, 90, 31, 0.28); }
}

.page-home .home-hero-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.page-home .home-wordmark {
  font-size: clamp(40px, 7.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 10px;
  animation: homeIn 0.85s var(--home-ease) 0.05s both;
}

.page-home .home-powered {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--home-dim);
  margin: 0 0 28px;
  animation: homeIn 0.85s var(--home-ease) 0.1s both;
}

.page-home .home-hero h1 {
  font-family: var(--home-font);
  font-size: clamp(32px, 4.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: none;
  color: #fff;
  animation: homeIn 0.85s var(--home-ease) 0.15s both;
}

.page-home .home-line {
  display: block;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .home-line--accent {
  color: #fff;
}

.page-home .home-hero-sub {
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--home-muted);
  max-width: 34ch;
  margin: 0 0 32px;
  animation: homeIn 0.85s var(--home-ease) 0.25s both;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: homeIn 0.85s var(--home-ease) 0.35s both;
}

@keyframes homeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Factory power strip */
.page-home .home-power {
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 48px);
  border-top: 1px solid var(--home-line);
  background: #0a0a0a;
}
.page-home .home-power-inner {
  max-width: var(--home-max);
  margin: 0 auto;
}
.page-home .home-power-head {
  margin-bottom: 40px;
  max-width: 36rem;
}
.page-home .home-power-title {
  font-family: var(--home-font);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 12px;
}
.page-home .home-power-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--home-muted);
  max-width: 42ch;
}
.page-home .home-power-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: 12px;
  overflow: hidden;
}
.page-home .home-power-stat {
  background: var(--home-elevated);
  padding: 1.25rem 1rem 1.35rem;
  margin: 0;
}
.page-home .home-power-stat dt {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-dim);
}
.page-home .home-power-stat dd {
  margin: 0;
  font-family: var(--home-font);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.page-home .home-power-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--home-muted);
}
.page-home .home-power-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1100px) {
  .page-home .home-power-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-home .home-power-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sections */
.page-home .home-section {
  padding: clamp(96px, 14vw, 160px) clamp(24px, 5vw, 48px);
  border-top: 1px solid var(--home-line);
}
.page-home .home-section--panel { background: var(--home-elevated); }
.page-home .home-section-inner {
  max-width: var(--home-max);
  margin: 0 auto;
}
.page-home .home-section-head { margin-bottom: 64px; max-width: 18ch; }
.page-home .home-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 24ch;
}
.page-home .home-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-orange);
  margin-bottom: 16px;
}
.page-home .home-section h2 {
  font-family: var(--home-font);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}
.page-home .home-lead {
  font-size: 18px;
  color: var(--home-muted);
  margin-top: 16px;
  max-width: 36ch;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.page-home .home-section-head--center .home-lead {
  margin-left: auto;
  margin-right: auto;
}

/* How — horizontal rail */
.page-home .home-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}
.page-home .home-rail li {
  padding: 32px 24px 0 0;
  border-right: 1px solid var(--home-line);
}
.page-home .home-rail li:last-child { border-right: 0; padding-right: 0; }
.page-home .home-rail-n {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--home-orange);
  margin-bottom: 20px;
}
.page-home .home-rail h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.page-home .home-rail p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--home-muted);
  margin: 0;
  max-width: 22ch;
}

/* Polyglot engines — homepage discovery (portfolio index is off) */
.page-home .home-engines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: 20px;
  overflow: hidden;
}
.page-home .home-engine {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--home-panel);
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
}
.page-home .home-engine:hover { background: #161616; }
.page-home .home-engine-lang {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-orange);
  margin-bottom: 16px;
}
.page-home .home-engine h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.page-home .home-engine p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--home-muted);
  flex: 1;
  margin: 0 0 20px;
}
.page-home .home-engine-go {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-orange);
  letter-spacing: -0.01em;
}
.page-home .home-engine-go::after { content: ' →'; }
/* Outcomes */
.page-home .home-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: 20px;
  overflow: hidden;
}
.page-home .home-outcome {
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  background: var(--home-panel);
  min-height: 260px;
  transition: background 0.25s;
}
.page-home .home-outcome:hover { background: #161616; }
.page-home .home-outcome-live {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 20px;
}
.page-home .home-outcome h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.page-home .home-outcome p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--home-muted);
  flex: 1;
  margin: 0 0 28px;
}
.page-home .home-outcome-go {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-orange);
  letter-spacing: -0.01em;
}
.page-home .home-outcome-go::after { content: ' →'; }

/* Benefits — typographic, no icon clutter */
.page-home .home-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}
.page-home .home-benefits h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.page-home .home-benefits p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--home-muted);
  margin: 0;
  max-width: 34ch;
}

/* Final CTA */
.page-home .home-final {
  padding: clamp(120px, 16vw, 180px) clamp(24px, 5vw, 48px);
  text-align: center;
  border-top: 1px solid var(--home-line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 90, 31, 0.1) 0%, transparent 55%),
    #000;
}
.page-home .home-final h2 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 auto 20px;
  max-width: 12ch;
}
.page-home .home-final p {
  font-size: 19px;
  color: var(--home-muted);
  max-width: 34ch;
  margin: 0 auto 40px;
  line-height: 1.45;
}
.page-home .home-final .home-hero-actions {
  justify-content: center;
  opacity: 1;
  animation: none;
}

/* Pricing */
.page-home .home-lead--center {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-home .home-pricing-block {
  max-width: 960px;
  margin: 0 auto 48px;
}
.page-home .home-pricing-block--license {
  margin-bottom: 0;
}
.page-home .home-pricing-block-head {
  text-align: center;
  margin-bottom: 22px;
}
.page-home .home-pricing-model {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-orange);
}
.page-home .home-pricing-model-sub {
  margin: 0;
  font-size: 16px;
  color: var(--home-muted);
}
.page-home .home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.page-home .home-price-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
}
.page-home .home-price-card--featured {
  border-color: rgba(255, 90, 31, 0.55);
  background: linear-gradient(165deg, rgba(255, 90, 31, 0.12) 0%, #121212 42%);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.15), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.page-home .home-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--home-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-home .home-price-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-dim);
  margin: 0 0 12px;
}
.page-home .home-price-card--featured .home-price-tier { color: var(--home-orange); }
.page-home .home-price-amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: #fff;
}
.page-home .home-price-period {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-muted);
  margin-left: 4px;
}
.page-home .home-price-alt {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--home-dim);
}
.page-home .home-price-blurb {
  font-size: 15px;
  color: var(--home-muted);
  margin: 0 0 18px;
}
.page-home .home-price-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.page-home .home-price-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(245, 245, 247, 0.78);
}
.page-home .home-price-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-orange);
  opacity: 0.85;
}
.page-home .home-price-card .btn { width: 100%; }
.page-home .home-price-card--license {
  border-color: rgba(255, 255, 255, 0.14);
  background: #0c0c0c;
  padding: 36px 32px;
}
.page-home .home-price-license-main {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.page-home .home-price-license-main .home-price-points {
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.page-home .home-price-license-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-home .home-price-license-actions .btn {
  width: auto;
  min-width: 220px;
}
.page-home .home-price-humanity {
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.page-home .home-price-humanity:hover {
  color: var(--home-orange);
  border-color: var(--home-orange);
}

/* Footer */
.page-home .home-footer,
.page-home .footer {
  background: #000;
  color: var(--home-muted);
  border-top: 1px solid var(--home-line);
}
.page-home .footer .logo { color: #fff; }
.page-home .footer a:hover { color: #fff; }
.page-home .footer-humanity,
.page-home .footer-bottom { border-color: var(--home-line); }

/* Reveal */
.page-home .reveal { opacity: 1; transform: none; }
html.reveal-js .page-home .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--home-ease), transform 0.7s var(--home-ease);
}
html.reveal-js .page-home .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .page-home .home-hero-viz {
    position: relative;
    inset: auto;
    display: flex;
    order: 3;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px 28px;
    mask-image: none;
    -webkit-mask-image: none;
    justify-content: center;
    align-items: stretch;
    pointer-events: auto;
    z-index: 2;
  }
  .page-home .home-hero {
    display: flex;
    flex-direction: column;
  }
  .page-home .home-hero-frame {
    position: relative;
    z-index: 2;
  }
  .page-home .home-factory-svg {
    width: 100%;
    max-height: none;
    min-height: 200px;
    opacity: 1;
    animation: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .page-home .home-factory-dock {
    width: 100%;
  }
  .page-home .home-hero:has(#factory[data-factory-mode="complete"]) .home-hero-viz,
  .page-home .home-hero:has(#factory[data-factory-mode="live"]) .home-hero-viz {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-top: calc(56px + var(--beta-banner-h, 44px));
  }
  .page-home .home-rail { grid-template-columns: 1fr 1fr; gap: 32px 24px; border-top: 0; }
  .page-home .home-rail li { border-right: 0; border-top: 1px solid var(--home-line); padding: 28px 0 0; }
  .page-home .home-engines { grid-template-columns: repeat(2, 1fr); }
  .page-home .home-outcomes { grid-template-columns: 1fr; }
  .page-home .home-benefits { grid-template-columns: 1fr; gap: 36px; }
  .page-home .home-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .page-home .home-hero { text-align: left; }
  .page-home .home-wordmark { margin-bottom: 8px; }
}

@media (max-width: 640px) {
  .page-home .home-rail { grid-template-columns: 1fr; }
  .page-home .home-engines { grid-template-columns: 1fr; }
  .page-home .home-hero-actions { flex-direction: column; align-items: stretch; }
  .page-home .home-hero-actions .btn { width: 100%; justify-content: center; }
  .page-home .home-final .home-hero-actions { max-width: 320px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-wordmark,
  .page-home .home-powered,
  .page-home .home-hero h1,
  .page-home .home-hero-sub,
  .page-home .home-hero-actions,
  .page-home .home-factory-svg {
    animation: none;
    opacity: 1;
  }
  .page-home .hf-pulse {
    animation: none;
    opacity: 0.4;
  }
  .page-home .hf-flow,
  .page-home .hf-stage .hf-node-core,
  .page-home .hf-stage[data-stage="5"] .hf-node--out {
    animation: none;
  }
  .page-home .hf-packet animateMotion {
    display: none;
  }
}
