:root {
  --bg: #05060a;
  --panel: rgba(18, 8, 8, 0.82);
  --panel-strong: rgba(22, 10, 10, 0.96);
  --text: #eff4ff;
  --muted: #d6b7a6;
  --line: rgba(255, 170, 120, 0.18);
  --cyan: #ffb35b;
  --magenta: #ff4a34;
  --lime: #ffdf7a;
  --gold: #ff7a2f;
  --ember: #ff7a2f;
  --lava: #ff3b1f;
  --smoke: #1a0909;
  --radius: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --accent-h: 14;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 122, 47, 0.25), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255, 74, 52, 0.22), transparent 18%),
    radial-gradient(circle at 50% 92%, rgba(255, 223, 122, 0.12), transparent 28%),
    linear-gradient(180deg, #040303 0%, #120707 34%, #050203 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255,181,127,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,181,127,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.25));
}

body::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,122,47,0.18), transparent 22%),
    linear-gradient(to bottom, transparent, rgba(255, 122, 47, 0.08), transparent);
  background-size: 100% 180px;
  animation: drift 10s linear infinite;
  mix-blend-mode: screen;
}

body.pulse-mode {
  --cyan: #ffd04e;
  --magenta: #ff6a1f;
  --lime: #fff1c4;
}

body.mirror-mode .hero-grid { direction: rtl; }
body.mirror-mode .hero-copy,
body.mirror-mode .scanner-panel,
body.mirror-mode .section-head,
body.mirror-mode .cta-shell { direction: ltr; }

body.noise-mode .grid-noise {
  opacity: 0.6;
  filter: blur(0.6px);
}

body.bursting::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,223,122,0.28), transparent 18%),
    radial-gradient(circle at 50% 42%, rgba(255,122,47,0.16), transparent 26%),
    linear-gradient(to bottom, transparent, rgba(255, 74, 52, 0.16), transparent);
  background-size: 100% 140px;
  animation-duration: 2.2s;
}

body.bursting .ember-field {
  opacity: 0.7;
}

body.bursting .scanner-stage {
  box-shadow: 0 0 0 1px rgba(255,223,122,0.18), 0 0 60px rgba(255,74,52,0.22);
}

.grid-noise,
.orb {
  position: fixed;
  pointer-events: none;
}

.grid-noise {
  inset: 0;
  opacity: 0.38;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,145,79,0.08), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,145,79,0.03) 0 2px, transparent 2px 10px);
  mix-blend-mode: overlay;
}

.orb {
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.8;
}

.orb-a {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 14vh;
  background: rgba(255, 122, 47, 0.24);
}

.orb-b {
  width: 260px;
  height: 260px;
  right: -60px;
  top: 10vh;
  background: rgba(255, 74, 52, 0.22);
}

.orb-c {
  width: 360px;
  height: 360px;
  right: 10%;
  bottom: -120px;
  background: rgba(255, 223, 122, 0.12);
}

.scan-streak {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent, rgba(255, 122, 47, 0.08), transparent),
    linear-gradient(90deg, transparent, rgba(255, 87, 47, 0.08), transparent);
  background-size: 100% 180px;
  animation: drift 10s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.inferno-layer,
.ember-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.inferno-layer {
  opacity: 0.72;
  mix-blend-mode: screen;
}

.inferno-a {
  background:
    radial-gradient(circle at 18% 82%, rgba(255,122,47,0.18), transparent 10%),
    radial-gradient(circle at 70% 86%, rgba(255,74,52,0.2), transparent 12%),
    linear-gradient(to top, rgba(255,74,52,0.12), transparent 28%);
  animation: infernoRise 9s ease-in-out infinite alternate;
}

.inferno-b {
  background:
    radial-gradient(circle at 50% 100%, rgba(255,122,47,0.25), transparent 18%),
    linear-gradient(to top, rgba(255,223,122,0.08), transparent 38%);
  filter: blur(10px);
  animation: infernoPulse 4.6s ease-in-out infinite;
}

.inferno-c {
  background:
    radial-gradient(circle at 10% 95%, rgba(255,223,122,0.16), transparent 14%),
    radial-gradient(circle at 92% 96%, rgba(255,74,52,0.14), transparent 16%);
  animation: infernoRise 12s ease-in-out infinite alternate-reverse;
}

.ember-field {
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(255,223,122,0.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,122,47,0.75) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,74,52,0.7) 0 1px, transparent 2px);
  background-size: 160px 160px, 220px 220px, 280px 280px;
  background-position: 0 0, 40px 20px, 80px 60px;
  animation: embers 8s linear infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.95));
}

@keyframes infernoRise {
  from { transform: translateY(10px) scale(1); opacity: 0.62; }
  to { transform: translateY(-12px) scale(1.04); opacity: 0.92; }
}

@keyframes infernoPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.04); opacity: 0.75; }
}

@keyframes embers {
  from { background-position: 0 0, 40px 20px, 80px 60px; }
  to { background-position: -160px -420px, -220px -540px, -280px -640px; }
}

