:root {
  --bg: #020617;
  --bg-alt: #030712;
  --bg-elevated: #050816;
  --card: rgba(15, 23, 42, 0.96);
  --border-subtle: rgba(148, 163, 184, 0.25);

  --accent-1: #22d3ee;
  --accent-2: #a855f7;
  --accent-soft: rgba(56, 189, 248, 0.12);

  --text: #e5e7eb;
  --text-strong: #f9fafb;
  --text-muted: #9ca3af;

  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-soft: 0 32px 80px rgba(15, 23, 42, 0.85);
  --shadow-subtle: 0 18px 45px rgba(15, 23, 42, 0.6);

  --container-max: 1120px;
}

/* Base */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 235, 0.08), transparent 55%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.09), transparent 55%),
    radial-gradient(circle at bottom, rgba(56, 189, 248, 0.04), transparent 50%),
    #020617;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: none;
}

.center {
  text-align: center;
}

/* Layout */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.section {
  padding: 4.2rem 0;
  position: relative;
}

.section.alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.96));
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section + .section {
  border-top: 1px solid rgba(15, 23, 42, 0.7);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.strip-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

/* Typography */

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.section-underline {
  position: relative;
  display: inline-block;
}

.section-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  opacity: 0.8;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.lede.center {
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.bullets li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.bullets li strong {
  color: var(--text-strong);
  margin-right: 0.25rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.85rem;
}

.tiny {
  font-size: 0.76rem;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav--scrolled {
  background: rgba(3, 7, 18, 0.98);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
  border-color: rgba(30, 64, 175, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.brand img {
  width: 26px;
  height: 26px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav nav a {
  color: var(--text-muted);
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.nav nav a:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(94, 234, 212, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

.btn-primary {
  background:
    radial-gradient(circle at 0% 0%, #22d3ee, transparent 55%),
    linear-gradient(135deg, #22c1ee, #a855f7);
  border-color: transparent;
  color: #0b1120;
  font-weight: 500;
  box-shadow: 0 18px 45px rgba(8, 47, 73, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 22px 60px rgba(30, 64, 175, 0.9);
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
}

/* Hero */

.hero.hero--minimal {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-title {
  background-size: 200% 200%;
  animation: gradientShift 16s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-animation {
  position: absolute;
  inset: -160px -220px auto;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.32), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.38), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.2), transparent 55%);
  opacity: 0.85;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: heroGlow 18s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.7;
    filter: blur(0px);
  }
  50% {
    opacity: 0.9;
    filter: blur(4px);
  }
  100% {
    opacity: 0.75;
    filter: blur(1px);
  }
}

.hero-animation::after {
  content: "";
  position: absolute;
  inset: 14% 18%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  opacity: 0.35;
}

.hero-diagram {
  position: absolute;
  inset: auto 50% 4.5rem auto;
  transform: translateX(32%);
  opacity: 0.14;
  pointer-events: none;
}

.hero-diagram img {
  max-width: 360px;
  filter: drop-shadow(0 22px 60px rgba(15, 23, 42, 0.9));
}

.hero-stack {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.logo-hero.tiny {
  width: 280px;
  margin-bottom: 0.75rem;
  margin-top: -1rem;
  filter: drop-shadow(0 22px 55px rgba(15, 23, 42, 0.9));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-hero.tiny:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 26px 70px rgba(15, 23, 42, 1));
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero .btn-lg {
  margin-top: 2rem;
}

/* Cards / panels */

.feature-card,
.panel,
.card,
.team-card {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.2s ease;
}

.feature-card::before,
.panel::before,
.team-card::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto auto;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.25), transparent 60%);
  opacity: 0.12;
}

.feature-card:hover,
.panel:hover,
.card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(94, 234, 212, 0.8);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 235, 0.09), transparent 60%),
    rgba(15, 23, 42, 0.98);
}

.checklist {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, var(--accent-1), var(--accent-2));
}

/* Pillars & strip */

.pillar {
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(30, 64, 175, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.pillar-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

.pillar h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
}

.strip-3 > div {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.5);
}

.strip-3 h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.strip-3 p {
  margin: 0;
  color: var(--text-muted);
}

.strip-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.strip-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* Architecture diagram */

.architecture-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.architecture-diagram {
  margin: 0;
  max-width: 320px;
}

.architecture-diagram img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 55%);
}


