/* ============================================================
   Tyzeron — landing page
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg: #0A0C12;
  --ink: #ECEFF5;
  --muted: #8B94A7;
  --faint: #5A6274;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #6E8BFF;
  --accent-soft: rgba(110, 139, 255, 0.12);
  --live: #4ADEB6;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body { margin: 0; }
h1, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
canvas, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---- Base ---- */
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background: node canvas + ambient glow + readability wash */
#net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% 28%, rgba(110, 139, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at 8% 92%, rgba(74, 222, 182, 0.05), transparent 60%),
    linear-gradient(90deg,
      rgba(10, 12, 18, 0.94) 0%,
      rgba(10, 12, 18, 0.72) 42%,
      rgba(10, 12, 18, 0.30) 72%,
      rgba(10, 12, 18, 0.55) 100%),
    linear-gradient(180deg,
      rgba(10, 12, 18, 0.82) 0%,
      transparent 20%,
      transparent 80%,
      rgba(10, 12, 18, 0.90) 100%);
}

/* Content column above background */
.page {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 22px; height: 22px; color: var(--accent); display: inline-flex;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(110, 139, 255, 0.55));
}
.brand__name {
  font-weight: 500;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  color: var(--ink);
}

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }

/* ---- Hero ---- */
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
  padding-block: clamp(2rem, 8vh, 5rem);
  max-width: 60rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
  box-shadow: 0 0 0 0 rgba(74, 222, 182, 0.45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 182, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 182, 0); }
}

.headline {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
}
.headline__b { color: var(--muted); }

.sub {
  font-weight: 400;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.tags li:hover {
  color: var(--ink);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.cta-row { margin-top: 0.6rem; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cta__arrow { color: var(--accent); transition: transform 0.3s ease; }
.cta:hover {
  border-color: rgba(110, 139, 255, 0.6);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -18px rgba(110, 139, 255, 0.7);
}
.cta:hover .cta__arrow { transform: translateX(4px); }

/* ---- Footer ---- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot__item { color: var(--muted); }
.foot__sep { color: var(--faint); }

/* ---- Sections (below the hero) ---- */
.section {
  padding-block: clamp(3.25rem, 9vh, 5.5rem);
  border-top: 1px solid var(--line);
}
.section__head {
  max-width: 46rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  color: var(--ink);
  margin: 0;
}
.section__lead {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  max-width: 42ch;
}

/* Status pill (shared by project + beta) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status--dev { color: var(--accent); }
.status--dev .status__dot {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(110, 139, 255, 0.5);
  animation: pulse-accent 2.6s ease-out infinite;
}
.status--closed { color: var(--faint); }
.status--closed .status__dot { background: var(--faint); }
@keyframes pulse-accent {
  0%   { box-shadow: 0 0 0 0 rgba(110, 139, 255, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(110, 139, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 139, 255, 0); }
}

/* Project card */
.project {
  max-width: 46rem;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: border-color 0.35s ease, transform 0.35s ease,
              box-shadow 0.35s ease, background 0.35s ease;
}
.project:hover {
  border-color: rgba(110, 139, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 22px 55px -30px rgba(110, 139, 255, 0.65);
  background: linear-gradient(180deg, rgba(110, 139, 255, 0.07), rgba(255, 255, 255, 0.01));
}
.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.project__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.project__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.project__desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 54ch;
}
.project__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.project__meta li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.project:hover .project__meta li { border-color: var(--line-2); color: var(--ink); }

/* Roadmap timeline */
.timeline {
  max-width: 46rem;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-2);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  column-gap: 1.4rem;
  row-gap: 0.3rem;
  padding: 1.15rem 0 1.15rem 1.6rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.timeline__item:last-child { border-bottom: none; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.timeline__item:hover { background: rgba(255, 255, 255, 0.02); padding-left: 2rem; }
.timeline__item:hover::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline__when {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.1rem;
}
.timeline__phase {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
}
.timeline__note {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* Closed-beta card */
.beta__card {
  max-width: 46rem;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.beta__card:hover {
  border-color: rgba(110, 139, 255, 0.35);
  box-shadow: 0 22px 55px -32px rgba(0, 0, 0, 0.7);
}
.beta__body {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 58ch;
}
.beta__body strong { color: var(--ink); font-weight: 600; }
.beta__status { margin-top: 1.4rem; }

/* ---- Load reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.16s; }
.hero .reveal:nth-child(3) { transition-delay: 0.28s; }
.hero .reveal:nth-child(4) { transition-delay: 0.40s; }
.hero .reveal:nth-child(5) { transition-delay: 0.52s; }

/* Scroll reveal for below-the-fold sections */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-up.is-in { opacity: 1; transform: none; }
.timeline .reveal-up:nth-child(1) { transition-delay: 0.04s; }
.timeline .reveal-up:nth-child(2) { transition-delay: 0.12s; }
.timeline .reveal-up:nth-child(3) { transition-delay: 0.20s; }
.timeline .reveal-up:nth-child(4) { transition-delay: 0.28s; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .brand__name { font-size: 0.75rem; letter-spacing: 0.22em; }
  .headline { font-size: clamp(2.2rem, 10vw, 3rem); }
  .sub { max-width: 34ch; }
  .tags li { font-size: 0.62rem; padding: 0.45rem 0.7rem; }

  .timeline__item { grid-template-columns: 1fr; row-gap: 0.35rem; }
  .timeline__when { grid-column: 1; grid-row: 1; }
  .timeline__phase { grid-column: 1; grid-row: 2; }
  .timeline__note { grid-column: 1; grid-row: 3; }
  .timeline__item:hover { padding-left: 1.9rem; }
  .project__top { flex-wrap: wrap; }

  body::before {
    background:
      radial-gradient(700px 500px at 80% 12%, rgba(110, 139, 255, 0.12), transparent 65%),
      linear-gradient(180deg,
        rgba(10, 12, 18, 0.70) 0%,
        rgba(10, 12, 18, 0.55) 40%,
        rgba(10, 12, 18, 0.78) 100%);
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
  .dot, .status--dev .status__dot { animation: none; }
  .cta, .cta__arrow, .nav__link, .nav__link::after,
  .brand__mark, .tags li, .project, .project__meta li,
  .timeline__item, .beta__card { transition: none; }
}
