:root {
  color-scheme: dark;
  --bg: #05080f;
  --panel: #0c1422;
  --panel-2: #111c2d;
  --line: rgba(134, 255, 220, 0.18);
  --text: #edf7ff;
  --muted: #8aa0b6;
  --cyan: #55e6ff;
  --green: #7cffb5;
  --violet: #8b7cff;
  --amber: #ffd36a;
  --dark: #07101a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fb;
  --panel: #ffffff;
  --panel-2: #ecf6f5;
  --line: rgba(0, 136, 120, 0.18);
  --text: #102033;
  --muted: #53677a;
  --cyan: #0088b8;
  --green: #008c72;
  --violet: #6657d8;
  --amber: #b76c00;
  --dark: #eaf2f4;
  --shadow: 0 26px 80px rgba(25, 66, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  transition: color 220ms ease, background-color 220ms ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

.cursor-light {
  position: fixed;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 28%);
  z-index: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(85, 230, 255, 0.16), rgba(124, 255, 181, 0.06) 34%, transparent 68%);
  filter: blur(8px);
}

[data-theme="light"] .cursor-light {
  background: radial-gradient(circle, rgba(0, 136, 184, 0.13), rgba(0, 140, 114, 0.08) 35%, transparent 70%);
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 15, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .site-header {
  border-color: rgba(16, 32, 51, 0.1);
  background: rgba(250, 253, 255, 0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(85, 230, 255, 0.44));
}

[data-theme="light"] .brand img {
  filter: drop-shadow(0 10px 18px rgba(0, 136, 184, 0.18));
}

.brand span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand strong {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 750;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #d7e8f8;
  font-size: 13px;
  font-weight: 750;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

[data-theme="light"] .site-nav {
  color: #24384d;
}

.site-nav a {
  padding: 11px 13px;
  border: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  color: var(--green);
  border-color: rgba(124, 255, 181, 0.22);
  background: rgba(124, 255, 181, 0.07);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-toggle {
  background: rgba(16, 32, 51, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 74px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 255, 181, 0.36);
}

.theme-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: 58px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(5, 8, 15, 0.92), rgba(17, 28, 45, 0.86));
  box-shadow: inset 0 0 0 1px rgba(237, 247, 255, 0.08);
}

.theme-toggle__thumb {
  position: absolute;
  right: 3px;
  top: 3px;
  z-index: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 34% 32%, #7cffb5, #0aa67f 72%);
  box-shadow: 0 0 18px rgba(124, 255, 181, 0.56);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 28px;
  opacity: 0.48;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.theme-toggle__icon--day {
  color: #ffd36a;
}

.theme-toggle__icon--night {
  color: #55e6ff;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(85, 230, 255, 0.52));
}

.sun-core,
.moon-core {
  display: block;
  position: relative;
}

.sun-core {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 -8px 0 -5px currentColor,
    0 8px 0 -5px currentColor,
    8px 0 0 -5px currentColor,
    -8px 0 0 -5px currentColor,
    6px 6px 0 -5px currentColor,
    -6px -6px 0 -5px currentColor,
    6px -6px 0 -5px currentColor,
    -6px 6px 0 -5px currentColor;
}

.moon-core {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -5px 0 0 0 #07101a inset;
}

[data-theme="light"] .theme-toggle {
  background: rgba(16, 32, 51, 0.04);
}

[data-theme="light"] .theme-toggle__track {
  background: linear-gradient(135deg, #ffffff, #e8f3f4);
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.08);
}

[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(-30px);
  background: radial-gradient(circle at 38% 36%, #fff7c2, #ffc247 70%);
  box-shadow: 0 6px 18px rgba(183, 108, 0, 0.2);
}

[data-theme="light"] .theme-toggle__icon--day {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 194, 71, 0.55));
}

[data-theme="light"] .theme-toggle__icon--night {
  opacity: 0.42;
  filter: none;
}

[data-theme="light"] .moon-core {
  box-shadow: -5px 0 0 0 #e8f3f4 inset;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 136px 0 88px;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.96) 0%, rgba(5, 8, 15, 0.8) 38%, rgba(5, 8, 15, 0.34) 72%, rgba(5, 8, 15, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.08), rgba(5, 8, 15, 0.86)),
    url("assets/hero-blockchain-network.png") center / cover no-repeat,
    var(--bg);
}

[data-theme="light"] .hero {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.98) 0%, rgba(247, 251, 253, 0.86) 42%, rgba(247, 251, 253, 0.38) 74%, rgba(247, 251, 253, 0.76) 100%),
    linear-gradient(180deg, rgba(247, 251, 253, 0.1), rgba(245, 248, 251, 0.9)),
    url("assets/hero-blockchain-network.png") center / cover no-repeat,
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 255, 181, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 230, 255, 0.06) 1px, transparent 1px);
  opacity: 0.48;
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  animation: grid-run 20s linear infinite;
}

