:root {
  color-scheme: dark;
  --bg: #070b10;
  --bg-2: #0d131a;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(180, 200, 224, 0.16);
  --text: #f4f8ff;
  --muted: #9caec4;
  --accent: #43f0a2;
  --accent-2: #18d5ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(118deg, rgba(67, 240, 162, 0.1), rgba(7, 11, 16, 0) 34%),
    linear-gradient(252deg, rgba(24, 213, 255, 0.09), rgba(7, 11, 16, 0) 31%),
    linear-gradient(180deg, rgba(10, 16, 23, 0.52), rgba(7, 11, 16, 1) 70%),
    var(--bg);
  content: "";
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header[data-elevated="true"] {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
}

nav a,
footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--text);
}

.header-action,
.primary-action,
.secondary-action,
.info-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #dffbea;
  padding: 0 15px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 7vw, 96px) 86px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.97) 0%, rgba(7, 11, 16, 0.84) 42%, rgba(7, 11, 16, 0.38) 100%),
    linear-gradient(180deg, rgba(7, 11, 16, 0.3) 0%, rgba(7, 11, 16, 0.08) 44%, rgba(7, 11, 16, 0.72) 100%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 28%;
  background: linear-gradient(0deg, var(--bg), transparent);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

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

h1 {
  font-size: clamp(74px, 13vw, 176px);
  font-weight: 840;
  line-height: 0.9;
}

.hero-copy p {
  width: min(620px, 100%);
  margin-top: 26px;
  color: #c5d3e6;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 560;
  line-height: 1.28;
}

.hero-devices {
  position: absolute;
  top: clamp(96px, 14vh, 150px);
  right: clamp(-220px, -9vw, 34px);
  bottom: 46px;
  z-index: 0;
  width: min(70vw, 980px);
  min-width: 720px;
  pointer-events: none;
}

.hero-devices::before,
.hero-devices::after,
.client-showcase::before,
.client-showcase::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
}

.hero-devices::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 16, 0.48) 24%, rgba(7, 11, 16, 0.02) 60%),
    linear-gradient(180deg, rgba(7, 11, 16, 0.32), rgba(7, 11, 16, 0.02) 42%, rgba(7, 11, 16, 0.72) 100%);
}

.hero-devices::after {
  border-left: 1px solid rgba(67, 240, 162, 0.16);
  background:
    repeating-linear-gradient(90deg, rgba(154, 255, 202, 0.05) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(180deg, rgba(154, 255, 202, 0.04) 0 1px, transparent 1px 78px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  opacity: 0.24;
}

.hero-mac-screen,
.hero-phone-screen,
.showcase-mac-screen,
.showcase-phone-screen {
  display: block;
  border-radius: 8px;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.5);
}

.hero-mac-screen {
  position: absolute;
  top: 4px;
  right: 0;
  width: min(820px, 58vw);
  min-width: 640px;
  height: auto;
  opacity: 0.72;
  filter: brightness(0.72) saturate(0.88) contrast(1.04);
}

.hero-phone-screen {
  position: absolute;
  right: clamp(380px, 39vw, 610px);
  bottom: 0;
  width: min(300px, 21vw);
  min-width: 240px;
  height: auto;
  opacity: 0.9;
  transform: rotate(-2.2deg);
  filter: brightness(0.86) saturate(0.96) contrast(1.03);
}

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

.primary-action {
  background: var(--accent);
  color: #05120b;
  padding: 0 18px;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe8f8;
  padding: 0 18px;
}

.hero-status {
  position: absolute;
  right: clamp(20px, 7vw, 96px);
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-status span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #b5c6dc;
  font-size: 12px;
  font-weight: 760;
  padding: 8px 11px;
}

.protocol-band,
.core-section,
.flow-section,
.clients-section,
.screenshots-section,
.client-preview,
.text-section,
.info-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.protocol-band {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: 78px 0;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 820;
  line-height: 0.98;
}

.protocol-band > div > p,
.clients-copy p,
.release-copy p,
.text-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.protocol-band > div > p {
  margin-top: 20px;
}

.protocol-grid {
  display: grid;
  gap: 12px;
}

.protocol-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  padding: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.protocol-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 880;
}

h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 780;
}

.protocol-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.core-section {
  padding: 34px 0 82px;
}

.core-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 3.5vw, 44px);
  align-items: center;
  border: 1px solid rgba(180, 200, 224, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(67, 240, 162, 0.13), rgba(24, 213, 255, 0.055) 46%, rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.22);
}

.core-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.core-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(67, 240, 162, 0.28);
  border-radius: 8px;
  background: rgba(7, 11, 16, 0.42);
  color: #9effc6;
  font-size: 12px;
  font-weight: 880;
  letter-spacing: 0;
  padding: 7px 10px;
  text-transform: uppercase;
}

.core-copy h2 {
  max-width: 9.8em;
  margin-top: 18px;
  font-size: clamp(34px, 4.4vw, 58px);
}

.core-copy p {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.52;
}

.core-copy .core-lead {
  margin-top: 22px;
  color: #edf7ff;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 720;
  line-height: 1.34;
}

.core-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.core-highlights span {
  border: 1px solid rgba(67, 240, 162, 0.28);
  border-radius: 8px;
  background: rgba(7, 11, 16, 0.42);
  color: #b8ffd4;
  font-size: 12px;
  font-weight: 820;
  padding: 8px 10px;
}

.core-grid {
  display: grid;
  gap: 12px;
}

