/* ============================================
   BootSpire — styles.css
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-deep: #07070b;
  --bg-panel: #101018;
  --bg-elevated: #171724;
  --line-soft: rgba(181, 139, 255, 0.18);
  --line-medium: rgba(181, 139, 255, 0.3);
  --violet: #9f6cff;
  --violet-muted: #7250b8;
  --gold: #ffd45a;
  --gold-strong: #ffb72e;
  --text-main: #f5f3fb;
  --text-muted: #b9b4c9;
  --text-dim: #8a85a0;
  --danger: #e94c5d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 60px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Accessibility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--bg-elevated); color: var(--text-main);
  padding: 8px 16px; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Layout helpers --- */
.section-header {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.section-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

/* --- Navigation --- */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  height: var(--nav-height);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text-main);
  font-weight: 700; font-size: 1.1rem;
}
.nav-brand:hover { text-decoration: none; }
.nav-mark { width: 28px; height: 28px; }
.nav-menu {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-menu a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-menu a:hover { color: var(--text-main); text-decoration: none; }
.nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line-medium);
  color: var(--text-muted);
  font-size: 0.85rem; font-weight: 600;
  cursor: not-allowed;
}
.nav-cta:disabled { opacity: 1; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none; border: none;
}
.nav-toggle-bar {
  width: 22px; height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-large {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
}
.btn-primary {
  background: var(--bg-elevated);
  border: 1px solid var(--line-medium);
  color: var(--text-muted);
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--violet);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(159, 108, 255, 0.1);
  text-decoration: none;
}
.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(159, 108, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(255, 212, 90, 0.04), transparent);
  pointer-events: none;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
}
.hero-text { max-width: 540px; }
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.5rem 0 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.trust-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* --- Hero Visual: Spire --- */
.hero-visual {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.spire-visual {
  position: relative;
  width: 120px; height: 240px;
  display: flex; flex-direction: column; align-items: center;
}
.spire-halo {
  position: absolute; top: 20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(159, 108, 255, 0.15);
  animation: halo-rotate 30s linear infinite;
}
.spire-halo::before {
  content: ''; position: absolute;
  top: -1px; left: 50%; width: 3px; height: 3px;
  background: var(--violet); border-radius: 50%;
  box-shadow: 0 0 8px var(--violet);
}
.spire-body {
  position: relative;
  width: 50px; height: 180px;
  background: var(--bg-panel);
  border: 1.5px solid var(--violet);
  border-radius: 4px 4px 2px 2px;
  clip-path: polygon(50% 0%, 100% 15%, 100% 100%, 0% 100%, 0% 15%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 20px 0 10px;
}
.spire-core {
  position: absolute;
  left: 50%; top: 10px;
  transform: translateX(-50%);
  width: 4px; height: 150px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-strong));
  border-radius: 2px;
  animation: core-activate 2s ease-out 0.3s 1 forwards;
  opacity: 0;
}
.spire-ring {
  width: 100%; height: 1px;
  background: var(--violet-muted);
  opacity: 0.4;
}
.spire-base {
  width: 70px; height: 4px;
  background: var(--violet);
  opacity: 0.2;
  border-radius: 2px;
}
.hero-monitors {
  display: flex; gap: 0.5rem;
}
.mini-monitor {
  width: 56px; height: 36px;
  border: 1px solid var(--line-medium);
  border-radius: 3px;
  background: var(--bg-panel);
  position: relative;
  overflow: hidden;
}
.mini-tile {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  animation: tile-settle 0.5s ease-out forwards;
}
.mini-tile-a {
  top: 4px; left: 4px; width: 48px; height: 14px;
  background: rgba(159, 108, 255, 0.3);
  animation-delay: 1s;
}
.mini-tile-b {
  top: 4px; left: 4px; width: 48px; height: 28px;
  background: rgba(255, 212, 90, 0.15);
  animation-delay: 1.5s;
}
.mini-tile-c {
  top: 4px; left: 4px; width: 48px; height: 20px;
  background: rgba(159, 108, 255, 0.2);
  animation-delay: 2s;
}

/* --- Proof Section --- */
.proof {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.proof-item {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  text-align: center;
}
.proof-icon {
  color: var(--violet);
  margin-bottom: 1rem;
  display: flex; justify-content: center;
}
.proof-item h3 {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.5rem;
}
.proof-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Demo Section --- */
.demo-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.demo-container {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 2rem;
  overflow: hidden;
}

/* Timeline */
.demo-timeline { margin-bottom: 2rem; }
.timeline-track {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.timeline-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--violet), var(--gold));
  border-radius: 2px;
  transition: width 0.5s ease;
}
.timeline-nodes {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}
.t-node {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
  flex: 1; min-width: 0;
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--violet-muted);
  transition: all 0.3s;
  flex-shrink: 0;
}
.t-node.active .t-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(255, 212, 90, 0.5);
}
.t-node.complete .t-dot {
  background: var(--violet);
  border-color: var(--violet);
}
.t-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.t-node.active .t-label,
.t-node.complete .t-label { color: var(--text-main); }

