:root {
  --bg: #f3f4f6;
  --bg-2: #e7e9ee;
  --ink: #0c0e12;
  --mute: #5b6472;
  --line: rgba(12, 14, 18, 0.12);
  --signal: #e11d2e;
  --signal-2: #ff3b4a;
  --steel: #9aa3b2;
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --max: 1080px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 40%, #eceef3 100%);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(243, 244, 246, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 1.25rem;
  cursor: pointer;
}

.nav__links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mute);
}
.nav__links a { cursor: pointer; transition: color 160ms var(--ease); }
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--ink); }
.nav__links a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__stage {
  position: absolute;
  inset: 0;
  color: var(--ink);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
}

.hero__cones {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.cone--a { transform-origin: 430px 360px; animation: thump 2.4s var(--ease) infinite; }
.cone--b { transform-origin: 770px 360px; animation: thump 2.4s var(--ease) 0.18s infinite; }
.pulse { animation: tick 2.4s var(--ease) infinite; }
.wave {
  stroke-dasharray: 12 10;
  animation: flow 8s linear infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 14vh, 8rem) var(--pad) clamp(2.4rem, 6vh, 3.5rem);
  max-width: 720px;
}

.hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--signal);
  animation: up 0.8s var(--ease) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
  animation: up 0.9s var(--ease) 0.08s both;
}

.hero__text {
  margin: 1rem 0 0;
  max-width: 32rem;
  color: var(--mute);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  text-wrap: pretty;
  animation: up 0.9s var(--ease) 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
  animation: up 0.9s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn--solid {
  background: var(--signal);
  color: #fff;
}
.btn--solid:hover { background: var(--signal-2); }

.btn--line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--line:hover { background: var(--ink); color: #fff; }

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.rail > div {
  padding: 1.1rem var(--pad);
  border-right: 1px solid var(--line);
}
.rail > div:last-child { border-right: 0; }
.rail b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.rail span {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 500;
}

.how,
.path,
.log,
.get {
  padding: clamp(3rem, 8vh, 5rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

.how__head,
.log__head {
  max-width: 32rem;
  margin-bottom: 2rem;
}
.how__head h2,
.path h2,
.log__head h2,
.get h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}
.how__head p,
.log__head p,
.get__box > p:not(.get__brand) {
  margin: 0.7rem 0 0;
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}

.log__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.log__item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.log__item header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1rem;
  margin-bottom: 0.7rem;
}
.log__item b {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--signal);
}
.log__item time {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
}
.log__item header span {
  flex: 1 1 12rem;
  font-weight: 700;
  color: var(--ink);
}
.log__item ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.log__item li {
  position: relative;
  padding-left: 1rem;
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}
.log__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--signal);
}

.how__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.how__list article {
  padding: 1.35rem 1.1rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.how__list article:nth-child(odd) {
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}
.how__list article:nth-child(even) {
  padding-left: 1.5rem;
}
.how__list span {
  display: block;
  font-family: var(--display);
  color: var(--signal);
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.how__list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.how__list p {
  margin: 0;
  color: var(--mute);
  text-wrap: pretty;
}

.path ol {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.path li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}
.path li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.3;
}
.path li:last-child { border-bottom: 1px solid var(--line); }

.get__box {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--ink);
  color: #f5f6f8;
}
.get__brand {
  margin: 0;
  font-family: var(--display);
  color: var(--signal-2);
  letter-spacing: 0.04em;
}
.get h2 { color: #fff; }
.get__box > p:not(.get__brand) { color: #a7b0bd; }
.get__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.get .btn--solid { background: var(--signal); }
.get .btn--line {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.get .btn--line:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.tg {
  padding: 0 var(--pad) clamp(3rem, 8vh, 5rem);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.tg__box {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  background: #fff;
}
.tg__kicker {
  margin: 0;
  font-family: var(--display);
  color: var(--signal);
  letter-spacing: 0.04em;
}
.tg h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.tg p {
  margin: 0.8rem 0 1.25rem;
  max-width: 34rem;
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-weight: 500;
}
.foot__links {
  display: flex;
  gap: 1.1rem;
}
.foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes thump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
  60% { transform: scale(0.992); }
}
@keyframes tick {
  0%, 100% { opacity: 0.25; }
  45% { opacity: 1; }
}
@keyframes flow {
  to { stroke-dashoffset: -220; }
}

@media (max-width: 820px) {
  .rail { grid-template-columns: 1fr 1fr; }
  .rail > div:nth-child(2) { border-right: 0; }
  .how__list { grid-template-columns: 1fr; }
  .how__list article:nth-child(odd),
  .how__list article:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .rail > div { border-right: 0; }
  .hero__actions,
  .get__btns { flex-direction: column; }
  .btn { width: 100%; }
  .hero__cones { opacity: 0.45; transform: scale(1.25); transform-origin: 70% 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cone--a, .cone--b, .pulse, .wave,
  .hero__brand, .hero h1, .hero__text, .hero__actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
