/* =============================================================
   Stryx Labs — shared site stylesheet
   ============================================================= */
:root {
  --bg:           #0a0a0d;
  --bg-deep:      #050507;
  --bg-soft:      #11111a;
  --text:         #f5f5f3;
  --text-soft:    rgba(245,245,243,0.78);
  --text-mute:    rgba(245,245,243,0.62);
  --text-faint:   rgba(245,245,243,0.34);

  --brand-cyan:   #1FB6E8;
  --brand-cyan-soft: rgba(31,182,232,0.16);
  --brand-lilac:  #C9A3D8;
  --brand-plum:   #7B2A7C;

  --line:         rgba(245,245,243,0.1);
  --line-strong:  rgba(245,245,243,0.2);

  --max-w:        1200px;
  --nav-h:        84px;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--text); margin: 0; font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.serif { font-family: 'Fraunces', Georgia, serif; }
.mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

.text-cyan { color: var(--brand-cyan); }
.text-lilac { color: var(--brand-lilac); }
.text-plum { color: var(--brand-plum); }
.text-mute { color: var(--text-mute); }
.text-faint { color: var(--text-faint); }
.italic { font-style: italic; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-6 { margin-bottom: 24px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mt-6 { margin-top: 24px; }
.mt-10 { margin-top: 40px; }

a { color: inherit; text-decoration: none; transition: color 200ms var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--brand-cyan); color: var(--bg); }
img { max-width: 100%; display: block; }

/* ===== Brand mark + wordmark ===== */
.brand-mark { width: 26px; height: 26px; display: inline-block; flex-shrink: 0; }
.brand-mark--lg { width: 42px; height: 42px; }

.wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}
.wordmark__labs {
  font-weight: 400;
  color: var(--text-mute);
  margin-left: 4px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(10, 10, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--brand-cyan); }
.nav__cta {
  margin-left: 4px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text) !important;
  transition: all 220ms var(--ease);
}
.nav__cta:hover { border-color: var(--brand-cyan); color: var(--brand-cyan) !important; }

/* ===== Type system ===== */
.display-xl {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(56px, 10vw, 144px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 32px;
}
.display-md {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 24px;
}
.display-sm {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 32px;
}

/* ===== Tags & dividers ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.tag--center { justify-content: center; }
.tag--cyan { color: var(--brand-cyan); }

.dot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan);
  animation: dot-pulse 3s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.divider-soft {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.divider-soft::before, .divider-soft::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 240ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--filled {
  background: var(--text);
  color: var(--bg);
}
.btn--filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245,245,243,0.16);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}
.btn--cyan {
  background: var(--brand-cyan);
  color: var(--bg-deep);
}
.btn--cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31,182,232,0.3);
}

/* ===== Underline link ===== */
.under-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 240ms;
  padding-bottom: 1px;
}
.under-link:hover { background-size: 100% 1px; }

.arrow { transition: transform 240ms var(--ease); display: inline-block; }
*:hover > .arrow,
.featured-card:hover .arrow { transform: translate(2px, -2px); }

/* ===== Hero ===== */
.hero {
  padding: 80px 48px 100px;
  text-align: center;
}
.hero__inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero__inner .tag { margin-bottom: 32px; }
.hero__inner .lede { margin: 0 auto 40px; }
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__ctas--center { justify-content: center; }

