/* Deepseal Labs — Lumen Seal tokens + layout */

:root {
  --field: #f3f5f4;
  --field-soft: #eef1f3;
  --field-blue: #e2e8ef;
  --field-beige: #ebe8e2;
  --field-deep: #dfe6ee;
  --field-band: #e8edf2;
  --surface: #f5f7f9;
  --steel: #5a7a8c;
  --steel-muted: #7a93a3;
  --steel-edge: #9bb0bd;
  --ink: #1c2a33;
  --ink-soft: #2f4452;
  --ink-muted: #3d5160;
  --cyan: #0bb8d4;
  --cyan-deep: #0899b2;
  --cyan-glow: rgba(11, 184, 212, 0.35);
  --grid: rgba(90, 122, 140, 0.07);
  --grid-hero: rgba(90, 122, 140, 0.045);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --max: 68rem;
  --nav-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--field-soft);
  background-image: linear-gradient(
    180deg,
    var(--field) 0%,
    var(--field-soft) 40%,
    var(--field-blue) 100%
  );
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Top bar —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 244, 0.82);
  border-bottom: 1px solid rgba(90, 122, 140, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--steel-muted);
}

.wordmark img {
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.85;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--steel-muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--cyan);
  color: #f7fcfd;
  border-color: var(--cyan);
}

.btn--primary:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--steel);
  border-color: #7f96a6;
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(90, 122, 140, 0.12);
}

.btn--join {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--steel-edge);
  color: var(--steel);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.nav.nav--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(245, 247, 249, 0.96);
  border-bottom: 1px solid rgba(90, 122, 140, 0.18);
  gap: 0.85rem;
}

/* —— Hero (Lumen Seal atmosphere) —— */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fieldIn 1.1s ease forwards;
}

@keyframes fieldIn {
  to {
    opacity: 1;
  }
}

/* Soft luminous direction — cool field with gentle center/top wash */
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 85% 55% at 42% 28%,
      rgba(255, 255, 252, 0.72) 0%,
      rgba(243, 245, 244, 0.2) 45%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      #f6f7f6 0%,
      var(--field-beige) 48%,
      var(--field-blue) 100%
    );
}

/* Grid densifies at edges; hard clear behind hero type */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-hero) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-hero) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center;
  mask-image: radial-gradient(
    ellipse 72% 62% at 28% 32%,
    transparent 0%,
    transparent 58%,
    rgba(0, 0, 0, 0.25) 78%,
    #000 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 72% 62% at 28% 32%,
    transparent 0%,
    transparent 58%,
    rgba(0, 0, 0, 0.25) 78%,
    #000 100%
  );
}

/* Concentric arcs — barely structural */
.hero__arcs {
  position: absolute;
  left: 62%;
  top: 58%;
  width: min(120vw, 64rem);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  mask-image: radial-gradient(ellipse 55% 50% at 35% 30%, transparent 45%, #000 90%);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 35% 30%, transparent 45%, #000 90%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.75s ease 0.12s forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__claim {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 0.85rem;
  text-align: left;
}

.hero__support {
  max-width: 38rem;
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.reduce-motion .hero__atmosphere,
.reduce-motion .hero__content {
  animation: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__atmosphere,
  .hero__content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* —— Pillars —— */

.pillars {
  padding: 3rem 0;
}

.pillars__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pillars__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(90, 122, 140, 0.28);
  border-radius: 2px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  border-color: rgba(11, 184, 212, 0.55);
  box-shadow: 0 0 0 1px rgba(11, 184, 212, 0.2);
}

.pillar__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

.pillar__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.pillar__link {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan-deep);
  border-bottom: 1px solid rgba(11, 184, 212, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pillar__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* —— Why band —— */

.why {
  padding: 3rem 0;
  background: var(--field-band);
  border-block: 1px solid rgba(90, 122, 140, 0.16);
}

.why__inner {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.why__inner p {
  margin: 0 0 0.85rem;
}

.why__inner p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 500;
}

/* —— Membership strip —— */

.membership {
  padding: 3.5rem 0;
}

.membership__panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid rgba(90, 122, 140, 0.28);
  border-radius: 2px;
}

.membership__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.membership__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.membership__list li {
  margin-bottom: 0.4rem;
}

.membership__list strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Stub pages —— */

.stub {
  padding: clamp(3rem, 8vw, 5rem) 0 4rem;
  min-height: calc(100vh - var(--nav-h) - 8rem);
}

.stub h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.stub p {
  max-width: 36rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* —— Footer —— */

.site-footer {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid rgba(90, 122, 140, 0.18);
  color: var(--steel-muted);
  font-size: 0.88rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-bottom: 0.85rem;
}

.site-footer__nav a:hover {
  color: var(--ink);
}

.site-footer__tag {
  margin: 0;
  letter-spacing: 0.01em;
}
