/* Forward Foundation landing — desert-night eucalyptus drench.
   Brand register: committed green on near-black, image-led hero. */

:root {
  --bg: oklch(0.11 0 0);
  --bg-2: oklch(0.15 0.012 160);
  --surface: oklch(0.18 0.015 160);
  --ink: oklch(0.97 0.005 160);
  --ink-soft: oklch(0.74 0.025 160);
  --line: oklch(0.30 0.02 160);
  --brand: oklch(0.74 0.14 160);
  --brand-deep: oklch(0.48 0.10 160);
  --brand-wash: oklch(0.32 0.06 160 / 0.5);
  --amber: oklch(0.80 0.13 75);
  --risk: oklch(0.66 0.18 25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  font-size: 17px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px); gap: 20px;
  background: oklch(0.11 0 0 / 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav.scrolled {
  background: oklch(0.11 0 0 / 0.88);
  border-bottom-color: var(--line);
}
.nav-brand {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.nav-brand:hover { color: var(--brand); }
.site-nav nav { display: flex; gap: 22px; }
.site-nav nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.15s;
}
.site-nav nav a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 0.84rem; border-radius: 999px;
  padding: 10px 18px; transition: transform 0.15s var(--ease), background 0.15s;
}
.nav-cta:hover { background: oklch(0.80 0.13 160); transform: translateY(-1px); }

@media (max-width: 820px) {
  .site-nav nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: grid; align-items: end;
  padding: calc(var(--nav-h) + 48px) clamp(20px, 5vw, 64px) 56px;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.06);
  animation: heroDrift 28s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.11 0 0 / 0.55) 0%, oklch(0.11 0 0 / 0.25) 35%, oklch(0.11 0 0 / 0.82) 78%, var(--bg) 100%),
    linear-gradient(90deg, oklch(0.11 0 0 / 0.72) 0%, oklch(0.11 0 0 / 0.35) 55%, oklch(0.11 0 0 / 0.15) 100%),
    radial-gradient(600px 400px at 20% 70%, oklch(0.40 0.10 160 / 0.35), transparent 70%);
}

.hero-content {
  max-width: 720px;
  animation: riseIn 0.9s var(--ease) both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.brand-lockup {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--brand); margin-bottom: 14px;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  margin-bottom: 18px; text-wrap: balance;
  max-width: 14ch;
}
.hero-lede {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft); line-height: 1.55;
  max-width: 42ch; margin-bottom: 28px; text-wrap: pretty;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: oklch(0.80 0.13 160); }
.btn-ghost { background: transparent; color: var(--ink); border-color: oklch(1 0 0 / 0.28); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }

.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 34px; border: 1.5px solid oklch(1 0 0 / 0.28); border-radius: 12px;
}
.hero-scroll span {
  display: block; width: 3px; height: 8px; margin: 8px auto 0; border-radius: 2px;
  background: var(--brand); animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

.problem {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 18px; text-wrap: balance;
}
.problem p, .closing p, .product-copy > p {
  font-family: "Literata", Georgia, serif;
  font-size: 1.08rem; color: var(--ink-soft); line-height: 1.65; text-wrap: pretty;
}

.product.alt { background: var(--bg-2); }
.product-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.product-grid.reverse { direction: rtl; }
.product-grid.reverse > * { direction: ltr; }

.product-name {
  font-size: 0.95rem; font-weight: 700; color: var(--brand);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.product-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 16px; text-wrap: balance; max-width: 16ch;
}
.feature-list {
  list-style: none; margin: 20px 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.feature-list li {
  position: relative; padding-left: 22px;
  color: var(--ink); font-size: 0.95rem; font-weight: 500; line-height: 1.4;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* Product stage previews */
.product-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px oklch(0 0 0 / 0.35);
}
.stage-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: oklch(0.14 0.01 160);
}
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.4 0.02 160); }
.stage-url {
  margin-left: 10px; font-size: 0.72rem; color: var(--ink-soft); font-weight: 500;
}
.stage-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fake-msg {
  border-radius: 12px; padding: 12px 14px; font-size: 0.86rem; line-height: 1.45;
}
.fake-msg.user {
  align-self: flex-end; max-width: 88%;
  background: var(--brand-deep); color: #fff;
}
.fake-msg.bot {
  align-self: flex-start; max-width: 94%;
  background: oklch(0.14 0.01 160); border: 1px solid var(--line);
}
.fake-band {
  display: inline-block; font-weight: 800; font-size: 0.78rem;
  border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; color: var(--bg);
}
.fake-band.team { background: var(--amber); }
.fake-band.match { background: var(--brand); }
.fake-codes { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.fake-codes code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.64rem;
  background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 5px; padding: 2px 6px; color: var(--ink-soft);
}
.fake-msg.bot p { color: var(--ink-soft); font-family: "Literata", Georgia, serif; font-size: 0.84rem; }
.fake-hitl { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.fake-hitl span {
  font-size: 0.72rem; font-weight: 700; border-radius: 8px;
  padding: 7px 11px; border: 1px solid var(--line); color: var(--ink-soft);
}
.fake-hitl span.on { background: var(--brand); color: var(--bg); border-color: transparent; }

.kinsight-stage { transform: rotate(-0.6deg); }
.steady-stage { transform: rotate(0.6deg); }

/* Principles */
.principles { background: var(--bg); border-top: 1px solid var(--line); }
.principles h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 36px; max-width: 16ch; text-wrap: balance;
}
.principle-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.principle-flow article {
  padding: 28px 22px 8px 0;
  border-right: 1px solid var(--line);
}
.principle-flow article:last-child { border-right: none; padding-right: 0; }
.principle-flow h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 10px; color: var(--ink);
}
.principle-flow p {
  font-family: "Literata", Georgia, serif;
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55;
}

.closing {
  background:
    radial-gradient(700px 380px at 50% 100%, oklch(0.40 0.10 160 / 0.28), transparent 65%),
    var(--bg-2);
  text-align: center; border-top: 1px solid var(--line);
}
.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 14px; text-wrap: balance;
}
.closing p { margin: 0 auto 28px; }
.closing .hero-ctas { justify-content: center; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 36px clamp(20px, 5vw, 64px) 48px;
  background: var(--bg);
}
.foot-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  align-items: flex-start;
}
.site-foot strong { display: block; font-size: 1rem; margin-bottom: 8px; }
.site-foot p { color: var(--ink-soft); font-size: 0.85rem; max-width: 46ch; margin-bottom: 4px; line-height: 1.45; }
.site-foot .foot-meta { margin-top: 10px; font-size: 0.78rem; opacity: 0.9; }
.site-foot .foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.site-foot .foot-contact a { color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.site-foot .foot-contact a:hover { text-decoration: underline; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.foot-links a:hover { color: var(--brand); }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .product-grid, .product-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .kinsight-stage, .steady-stage { transform: none; }
  .principle-flow { grid-template-columns: 1fr 1fr; }
  .principle-flow article:nth-child(2) { border-right: none; }
  .principle-flow article:nth-child(1),
  .principle-flow article:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
}

@media (max-width: 560px) {
  .principle-flow { grid-template-columns: 1fr; }
  .principle-flow article { border-right: none; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .principle-flow article:last-child { border-bottom: none; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .hero-content { animation: none; }
  .hero-scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
