:root {
  --bg: #000000;
  --bg-soft: #11192b;
  --text: #f5f7ff;
  --muted: #edf3ff;
  --accent: #7ecbff;
  --accent-2: #a8ddff;
  --card: rgba(7, 16, 28, 0.62);
  --stroke: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
  font-family: inherit;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: #000000;
  overflow-x: hidden;
}

.noise {
  display: none;
}

.aurora {
  display: none;
}

.topbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.2rem clamp(1.4rem, 5vw, 3.2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(3, 9, 16, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
}

.brand span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.1rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.snap-site {
  height: 100svh;
  overflow: hidden;
}

.snap-site main {
  width: 100vw;
  max-width: none;
  margin: 0;
  height: calc(100svh - 72px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  padding: 1rem clamp(1.4rem, 5vw, 3.2rem) 4rem;
}

.snap-site main > section {
  min-height: calc(100svh - 72px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-content: center;
}

.snap-site main > section:not(:first-of-type) {
  padding-inline: clamp(1.4rem, 4vw, 3.4rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  animation: rise 700ms ease both;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(820px, 62vw);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 36%, rgba(0, 0, 0, 0.56) 62%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(56%, 900px);
  border-radius: 24px 0 0 24px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  filter: saturate(0.9) brightness(0.72);
  will-change: opacity;
}

.hero-image-a {
  background-image: url("pics/pexels-pixabay-87089.jpg");
  animation: heroSwapA 14s linear infinite;
}

.hero-image-b {
  background-image: url("pics/pexels-pixabay-87611.jpg");
  animation: heroSwapB 14s linear infinite;
}

.tag,
.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.03;
  margin: 0;
  max-width: 14ch;
}

h1 span {
  color: var(--text);
  text-shadow: none;
}

h1 .warm-word {
  color: var(--text);
  text-shadow: none;
}

.sub {
  margin-top: 1.5rem;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.who {
  margin-top: 0.5rem;
}

.btn {
  text-decoration: none;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(120deg, #63b8ff, #b9e5ff);
  color: #02101d;
}

.btn-ghost {
  border-color: var(--stroke);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

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

.problem-solution {
  margin-top: 2rem;
  animation: rise 700ms ease both;
}

.problem-solution-flow {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.6rem, 4vh, 2.8rem);
  text-align: center;
}

.problem-line,
.solution-line {
  max-width: 1000px;
  margin: 0 auto;
}

.problem-solution-label {
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.problem-solution-text {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(126, 203, 255, 0.2);
}

.problem-solution-list {
  margin: 0 auto;
  max-width: 980px;
  padding-left: 1.35rem;
  color: #ffffff;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  line-height: 1.45;
}

.problem-solution-list li + li {
  margin-top: 0.62rem;
}

.solution-line .problem-solution-text {
  color: #ffffff;
  text-shadow: 0 0 32px rgba(126, 203, 255, 0.32);
}

.cards article {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1.2rem;
  backdrop-filter: blur(8px);
  animation: rise 700ms ease both;
}

.cards article:nth-child(2) {
  animation-delay: 120ms;
}

.cards article:nth-child(3) {
  animation-delay: 220ms;
}

.cards h2,
.products h2,
.platform h2,
.news h2,
.contact h2 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
}

.cards p,
.products p,
.platform p,
.news p,
.contact p,
.platform li {
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  margin-bottom: 1rem;
}

.products,
.news {
  margin-top: 2rem;
  animation: rise 700ms ease both;
}

.compare-section {
  margin-top: 2rem;
  animation: rise 700ms ease both;
}

.compare-intro {
  margin: 0 0 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(126, 203, 255, 0.08);
  color: var(--muted);
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(10, 18, 33, 0.75);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.cost-table th,
.cost-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  line-height: 1.5;
}

.cost-table th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(126, 203, 255, 0.08);
}

.cost-table td {
  color: var(--muted);
}

.cost-table th:nth-child(2),
.cost-table td:nth-child(2) {
  width: 28%;
}

.cost-table td:nth-child(2) {
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.cost-table tbody tr:last-child td {
  border-bottom: 0;
}

.best-result {
  font-weight: 800;
  color: #ffffff;
}

.brand-inline {
  font-weight: 800;
  color: #ffffff;
}

.table-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.table-note a {
  color: var(--text);
}

.compare-refs {
  margin-top: 0.9rem;
  color: var(--muted);
}

.compare-refs p {
  margin: 0 0 0.45rem;
}

.compare-refs ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.compare-refs a {
  color: #ffffff;
  text-decoration: none;
}

.ref-more {
  margin-left: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease;
}

.ref-more:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.workflow-section {
  margin-top: 2rem;
  animation: rise 700ms ease both;
}

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

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
  position: relative;
}

.workflow-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(126, 203, 255, 0.28);
  transform: translateY(-50%);
  z-index: 0;
}

.tl-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #d7e6f9;
  background: rgba(6, 14, 24, 0.85);
  border: 1px solid rgba(126, 203, 255, 0.26);
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
}

.tl-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(126, 203, 255, 0.2);
  flex: 0 0 auto;
}

.workflow-step {
  position: relative;
  background: rgba(10, 18, 33, 0.75);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.step-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 203, 255, 0.4);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.step-icon {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.step-time {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.85);
}

.workflow-step h3 {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-step::after {
  display: none;
}

.product-card,
.news-card {
  background: rgba(10, 18, 33, 0.75);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 1.4rem;
  backdrop-filter: blur(8px);
}

.news-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
}

.news-content {
  min-width: 0;
}

.news-media {
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 14, 24, 0.75);
}

