﻿/**
 * ChaoticSeed - Optically Harvested Entropy Seeded Algorithmic Cryptography
 * Copyright (c) 2026 Matthew Gilham. All rights reserved.
 * * This source code is licensed under the MIT License.
 * See LICENSE file in the project root for full license information.
 */
:root {
  color-scheme: dark;
  --bg: #071012;
  --bg-soft: #0d1a1e;
  --panel: #101b22;
  --panel-strong: #14252b;
  --line: #294048;
  --line-bright: #3d6972;
  --text: #eef7f4;
  --muted: #a8bbb7;
  --muted-strong: #c9d8d4;
  --accent: #50e3c2;
  --accent-2: #ffcb5b;
  --accent-3: #7ea7ff;
  --danger: #ff6b80;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --mono: "JetBrains Mono", "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;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(80, 227, 194, 0.13), transparent 28rem),
    linear-gradient(180deg, #071012 0%, #091215 46%, #081012 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 80%);
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  background: var(--accent);
  color: #03100d;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
  margin: 0 auto;
}

.section-band {
  padding: 6rem 0;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 16, 18, 0.78);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 1rem;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 1.05rem;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, transparent 45%, var(--accent-2) 46% 58%, transparent 59%);
  box-shadow: 0 0 24px rgba(80, 227, 194, 0.4);
}

.nav-links {
  gap: 0.35rem;
}

.nav-links a {
  border: 1px solid transparent;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  color: var(--text);
  outline: none;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: start;
  padding-top: clamp(3.25rem, 6vw, 5.25rem);
  padding-bottom: clamp(5.5rem, 8vw, 7.5rem);
  overflow: visible;
}

.hero-grid {
  display: grid;
  width: min(1500px, calc(100% - 80px));
  grid-template-columns: minmax(460px, 0.8fr) minmax(640px, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 3vw, 3.25rem);
  min-width: 0;
  overflow: visible;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tech-chip-accent {
  color: rgba(80, 227, 194, 0.78);
}

.tech-chip-muted {
  color: rgba(168, 187, 183, 0.72);
}

.meta-divider {
  color: rgba(168, 187, 183, 0.38);
  font-family: var(--mono);
  font-size: 0.78rem;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 3vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-subtitle,
.section-heading p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(224, 238, 234, 0.9);
  font-size: clamp(0.98rem, 1.06vw, 1.08rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  padding: 0.82rem 1.15rem;
  cursor: pointer;
  font-weight: 800;
  gap: 0.55rem;
}

.button-primary {
  border-color: transparent;
  background: var(--accent);
  color: #03100d;
}

.button-ghost {
  border-color: rgba(80, 227, 194, 0.74);
  background: rgba(80, 227, 194, 0.02);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(80, 227, 194, 0.08);
}

.button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  filter: none;
  outline: none;
}

.button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(80, 227, 194, 0.3);
  outline-offset: 3px;
}

.full-width {
  width: 100%;
}

.hero-controls {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: none;
  overflow: visible;
}

.config-disclosure {
  width: 100%;
}

.config-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.config-disclosure summary::-webkit-details-marker {
  display: none;
}

.config-disclosure summary strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text);
  font-size: 0.95rem;
}

.config-disclosure summary small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.config-disclosure .status-pill::before {
  content: "+ ";
}

.config-disclosure[open] .status-pill::before {
  content: "- ";
}

.config-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-controls .range-control {
  gap: 0.28rem;
  margin-bottom: 0;
}

.hero-controls .range-control span {
  display: block;
  font-size: 0.72rem;
}

.hero-controls .range-control output {
  display: block;
  margin-top: 0.18rem;
}

.hero-controls .button {
  grid-column: 1 / -1;
  min-height: 34px;
  padding-block: 0.42rem;
}

.console-burst-button {
  margin-top: 0.75rem;
  min-height: 40px;
}

.hero-console {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(210px, 0.66fr);
  grid-template-areas:
    "view data"
    "hash hash"
    "controls controls";
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  scroll-margin-top: 96px;
  overflow: visible;
}

.hero-console .viewfinder,
.hero-console .stream-box {
  min-height: 360px;
  max-height: 360px;
}

.hero-console .hash-panel {
  grid-template-columns: 190px minmax(0, 1fr);
}

.hero-console .hero-controls {
  grid-area: controls;
  margin-top: 0;
}

.status-pill {
  width: max-content;
  border: 1px solid var(--line-bright);
  padding: 0.2rem 0.45rem;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

code,
pre {
  font-family: var(--mono);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.wiki {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.comparison-matrix,
.dashboard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 27, 34, 0.84);
  box-shadow: var(--shadow);
}

.comparison-matrix {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(12, 22, 27, 0.86);
  overflow: hidden;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.1);
  gap: 1px;
}

