/* Kyros alternate landing concept. Local only, no deploy.
   Brand tokens: bg #07050e, action blue #2d91f3, Switzer + Clash Display.
   Layout is flex-only by project rule. */

:root {
  --bg: #07050e;
  --bg-hero: #000000;
  --blue: #2d91f3;
  --text: #f5f6fa;
  --text-soft: rgba(245, 246, 250, 0.68);
  --text-faint: rgba(245, 246, 250, 0.52);
  --line: rgba(245, 246, 250, 0.10);
  --font-body: 'Switzer', system-ui, -apple-system, sans-serif;
  --font-display: 'Clash Display', 'Switzer', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
  --pad-x: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(45, 145, 243, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--text); }
h3 { font-size: 1.18rem; font-weight: 500; }

.section__lede {
  color: var(--text-soft);
  max-width: 540px;
  font-size: 0.95rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.btn--primary {
  background: #fff;
  color: #0a0a12;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(45, 145, 243, 0.55), 0 12px 36px rgba(45, 145, 243, 0.22);
}

.btn--ghost {
  border: 1px solid rgba(245, 246, 250, 0.28);
  color: var(--text);
  background: rgba(5, 4, 10, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(245, 246, 250, 0.55);
  transform: translateY(-2px);
}

.btn--nav { min-height: 40px; padding: 0 20px; font-size: 0.84rem; }
.btn--lg { min-height: 54px; padding: 0 36px; font-size: 0.95rem; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 4, 10, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 12px 2px;
  transition: color 0.25s var(--ease-out);
}
.nav__links a:hover { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 4, 10, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 32px;
}
.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.14em;
}

/* ---------- side rail ---------- */

.rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.3s var(--ease-out);
  padding: 4px 0;
}
.rail a span {
  color: var(--blue);
  font-size: 0.62rem;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease-out);
}
.rail a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.35s var(--ease-out);
}
.rail a.is-active { color: var(--text); }
.rail a.is-active span { opacity: 1; }
.rail a.is-active::after { width: 22px; }
.rail a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; }

.hero__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(45, 145, 243, 0.14) 0%, rgba(45, 145, 243, 0.04) 38%, transparent 70%),
    #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* slight bottom-anchored upscale keeps the wave band above the seam */
  transform: scale(1.1);
  transform-origin: 50% 100%;
  filter: brightness(1.05) saturate(1.05);
  opacity: 0;
  transition: opacity 1.6s ease;
}
body.video-ready .hero__video { opacity: 1; }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.34) 34%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 24%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.18) 100%);
}

/* tall non-linear seam so the video fades into the page surface with no visible edge.
   Kept low and steep so it does not bury the wave band in the lower video frame. */
.hero__seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 240px;
  z-index: 9;
  background: linear-gradient(
    to top,
    rgba(7, 5, 14, 1) 0%,
    rgba(7, 5, 14, 0.85) 12%,
    rgba(7, 5, 14, 0.52) 32%,
    rgba(7, 5, 14, 0.22) 58%,
    rgba(7, 5, 14, 0.07) 80%,
    rgba(7, 5, 14, 0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__headline {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 13ch;
  margin: 22px 0 26px;
  color: #fff;
}

/* runtime char reveal */
.hero__headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__headline .char {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 0.022s + 0.25s);
}
body.is-ready .hero__headline .char { transform: translateY(0); }

.hero__subhead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-soft);
  max-width: 46ch;
}

.hero__services {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__bottom {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--pad-x) 44px;
  display: flex;
  align-items: flex-end;
  gap: 40px;
}
.hero__bottom-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #79bcff;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.7);
}
.hero__bottom-desc {
  color: var(--text-soft);
  font-size: 0.85rem;
  max-width: 52ch;
  flex: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.7);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 246, 250, 0.22);
  border-radius: 50%;
  color: var(--text-soft);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.hero__scroll:hover { border-color: var(--blue); color: #fff; transform: translateY(3px); }

/* staggered first-load reveal */
[data-stagger] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d) * 0.12s + 0.2s);
}
body.is-ready [data-stagger] { opacity: 1; transform: translateY(0); }

/* ---------- sections ---------- */

.section { padding: 96px 0; position: relative; }

.section-rule {
  border: none;
  height: 1px;
  background: var(--line);
  max-width: var(--container);
  margin: 0 auto;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 64px;
  max-width: 640px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- system ledger ---------- */

.ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ledger__row {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 34px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.ledger__row:hover {
  background: rgba(245, 246, 250, 0.025);
  transform: translateY(-3px);
}

.ledger__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--blue);
  width: 44px;
  flex-shrink: 0;
  padding-top: 3px;
}

.ledger__body {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ledger__body p { color: var(--text-soft); font-size: 0.92rem; max-width: 56ch; }

.ledger__tags {
  flex: 0.8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding-top: 6px;
  justify-content: flex-end;
  text-align: right;
}
.ledger__tags i {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: rgba(245, 246, 250, 0.22);
  margin: 0 12px;
}

/* ---------- method steps ---------- */

.steps {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 32px;
  background: rgba(245, 246, 250, 0.028);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 145, 243, 0.35);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue);
}
.step h3 { margin-top: 2px; }
.step p { color: var(--text-soft); font-size: 0.88rem; }

/* ---------- proof / ownership ---------- */

.proof {
  display: flex;
  align-items: flex-start;
  gap: 72px;
}
.proof__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proof__cells {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding-top: 10px;
}
.proof__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 22px;
  border-left: 1px solid var(--line);
}
.proof__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--text);
}
.proof__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  padding: 130px 0 140px;
  overflow: hidden;
  text-align: center;
}
.cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 320px;
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(ellipse, rgba(45, 145, 243, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.cta p { color: var(--text-soft); }
.cta .btn { margin-top: 14px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand--footer .brand__word { font-size: 1.05rem; }
.footer__line { color: var(--text-soft); font-size: 0.84rem; flex: 1; }
.footer__note { color: var(--text-faint); font-size: 0.74rem; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .rail { display: none; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }

  .hero__shade {
    background:
      linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 40%, rgba(0, 0, 0, 0.06) 70%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.14) 26%, rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.28) 100%);
  }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { height: 64px; }

  .hero__content { padding-top: 110px; }
  .hero__bottom {
    padding-top: 48px;
    padding-bottom: 36px;
    gap: 20px;
  }
  .hero__bottom-desc { display: none; }
  .hero__bottom { justify-content: space-between; }

  .section__head { margin-bottom: 40px; }

  .ledger__row {
    flex-direction: column;
    gap: 14px;
    padding: 26px 4px;
  }
  .ledger__num { width: auto; padding-top: 0; }
  .ledger__tags { justify-content: flex-start; text-align: left; padding-top: 2px; }

  .steps { flex-direction: column; gap: 16px; }

  .proof { flex-direction: column; gap: 40px; }
  .proof__cells { width: 100%; padding-top: 0; }
  .proof__cell { padding: 4px 12px; }
  .proof__cell:first-child { padding-left: 0; border-left: none; }
  .proof__value { font-size: 0.88rem; }
  .proof__label { font-size: 0.6rem; letter-spacing: 0.1em; }

  .cta { padding: 90px 0 100px; }
}

@media (max-width: 420px) {
  .btn--nav { padding: 0 14px; font-size: 0.78rem; }
  .hero__actions .btn { flex: 1; min-width: 150px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-stagger],
  .reveal,
  .hero__headline .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__video { display: none; }
  body.is-loading [data-stagger] { opacity: 1; transform: none; }
  * { animation: none !important; }
}