[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(0, 140, 114, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 136, 184, 0.08) 1px, transparent 1px);
  opacity: 0.62;
}

.chain-canvas,
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-noise {
  opacity: 0.15;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(124, 255, 181, 0.18) 49%, transparent 51% 100%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 19px);
  pointer-events: none;
}

[data-theme="light"] .hero-noise {
  opacity: 0.22;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(0, 140, 114, 0.14) 49%, transparent 51% 100%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(16, 32, 51, 0.025) 19px);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: block;
}

.hero-copy {
  max-width: 720px;
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 20px;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 30px 0 0;
  color: #b5c7d8;
  font-size: 16px;
  line-height: 1.82;
}

[data-theme="light"] .hero-copy > p:not(.eyebrow) {
  color: #405568;
}

.device-card span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 15, 0.72);
}

[data-theme="light"] .hero-marquee {
  border-color: rgba(16, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.hero-marquee div {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.hero-marquee span {
  padding: 18px 34px;
  color: rgba(237, 247, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

[data-theme="light"] .hero-marquee span {
  color: rgba(16, 32, 51, 0.66);
}

.network-section,
.about-section,
.commerce-section,
.stack-section,
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
}

.network-section::before,
.commerce-section::before,
.stack-section::before,
.about-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.network-section::before {
  background:
    linear-gradient(105deg, transparent 0 36%, rgba(124, 255, 181, 0.08) 37%, transparent 39% 100%),
    radial-gradient(circle at 18% 24%, rgba(85, 230, 255, 0.12), transparent 28%);
  animation: module-sweep 13s ease-in-out infinite;
}

[data-theme="light"] .network-section::before {
  background:
    linear-gradient(105deg, transparent 0 36%, rgba(0, 140, 114, 0.08) 37%, transparent 39% 100%),
    radial-gradient(circle at 18% 24%, rgba(0, 136, 184, 0.1), transparent 28%);
}

.section-label {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 18px;
  color: rgba(124, 255, 181, 0.18);
  font-size: clamp(30px, 5vw, 72px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.02em;
}

[data-theme="light"] .section-label {
  color: rgba(0, 140, 114, 0.16);
}

.network-layout,
.about-wrap,
.stack-grid,
.contact-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.network-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 64px;
  align-items: center;
}

.sticky-copy {
  position: sticky;
  top: 128px;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 2.35vw, 34px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0;
}

.sticky-copy p:not(.eyebrow),
.about-card p,
.stack-title p:not(.eyebrow),
.contact-panel h2 + p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

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

.rail-cards article {
  position: relative;
  min-height: 210px;
  padding: 76px 26px 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(124, 255, 181, 0.1), transparent 42%),
    var(--panel);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease;
}

[data-theme="light"] .rail-cards article {
  background:
    linear-gradient(135deg, rgba(0, 140, 114, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.rail-cards article:hover {
  transform: translateY(-10px);
  border-color: rgba(85, 230, 255, 0.42);
}

.rail-cards article:nth-child(1) {
  min-height: 286px;
  background:
    radial-gradient(circle at 82% 18%, rgba(85, 230, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(124, 255, 181, 0.14), transparent 42%),
    var(--panel-2);
}

[data-theme="light"] .rail-cards article:nth-child(1) {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 136, 184, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(0, 140, 114, 0.1), transparent 42%),
    var(--panel-2);
}

.rail-cards article:nth-child(2) {
  margin-top: 42px;
}

.rail-cards article:nth-child(3) {
  margin-top: 34px;
}

.rail-cards article::before {
  content: attr(data-step);
  position: absolute;
  left: 26px;
  top: 24px;
  color: var(--amber);
  font-size: 26px;
  font-weight: 900;
}

.rail-cards h3,
.stack-items h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.15;
}

.rail-cards p,
.stack-items p,
.device-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.about-section {
  background:
    radial-gradient(circle at 76% 20%, rgba(139, 124, 255, 0.18), transparent 32%),
    #09121d;
}

[data-theme="light"] .about-section {
  background:
    radial-gradient(circle at 76% 20%, rgba(102, 87, 216, 0.1), transparent 32%),
    #eef6f7;
}

.about-section::before {
  background-image:
    linear-gradient(rgba(85, 230, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 181, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 70% 50%, rgba(124, 255, 181, 0.14), transparent 28%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  animation: about-grid 18s linear infinite;
}

[data-theme="light"] .about-section::before {
  background-image:
    linear-gradient(rgba(0, 136, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 140, 114, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 70% 50%, rgba(0, 140, 114, 0.12), transparent 28%);
}

.about-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 46px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(124, 255, 181, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

[data-theme="light"] .about-card {
  border-color: rgba(16, 32, 51, 0.1);
  background:
    linear-gradient(135deg, rgba(0, 140, 114, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.72);
}

.about-card::after {
  content: "";
  position: absolute;
  right: 32px;
  top: 32px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(85, 230, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 230, 255, 0.12), transparent 62%);
  animation: pulse-ring 5.5s ease-in-out infinite;
}

.about-card .eyebrow,
.about-card h2 {
  grid-column: 1;
}

.about-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.about-copy p:first-child {
  margin-top: 0;
}

.commerce-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, #05080f, #0a1522 48%, #05080f);
}

[data-theme="light"] .commerce-section {
  background:
    linear-gradient(180deg, #f5f8fb, #eaf4f5 48%, #f5f8fb);
}

.commerce-section::before {
  background:
    radial-gradient(circle at 22% 35%, rgba(124, 255, 181, 0.12), transparent 26%),
    linear-gradient(90deg, transparent, rgba(85, 230, 255, 0.08), transparent);
  background-size: 100% 100%, 680px 100%;
  animation: commerce-flow 14s linear infinite;
}

[data-theme="light"] .commerce-section::before {
  background:
    radial-gradient(circle at 22% 35%, rgba(0, 140, 114, 0.1), transparent 26%),
    linear-gradient(90deg, transparent, rgba(0, 136, 184, 0.08), transparent);
}

.commerce-head {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 46px;
}

.device-row {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.device-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

[data-theme="light"] .device-card {
  border-color: rgba(16, 32, 51, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 249, 0.84));
}

.device-card::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto;
  height: 46%;
  transform: translateY(-120%) skewY(-10deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(124, 255, 181, 0.22), rgba(85, 230, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms ease, opacity 260ms ease;
}

.device-card:hover {
  transform: translateY(-18px) scale(1.035);
  border-color: rgba(124, 255, 181, 0.38);
  box-shadow: 0 34px 95px rgba(85, 230, 255, 0.18);
}

.device-card:hover::after {
  transform: translateY(72%) skewY(-10deg);
  opacity: 1;
}

.device-card.raised {
  margin-top: -36px;
}

.device-card.lowered {
  margin-top: 42px;
}

.device-card img {
  width: 100%;
  aspect-ratio: 263 / 526;
  object-fit: cover;
  background: #132030;
  transition: transform 260ms ease, filter 260ms ease;
}

.device-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.16) brightness(1.08);
}

.device-card div {
  padding: 18px 6px 4px;
}

.device-card strong {
  display: block;
  margin: 7px 0 8px;
  font-size: 19px;
}

.stack-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 255, 181, 0.13), transparent 30%),
    radial-gradient(circle at 86% 70%, rgba(139, 92, 246, 0.14), transparent 34%),
    linear-gradient(145deg, #08131f 0%, #0c1724 46%, #070b13 100%);
  color: var(--text);
}

[data-theme="light"] .stack-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 140, 114, 0.1), transparent 30%),
    radial-gradient(circle at 86% 70%, rgba(102, 87, 216, 0.1), transparent 34%),
    linear-gradient(145deg, #f1f8f8 0%, #e9f3f5 46%, #f7fbfc 100%);
}

.stack-section::before {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(124, 255, 181, 0.08) 49%, transparent 51%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 46px, 46px 100%;
  animation: module-sweep 12s ease-in-out infinite reverse;
}

[data-theme="light"] .stack-section::before {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(0, 140, 114, 0.07) 49%, transparent 51%),
    linear-gradient(rgba(16, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.045) 1px, transparent 1px);
}

.stack-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 58px;
}

.stack-title .eyebrow {
  color: var(--green);
}

.stack-title p:not(.eyebrow) {
  color: var(--muted);
}

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

.stack-items article {
  min-height: 184px;
  padding: 24px;
  border: 1px solid rgba(124, 255, 181, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(7, 16, 26, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

[data-theme="light"] .stack-items article {
  border-color: rgba(0, 140, 114, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 249, 0.76)),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stack-items article:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32), 0 0 34px rgba(124, 255, 181, 0.1);
}

.stack-items article span {
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, #067565, #38bdf8);
}

.contact-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 230, 255, 0.15), transparent 34%),
    #07101a;
}

