:root {
  --bg: #050816;
  --bg-soft: #091126;
  --panel: rgba(10, 19, 41, 0.62);
  --panel-strong: rgba(9, 17, 38, 0.88);
  --line: rgba(153, 192, 255, 0.16);
  --text: #f4f8ff;
  --muted: #8e9ec4;
  --cyan: #55e6ff;
  --blue: #4a7dff;
  --violet: #7d6cff;
  --success: #79f7c5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1160px;
  --header-h: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(74, 125, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(85, 230, 255, 0.14), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(125, 108, 255, 0.15), transparent 22%),
    linear-gradient(180deg, #03050e 0%, #050816 42%, #071126 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  opacity: 0.18;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(4, 8, 21, 0.72);
  border-bottom: 1px solid rgba(153, 192, 255, 0.08);
}

.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
}

.pill-primary {
  background: linear-gradient(135deg, rgba(85, 230, 255, 0.2), rgba(74, 125, 255, 0.34));
  border-color: rgba(85, 230, 255, 0.3);
  box-shadow: 0 16px 40px rgba(40, 114, 255, 0.22);
}

.pill-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(153, 192, 255, 0.14);
  color: var(--muted);
}

.pill-secondary:hover,
.pill-secondary:focus-visible {
  color: var(--text);
  border-color: rgba(85, 230, 255, 0.25);
  box-shadow: 0 16px 36px rgba(85, 230, 255, 0.1);
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 110px 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 230, 255, 0.95));
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  max-width: 11ch;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero {
  padding-top: 78px;
  padding-bottom: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero-copy p {
  font-size: 1.12rem;
  max-width: 640px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
  max-width: 720px;
}

.metric,
.glass-card,
.timeline-card,
.ton-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric {
  border-radius: 20px;
  padding: 20px;
}

.metric strong {
  display: block;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-frame {
  width: min(100%, 500px);
  aspect-ratio: 1;
  position: relative;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 125, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(153, 192, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 100px rgba(11, 27, 66, 0.6);
  overflow: hidden;
  isolation: isolate;
}

.orbital-frame::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 30px;
  border: 1px solid rgba(153, 192, 255, 0.12);
}

.core {
  position: absolute;
  inset: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff, rgba(85, 230, 255, 0.95) 34%, rgba(74, 125, 255, 0.62) 66%, rgba(125, 108, 255, 0.18) 100%);
  box-shadow:
    0 0 36px rgba(85, 230, 255, 0.5),
    0 0 120px rgba(74, 125, 255, 0.28);
}

.orbit,
.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(153, 192, 255, 0.14);
}

.orbit {
  inset: 20%;
  animation: rotate 24s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
}

.orbit::before {
  inset: -12%;
  border-style: dashed;
  opacity: 0.6;
  animation: rotate-reverse 18s linear infinite;
}

.orbit::after {
  inset: 14%;
  border-color: rgba(85, 230, 255, 0.2);
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(121, 247, 197, 0.7);
}

.node-a { top: 16%; left: 24%; }
.node-b { top: 24%; right: 18%; background: var(--cyan); box-shadow: 0 0 20px rgba(85, 230, 255, 0.65); }
.node-c { bottom: 18%; left: 28%; background: #7da7ff; box-shadow: 0 0 20px rgba(125, 167, 255, 0.6); }
.node-d { bottom: 24%; right: 24%; background: #9c8bff; box-shadow: 0 0 20px rgba(156, 139, 255, 0.55); }

.floating-panel {
  position: absolute;
  border-radius: 20px;
  padding: 18px;
  background: rgba(5, 10, 24, 0.72);
  border: 1px solid rgba(153, 192, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.panel-top {
  top: 10%;
  left: -2%;
  width: 210px;
}

.panel-bottom {
  right: -3%;
  bottom: 11%;
  width: 220px;
}

.panel-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.panel-value {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sparkline {
  margin-top: 14px;
  height: 56px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(85, 230, 255, 0.12), transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 18px 18px;
  position: relative;
  overflow: hidden;
}

.sparkline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(85, 230, 255, 0.55) 34%, rgba(74, 125, 255, 0.7) 56%, transparent 72%);
  clip-path: polygon(0 82%, 18% 68%, 32% 72%, 52% 24%, 68% 44%, 82% 18%, 100% 34%, 100% 100%, 0 100%);
}

.logo-marquee {
  padding-top: 0;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.logo-chip {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(153, 192, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 248, 255, 0.86);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.about-shell,
.ton-shell {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.glass-card,
.timeline-card,
.ton-card {
  border-radius: var(--radius);
  padding: 30px;
}

.glass-card p + p {
  margin-top: 16px;
}

.stats-grid,
.cards-grid,
.utility-grid,
.community-grid {
  display: grid;
  gap: 20px;
}

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

.mini-stat {
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(153, 192, 255, 0.1);
}

.mini-stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.problem-box,
.solution-box {
  border-radius: var(--radius);
  padding: 30px;
  min-height: 100%;
}

.problem-box {
  background: linear-gradient(180deg, rgba(255, 110, 146, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 124, 154, 0.14);
}

.solution-box {
  background: linear-gradient(180deg, rgba(85, 230, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(85, 230, 255, 0.14);
}

.stack-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.stack-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(153, 192, 255, 0.08);
}

.stack-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.15rem;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.utility-card,
.community-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(153, 192, 255, 0.11);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card::before,
.utility-card::before,
.community-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -55% 10%;
  height: 160px;
  background: radial-gradient(circle, rgba(85, 230, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.feature-card:hover,
.utility-card:hover,
.community-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 230, 255, 0.24);
  box-shadow: 0 24px 80px rgba(12, 24, 58, 0.75);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(85, 230, 255, 0.18), rgba(74, 125, 255, 0.2));
  border: 1px solid rgba(153, 192, 255, 0.15);
  color: var(--text);
  margin-bottom: 20px;
}

.feature-card p,
.utility-card p,
.community-card p {
  font-size: 0.98rem;
  margin-top: 10px;
}

.utility-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(85, 230, 255, 0.45), rgba(125, 108, 255, 0.15));
}

.timeline-card {
  position: relative;
  padding-left: 64px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(85, 230, 255, 0.45);
}

.timeline-year {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ton-card {
  position: relative;
  overflow: hidden;
}

.ton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.ton-chip {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(153, 192, 255, 0.1);
}

.ton-chip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.community-card .pill {
  align-self: flex-start;
  margin-top: 26px;
}

.footer {
  padding: 34px 0 52px;
  border-top: 1px solid rgba(153, 192, 255, 0.08);
  background: rgba(2, 5, 15, 0.56);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-shell,
  .ton-shell,
  .cards-grid,
  .utility-grid,
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .about-shell,
  .ton-shell,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 420px;
  }

  .logo-strip,
  .cards-grid,
  .utility-grid,
  .community-grid,
  .ton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 74px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  section {
    padding: 88px 0;
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    font-size: 0.9rem;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-actions,
  .hero-metrics,
  .stats-grid,
  .logo-strip,
  .cards-grid,
  .utility-grid,
  .community-grid,
  .ton-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .pill {
    justify-content: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .orbital-frame {
    border-radius: 28px;
  }

  .core {
    width: 110px;
    height: 110px;
  }

  .panel-top,
  .panel-bottom {
    width: 180px;
    padding: 15px;
  }

  .panel-top {
    top: 8%;
    left: -4%;
  }

  .panel-bottom {
    right: -4%;
    bottom: 8%;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