.core-grid article {
  position: relative;
  border: 1px solid rgba(180, 200, 224, 0.13);
  border-left-color: rgba(67, 240, 162, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(67, 240, 162, 0.1), rgba(24, 213, 255, 0.04) 48%, rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  padding: 18px 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

.core-grid span {
  color: #a4fbca;
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.core-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.flow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
  padding: 42px 0 86px;
}

.flow-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.flow-steps article {
  min-height: 186px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  padding: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.flow-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(67, 240, 162, 0.28);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 880;
}

.flow-steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.clients-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
  padding: 46px 0 86px;
}

.clients-copy p {
  margin-top: 20px;
}

.download-grid {
  display: grid;
  gap: 12px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  padding: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.download-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.download-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.download-card-muted .primary-action,
.download-card-muted .secondary-action {
  white-space: nowrap;
}

.screenshots-section {
  padding: 30px 0 92px;
}

.screenshots-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: end;
  margin-bottom: 30px;
}

.screenshots-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screenshots-grid figure {
  margin: 0;
}

.screenshots-grid img {
  display: block;
  width: 100%;
  border: 1px solid rgba(180, 200, 224, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.screenshots-grid figcaption {
  color: #dce8f7;
  font-size: 13px;
  font-weight: 780;
  margin-top: 12px;
}

.client-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: 56px 0 90px;
}

.client-showcase {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid rgba(180, 200, 224, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(67, 240, 162, 0.1), rgba(24, 213, 255, 0.035) 42%, rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.26);
}

.client-showcase::before {
  background:
    linear-gradient(112deg, rgba(7, 11, 16, 0.84) 0%, rgba(7, 11, 16, 0.28) 45%, rgba(7, 11, 16, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(154, 255, 202, 0.035) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(180deg, rgba(154, 255, 202, 0.03) 0 1px, transparent 1px 70px);
}

.client-showcase::after {
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.08), rgba(7, 11, 16, 0.78)),
    linear-gradient(90deg, rgba(7, 11, 16, 0.78), rgba(7, 11, 16, 0.02) 48%, rgba(7, 11, 16, 0.7));
}

.showcase-mac-screen {
  position: absolute;
  top: 62px;
  right: -120px;
  z-index: 2;
  width: min(620px, 86vw);
  height: auto;
  opacity: 0.56;
  filter: brightness(0.7) saturate(0.86);
}

.showcase-phone-screen {
  position: absolute;
  top: -32px;
  left: 44px;
  z-index: 3;
  width: min(300px, 52vw);
  height: auto;
  opacity: 0.82;
  filter: brightness(0.88) saturate(0.96);
  transform: rotate(-1.2deg);
  mask-image:
    linear-gradient(90deg, #000 0%, #000 90%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.release-copy p {
  margin-top: 20px;
}

.release-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.release-copy li {
  border-bottom: 1px solid var(--line);
  color: #dce8f7;
  font-size: 16px;
  font-weight: 680;
  padding: 0 0 12px;
}

.checksum-link {
  display: inline-flex;
  margin-top: 24px;
  color: #9ef6bd;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}

.info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(67, 240, 162, 0.16), rgba(24, 213, 255, 0.08));
  padding: 18px 20px;
}

.info-strip p {
  color: #e8f4ff;
  font-size: 17px;
  font-weight: 720;
}

.info-strip a {
  background: rgba(7, 11, 16, 0.72);
  color: #c4fbd9;
  padding: 0 16px;
  white-space: nowrap;
}

.text-section {
  padding: 88px 0 0;
}

.text-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.text-section p {
  width: min(850px, 100%);
  margin-top: 16px;
}

.text-section a {
  color: #9ef6bd;
  font-weight: 720;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 96px auto 0;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0 38px;
}

footer span {
  margin-right: auto;
  color: var(--text);
  font-weight: 820;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 94vh;
    padding-top: 108px;
    padding-bottom: 118px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 11, 16, 0.94) 0%, rgba(7, 11, 16, 0.68) 48%, rgba(7, 11, 16, 0.91) 100%),
      linear-gradient(90deg, rgba(7, 11, 16, 0.9), rgba(7, 11, 16, 0.2));
  }

  .hero-devices {
    top: 32vh;
    right: -250px;
    bottom: 40px;
    width: 760px;
    min-width: 0;
    min-height: 0;
    margin-top: 0;
    opacity: 0.7;
  }

  .hero-mac-screen {
    right: -10px;
    width: 590px;
    min-width: 0;
    opacity: 0.46;
  }

  .hero-phone-screen {
    right: 460px;
    width: 250px;
    min-width: 0;
    opacity: 0.66;
  }

  .hero-status {
    right: 20px;
    left: 20px;
    justify-content: flex-start;
  }

  .protocol-band,
  .core-panel,
  .flow-section,
  .clients-section,
  .screenshots-copy,
  .client-preview {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-section,
  .clients-section,
  .screenshots-section,
  .client-preview {
    padding-top: 28px;
  }

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

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .screenshots-grid img {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .client-showcase {
    min-height: 560px;
    order: 2;
  }

  .showcase-mac-screen {
    top: 86px;
    right: -160px;
    width: min(640px, 118vw);
  }

  .showcase-phone-screen {
    left: 28px;
    width: min(300px, 58vw);
  }

  .info-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-devices {
    top: 33vh;
    right: -300px;
    width: 720px;
    opacity: 0.75;
  }

  .hero-mac-screen {
    right: 0;
    width: 540px;
  }

  .hero-phone-screen {
    right: 380px;
    width: 220px;
    opacity: 0.44;
  }

  h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-actions a {
    width: 100%;
  }

  footer {
    flex-wrap: wrap;
  }
}

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