/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --bg:           #07070f;
  --surface:      #0d0d1a;
  --surface-2:    #12122a;
  --border:       rgba(148,163,255,.10);
  --border-hover: rgba(148,163,255,.28);
  --accent:       #818cf8;
  --accent-2:     #22d3ee;
  --accent-3:     #a78bfa;
  --green:        #4ade80;
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #475569;
  --font-head: 'Bricolage Grotesque', 'Georgia', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 0 0 1px var(--border), 0 8px 48px rgba(0,0,0,.45);
  --glow:      0 0 48px rgba(129,140,248,.14);
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   GRID BACKGROUND
============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle radial vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(129,140,248,.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
============================================================ */
#site-header {
  position: fixed;
  top: 1.125rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 2.5rem);
  max-width: 880px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  background: rgba(7,7,15,.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: padding .3s ease, box-shadow .3s ease, background .3s ease;
}

#site-header.scrolled .header-inner {
  padding: .5rem 1.25rem;
  background: rgba(7,7,15,.88);
  box-shadow: 0 0 0 1px var(--border), 0 12px 48px rgba(0,0,0,.5);
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.logo .by {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: .375rem .875rem;
  border-radius: 9999px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

nav a:hover { color: var(--text); background: rgba(148,163,255,.08); }

.nav-cta {
  color: #0a0a14 !important;
  background: var(--accent) !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--accent-2) !important; color: #07070f !important; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(148,163,255,.08);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0; right: 0;
  background: rgba(7,7,15,.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .75rem;
  flex-direction: column;
  gap: .25rem;
}

.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .625rem 1rem; border-radius: var(--radius); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #07070f;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.3) 60%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .55s ease;
  }
  .btn-primary:hover::after { transform: translateX(110%); }
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,211,238,.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(148,163,255,.07);
  transform: translateY(-1px);
}

/* ============================================================
   SECTION SCAFFOLDING
============================================================ */
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .875rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .875rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal { opacity: 0; transform: translateY(22px); }

@media (prefers-reduced-motion: no-preference) {
  .reveal.visible {
    animation: reveal-up .6s cubic-bezier(.16,1,.3,1) forwards;
  }
  @keyframes reveal-up {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(129,140,248,.10);
  border: 1px solid rgba(129,140,248,.22);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: .775rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.625rem;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot { animation: badge-pulse 2.2s ease infinite; }
  @keyframes badge-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,211,238,.5); }
    50%      { opacity: .7; box-shadow: 0 0 0 5px rgba(34,211,238,0); }
  }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.625rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .accent-text { animation: grad-flow 7s ease infinite; }
  @keyframes grad-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.72;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   TERMINAL
============================================================ */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
  font-family: var(--font-mono);
  font-size: .775rem;
  line-height: 1.75;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  color: var(--text-dim);
  font-size: .7rem;
}

.term-body { padding: 1.125rem 1.375rem; }

.t-prompt { color: var(--accent-2); }
.t-cmd    { color: var(--text); }
.t-div    { color: var(--text-dim); }
.t-label  { color: var(--accent); font-weight: 500; }
.t-key    { color: var(--text-muted); display: inline-block; width: 5.5em; }
.t-val    { color: var(--text); }
.t-active { color: var(--green); }

.t-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  border-radius: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  .t-cursor { animation: blink 1.1s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}

/* ============================================================
   APP CARDS
============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.125rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  position: relative;
  overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(129,140,248,.09), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.app-card:hover::before { opacity: 1; }

.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.app-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.app-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.app-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.app-platform {
  font-family: var(--font-mono);
  font-size: .675rem;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .2rem .6rem;
}

.app-price {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent-2);
}

/* ============================================================
   REPO CARDS
============================================================ */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.125rem;
}

.repo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}

.repo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.repo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.repo-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
}

.repo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text);
  flex: 1;
}

.repo-stars {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
  padding: .2rem .5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 9999px;
}

.repo-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.repo-footer { display: flex; align-items: center; gap: .875rem; }

.lang-tag {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-mono);
  font-size: .725rem;
  color: var(--text-muted);
}

.lang-tag::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
}

.lang-rust::before  { background: #dea584; }
.lang-shell::before { background: #89e051; }

/* ============================================================
   ENIGMA CARD
============================================================ */
.enigma-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  position: relative;
  overflow: hidden;
}

.enigma-wrap::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(129,140,248,.08) 0%, transparent 68%);
  pointer-events: none;
}

.enigma-wrap::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34,211,238,.06) 0%, transparent 68%);
  pointer-events: none;
}