@keyframes drift {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.topbar,
.hero,
.section {
  width: 100%;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: clamp(16px, 2.4vw, 30px) clamp(16px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.82), rgba(5, 6, 10, 0.52));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ember), var(--lava));
  box-shadow: 0 0 34px rgba(255, 122, 47, 0.42);
  overflow: hidden;
  border: 1px solid rgba(255,180,120,0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  filter: saturate(1.2) contrast(1.06);
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.brand-subtitle {
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav,
.top-actions,
.hero-actions,
.panel-actions,
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav { justify-content: center; }

button,
input { font: inherit; }

.nav-btn,
.mini-btn,
.primary-btn,
.secondary-btn,
.tiny-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 122, 47, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-btn,
.mini-btn,
.secondary-btn,
.tiny-btn {
  border-radius: 999px;
  padding: 12px 16px;
}

.primary-btn {
  border-radius: 18px;
  padding: 14px 18px;
  background:
    linear-gradient(135deg, rgba(255, 223, 122, 0.22), rgba(255, 74, 52, 0.22)),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 1px rgba(255, 170, 120, 0.1), 0 16px 36px rgba(0,0,0,0.42);
  text-shadow: 0 0 10px rgba(255, 223, 122, 0.18);
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 162, 94, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 162, 94, 0.12), 0 10px 24px rgba(0,0,0,0.3);
}

.hero {
  padding: clamp(16px, 2.4vw, 30px) clamp(16px, 4vw, 42px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  align-items: stretch;
}

.panel,
.deck-card,
.timeline-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 122, 47, 0.16), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(255, 74, 52, 0.12), transparent 28%),
    radial-gradient(circle at 50% 115%, rgba(255, 223, 122, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(29, 10, 10, 0.94), rgba(10, 5, 5, 0.96));
  border: 1px solid rgba(255, 164, 103, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cut {
  clip-path: polygon(0 0, 96% 0, 100% 7%, 100% 100%, 4% 100%, 0 93%);
}

.hero-copy,
.scanner-panel { min-height: 78vh; }

.hero-copy {
  padding: clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-sigil {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 16px 0 6px;
  width: fit-content;
  border-radius: 22px;
  background:
    radial-gradient(circle at left, rgba(255,122,47,0.18), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,180,120,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 22px rgba(255, 122, 47, 0.08);
}

.hero-sigil img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255,180,120,0.08);
  box-shadow: 0 0 22px rgba(255,122,47,0.24);
  background: rgba(0,0,0,0.2);
}

.hero-sigil-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.hero-sigil strong {
  display: block;
  max-width: 24ch;
  font-size: 1.03rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.eyebrow,
.section-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(255,223,122,0.64);
}

.hero h1,
.section-head h2,
.scanner-header h2,
.cta-shell h2 {
  margin: 0;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(255, 122, 47, 0.18);
}

.lede,
.section-copy,
.deck-card p,
.timeline-card p,
.activity-item,
.log-item,
.stat-line span,
.stat-line strong {
  color: #d5b6a0;
  line-height: 1.75;
}

.lede {
  max-width: 60ch;
  font-size: 1.04rem;
  margin-top: 18px;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.chip {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,180,120,0.08);
  background: linear-gradient(180deg, rgba(255,122,47,0.06), rgba(255,255,255,0.02));
}

.chip span,
.stat-line span,
.card-kicker {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.chip strong,
.stat-line strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
}

.scanner-panel {
  padding: clamp(20px, 2.8vw, 34px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
  position: relative;
  isolation: isolate;
}

.scanner-panel::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -34px;
  width: 280px;
  height: 280px;
  background: url('logo_evilai_tr.png') center / contain no-repeat;
  opacity: 0.12;
  filter: blur(0.1px) saturate(1.1) hue-rotate(-12deg) brightness(1.05);
  transform: rotate(-10deg);
  z-index: 0;
  pointer-events: none;
}

.scanner-panel > * {
  position: relative;
  z-index: 1;
}

.scanner-header,
.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 47, 0.16);
  background: rgba(255, 122, 47, 0.12);
  color: #ffe3c8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e1a985;
}

.url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input[type="url"] {
  width: 100%;
  border: 1px solid rgba(255,180,120,0.08);
  background: rgba(255, 122, 47, 0.05);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
}

input[type="url"]:focus {
  border-color: rgba(255, 148, 76, 0.5);
  box-shadow: 0 0 0 4px rgba(255,122,47,0.1);
}