/* Monitors */
.demo-monitors {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.demo-monitor {
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  overflow: hidden;
}
.monitor-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 4px 8px;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.05em;
}
.monitor-screen {
  position: relative;
  height: 180px;
  padding: 6px;
}
.app-tile {
  position: absolute;
  border-radius: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.4s, top 0.4s, left 0.4s, width 0.4s, height 0.4s;
  pointer-events: none;
}
.app-tile.visible {
  opacity: 1;
  transform: scale(1);
}
.app-tile.placed {
  border-color: var(--line-medium);
}
.app-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.app-tile[data-app="audio"] { border-top: 2px solid var(--violet); }
.app-tile[data-app="discord"] { border-top: 2px solid var(--violet); }
.app-tile[data-app="browser"] { border-top: 2px solid var(--gold); }
.app-tile[data-app="ide"] { border-top: 2px solid var(--violet); }
.app-tile[data-app="obs"] { border-top: 2px solid var(--gold); }

/* Status bar */
.demo-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.demo-status-text {
  font-size: 0.9rem;
  font-weight: 500;
}
.demo-resource {
  display: flex; align-items: center; gap: 0.5rem;
}
.resource-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}
.resource-bar {
  width: 60px; height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  overflow: hidden;
}
.resource-fill {
  height: 100%; width: 10%;
  background: var(--violet);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Controls */
.demo-controls {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.demo-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line-medium);
  color: var(--text-main);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s;
  min-height: 40px;
}
.demo-btn:hover:not(:disabled) {
  border-color: var(--violet);
  background: rgba(159, 108, 255, 0.1);
}
.demo-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.demo-btn:focus-visible { outline-offset: 2px; }

/* --- Features --- */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--line-medium); }
.feature-icon {
  color: var(--violet);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-lead {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.feature-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.feature-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-muted);
}

/* --- How It Works --- */
.how-it-works {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.workflow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.workflow-step {
  flex: 1;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.step-number {
  width: 36px; height: 36px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--violet);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.workflow-step h3 {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.5rem;
}
.workflow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.workflow-connector {
  width: 32px;
  align-self: center;
  height: 2px;
  background: var(--line-medium);
  flex-shrink: 0;
}

/* --- Session Modes --- */
.modes {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.modes-table {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mode-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.mode-row:last-child { border-bottom: none; }
.mode-row:nth-child(odd) { background: var(--bg-panel); }
.mode-primary { background: rgba(159, 108, 255, 0.05); }
.mode-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}
.mode-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Technical --- */
.technical {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.tech-item {
  padding: 1.5rem;
  border-left: 2px solid var(--violet);
  background: var(--bg-panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tech-item h3 {
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: 0.4rem;
}
.tech-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tech-details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  padding: 1rem 1.5rem;
}
.tech-details summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  color: var(--text-main);
}
.tech-details summary:hover { color: var(--gold); }
.tech-details-body {
  padding: 1rem 0 0.5rem;
}
.tech-details-body ul {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin: 0.75rem 0;
}
.tech-details-body li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.tech-details-body li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--violet);
}
.tech-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.5rem;
}

/* --- Privacy --- */
.privacy {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.privacy-item {
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.privacy-item h3 {
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: 0.4rem;
}
.privacy-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.privacy-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* --- Status --- */
.status {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.status-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}
.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 212, 90, 0.1);
  border: 1px solid rgba(255, 212, 90, 0.3);
  color: var(--gold);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.status-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.status-clarification {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- FAQ --- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.faq-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--violet);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Final CTA --- */
.final-cta {
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(159, 108, 255, 0.06), transparent);
  pointer-events: none;
}
.cta-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.cta-spire { margin-bottom: 1.5rem; }
.cta-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem 1.5rem;
  background: var(--bg-panel);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer-wordmark { font-weight: 700; font-size: 1rem; }
.footer-descriptor {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-nav {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text-main); }
.footer-status {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.5rem;
}
.footer-status-badge {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animations --- */
@keyframes halo-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes core-activate {
  from { opacity: 0; transform: translateX(-50%) scaleY(0); transform-origin: top; }
  to { opacity: 1; transform: translateX(-50%) scaleY(1); transform-origin: top; }
}
@keyframes tile-settle {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-menu li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-menu a { display: block; font-size: 1rem; }
  .nav-cta { width: 100%; text-align: center; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-text { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }

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

  .demo-monitors {
    grid-template-columns: 1fr;
  }
  .monitor-screen { height: 120px; }
  .timeline-nodes { flex-wrap: wrap; gap: 0.5rem; }
  .t-node { flex: 0 0 45%; }

  .feature-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }

  .workflow {
    flex-direction: column;
    gap: 0;
  }
  .workflow-connector {
    width: 2px; height: 24px;
    margin: 0 auto;
  }

  .mode-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .demo-status-bar { flex-direction: column; align-items: stretch; }
  .demo-resource { justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-status { align-items: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 2rem 1rem 3rem; }
  .hero-headline { font-size: 1.75rem; }
  .hero-sub { font-size: 0.95rem; }
  .demo-container { padding: 1rem; }
  .t-label { font-size: 0.65rem; }
  .section-header { padding: 0 1rem; }
  .proof-item { padding: 1.5rem 1rem; }
  .feature-card { padding: 1.5rem; }
  .demo-controls { flex-direction: column; }
  .demo-btn { width: 100%; }
}

@media (max-width: 360px) {
  .hero-headline { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; }
  .t-node { flex: 0 0 42%; }
  .t-label { font-size: 0.6rem; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spire-halo { animation: none; }
  .spire-core { opacity: 1; animation: none; }
  .mini-tile { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