/* ===== Sections ===== */
.section {
  padding: 80px 48px;
}
.section--alt {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__inner--narrow {
  max-width: 760px;
}

/* ===== Stat strip ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip__cell {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-strip__cell:last-child { border-right: none; }
.stat-strip__num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-strip__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ===== Featured card ===== */
.featured-card {
  display: block;
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(180deg, #131320 0%, #0a0a12 100%);
  border: 1px solid var(--line);
  transition: all 320ms var(--ease);
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(31,182,232,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.featured-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}
.featured-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
}
.featured-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(56px, 8vw, 112px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 16px 0 12px;
}
.featured-card__essence {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--text-soft);
  margin: 0;
}
.featured-card__visit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.featured-card__body {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 32px;
  position: relative;
}
.featured-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  position: relative;
}
.featured-card__stats strong {
  color: var(--text);
  font-weight: 600;
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

/* ===== Codename ladder ===== */
.ladder {
  border-top: 1px solid var(--line);
}
.ladder__row {
  display: grid;
  grid-template-columns: 60px 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: background 220ms var(--ease);
}
.ladder__row:hover { background: rgba(255,255,255,0.02); }
a.ladder__row:hover { background: rgba(31,182,232,0.04); }
.ladder__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}
.ladder__name {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.ladder__essence {
  color: var(--text-soft);
}
.ladder__status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.ladder__row--shipping .ladder__name { color: var(--brand-cyan); }
.ladder__row--shipping .ladder__status {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-soft);
}
.ladder__row--research .ladder__name { color: var(--brand-lilac); }
.ladder__row--research .ladder__status { color: var(--brand-lilac); border-color: rgba(201,163,216,0.3); }
.ladder__row--queued .ladder__name,
.ladder__row--reserved .ladder__name { color: var(--text-soft); }
.ladder__row--queued .ladder__status,
.ladder__row--reserved .ladder__status { color: var(--text-mute); }
.ladder__row--terminal .ladder__status { color: var(--brand-plum); border-color: rgba(123,42,124,0.4); }

/* ===== Manifesto ===== */
.manifesto {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.65;
  text-align: center;
  margin-top: 40px;
}
.manifesto p { margin: 0 0 32px; color: var(--text-soft); }
.manifesto em { color: var(--text); font-style: italic; }
.manifesto__pull {
  font-style: italic;
  color: var(--brand-cyan) !important;
}

/* ===== Rules ===== */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.rule {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.015);
  transition: all 240ms var(--ease);
}
.rule:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.rule__num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--brand-cyan);
  display: block;
  margin-bottom: 12px;
}
.rule__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.rule p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA band ===== */
.cta-band {
  padding: 120px 48px;
  background: radial-gradient(ellipse at center, rgba(31,182,232,0.06) 0%, var(--bg) 70%);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-band__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.site-footer {
  padding: 80px 48px 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  margin-bottom: 64px;
}
.site-footer__brand .nav__brand { margin-bottom: 16px; }
.site-footer__tagline {
  font-size: 17px;
  color: var(--text-soft);
  margin: 0;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer__col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.site-footer__cols a, .site-footer__cols span {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.site-footer__cols a:hover { color: var(--brand-cyan); }

.site-footer__legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}
.site-footer__legal .mono {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}

/* ===== Page ===== */
.page {
  padding: 56px 48px 96px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page__header {
  margin-bottom: 64px;
  text-align: center;
}
.page__header .tag { margin-bottom: 24px; }
.page__header .lede { margin: 0 auto; }

/* ===== Products grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.product {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 240ms var(--ease);
}
.product:hover { border-color: var(--line-strong); }
.product--shipping { border-color: rgba(31,182,232,0.3); }
.product__head {
  padding: 36px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #131320 0%, #0a0a12 100%);
}
.product__head .tag { margin-bottom: 20px; }
.product__name {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 16px;
}
.product__essence {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text-soft);
  margin: 0 0 24px;
}
.product__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.product__body { padding: 36px; }
.product__body p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.product__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.product__features li {
  list-style: none;
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.product__features li::before {
  content: '◆';
  color: var(--brand-cyan);
  position: absolute;
  left: 0;
  font-size: 8px;
  top: 5px;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__inner > * { animation: fadeUp 0.8s var(--ease-out) backwards; }
.hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.4s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.55s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav__links { gap: 18px; font-size: 13px; }
  .nav__links a:nth-child(3) { display: none; }
  .hero { padding: 56px 24px 72px; }
  .section, .cta-band, .site-footer { padding-left: 24px; padding-right: 24px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip__cell:nth-child(2) { border-right: none; }
  .stat-strip__cell:nth-child(1), .stat-strip__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .featured-card { padding: 32px 24px; }
  .ladder__row {
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    padding: 18px 0;
  }
  .ladder__row .ladder__essence {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 4px;
  }
  .product { grid-template-columns: 1fr; }
  .product__head { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .product__body { padding: 28px 24px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .nav__links a:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
