/* Trading Bite v2.1 — Futuristic Landing Styles */

:root {
  --bg-deep: #06080d;
  --bg-elevated: #0c1018;
  --bg-card: rgba(12, 18, 28, 0.55);
  --gold: #c9917c;
  --gold-light: #e8c4b8;
  --gold-dark: #a67c6d;
  --gold-glow: rgba(201, 145, 124, 0.45);
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.35);
  --text: #f4f2ec;
  --text-muted: rgba(244, 242, 236, 0.58);
  --text-dim: rgba(244, 242, 236, 0.35);
  --border: rgba(201, 169, 98, 0.18);
  --border-bright: rgba(201, 169, 98, 0.38);
  --glass: rgba(12, 18, 28, 0.62);
  --danger: #f87171;
  --success: #4ade80;
  --font-display: "Stack Sans Notch", system-ui, sans-serif;
  --font-body: "Stack Sans Notch", system-ui, sans-serif;
  --font-mono: "Stack Sans Notch", system-ui, sans-serif;
  --container: min(100% - 2rem, 1320px);
  --container-wide: min(100% - 2rem, 1540px);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; }

.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: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.container-wide {
  width: var(--container-wide);
  margin-inline: auto;
}

/* ── Ambient background ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.data-stream {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(201, 145, 124, 0.35), transparent);
  opacity: 0.4;
  animation: data-fall 8s linear infinite;
}
.data-stream-1 { left: 12%; animation-delay: 0s; }
.data-stream-2 { left: 48%; animation-delay: -3s; height: 80%; top: 10%; }
.data-stream-3 { right: 18%; animation-delay: -5s; }

@keyframes data-fall {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle-field span {
  position: absolute;
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: rgba(201, 145, 124, 0.25);
  animation: particle-rise 12s linear infinite;
  white-space: nowrap;
}
@keyframes particle-rise {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  8% { opacity: 0.6; }
  92% { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

.neon-orb-3 {
  width: 120px; height: 120px;
  top: 60%; right: 25%;
  background: var(--gold-glow);
  animation-delay: -6s;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: aurora-drift 20s ease-in-out infinite alternate;
}
.aurora-1 {
  width: 60vw; height: 60vw;
  top: -20%; left: -10%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
}
.aurora-2 {
  width: 50vw; height: 50vw;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  animation-delay: -10s;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.1); }
}

/* ── Ticker ── */
.ticker-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 28px;
  overflow: hidden;
}

.ticker {
  display: flex;
  gap: 2.5rem;
  padding: 0.35rem 0;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.ticker em { font-style: normal; margin-left: 0.35rem; }
.ticker em.up { color: var(--success); }
.ticker em.down { color: var(--danger); }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 28px;
  left: 0; right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: rgba(6, 8, 13, 0.62);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
  animation: header-glass-pulse 5s ease-in-out infinite;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 28%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(232, 196, 184, 0.14) 50%,
    rgba(0, 245, 255, 0.08) 52%,
    rgba(255, 255, 255, 0.06) 54%,
    transparent 70%
  );
  animation: header-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.site-header .nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), var(--teal), transparent);
  background-size: 200% 100%;
  animation: header-line-flow 6s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes header-shimmer {
  0%, 50%, 100% { left: -35%; opacity: 0; }
  58% { opacity: 1; }
  72% { left: 115%; opacity: 0; }
}

@keyframes header-line-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes header-glass-pulse {
  0%, 100% {
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 0 rgba(45, 212, 191, 0);
  }
  50% {
    box-shadow:
      0 4px 28px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 28px rgba(45, 212, 191, 0.08);
  }
}

.nav { position: relative; z-index: 2; }

.site-header.scrolled {
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(28px, 4vw, 40px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.logo-ver-badge {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 100px;
  background: rgba(45, 212, 191, 0.08);
}

.logo-sm .logo-img { height: 32px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-light), var(--teal), var(--gold-light));
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text);
  background: rgba(201, 169, 98, 0.06);
}

.btn-glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  color: var(--text);
}
.btn-glass:hover {
  border-color: var(--border-bright);
  background: rgba(201, 169, 98, 0.08);
}

