:root {
  color-scheme: dark;
  /* core background */
  --bg: #040404;
  --bg-soft: #0a0a0a;
  --panel: #101010;

  /* platinum metallic surfaces */
  --platinum: #e6e6e6;
  --platinum-soft: #cfcfcf;
  --steel: #8a8a8a;

  /* borders */
  --line: rgba(255,255,255,0.08);

  /* text */
  --text: #f5f5f5;
  --text-dim: rgba(220,220,220,0.65);

  /* protocol accent */
  --accent: #c0c0c0;
  --accent-2: #9c9c9c;

  /* subtle protocol highlight */
  --protocol: #58d68d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background-color: #000;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(160,160,160,0.06), transparent 55%),
    linear-gradient(180deg, #050505, #020202 70%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

canvas#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  pointer-events: none;
  opacity: 0.7;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -5;
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 520px;
  height: 520px;
  background: rgba(88, 214, 141, 0.16);
  top: -120px;
  left: -120px;
}

.bg-orb-2 {
  width: 460px;
  height: 460px;
  background: rgba(156, 245, 193, 0.1);
  right: -100px;
  top: 160px;
  animation-duration: 22s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(156, 245, 193, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 245, 193, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.8px),
    radial-gradient(circle at 80% 40%, #fff 0.5px, transparent 0.8px),
    radial-gradient(circle at 60% 80%, #fff 0.6px, transparent 0.8px);
  background-size: 180px 180px;
  animation: shimmer 24s linear infinite;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  width: var(--shell);
  margin: 18px auto 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(8,8,8,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 14px;
  z-index: 20;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.22), rgba(156, 245, 193, 0.06));
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-copy strong,
h1,
h2,
h3,
.card-kicker,
.eyebrow,
.site-nav a,
.btn {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy strong {
  display: block;
  letter-spacing: -0.03em;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 50px 0 30px;
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}

.hero h1,
.page-title {
  margin: 10px 0 18px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-text,
.page-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(
    180deg,
    #e6e6e6,
    #bfbfbf
  );
  color: #000;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(
    180deg,
    #ffffff,
    #cfcfcf
  );
}

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

.btn-ghost {
  color: var(--accent-2);
  background: transparent;
  border-color: var(--line);
}

.glass {
  background: linear-gradient(
    140deg,
    rgba(25,25,25,0.75),
    rgba(12,12,12,0.9)
  );
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.countdown-card,
.hero-panel,
.feature-card,
.step-card,
.docs-card,
.contact-card,
.verify-card,
.stream-shell {
  padding: 22px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 14px;
}

.count-box {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.count-box strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.count-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.muted {
  color: var(--muted);
  line-height: 1.75;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(88, 214, 141, 0.8);
  animation: pulse 1.9s ease-in-out infinite;
}

.flow-list {
  display: grid;
  gap: 10px;
}

.flow-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.flow-item span {
  color: var(--muted);
}

.flow-item strong {
  color: var(--accent-2);
}

.stream-band,
.statement,
.features,
.how,
.page-section {
  padding: 34px 0;
}

.band-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.band-head h2,
.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--accent-2);
}

.proof-stream {
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.stream-item {
  display: grid;
  grid-template-columns: 120px 1fr 1.1fr 150px 110px;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  align-items: center;
  font-size: 0.95rem;
}

.stream-id,
.stream-status {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.stream-type,
.stream-time,
.stream-hash {
  color: var(--muted);
}

.stream-status {
  color: var(--accent-2);
}

.statement h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 14ch;
}

.feature-grid,
.steps-grid,
.docs-grid,
.contact-grid,
.verify-layout {
  display: grid;
  gap: 16px;
}

.feature-grid,
.steps-grid,
.docs-grid,
.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card h3,
.step-card h3,
.docs-card h2,
.contact-card h2,
.verify-card h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.feature-card p,
.step-card p,
.docs-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-card:hover,
.step-card:hover,
.docs-card:hover,
.contact-card:hover,
.verify-card:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 12px 40px rgba(0,0,0,0.6);
}

.step-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.verify-layout {
  grid-template-columns: 1fr 1fr;
}

.input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  margin-top: 8px;
  font: inherit;
}

.input::placeholder {
  color: #86a595;
}

.result-panel,
.code-block {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(3, 8, 6, 0.62);
  color: #c4f6d7;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.7;
  overflow-x: auto;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 242, 184, 0.08);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row span {
  color: var(--muted);
}

.mono {
  word-break: break-all;
}

.site-footer {
  margin: 40px auto 28px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.8s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, 20px, 0) scale(1.08); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes shimmer {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@media (max-width: 1100px) {
  .hero,
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps-grid,
  .docs-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stream-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 20px), 1240px);
    padding: 14px;
    top: 8px;
  }

  .site-nav {
    gap: 10px;
  }

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

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .band-head h2,
  .section-head h2,
  .statement h2 {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
  }
}

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

.brand-logo {
  height: 42px;
  width: 42px;
  border-radius: 999px;
  object-fit: cover;
  filter:
    drop-shadow(0 6px 18px rgba(0,0,0,0.45))
    brightness(1.05);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.brand-logo:hover {
  filter:
    drop-shadow(0 0 24px rgba(255,255,255,0.25))
    drop-shadow(0 8px 40px rgba(0,0,0,0.6));
  transition: 0.3s;
}
