/* FabricSolution landing - Classic Alien (1979) poster palette:
   a black void broken by a cool, slightly yellow bioluminescent phosphor-green
   glow. Token names are kept from the original brand set; only values changed. */
:root {
  --navy-0: #020503;  /* void: near-black, faint green bias */
  --navy:   #04110A;  /* very dark green-tinted ground */
  --navy-2: #1B5230;  /* mid-dark green */
  --panel:  #102A1C;  /* dark green-grey panel surfaces */
  --teal:   #7CFC2E;  /* glow-primary: signature radioactive Alien green */
  --teal-d: #3FB81C;  /* glow-deep */
  --teal-l: #E4FF8C;  /* glow-hot: near-white yellow-green crack core */
  --ice:    #F4FFE0;  /* near-white green-tinted highlight */
  --ink:    #d4e6cf;  /* primary text, faint green-grey */
  --dim:    #a2bd9a;  /* secondary text */
  --faint:  #738c66;  /* tertiary text */
  --line:   #2E5D3A;  /* borders + grid line, dim green */
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --header-h: 72px;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--navy-0);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }
b { color: var(--teal); }

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  z-index: 30;
  background: linear-gradient(to bottom, rgba(2,5,3,.82), rgba(2,5,3,0));
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 18px; letter-spacing: .2px;
}
.brand__loop { width: 22px; height: 22px; color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav__by { font-size: 11px; color: var(--dim); }
.btn {
  font: 600 13px/1 var(--font-body);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.25,1,.5,1), background .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { color: var(--ice); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--solid { color: var(--navy); background: var(--teal); font-weight: 700; }
.btn--solid:hover { background: var(--teal-l); }
.btn--lg { padding: 16px 30px; font-size: 15px; }

main { position: relative; z-index: 10; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--pad-x) 0;
  position: relative;
  pointer-events: none;
}
.hero__content { max-width: 880px; pointer-events: auto; }
.hero__eyebrow {
  color: var(--teal-l);
  font-size: 12px;
  margin-bottom: 22px;
  text-transform: lowercase;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 87%;
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 26px;
}
.hero__title .hl, .hero__subtitle .hl { display: block; }
.hero__title b { color: var(--teal); }
.hero__subtitle {
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  color: var(--dim);
  max-width: 640px;
}
.hero__scroll-btn {
  position: absolute;
  bottom: 34px; left: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal-l);
  text-transform: lowercase;
}
.hero__scroll-btn > span { display: block; overflow: hidden; }
.hsbtn-in { display: inline-block; }
.hero__scroll-btn::after {
  content: "";
  display: block;
  width: 1px; height: 42px;
  margin-top: 10px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: drip 2.2s cubic-bezier(.25,1,.5,1) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0);} 45% { transform: scaleY(1);} 100% { transform: scaleY(1); opacity: 0;} }

/* ---------- flow ---------- */
.flow { position: relative; pointer-events: none; }
.flow__steps { padding: 0 var(--pad-x); }
.flow__step {
  min-height: 130vh;
  display: flex;
  align-items: center;
  /* Lift each card half a viewport so it reaches screen-center exactly when the
     camera reaches that step's facility. The scroll framing (top-bottom ->
     bottom-bottom) puts a centered card ~0.096 of master-progress BELOW its
     facility marker, so without this the text only crests the bottom edge as the
     facility is already sliding off. Transform is visual-only: it shifts nothing
     in layout, so the scroll length and the camera's progress mapping are
     untouched. -50vh lands card centers on pCfg/pRepo (0.375/0.625) exactly. */
  transform: translateY(-50vh);
}
.flow__step:nth-child(odd)  { justify-content: flex-end; }
.flow__step:nth-child(even) { justify-content: flex-start; }
.flow__card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .4s cubic-bezier(.25,1,.5,1), transform .4s cubic-bezier(.25,1,.5,1);
  pointer-events: auto;
  width: min(440px, 88vw);
  background: rgba(6, 22, 13, 0.64);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(1, 4, 2, 0.5);
}
.flow__card.is-live { opacity: 1; transform: none; }
.flow__card .flow__description {
  transition: opacity .38s ease .05s, transform .38s ease .05s;
  opacity: 0;
  transform: translateY(10px);
}
.flow__card.is-live .flow__description { opacity: 1; transform: none; }
.doc-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .25s, text-shadow .25s;
  cursor: pointer;
  position: relative;
}
.doc-link:hover {
  border-bottom-color: var(--teal);
  text-shadow: 0 0 14px rgba(124, 252, 46, 0.55);
}
.doc-link:hover::after {
  content: "view one-pager";
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  font: 400 10px/1 var(--font-mono);
  color: var(--teal-l);
  letter-spacing: .04em;
  text-shadow: none;
  white-space: nowrap;
}
.flow__header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.flow__number {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--teal-d);
  border-radius: 6px;
  padding: 4px 7px;
}
.flow__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2vw, 24px);
  color: #fff;
  letter-spacing: -0.01em;
}
.flow__track {
  height: 2px;
  background: rgba(228, 255, 140, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.flow__track-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--teal-d), var(--teal-l));
  transform: scaleX(0);
  transform-origin: left;
}
.flow__description { font-size: 14px; line-height: 1.6; color: var(--dim); }

/* ---------- easter egg: reactor rod floats away ---------- */
.egg-rod {
  position: fixed;
  top: 0; left: 0;
  width: clamp(200px, 24vw, 380px);
  height: auto;
  pointer-events: none;
  z-index: 200;
  will-change: transform, opacity;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 60px rgba(102, 255, 20, 0.35);
}

/* ---------- shared section base ---------- */
.features, .integration, .cta-section {
  position: relative;
  background: var(--navy-0);
  padding: 110px var(--pad-x);
}
.features { border-top: 1px solid var(--line); }

.features__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 56px;
  max-width: 760px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  padding: 22px 22px 24px;
  transition: transform .35s cubic-bezier(.25,1,.5,1), border-color .35s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--teal-d); }
.feature__eyebrow { color: var(--faint); font-size: 10.5px; margin-bottom: 10px; text-transform: lowercase; }
.feature h3 { color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature p { font-size: 13px; line-height: 1.58; color: var(--dim); }

/* ---------- integration ---------- */
.integration__head { max-width: 720px; margin-bottom: 44px; }
.integration__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.integration__head p { color: var(--dim); font-size: 14px; }
.star { color: var(--teal); }
.integration__rows { list-style: none; border-top: 1px solid var(--line); }
.integration__rows li {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.integration__rows h4 { color: var(--ice); font-size: 16px; font-weight: 700; }
.integration__rows p { color: var(--dim); font-size: 14px; line-height: 1.6; }

/* ---------- cta ---------- */
.cta-section { text-align: center; padding-top: 140px; padding-bottom: 150px; }
.cta-section__eyebrow { color: var(--teal-l); font-size: 12px; margin-bottom: 20px; }
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 36px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--navy-0);
  color: var(--faint);
  font-size: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .site-nav__by, .btn--ghost { display: none; }
  .flow__step { min-height: 110vh; }
  .flow__step:nth-child(odd), .flow__step:nth-child(even) { justify-content: center; }
  .integration__rows li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-btn::after { animation: none; }
  .hero__title .hl, .hero__subtitle .hl, .hsbtn-in { opacity: 1 !important; transform: none !important; }
  .flow__card, .flow__card .flow__description { opacity: 1 !important; transform: none !important; transition: none; }
}
