:root {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: #10141a;
  --surface-strong: #171c23;
  --line: #2a3038;
  --text: #f4f6f8;
  --muted: #a8b0ba;
  --red: #ef5047;
  --red-dark: #bf302c;
  --cyan: #4ed4c6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 780;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: white;
  background: var(--red);
  box-shadow: 0 8px 28px rgba(239, 80, 71, 0.2);
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #d8dde3;
  font-size: 14px;
}

nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: white;
}

.nav-support {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  height: min(820px, 86vh);
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.97) 0%, rgba(5, 7, 9, 0.77) 36%, rgba(5, 7, 9, 0.06) 72%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.22), rgba(5, 7, 9, 0.08) 65%, rgba(5, 7, 9, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  padding-top: clamp(190px, 25vh, 240px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(58px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 730;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 34px;
  color: #cbd1d8;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: white;
  font-size: 14px;
  font-weight: 720;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.secondary-action,
.text-link {
  color: #e4e7eb;
  font-size: 14px;
  font-weight: 650;
}

.secondary-action {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-status {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(10, 13, 17, 0.74);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 670;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(78, 212, 198, 0.15);
}

.status-arrow {
  margin-left: 8px;
  color: var(--muted);
}

.principles {
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.principles-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles article {
  min-height: 190px;
  padding: 38px 34px;
  border-left: 1px solid var(--line);
}

.principles article:last-child {
  border-right: 1px solid var(--line);
}

.principle-number,
.use-case > span {
  display: block;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 12px;
  font-weight: 780;
}

.principles strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.principles p,
.use-case p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.network-section,
.status-section,
.support-section,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.network-section {
  padding: 104px 0 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 90px;
}

.section-heading h2,
.status-copy h2,
.support-section h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.12;
}

.section-copy {
  padding-top: 31px;
}

.section-copy p,
.status-copy > p:last-child,
.support-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-copy p {
  max-width: 540px;
  margin-bottom: 28px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.use-cases {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 104px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.use-case {
  min-height: 260px;
  padding: 38px 34px;
  border-left: 1px solid var(--line);
}

.use-case:last-child {
  border-right: 1px solid var(--line);
}

.use-case h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.status-section {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 54px 64px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-copy {
  max-width: 700px;
}

.status-copy h2 {
  margin-bottom: 18px;
}

.status-copy > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.status-badge {
  min-width: 130px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(78, 212, 198, 0.34);
  border-radius: 6px;
  color: var(--cyan);
  font-weight: 730;
}

.support-section {
  padding: 118px 0 126px;
  text-align: center;
}

.support-section h2 {
  margin-bottom: 20px;
}

.support-section > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 32px;
}

footer {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  color: var(--text);
}

footer p {
  margin: 0;
  text-align: center;
}

.footer-links {
  justify-content: flex-end;
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 32px);
    height: 68px;
  }

  nav a:not(.nav-support) {
    display: none;
  }

  .nav-support {
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    height: 680px;
    min-height: 0;
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(5, 7, 9, 0.84) 0%, rgba(5, 7, 9, 0.32) 35%, rgba(5, 7, 9, 0.95) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 102px;
  }

  h1 {
    font-size: 54px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-status {
    right: 16px;
    bottom: 18px;
    left: 16px;
    justify-content: flex-start;
  }

  .status-arrow {
    margin-left: auto;
  }

  .principles {
    padding: 0 16px;
  }

  .principles-grid,
  .network-section,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .principles article {
    min-height: 0;
    padding: 30px 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .principles article:last-child {
    border-bottom: 0;
  }

  .principle-number,
  .use-case > span {
    margin-bottom: 16px;
  }

  .network-section,
  .status-section,
  .support-section,
  footer,
  .use-cases {
    width: calc(100% - 32px);
  }

  .network-section {
    padding: 74px 0 66px;
    gap: 24px;
  }

  .section-heading h2,
  .status-copy h2,
  .support-section h2 {
    font-size: 34px;
  }

  .section-copy {
    padding-top: 0;
  }

  .use-cases {
    margin-bottom: 74px;
  }

  .use-case {
    min-height: 0;
    padding: 30px 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .use-case:last-child {
    border-bottom: 0;
  }

  .status-section {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 36px 28px;
    gap: 28px;
  }

  .status-badge {
    min-width: 120px;
  }

  .support-section {
    padding: 86px 0 92px;
  }

  footer {
    padding: 30px 0;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
  }

  footer p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

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