[data-theme="light"] .contact-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 136, 184, 0.1), transparent 34%),
    #f5f8fb;
}

.contact-section::before {
  background-image:
    linear-gradient(90deg, transparent, rgba(124, 255, 181, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 620px 100%, 100% 52px;
  animation: commerce-flow 16s linear infinite;
}

[data-theme="light"] .contact-section::before {
  background-image:
    linear-gradient(90deg, transparent, rgba(0, 140, 114, 0.08), transparent),
    linear-gradient(rgba(16, 32, 51, 0.045) 1px, transparent 1px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 54px;
  align-items: center;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

[data-theme="light"] .contact-panel {
  border-color: rgba(16, 32, 51, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 249, 0.8));
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-lines p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .contact-lines p {
  border-bottom-color: rgba(16, 32, 51, 0.1);
}

.contact-lines span {
  color: var(--muted);
}

.contact-lines a,
.contact-lines strong {
  font-weight: 760;
}

.qr-card {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(124, 255, 181, 0.2);
  background: rgba(124, 255, 181, 0.06);
  text-align: center;
}

[data-theme="light"] .qr-card {
  border-color: rgba(0, 140, 114, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.qr-card img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.qr-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
}

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

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes grid-run {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes module-sweep {
  0%, 100% { transform: translateX(-4%); }
  50% { transform: translateX(4%); }
}

@keyframes commerce-flow {
  from { background-position: -680px 0, 0 0; }
  to { background-position: 680px 0, 0 52px; }
}

@keyframes about-grid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px, 0 0; }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(0.92); opacity: 0.38; }
  50% { transform: scale(1.08); opacity: 0.72; }
}

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

@media (max-width: 1020px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .brand strong {
    max-width: 58vw;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(5, 8, 15, 0.94);
    box-shadow: var(--shadow);
  }

  [data-theme="light"] .site-nav {
    background: rgba(250, 253, 255, 0.96);
  }

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

  .site-nav a {
    padding: 15px;
  }

  .theme-toggle {
    width: 66px;
  }

  .network-layout,
  .about-card,
  .stack-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .sticky-copy {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    max-width: 170px;
    font-size: 13px;
  }

  .theme-toggle {
    width: 58px;
  }

  .theme-toggle__track {
    width: 48px;
    height: 26px;
  }

  .theme-toggle__icon {
    width: 24px;
    height: 26px;
  }

  .theme-toggle__thumb {
    width: 20px;
    height: 20px;
  }

  [data-theme="light"] .theme-toggle__thumb {
    transform: translateX(-22px);
  }

  .hero {
    padding: 112px 0 70px;
  }

  .hero-shell,
  .network-layout,
  .about-wrap,
  .stack-grid,
  .contact-panel,
  .commerce-head,
  .device-row,
  .section-label {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .network-section,
  .about-section,
  .commerce-section,
  .stack-section,
  .contact-section {
    padding: 86px 0;
  }

  .section-label {
    font-size: 36px;
  }

  h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .rail-cards article {
    min-height: auto;
    margin-top: 0;
    padding: 82px 24px 26px;
  }

  .rail-cards article::before {
    left: 24px;
    top: 24px;
  }

  .about-card,
  .contact-panel {
    padding: 28px;
  }

  .about-card .eyebrow,
  .about-card h2,
  .about-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .device-row,
  .rail-cards,
  .stack-items {
    grid-template-columns: 1fr;
  }

  .device-card.raised,
  .device-card.lowered {
    margin-top: 0;
  }

  .contact-lines p {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    display: grid;
    width: calc(100% - 28px);
  }
}
