:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #101722;
  --panel: #141d2a;
  --panel-strong: #1d2938;
  --line: rgba(141, 180, 203, 0.2);
  --text: #edf6fb;
  --muted: #9fb3c2;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --purple: #7c3aed;
  --amber: #ffcf6b;
  --red: #ff6b7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(57, 216, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 14%, rgba(167, 139, 250, 0.15), transparent 24rem),
    linear-gradient(135deg, #080b10 0%, #0d1118 46%, #11161f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.pulse-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.pulse-line {
  position: absolute;
  display: block;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.82));
}

.pulse-line-x {
  top: var(--pos);
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.92), rgba(56, 189, 248, 0.58), transparent);
  animation: pulse-x var(--duration) linear infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

.pulse-line-y {
  top: 0;
  left: var(--pos);
  width: 1px;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.92), rgba(56, 189, 248, 0.58), transparent);
  animation: pulse-y var(--duration) linear infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

@keyframes pulse-x {
  0% {
    transform: translateX(-160px);
    opacity: 0;
  }
  18%,
  44% {
    opacity: 0.82;
  }
  62%,
  100% {
    transform: translateX(calc(100vw + 160px));
    opacity: 0;
  }
}

@keyframes pulse-y {
  0% {
    transform: translateY(-160px);
    opacity: 0;
  }
  18%,
  44% {
    opacity: 0.72;
  }
  62%,
  100% {
    transform: translateY(calc(100vh + 160px));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-line {
    animation: none;
    display: none;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand,
nav,
.hero-actions,
.panel-header,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(57, 216, 255, 0.7);
  background:
    linear-gradient(90deg, transparent 45%, rgba(57, 216, 255, 0.9) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(167, 139, 250, 0.9) 45% 55%, transparent 55%),
    rgba(57, 216, 255, 0.08);
  box-shadow: 0 0 22px rgba(57, 216, 255, 0.34);
}

nav {
  gap: 8px;
}

nav a {
  min-height: 40px;
  padding: 11px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

nav a:hover,
.nav-action {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - 76px);
  padding: clamp(70px, 11vw, 140px) clamp(18px, 6vw, 88px) 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.2;
  pointer-events: none;
}

.hero-grid span {
  border-right: 1px solid rgba(141, 180, 203, 0.16);
  border-bottom: 1px solid rgba(141, 180, 203, 0.16);
}

.hero-content,
.signal-panel,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  max-width: 830px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy {
  max-width: 680px;
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04101f;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.32);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.signal-panel,
.terminal-card,
.feature-row article,
.service-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(29, 41, 56, 0.82), rgba(16, 23, 34, 0.78));
  box-shadow: var(--shadow);
}

.signal-panel {
  align-self: center;
  padding: 22px;
  border-radius: 8px;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.panel-header strong {
  color: var(--violet);
}

.signal-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.signal-meter span {
  display: block;
  height: var(--h);
  background: linear-gradient(180deg, var(--cyan), rgba(167, 139, 250, 0.82));
  box-shadow: 0 0 22px rgba(57, 216, 255, 0.35);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 0;
}

.metrics div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.metrics dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metrics dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.38);
}

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

.service-grid,
.download-grid,
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.download-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.68);
  background: linear-gradient(180deg, rgba(35, 40, 72, 0.95), rgba(16, 23, 34, 0.9));
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border: 1px solid rgba(167, 139, 250, 0.58);
  color: var(--violet);
  font-weight: 900;
}

.service-card p,
.download-card p {
  flex: 1;
  margin-bottom: 20px;
}

.service-link,
.download-button {
  color: var(--violet);
  font-weight: 800;
}

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

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid rgba(167, 139, 250, 0.44);
  border-radius: 7px;
  background: rgba(167, 139, 250, 0.08);
}

.download-button:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.1);
  color: var(--text);
}

.access-note,
.mac-note {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.access-note {
  border-left: 3px solid var(--amber);
  color: var(--muted);
  line-height: 1.65;
}

.access-note strong {
  color: var(--text);
}

.mac-note {
  border-left: 3px solid var(--violet);
}

.mac-note h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.mac-note p:last-child {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.terminal-card {
  border-radius: 8px;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--red);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--violet);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #ccebf6;
  font-size: 0.95rem;
  line-height: 1.8;
}

.feature-row article {
  min-height: 170px;
  padding: 22px;
  border-radius: 8px;
}

.about-intro {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 46vh;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 88px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-section,
  .split-section,
  .service-grid,
  .download-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 54px;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  nav a {
    padding-inline: 10px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