.matrix-level {
  display: grid;
  grid-template-rows: 126px repeat(3, minmax(176px, auto));
  gap: 1px;
  min-width: 0;
}

.matrix-heading,
.matrix-cell {
  background: rgba(16, 27, 34, 0.94);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.matrix-heading {
  display: grid;
  align-content: start;
  min-height: 126px;
  border-bottom: 1px solid rgba(80, 227, 194, 0.16);
}

.matrix-heading .level-code,
.matrix-row-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.matrix-heading strong {
  display: block;
  margin: 0.42rem 0 0.2rem;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.15;
}

.matrix-heading > span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.matrix-cell {
  min-height: 176px;
}

.matrix-cell h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.35;
}

.matrix-cell p {
  color: var(--muted-strong);
}

.matrix-cell p:last-child {
  margin-bottom: 0;
}

.matrix-row-label {
  margin-bottom: 0.8rem;
  color: rgba(80, 227, 194, 0.78);
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(320px, 1fr) 315px;
  grid-template-areas:
    "controls view data"
    "hash hash hash";
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.control-panel,
.viewfinder-card,
.data-panel,
.hash-panel {
  background: var(--panel);
  padding: 1rem;
  min-width: 0;
}

.control-panel {
  grid-area: controls;
}

.viewfinder-card {
  grid-area: view;
}

.data-panel {
  grid-area: data;
}

.hash-panel {
  grid-area: hash;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.panel-header,
.viewfinder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel-header h3,
.viewfinder-header h3,
.hash-panel h3 {
  margin-bottom: 0;
}

.status-dot {
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(80, 227, 194, 0.8);
}

.range-control {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.range-control span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.range-control output {
  color: var(--accent);
  font-family: var(--mono);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.viewfinder {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 430px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at var(--object-x, 52%) var(--object-y, 36%), rgba(255, 203, 91, 0.16), transparent 8rem),
    linear-gradient(180deg, #0b161a 0%, #101d22 100%);
}

.viewfinder::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(80, 227, 194, 0.1) 49% 50%, transparent 50% 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.38;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(80, 227, 194, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 227, 194, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(126, 167, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 167, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  pointer-events: none;
}

.trail-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.trail-point,
.trail-vector {
  position: absolute;
  left: var(--trail-x);
  top: var(--trail-y);
  opacity: var(--trail-alpha);
  pointer-events: none;
}

.trail-point {
  width: var(--trail-size);
  aspect-ratio: 1;
  border: 1px solid rgba(80, 227, 194, 0.6);
  border-radius: 50%;
  background: rgba(80, 227, 194, 0.2);
  box-shadow: 0 0 20px rgba(80, 227, 194, 0.34);
  transform: translate(-50%, -50%);
}

.trail-vector {
  width: var(--trail-length);
  height: 1px;
  background: linear-gradient(90deg, rgba(80, 227, 194, 0), rgba(80, 227, 194, 0.7));
  transform: translate(0, -50%) rotate(var(--trail-angle));
  transform-origin: 0 50%;
}

.vector-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.velocity-vector {
  position: absolute;
  left: var(--object-x, 52%);
  top: var(--object-y, 36%);
  width: var(--velocity-length, 3.2rem);
  height: 2px;
  background: linear-gradient(90deg, rgba(80, 227, 194, 0.95), rgba(80, 227, 194, 0.12));
  box-shadow: 0 0 16px rgba(80, 227, 194, 0.6);
  transform: rotate(var(--velocity-angle, 0rad));
  transform-origin: 0 50%;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, transform 180ms ease;
}

.velocity-vector::after {
  position: absolute;
  right: -0.2rem;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 0.28rem solid transparent;
  border-left: 0.55rem solid var(--accent);
  content: "";
  filter: drop-shadow(0 0 8px rgba(80, 227, 194, 0.8));
  transform: translateY(-50%);
}

.angular-indicator {
  position: absolute;
  left: var(--object-x, 52%);
  top: var(--object-y, 36%);
  width: 5.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 35deg, rgba(255, 203, 91, 0), rgba(255, 203, 91, 0.92), rgba(255, 203, 91, 0) 34%),
    radial-gradient(circle, transparent 58%, rgba(255, 203, 91, 0.24) 59% 64%, transparent 65%);
  filter: drop-shadow(0 0 14px rgba(255, 203, 91, 0.34));
  opacity: 0.92;
  transform: translate(-50%, -50%);
  animation: angularSpin var(--omega-duration, 1.2s) linear infinite;
  transition: left 180ms ease, top 180ms ease;
}

.angular-indicator::before {
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(255, 203, 91, 0.42);
  border-radius: inherit;
  content: "";
}

.velocity-label,
.component-label,
.omega-label {
  position: absolute;
  border: 1px solid rgba(80, 227, 194, 0.22);
  background: rgba(7, 16, 18, 0.72);
  color: #c8fff2;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.2rem 0.28rem;
  text-transform: none;
  image-rendering: pixelated;
  text-shadow: 0 0 8px rgba(80, 227, 194, 0.42);
  white-space: nowrap;
}

.velocity-label {
  left: calc(var(--velocity-length, 3.2rem) + 0.65rem);
  top: -0.55rem;
  color: var(--accent);
}

.component-label {
  left: var(--object-x, 52%);
  top: var(--object-y, 36%);
  transition: left 180ms ease, top 180ms ease, transform 180ms ease;
}

.vx-label {
  color: var(--accent);
  transform: translate(var(--vx-label-x, 1.6rem), var(--vx-label-y, 1.35rem));
}

.vy-label {
  border-color: rgba(126, 167, 255, 0.28);
  color: #9fbaff;
  transform: translate(var(--vy-label-x, -3rem), var(--vy-label-y, -2.4rem));
}

.omega-label {
  right: -0.35rem;
  top: 0.7rem;
  border-color: rgba(255, 203, 91, 0.34);
  color: var(--accent-2);
}

@keyframes angularSpin {
  to {
    rotate: 360deg;
  }
}

.tracking-object {
  position: absolute;
  z-index: 4;
  left: var(--object-x, 52%);
  top: var(--object-y, 36%);
  width: 4.5rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--object-rotation, 24deg));
  border: 2px solid var(--accent-2);
  background:
    linear-gradient(135deg, rgba(255, 203, 91, 0.92), rgba(255, 107, 128, 0.78)),
    #24150c;
  box-shadow: 0 0 42px rgba(255, 203, 91, 0.28);
  transition: left 180ms ease, top 180ms ease, transform 180ms ease;
}

.tracking-object span {
  position: absolute;
  inset: 15%;
  border: 1px dashed rgba(7, 16, 18, 0.65);
}

.reticle {
  position: absolute;
  z-index: 3;
  left: var(--object-x, 52%);
  top: var(--object-y, 36%);
  width: 7rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(80, 227, 194, 0.72);
  transition: left 180ms ease, top 180ms ease;
}

.reticle::before,
.reticle::after {
  position: absolute;
  content: "";
  background: rgba(80, 227, 194, 0.72);
}

.reticle::before {
  left: 50%;
  top: -1rem;
  width: 1px;
  height: calc(100% + 2rem);
}

.reticle::after {
  left: -1rem;
  top: 50%;
  width: calc(100% + 2rem);
  height: 1px;
}

.stream-box {
  width: 100%;
  max-width: 100%;
  min-height: 430px;
  max-height: 430px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
  background: #071012;
  color: #c8fff2;
  font-size: 0.8rem;
  white-space: pre-wrap;
}

.telemetry-summary,
.telemetry-toggle {
  display: none;
}

.telemetry-log {
  display: block;
}

.telemetry-dot {
  flex: 0 0 auto;
  width: 0.52rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #a8ffb0;
  box-shadow: 0 0 14px rgba(168, 255, 176, 0.78);
  animation: securePulse 900ms ease-in-out infinite;
}

.stream-frame {
  color: #7d9290;
}

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

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

.stream-jitter {
  color: #7ea7ff;
}

.stream-confidence {
  color: #a8ffb0;
}

.hash-output {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 0.95rem;
  background: #071012;
  color: var(--accent-2);
  overflow-wrap: anywhere;
  font-size: clamp(0.78rem, 1.7vw, 1rem);
}

.hash-output.is-updating {
  border-color: rgba(168, 255, 176, 0.72);
  box-shadow: 0 0 24px rgba(80, 227, 194, 0.08);
}

.hash-status-dot {
  flex: 0 0 auto;
  width: 0.56rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #a8ffb0;
  box-shadow: 0 0 16px rgba(168, 255, 176, 0.78);
  animation: securePulse 900ms ease-in-out infinite;
}

#hash-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

@keyframes securePulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.method {
  padding-top: 4rem;
}

.method-shell {
  display: grid;
  gap: 1.1rem;
}

.method .section-heading.compact {
  max-width: 720px;
}

.method .section-heading.compact h2 {
  max-width: 720px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.12;
}

.method-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 100%;
  padding: 4rem 0;
  background: transparent;
}

.method-pipeline-step {
  text-align: left;
}

.method-pipeline-step:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2.5rem;
}