.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 4rem;
  width: var(--container-wide);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-line {
  display: block;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.75rem);
  letter-spacing: 0.02em;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px var(--gold-glow));
}

.hero-desc {
  font-size: clamp(1rem, 1vw + 0.85rem, 1.2rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
  color: var(--gold);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

/* ── Hero visual / holographic card ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.holo-card {
  position: relative;
  width: min(100%, 380px);
  background: var(--glass);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 24px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(201,169,98,0.12);
  overflow: hidden;
  animation: holo-float 6s ease-in-out infinite;
}

@keyframes holo-float {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50% { transform: translateY(-12px) rotateX(2deg); }
}

.holo-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.holo-dot { width: 10px; height: 10px; border-radius: 50%; }
.holo-dot.green { background: var(--success); }
.holo-dot.amber { background: var(--gold); }
.holo-dot.red { background: var(--danger); opacity: 0.6; }

.holo-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.holo-body { padding: 1.25rem; }

.chart-mock {
  height: 120px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 3s var(--ease-out) forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.holo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric {
  text-align: center;
  padding: 0.65rem 0.25rem;
  background: rgba(201,169,98,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.metric-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-light);
}
.metric-val.up { color: var(--success); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.float-card svg { color: var(--teal); flex-shrink: 0; }

.float-1 {
  top: 8%; right: -5%;
  animation: float-drift 5s ease-in-out infinite;
}
.float-2 {
  bottom: 15%; left: -8%;
  animation: float-drift 5s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes float-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}

.orbit-ring {
  position: absolute;
  width: 110%; height: 110%;
  border: 1px solid rgba(201,169,98,0.12);
  border-radius: 50%;
  animation: orbit-spin 30s linear infinite;
  pointer-events: none;
}
.orbit-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold-glow);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

/* ── Sections ── */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.125rem);
}

/* ── Bento grid ── */
.platform-section {
  isolation: isolate;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
  align-items: stretch;
}

.bento {
  position: relative;
  padding: 1.75rem;
  background: rgba(12, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 8px 32px rgba(0, 0, 0, 0.25);
}
.bento::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.5), rgba(255, 0, 170, 0.4), transparent);
  opacity: 0.6;
}
.bento::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.bento:hover {
  border-color: rgba(0, 245, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 40px var(--gold-glow);
  animation: none;
}
.bento:hover::before { opacity: 1; }

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.bento-wide .bento-copy { position: relative; z-index: 1; }
.bento-tall { grid-row: span 1; }

.bento-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,145,124,0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.bento-icon svg { width: 24px; height: 24px; }

.bento h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1vw + 1rem, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.bento p {
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.05rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.bento-chip {
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  background: rgba(201, 145, 124, 0.1);
  border: 1px solid rgba(201, 145, 124, 0.25);
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.bento-mini-viz {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bento-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.bento-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.bento-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  animation: progress-pulse 3s ease-in-out infinite;
}
@keyframes progress-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.portal-preview {
  position: relative;
  z-index: 1;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.portal-mini-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.portal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.portal-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.portal-stat {
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 8px;
}
.portal-stat .lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.portal-stat .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}
.portal-stat .val.up { color: var(--success); }

.portal-mini-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: rgba(201, 145, 124, 0.08);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.portal-row strong { color: var(--text); font-weight: 500; }
.portal-row .tag {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

/* legacy portal-mock removed */

.device-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.device-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem;
  background: rgba(201, 145, 124, 0.08);
  border: 1px solid rgba(201, 145, 124, 0.15);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s;
}
.device-list li:hover {
  transform: translateX(4px);
  border-color: rgba(201, 145, 124, 0.35);
}

/* ── Features grid ── */
.features-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  background: transparent;
  border-block: none;
}

.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,145,124,0.04), rgba(45,212,191,0.06), rgba(201,145,124,0.04));
  pointer-events: none;
}

.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  padding: 1.35rem 1.25rem;
  background: rgba(12, 18, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
  opacity: 0.4;
  transition: opacity 0.4s;
}

.feature-card.auto-glow,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 145, 124, 0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 35px var(--gold-glow);
}

.feature-card.auto-glow::before,
.feature-card:hover::before {
  opacity: 1;
}

