:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: rgba(12, 18, 31, 0.78);
  --panel: rgba(10, 15, 27, 0.72);
  --panel-strong: rgba(14, 22, 38, 0.92);
  --line: rgba(154, 209, 255, 0.18);
  --text: #eef7ff;
  --muted: #9fb3c7;
  --cyan: #55e7ff;
  --green: #a7ff6a;
  --violet: #a78bfa;
  --amber: #ffd166;
  --rose: #ff5c9a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgba(85, 231, 255, 0.14), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(167, 255, 106, 0.1), transparent 26%),
    radial-gradient(circle at 78% 88%, rgba(255, 92, 154, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(85, 231, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 231, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.12) 4px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(85, 231, 255, 0.5);
  border-radius: 8px;
  color: var(--green);
  font-family: var(--mono);
  box-shadow: inset 0 0 18px rgba(85, 231, 255, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(85, 231, 255, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 240px);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 520px;
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d8e7f6;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #06101a;
  box-shadow: 0 12px 34px rgba(85, 231, 255, 0.22);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 234px);
  justify-self: end;
  padding: 10px;
  border: 1px solid rgba(85, 231, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(85, 231, 255, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(167, 255, 106, 0.08), transparent 40%),
    rgba(7, 11, 20, 0.88);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 44px rgba(85, 231, 255, 0.1),
    inset 0 0 40px rgba(85, 231, 255, 0.06);
}

.profile-panel::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(167, 255, 106, 0.14);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.profile-panel img {
  display: block;
  width: 100%;
  max-height: 280px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(85, 231, 255, 0.1), transparent 34%),
    rgba(3, 7, 13, 0.72);
  filter: saturate(0.9) contrast(1.04);
}

.profile-panel-body {
  display: grid;
  gap: 8px;
  padding: 14px 4px 3px;
}

.profile-panel-body p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-panel-body .profile-name {
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid rgba(85, 231, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 231, 255, 0.12), transparent 36%),
    rgba(7, 11, 20, 0.82);
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(85, 231, 255, 0.06);
}

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

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

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

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

.terminal-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.terminal-body p {
  margin: 0 0 12px;
  color: #d9f7ff;
  line-height: 1.55;
}

.terminal-body .output {
  color: var(--muted);
  padding-left: 18px;
}

.terminal-body .success {
  color: var(--green);
}

.prompt {
  color: var(--cyan);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.signal-strip span {
  min-width: 0;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  color: #dff9ff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.signal-strip span:last-child {
  border-right: 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
}

.proof-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.proof-grid article,
.work-card,
.commerce-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.proof-grid article {
  padding: 26px;
}

.metric,
.card-kicker,
.tag,
.timeline-item span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-grid h3,
.work-card h3,
.commerce-card h3,
.timeline-item h3 {
  margin-top: 16px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 118px;
}

.card-grid,
.timeline,
.commerce-grid {
  display: grid;
  gap: 16px;
}

.work-card {
  min-height: 230px;
  padding: 28px;
}

.status {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid rgba(167, 255, 106, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--cyan), var(--green), transparent);
}

.timeline-item {
  position: relative;
  margin-left: 34px;
  padding: 26px;
}

.timeline-item::before {
  position: absolute;
  top: 30px;
  left: -31px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 26px var(--green);
}

.commerce-section {
  padding-top: 80px;
}

.commerce-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.commerce-card {
  padding: 28px;
}

.commerce-card.featured {
  background:
    linear-gradient(135deg, rgba(85, 231, 255, 0.12), rgba(167, 255, 106, 0.07)),
    var(--panel-strong);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-weight: 800;
}

.store-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.store-list a {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
}

.store-list a:last-child {
  border-bottom: 0;
}

.store-list a:hover,
.store-list a:focus-visible {
  background: rgba(85, 231, 255, 0.08);
  outline: none;
}

.store-list span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 42px;
  align-items: center;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.contact-links a::after {
  content: ">";
  color: var(--green);
  font-family: var(--mono);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 7, 13, 0.94);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .hero-grid,
  .split-section,
  .commerce-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    justify-self: start;
    width: min(100%, 240px);
  }

  .sticky-heading {
    position: static;
  }

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

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

  .signal-strip span:nth-child(3) {
    border-right: 0;
  }

  .signal-strip span:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 24px, 1180px);
    padding: 68px 0;
  }

  .site-header {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  .terminal-body,
  .work-card,
  .commerce-card,
  .proof-grid article,
  .timeline-item {
    padding: 20px;
  }

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

  .signal-strip span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .signal-strip span:nth-child(even) {
    border-right: 0;
  }

  .signal-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .store-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
