:root {
  color-scheme: dark;
  --bg: #081011;
  --bg-soft: #10191b;
  --panel: #142023;
  --panel-strong: #19282b;
  --line: rgba(231, 242, 239, 0.14);
  --text: #edf7f3;
  --muted: #a9bab7;
  --teal: #4dd7c0;
  --teal-dark: #0f6d66;
  --amber: #f2b84b;
  --green: #9bd56f;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 16, 17, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(77, 215, 192, 0.55);
  border-radius: 8px;
  background: rgba(77, 215, 192, 0.12);
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  color: rgba(237, 247, 243, 0.82);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 247, 243, 0.06);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, 88svh);
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 16, 17, 0.96) 0%, rgba(8, 16, 17, 0.82) 34%, rgba(8, 16, 17, 0.36) 72%, rgba(8, 16, 17, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 16, 17, 0.26) 0%, rgba(8, 16, 17, 0.02) 52%, #081011 100%);
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  align-self: center;
  margin-left: clamp(20px, 6vw, 88px);
  padding-top: 88px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.section-heading h2,
.infra h2,
.validator h2,
.contact h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(2.35rem, 5.2vw, 4.7rem);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(237, 247, 243, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--teal);
  color: #052321;
}

.button-secondary {
  border-color: rgba(237, 247, 243, 0.28);
  background: rgba(237, 247, 243, 0.08);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(77, 215, 192, 0.72);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip div {
  min-height: 118px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: #0c1516;
}

.trust-strip strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.trust-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 88px);
}

.intro {
  background: var(--bg);
}

.intro-grid,
.section-heading,
.infra,
.validator-layout,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.infra h2,
.validator h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.intro p,
.section-heading p,
.infra p,
.validator p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.services {
  background: #0a1314;
}

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

.service-card {
  min-height: 430px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-grid;
  min-width: 48px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(77, 215, 192, 0.42);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card h3,
.timeline h3 {
  margin: 24px 0 12px;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(237, 247, 243, 0.82);
}

.service-card li {
  position: relative;
  padding-left: 22px;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.infra {
  align-items: center;
  background: var(--bg);
}

.infra-copy {
  max-width: 760px;
}

.infra-copy p {
  margin-top: 22px;
}

.infra-panel {
  display: grid;
  gap: 12px;
}

.infra-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.infra-panel span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.infra-panel strong {
  color: var(--white);
  text-align: right;
}

.validator {
  background:
    linear-gradient(135deg, rgba(77, 215, 192, 0.08), rgba(242, 184, 75, 0.05)),
    #0d1718;
}

.validator p {
  margin-top: 22px;
}

.validator-metrics {
  display: grid;
  gap: 14px;
}

.validator-metrics div {
  padding: 24px;
  border: 1px solid rgba(77, 215, 192, 0.2);
  border-radius: 8px;
  background: rgba(8, 16, 17, 0.58);
}

.validator-metrics strong {
  display: block;
  color: var(--green);
  font-size: 1.25rem;
}

.validator-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.process {
  background: var(--bg);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 250px;
  padding: 28px;
  background: #0d1718;
}

.timeline span {
  color: var(--teal);
  font-weight: 800;
}

.contact {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 88px);
  background: #e8f4ef;
  color: #0a1415;
}

.contact .section-label {
  color: var(--teal-dark);
}

.contact p {
  color: #465755;
}

.contact .button-secondary {
  border-color: rgba(10, 20, 21, 0.18);
  background: transparent;
  color: #0a1415;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #081011;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .intro-grid,
  .section-heading,
  .infra,
  .validator-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    min-height: 380px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 17, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(237, 247, 243, 0.07);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

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

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 16, 17, 0.95), rgba(8, 16, 17, 0.68)),
      linear-gradient(180deg, rgba(8, 16, 17, 0.16), #081011 100%);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-inline: 18px;
    padding-top: 80px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .timeline,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 92px;
  }

  .service-card,
  .timeline article {
    min-height: auto;
  }

  .infra-panel div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .infra-panel strong {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