.feature-card.auto-glow .feature-card-icon,
.feature-card:hover .feature-card-icon {
  border-color: rgba(201, 145, 124, 0.5);
  box-shadow: 0 0 22px var(--gold-glow);
}

.feature-card-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(201, 145, 124, 0.12);
  border: 1px solid rgba(201, 145, 124, 0.25);
  border-radius: 12px;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

/* ── Security ── */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.security-content {
  min-width: 0;
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

.security-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-content > p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: none;
}

.security-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.security-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.check-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}
.security-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.security-list span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

.shield-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

/* ── Security HUD (replaces candle chart) ── */
.security-hud {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 0.9rem 1rem 1rem;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid rgba(201, 145, 124, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 12px 36px rgba(0,0,0,0.22);
  overflow: hidden;
}

.security-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,145,124,0.06), transparent 55%);
  pointer-events: none;
}

.security-hud-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.viz-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.viz-dot.live { animation: pulse 2s ease-in-out infinite; }

.viz-pair {
  margin-left: auto;
  color: var(--gold-light);
  font-weight: 600;
}

.security-pulse-panel {
  position: relative;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.pulse-radar {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 140px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.2);
  animation: radar-pulse 3s ease-out infinite;
}
.radar-ring.r1 { width: 78px; height: 78px; animation-delay: 0s; }
.radar-ring.r2 { width: 112px; height: 112px; animation-delay: 1s; border-color: rgba(201, 145, 124, 0.2); }
.radar-ring.r3 { width: 148px; height: 148px; animation-delay: 2s; }

@keyframes radar-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  70% { transform: scale(1); opacity: 0.15; }
  100% { transform: scale(1.05); opacity: 0; }
}

.radar-sweep {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(45, 212, 191, 0.25) 40deg, transparent 80deg);
  animation: radar-sweep 4s linear infinite;
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pulse-core {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 58px;
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.35));
  animation: core-float 3s ease-in-out infinite;
}
.pulse-core svg { width: 100%; height: 100%; }

@keyframes core-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.orbit-tag {
  position: absolute;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 100px;
  background: rgba(12, 18, 28, 0.8);
  border: 1px solid rgba(201, 145, 124, 0.3);
  color: var(--gold-light);
  z-index: 3;
  animation: orbit-tag-pulse 2.5s ease-in-out infinite;
}
.orbit-tag.ot1 { top: 12%; left: 8%; animation-delay: 0s; }
.orbit-tag.ot2 { top: 18%; right: 6%; animation-delay: 0.8s; color: var(--teal); border-color: rgba(45,212,191,0.35); }
.orbit-tag.ot3 { bottom: 14%; left: 50%; transform: translateX(-50%); animation-delay: 1.6s; }

@keyframes orbit-tag-pulse {
  0%, 100% { opacity: 0.7; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 14px rgba(45, 212, 191, 0.2); }
}

.activity-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 48px;
  padding: 0 0.25rem;
}

.activity-bar {
  flex: 1;
  max-width: 12px;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--teal), rgba(45, 212, 191, 0.2));
  transition: height 0.5s var(--ease-out), background 0.5s;
}
.activity-bar.down {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.9), rgba(248, 113, 113, 0.2));
}

.pulse-feed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feed-tag.secure { color: var(--teal); }
.feed-tag.active { color: var(--gold-light); }

.trading-viz-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.hud-stat {
  text-align: center;
  padding: 0.4rem 0.35rem;
  background: rgba(201, 145, 124, 0.08);
  border: 1px solid rgba(201, 145, 124, 0.18);
  border-radius: 8px;
}
.hud-lbl {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.hud-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hud-stat.up .hud-val { color: var(--success); }

.trading-viz-tape {
  margin-top: 0.65rem;
  overflow: hidden;
  height: 22px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.tape-inner {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  animation: tape-scroll 20s linear infinite;
  font-variant-numeric: tabular-nums;
}
.tape-inner span.up { color: var(--success); }
.tape-inner span.down { color: var(--danger); }

@keyframes tape-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.shield-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  background: rgba(12, 18, 28, 0.8);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 100px;
  font-size: 0.65rem;
  color: var(--teal);
  backdrop-filter: blur(8px);
}
.shield-svg-sm { width: 20px; height: 22px; }

.shield-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  filter: blur(40px);
  animation: shield-pulse 4s ease-in-out infinite;
}