.enigma-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .875rem;
}

.enigma-title {
  font-family: var(--font-head);
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .875rem;
}

.enigma-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.enigma-desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.625rem;
}

.enigma-meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2rem;
}

.enigma-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .875rem;
}

.enigma-row-key {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  width: 72px;
  flex-shrink: 0;
}

.enigma-row-val { color: var(--text); }
.enigma-row-val.mono { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }

.enigma-actions { display: flex; gap: .875rem; flex-wrap: wrap; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-box.wide { grid-column: span 2; }

.stat-label {
  font-family: var(--font-mono);
  font-size: .665rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
}

.stat-val.green  { color: var(--green); }
.stat-val.accent { color: var(--accent); }
.stat-val.cyan   { color: var(--accent-2); }
.stat-val.sm     { font-size: 1.125rem; }

.podcast-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .35rem;
}

.podcast-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
============================================================ */
.contact-wrap {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.contact-wrap .section-label { justify-content: center; }

.contact-wrap p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.72;
  margin-bottom: 2.5rem;
}

.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .18s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: .775rem;
  color: var(--text-dim);
}

/* ============================================================
   DIVIDER ACCENT
============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .terminal  { display: none; }
  .enigma-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .menu-btn { display: flex; }
}

/* ============================================================
   APP ICON — REAL IMAGES
============================================================ */
.app-icon--img {
  padding: 0;
  overflow: hidden;
  background: none;
  border: none;
}

.app-icon--img picture,
.app-icon--img img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

/* ============================================================
   APP CARD — 3D FLOAT ANIMATION
============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .apps-grid .app-card:nth-child(1) { animation: float-a 5.0s ease-in-out infinite; }
  .apps-grid .app-card:nth-child(2) { animation: float-b 5.6s ease-in-out infinite; animation-delay: -.9s; }
  .apps-grid .app-card:nth-child(3) { animation: float-a 4.8s ease-in-out infinite; animation-delay: -1.8s; }
  .apps-grid .app-card:nth-child(4) { animation: float-b 5.3s ease-in-out infinite; animation-delay: -.4s; }
  .apps-grid .app-card:nth-child(5) { animation: float-a 5.7s ease-in-out infinite; animation-delay: -2.2s; }
  .apps-grid .app-card:nth-child(6) { animation: float-b 4.9s ease-in-out infinite; animation-delay: -1.1s; }

  @keyframes float-a {
    0%, 100% { transform: translateY(0px) rotate3d(1,.5,0, 1.5deg); }
    50%       { transform: translateY(-8px) rotate3d(1,.5,0,-1.5deg); }
  }
  @keyframes float-b {
    0%, 100% { transform: translateY(-6px) rotate3d(.5,1,0,-1deg); }
    50%       { transform: translateY(4px)  rotate3d(.5,1,0, 1.8deg); }
  }

  /* Pause on hover so spotlight works cleanly */
  .app-card:hover { animation-play-state: paused; }
}

/* ============================================================
   HERO STAGE (CANVAS)
============================================================ */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 320px;
}


.stage-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: rgba(7,7,15,.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  white-space: nowrap;
}

.stage-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .stage-dot { animation: badge-pulse 2.2s ease infinite; }
}

.stage-label { color: var(--text-muted); }
.stage-live   { color: var(--green); font-weight: 600; letter-spacing: .08em; }

/* ============================================================
   CODE TERMINAL (HERO)
============================================================ */
.code-terminal {
  width: 100%;
  height: 100%;
  background: rgba(7,7,15,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term-red    { background: #ff5f57; }
.term-yellow { background: #febc2e; }
.term-green  { background: #28c840; }

.term-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
  padding-right: 1.5rem;
  letter-spacing: .04em;
}

.terminal-body {
  flex: 1;
  padding: 1.125rem 1.375rem;
  overflow: hidden;
}

.terminal-pre {
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.65;
  color: #c9d1d9;
  white-space: pre;
  overflow: hidden;
  margin: 0;
}

.term-cursor {
  display: inline-block;
  color: var(--accent-2);
  font-size: .7em;
  line-height: 1;
  vertical-align: text-bottom;
}

@media (prefers-reduced-motion: no-preference) {
  .term-cursor { animation: cursor-blink 1s step-end infinite; }
  @keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }
}

/* ============================================================
   PARTICLE SPHERE CANVAS (ENIGMA)
============================================================ */
.enigma-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.sphere-canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.04) 0%, var(--surface) 70%);
  max-height: 220px;
}