.kicker,
.news-date {
  margin: 0 0 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text);
}

.product-card h3,
.news-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-family: "Space Grotesk", sans-serif;
}

.news-photo {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  margin-bottom: 0;
}

.product-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.product-links a,
.news-card a {
  text-decoration: none;
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-links a:hover,
.news-card a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.roadmap,
.platform {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  animation: rise 700ms ease both;
  animation-delay: 300ms;
}

#collaboration.platform {
  grid-template-columns: minmax(0, 1fr);
}

.roadmap ul,
.platform ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.roadmap li,
.platform li {
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(126, 203, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline li span {
  display: inline-block;
  min-width: 5.4rem;
  margin-right: 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.collaboration-subsection {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(126, 203, 255, 0.08);
}

.collaboration-subsection h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.collaboration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.2rem;
  align-items: center;
}

.collaboration-copy {
  min-width: 0;
}

.collaboration-copy > p {
  max-width: 76ch;
}

.orb5-float {
  width: clamp(170px, 24vw, 250px);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 7, 14, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.orb5-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: center center;
}

.contact {
  margin-top: 2rem;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  animation: rise 700ms ease both;
  animation-delay: 360ms;
}

.contact p {
  font-size: 1.15rem;
  color: var(--text);
}

.contact-email {
  text-align: center;
  margin-bottom: 0.8rem;
}

.team-ex {
  margin-top: 1.2rem;
}

.team-ex .eyebrow {
  text-align: center;
  margin-bottom: 0.8rem;
}

.team-ex-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: center;
}

.team-ex-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  min-height: 100px;
}

.team-ex-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: brightness(0.98);
}

.team-ex-eth {
  max-height: 120px;
}

.contact-partners .section-head {
  margin-top: 1.2rem;
}

.supported-by {
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

.supported-by .eyebrow {
  text-align: center;
  margin-bottom: 0.8rem;
}

.supported-by-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: center;
}

.supported-by-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.supported-by-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) brightness(0.98);
}

.supported-by-psi {
  filter: grayscale(1) invert(1) brightness(1.06) contrast(1.04);
}

.supported-by-invert {
  filter: grayscale(1) invert(1) brightness(1.02) contrast(1.05);
}

.supported-by-spc {
  max-height: 84px;
}

.page-hero {
  padding: 4.5rem 0 2rem;
  animation: rise 700ms ease both;
}

.papers-section {
  display: grid;
  gap: 1.6rem;
}

.year-group {
  display: grid;
  gap: 0.8rem;
}

.year-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.08em;
}

.year-list {
  display: grid;
  gap: 1rem;
}

.paper-item {
  background: rgba(10, 18, 33, 0.75);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1.2rem;
}

.paper-item h2 {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.paper-meta {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.paper-item p {
  color: var(--muted);
  line-height: 1.6;
}

.paper-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.paper-links a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  color: #7d8aa3;
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSwapA {
  0%,
  36% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}

@keyframes heroSwapB {
  0%,
  36% {
    opacity: 0;
  }
  56%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .cards,
  .workflow-grid,
  .roadmap,
  .platform {
    grid-template-columns: 1fr;
  }

  .workflow-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .workflow-timeline::before {
    display: none;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero-image {
    width: 100%;
    border-radius: 0;
    filter: saturate(0.82) brightness(0.45);
  }

  .news-media {
    order: -1;
  }

  .team-ex-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supported-by-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orb5-float {
    width: min(240px, 78vw);
    margin: 0 auto;
  }

  .collaboration-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .collaboration-copy > p {
    max-width: none;
  }

  .topbar {
    gap: 0.8rem;
    flex-wrap: wrap;
    position: static;
    padding-top: 1rem;
  }

  nav {
    gap: 0.8rem;
  }

  .cost-table td:nth-child(2) {
    white-space: normal;
  }

  .workflow-step::after {
    display: none;
  }

  .snap-site {
    height: auto;
    overflow: visible;
  }

  .snap-site main {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .snap-site main > section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    display: block;
    align-content: normal;
    padding-inline: 0;
  }
}

@media (max-width: 560px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .supported-by-logos {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1650px) {
  .news-photo {
    height: 520px;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }

  .hero-image-a {
    opacity: 1;
  }
}