@keyframes shield-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.shield-svg {
  width: min(100%, 220px);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.shield-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-rings span {
  position: absolute;
  border: 1px solid rgba(201,169,98,0.15);
  border-radius: 50%;
  animation: ring-expand 4s ease-out infinite;
}
.shield-rings span:nth-child(1) { width: 180px; height: 180px; }
.shield-rings span:nth-child(2) { width: 240px; height: 240px; animation-delay: 1.3s; }
.shield-rings span:nth-child(3) { width: 300px; height: 300px; animation-delay: 2.6s; }

@keyframes ring-expand {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* ── Marketplace ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
}
.product-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 0%, var(--gold-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product-card:hover .product-glow { opacity: 0.3; }

.product-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: rgba(201,169,98,0.15);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.product-tag.accent {
  background: rgba(45,212,191,0.12);
  border-color: rgba(45,212,191,0.3);
  color: var(--teal);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.product-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
  min-height: 2.8em;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ── CTA ── */
.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--glass);
  border: 1px solid var(--border-bright);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  margin-bottom: 0.75rem;
}
.cta-card > p {
  position: relative;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.cta-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.cta-form input {
  flex: 1 1 220px;
  padding: 0.85rem 1.25rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cta-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,98,0.15);
}

.cta-note {
  position: relative;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Login ── */
.login-wrap {
  display: flex;
  justify-content: center;
}

.login-card {
  width: min(100%, 420px);
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.login-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.login-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,98,0.15);
}

.login-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  background: rgba(6,8,13,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 240px;
}

.logo-sm .logo-img { height: 32px; }

.footer-grid h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-grid ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.25s;
}
.footer-grid a:hover { color: var(--text); }

.footer-contact a {
  font-size: 0.875rem;
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-secure {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .data-stream, .particle-field span, .tape-inner { animation: none; }
  .site-header::after,
  .site-header .nav::before,
  .site-header { animation: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 64px);
  }
  .hero-desc { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 360px; margin-top: 1rem; }
  .float-1 { right: 0; }
  .float-2 { left: 0; }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 1rem;
  }
  .bento-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bento {
    padding: 1.35rem;
  }
  .bento-tall { grid-row: span 1; }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .security-content {
    padding-right: 0;
    text-align: center;
  }
  .security-content > p {
    margin-inline: auto;
    max-width: 36rem;
  }
  .security-list {
    max-width: 32rem;
    margin-inline: auto;
    text-align: left;
  }
  .security-visual {
    order: -1;
    justify-content: center;
  }
  .security-hud {
    max-width: min(100%, 420px);
  }

  .pulse-radar {
    max-width: 200px;
    height: 130px;
  }

  .product-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: mobile ── */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    top: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(6, 8, 13, 0.97);
    backdrop-filter: blur(24px);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav-menu.open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-links a { font-size: 1.1rem; }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .nav-actions .btn { width: 100%; }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .bento-wide, .bento-tall { grid-column: span 1; }
  .bento {
    padding: 1.2rem 1.15rem;
    gap: 0.4rem;
  }
  .bento h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
  .bento p { font-size: 0.95rem; line-height: 1.55; }
  .bento-chips { margin-top: 0.6rem; gap: 0.35rem; }
  .bento-chip { font-size: 0.68rem; padding: 0.3rem 0.6rem; }
  .bento-mini-viz { margin-top: 0.6rem; }
  .device-list { margin-top: 0.6rem; gap: 0.45rem; }
  .device-list li { padding: 0.5rem 0.7rem; font-size: 0.88rem; }

  .particle-field { display: none; }
  #fx-canvas { opacity: 0.2; }

  .pulse-radar { height: 130px; }
  .activity-bars { height: 40px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Ultrawide ── */
@media (min-width: 1600px) {
  :root {
    --container: min(100% - 4rem, 1452px);
    --container-wide: min(100% - 4rem, 1650px);
  }
  .hero { gap: 6rem; }
}