.method-pipeline-step h3 {
  margin: 0 0 1rem;
  color: #00ffcc;
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: left;
}

.method-pipeline-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.4rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-grid a {
  color: rgba(168, 187, 183, 0.72);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--accent);
  outline: none;
}

@media (max-width: 980px) {
  .hero-grid {
    width: min(1180px, calc(100% - 40px));
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 8vw, 4.4rem);
    line-height: 1.02;
  }

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

  .hero-console {
    grid-template-columns: 1fr;
    grid-template-areas:
      "view"
      "data"
      "hash"
      "controls";
    width: 100%;
    margin-left: 0;
  }

  .matrix-heading {
    min-height: auto;
  }

  .matrix-cell {
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "controls data"
      "view view"
      "hash hash";
  }

  .hash-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .site-nav {
    width: min(100% - 28px, 1180px);
  }

  .section-band {
    padding: 4rem 0;
  }

  .hero {
    padding-bottom: 5rem;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    padding: 0.8rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-inline: 0.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.12;
  }

  .hero-controls {
    grid-template-columns: 1fr;
  }

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

  .dashboard {
    grid-template-areas:
      "controls"
      "view"
      "data"
      "hash";
  }

  .viewfinder,
  .stream-box {
    min-height: 330px;
    max-height: 330px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .site-nav {
    width: 100%;
    max-width: 100vw;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-grid,
  .hero-copy,
  .hero-console,
  .viewfinder-card,
  .data-panel,
  .hash-panel,
  .comparison-matrix,
  .matrix-grid,
  .matrix-level,
  .method-shell,
  .method-pipeline,
  .method-pipeline-step {
    min-width: 0;
    max-width: 100%;
  }

  .hero-console,
  .comparison-matrix,
  .matrix-grid,
  .matrix-level,
  .method-pipeline {
    width: 100%;
  }

  .hero,
  .wiki,
  .method,
  .site-header,
  .site-footer,
  main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section-band {
    padding: 3.5rem 0;
  }

  .section-heading {
    margin-bottom: 1.5rem;
    padding-inline: 0.35rem;
  }

  .section-heading h2 {
    max-width: 21rem;
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.08;
  }

  .wiki .section-heading,
  .method .section-heading {
    padding-left: clamp(0.5rem, 3vw, 1rem);
  }

  .method .section-heading.compact h2 {
    max-width: 18rem;
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 3.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.5vw, 2.25rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .comparison-matrix {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    background: transparent;
  }

  .matrix-level {
    grid-template-rows: none;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  }

  .matrix-heading,
  .matrix-cell {
    padding: 0.95rem;
  }

  .matrix-heading {
    min-height: auto;
    border-bottom: 1px solid rgba(80, 227, 194, 0.16);
  }

  .matrix-cell {
    min-height: auto;
  }

  .matrix-cell h3 {
    font-size: 1rem;
  }

  .matrix-cell p:not(.matrix-row-label) {
    color: rgba(224, 238, 234, 0.82);
    font-family: var(--sans);
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .matrix-row-label {
    margin-bottom: 0.45rem;
    font-size: 0.65rem;
  }

  .hero-console {
    grid-template-columns: 1fr;
    grid-template-areas:
      "view"
      "hash"
      "data"
      "controls";
    gap: 1px;
    overflow: hidden;
  }

  .hero-console .viewfinder {
    min-height: 280px;
    max-height: 300px;
  }

  .data-panel {
    padding: 0.85rem;
  }

  .data-panel .panel-header {
    margin-bottom: 0.65rem;
  }

  .data-panel .panel-header .status-dot {
    display: none;
  }

  .telemetry-summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.45rem;
    border: 1px solid rgba(80, 227, 194, 0.2);
    border-radius: var(--radius);
    padding: 0.6rem 0.68rem;
    background: rgba(7, 16, 18, 0.82);
    color: #c8fff2;
    font-family: var(--mono);
    font-size: 0.68rem;
    line-height: 1.35;
    overflow: hidden;
  }

  #latest-stream-line {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .telemetry-toggle {
    display: block;
    width: 100%;
    margin-top: 0.55rem;
    border: 1px solid rgba(80, 227, 194, 0.28);
    border-radius: var(--radius);
    padding: 0.62rem 0.7rem;
    background: rgba(80, 227, 194, 0.045);
    color: rgba(80, 227, 194, 0.92);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: left;
  }

  .telemetry-log {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
  }

  .data-panel.is-open .telemetry-log {
    max-height: 180px;
    margin-top: 0.55rem;
  }

  .hero-console .stream-box {
    min-height: 0;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.72rem;
    font-size: 0.68rem;
  }

  .hero-console .hash-panel {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .hash-output {
    padding: 0.75rem;
    overflow: hidden;
  }

  #hash-value,
  .stream-box,
  #latest-stream-line {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .method-pipeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
  }

  .method-pipeline-step:not(:last-child) {
    border-right: 0;
    padding-right: 0;
  }

  .method-pipeline-step h3 {
    font-size: 1.08rem;
  }

  .config-disclosure summary {
    align-items: flex-start;
  }

  .config-fields {
    grid-template-columns: 1fr;
  }
}