.scanner-stage {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid rgba(255,180,120,0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 122, 47, 0.18), transparent 30%),
    radial-gradient(circle at 50% 62%, rgba(255, 74, 52, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.flare {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,223,122,0.35), rgba(255,74,52,0.1) 45%, transparent 72%);
  filter: blur(2px);
  animation: flarePulse 2.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.flare-1 {
  width: 120px;
  height: 120px;
  left: 10%;
  top: 18%;
  animation-delay: 0s;
}

.flare-2 {
  width: 160px;
  height: 160px;
  right: 8%;
  top: 14%;
  animation-delay: 0.5s;
}

.flare-3 {
  width: 220px;
  height: 220px;
  bottom: -38px;
  left: 32%;
  animation-delay: 1s;
}

@keyframes flarePulse {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

.scanner-radar {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 180deg, transparent 0 18%, rgba(255,122,47,0.12) 24%, transparent 28% 100%);
  animation: sweep 4.8s linear infinite;
  mix-blend-mode: screen;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lens-wrap {
  position: relative;
  width: min(68vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.lens-1 {
  border: 1px solid rgba(255,176,120,0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 0 30px rgba(255,122,47,0.14);
}
.lens-2 { inset: 18px; border: 1px solid rgba(255,79,52,0.2); }
.lens-3 { inset: 42px; border: 1px solid rgba(255,223,122,0.14); }

.lens-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,223,122,0.24), transparent 34%),
    radial-gradient(circle at 50% 60%, rgba(255,74,52,0.25), transparent 48%),
    rgba(5, 6, 10, 0.76);
  border: 1px solid rgba(255,180,120,0.08);
  box-shadow: 0 0 40px rgba(255,122,47,0.18);
  z-index: 3;
}

.lens-core span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f1c3a1;
}

.lens-core strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.1;
}

.lens-pulse {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 22px rgba(255,74,52,0.7);
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.console,
.activity-list {
  display: grid;
  gap: 10px;
}

.log-item,
.activity-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.signal-strip {
  overflow: hidden;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.signal-track {
  display: flex;
  gap: 44px;
  padding: 14px 0;
  width: max-content;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #ffc8aa;
  animation: slide 24s linear infinite;
}

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

.section {
  padding: clamp(24px, 4vw, 46px) clamp(16px, 4vw, 42px) 0;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  max-width: 72rem;
}

.section-head h2,
.scanner-header h2,
.cta-shell h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  text-shadow: 0 0 20px rgba(255,122,47,0.16);
}

.section-copy { max-width: 64ch; }

.deck-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  grid-template-areas:
    "tall mid1 mid2"
    "tall wide wide";
  gap: 16px;
}

.deck-card,
.timeline-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.deck-card::after,
.timeline-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle, rgba(255,122,47,0.16), transparent 68%);
  pointer-events: none;
  opacity: 0.7;
}

.deck-card h3,
.timeline-card h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  text-shadow: 0 0 14px rgba(255,122,47,0.12);
}

.deck-card.tall { grid-area: tall; min-height: 100%; }
.deck-card:nth-child(2) { grid-area: mid1; }
.deck-card:nth-child(3) { grid-area: mid2; }
.deck-card.wide { grid-area: wide; }

.stat-stack {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,122,47,0.05);
  border: 1px solid rgba(255,180,120,0.06);
}

.mini-bars {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.bar span {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, rgba(86,240,255,0.25), rgba(255,79,210,0.85));
  box-shadow: 0 0 18px rgba(86,240,255,0.22);
  animation: barflow 2.8s ease-in-out infinite alternate;
}

.bar:nth-child(2) span { width: 84%; animation-delay: 0.2s; }
.bar:nth-child(3) span { width: 48%; animation-delay: 0.4s; }
.bar:nth-child(4) span { width: 72%; animation-delay: 0.6s; }

@keyframes barflow {
  from { transform: translateX(-10%); }
  to { transform: translateX(8%); }
}

.feed-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: start;
}

.activity-panel {
  padding: 22px;
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-card span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,47,0.18);
  background: rgba(255,122,47,0.08);
  color: #ffe6cd;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.timeline-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(255,74,52,0.16), transparent 68%);
}

.timeline-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(255,223,122,0.16), transparent 68%);
}

.cta-shell {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.cta-shell::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,122,47,0.16), transparent 68%);
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 120%);
  opacity: 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(6,8,14,0.94);
  border: 1px solid rgba(86,240,255,0.2);
  box-shadow: var(--shadow);
  transition: 0.24s ease;
  z-index: 40;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.glitching .scan-streak {
  animation-duration: 1.8s;
  filter: hue-rotate(58deg) saturate(1.5);
}

.glitching .panel,
.glitching .deck-card,
.glitching .timeline-card {
  transform: skewX(-0.6deg) translateY(-1px);
}

.glitching .scanner-stage {
  box-shadow: 0 0 0 1px rgba(255,122,47,0.16), 0 0 48px rgba(255,74,52,0.18);
}

.glitching .lens-core {
  animation: coreBurst 0.35s linear 3;
}

@keyframes coreBurst {
  0%, 100% { transform: scale(1); filter: hue-rotate(0deg); }
  50% { transform: scale(1.08); filter: hue-rotate(-12deg) saturate(1.5); }
}

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

  .deck-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tall tall"
      "mid1 mid2"
      "wide wide";
  }

  .timeline-row {
    grid-template-columns: 1fr 1fr;
  }

  .cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .scanner-panel { min-height: auto; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr; }
  .nav,
  .top-actions { justify-content: flex-start; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  .chip-row,
  .url-row,
  .timeline-row,
  .deck-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  .deck-card.tall,
  .deck-card.wide,
  .deck-card:nth-child(2),
  .deck-card:nth-child(3) { grid-area: auto; }
  .scanner-stage { min-height: 280px; }
  .cta-shell { padding: 20px; }
}