/* Scroll indicator */

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0.8;
}

.scroll-indicator span {
  display: block;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
  opacity: 0;
}

.scroll-indicator-animate {
  animation: scrollPulse 2s ease-in-out infinite;
  opacity: 1 !important;
}

@keyframes scrollPulse {
  0% {
    transform: translateY(4px);
    opacity: 0;
  }
  20% {
    transform: translateY(8px);
    opacity: 1;
  }
  80% {
    transform: translateY(18px);
    opacity: 1;
  }
  100% {
    transform: translateY(22px);
    opacity: 0;
  }
}

/* Page hero (About/Product) */

.page-hero {
  position: relative;
  padding: 6rem 0 5rem;              
  min-height: calc(100vh - 64px);   
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;               
  margin: 0 auto;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.page-title {
  margin: 1.3rem 0 0.9rem;
  font-size: clamp(2.4rem, 3.6vw, 3rem);  
  letter-spacing: -0.055em;
}

.page-hero .lede {
  max-width: 34rem;
  font-size: 1rem;
}

.page-hero-glow {
  position: absolute;
  inset: 10% 10% auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.25), transparent 60%);
  opacity: 0.6;
  filter: blur(10px);
  pointer-events: none;
}

/* About specifics */

.mission-block {
  max-width: 700px;
  margin: 0 auto;
}

.principles {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--text-muted);
}

.principles strong {
  color: var(--text-strong);
  margin-right: 0.25rem;
}

/* Team */

.page.container {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.team-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.9rem;
}

.team-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 0.9rem;
}

.team-card .details h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.team-card .muted.small {
  font-size: 0.85rem;
}

.team-card .bio {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Waitlist */

.page.container.narrow {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.field input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.span-2 {
  grid-column: span 2;
}

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

.toast {
  position: fixed;
  inset: auto 1.5rem 1.5rem auto;
  max-width: 320px;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 197, 235, 0.6);
  color: var(--text);
  font-size: 0.85rem;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.95);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  z-index: 50;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA row + final CTA */

.cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.final-cta {
  text-align: center;
}

/* Footer */

.footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(3, 7, 18, 0.98);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.brand-inline img {
  width: 24px;
  height: 24px;
}

.footer .right {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer .right a:hover {
  color: var(--text-strong);
}

.divider {
  margin: 1.5rem 0 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

/* Scroll-in animation utility */

.animate-in {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
  transition:
    opacity 0.65s ease-out,
    transform 0.65s ease-out,
    filter 0.65s ease-out;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Responsive */

@media (max-width: 900px) {
  .card-row,
  .pillars-grid,
  .strip-3,
  .two-col,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 4.8rem 0;        /* was 4.2rem */
  }
  
  .section.alt {
    padding: 4.8rem 0;
  }
  
  .section-heading {
    font-size: 1.6rem;        /* was 1.5rem */
    margin-bottom: 1.4rem;    /* was 1.25rem */
  }
  
  .section .narrow > p,
  .section .narrow > ul,
  .section .narrow > ol {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .page-hero {
    padding: 4.5rem 0 3rem;
    min-height: auto;                
    align-items: flex-start;
  }

  .page-hero-inner {
    text-align: center;
  }

  .page-hero .cta-row {
    justify-content: center;
  }
  
}

@media (max-width: 768px) {
  .nav nav {
    display: none; /* (optional) you can swap for a burger later */
  }

  .hero.hero--minimal {
    padding-top: 4rem;
    min-height: auto;
  }

  .logo-hero.tiny {
    width: 220px;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .waitlist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-2 {
    grid-column: span 1;
  }
}
