/* Unlicense — public domain — cochranblock.org */
/* Original cosmic theme — Orbitron, Rajdhani, accent/purple */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --void: #050508;
  --bg: #050508;
  --surface: #0d0d14;
  --surface-elevated: #14141f;
  --text: #e8e8e8;
  --muted: #9ca3af;
  --accent: #00d9ff;
  --accent-hover: #33e1ff;
  --purple: #9d4edd;
  --cyber-teal: #00ffcc;
  --orange: #ff6b35;
  --border: rgba(0, 217, 255, 0.15);
  --border-strong: rgba(0, 217, 255, 0.35);
  --amber: #ffb300;
  --glow: rgba(0, 217, 255, 0.35);
  --cosmic-glow: rgba(157, 78, 221, 0.25);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
  --glass: rgba(13, 13, 20, 0.6);
  --glass-border: rgba(0, 217, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

pre, code, .code-block {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: pre;
  word-wrap: normal;
}

pre {
  background: rgba(5, 5, 12, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(0, 217, 255, 0.85);
}

@media (max-width: 768px) {
  pre {
    font-size: 0.68rem;
    padding: 0.75rem;
  }
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

/* Skip link — visible on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--void);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link-calendar {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link-calendar:focus {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  overflow: visible;
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Focus states — keyboard users */
a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

/* Visited state — purple glow system. Rewards exploration. */
.badge-card:visited {
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.25), inset 0 0 20px rgba(157, 78, 221, 0.05);
}

.badge-card:visited .badge-name {
  color: var(--purple);
}

.badge-card:visited .badge-ago {
  color: var(--purple);
}

.nav-links a:visited {
  color: var(--purple);
}

.footer-nav a:visited {
  color: var(--purple);
}

.product-card a:visited h2 {
  color: var(--purple);
}

.service-outcome a:visited {
  color: var(--purple);
}

.btn:visited {
  color: inherit;
}

.hero-cta .btn:visited,
.services-cta .btn:visited,
.products-cta .btn:visited {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Starfield — fish-tank pattern: screen-sized gradient loops behind static star mask.
   background-position animation = compositor-only, ~0 GPU cost on any device. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 600px 400px at 50% 50%,
      rgba(255,255,255,0.12),
      rgba(0,217,255,0.06) 40%,
      transparent 70%);
  background-size: 200% 200%;
  animation: starDrift 100s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes starDrift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 60% 40%; }
  50%  { background-position: 100% 20%; }
  75%  { background-position: 40% 80%; }
  100% { background-position: 0% 0%; }
}

/* Shooting star — rare streak across the sky */
.content::before {
  content: '';
  position: fixed;
  top: 12%;
  left: -10%;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), rgba(0,217,255,0.5), transparent);
  border-radius: 1px;
  opacity: 0;
  transform: rotate(-15deg);
  animation: shootingStar 20s ease-in-out infinite;
  will-change: transform, opacity;
  contain: layout style paint;
  pointer-events: none;
  z-index: 1;
}

@keyframes shootingStar {
  0%, 94% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-15deg); }
  95% { opacity: 0; }
  96% { opacity: 1; transform: translate3d(30vw, 5vh, 0) rotate(-15deg); }
  98% { opacity: 0.6; transform: translate3d(70vw, 12vh, 0) rotate(-15deg); }
  100% { opacity: 0; transform: translate3d(90vw, 16vh, 0) rotate(-15deg); }
}

/* Second shooting star — different timing and angle */
.content::after {
  content: '';
  position: fixed;
  top: 35%;
  right: -5%;
  width: 60px;
  height: 1px;
  background: linear-gradient(270deg, transparent, rgba(255,255,255,0.6), rgba(157,78,221,0.4), transparent);
  border-radius: 1px;
  opacity: 0;
  transform: rotate(12deg);
  animation: shootingStar2 30s ease-in-out 8s infinite;
  will-change: transform, opacity;
  contain: layout style paint;
  pointer-events: none;
  z-index: 1;
}

@keyframes shootingStar2 {
  0%, 95% { opacity: 0; transform: translate3d(0, 0, 0) rotate(12deg); }
  96% { opacity: 0; }
  97% { opacity: 0.8; transform: translate3d(-30vw, 4vh, 0) rotate(12deg); }
  99% { opacity: 0.4; transform: translate3d(-70vw, 9vh, 0) rotate(12deg); }
  100% { opacity: 0; transform: translate3d(-85vw, 11vh, 0) rotate(12deg); }
}

/* Static star mask — transparent holes over dark, light drifts behind */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--void, #0a0a0f);
  mask-image:
    radial-gradient(2px 2px at 10% 15%, transparent 50%, black 51%),
    radial-gradient(2px 2px at 40% 8%, transparent 50%, black 51%),
    radial-gradient(2.5px 2.5px at 5% 50%, transparent 50%, black 51%),
    radial-gradient(2.5px 2.5px at 62% 5%, transparent 50%, black 51%),
    radial-gradient(3px 3px at 50% 30%, transparent 50%, black 51%),
    radial-gradient(2.5px 2.5px at 42% 62%, transparent 50%, black 51%),
    radial-gradient(2px 2px at 85% 65%, transparent 50%, black 51%),
    radial-gradient(2px 2px at 73% 48%, transparent 50%, black 51%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(2px 2px at 10% 15%, transparent 50%, black 51%),
    radial-gradient(2px 2px at 40% 8%, transparent 50%, black 51%),
    radial-gradient(2.5px 2.5px at 5% 50%, transparent 50%, black 51%),
    radial-gradient(2.5px 2.5px at 62% 5%, transparent 50%, black 51%),
    radial-gradient(3px 3px at 50% 30%, transparent 50%, black 51%),
    radial-gradient(2.5px 2.5px at 42% 62%, transparent 50%, black 51%),
    radial-gradient(2px 2px at 85% 65%, transparent 50%, black 51%),
    radial-gradient(2px 2px at 73% 48%, transparent 50%, black 51%);
  -webkit-mask-composite: source-in;
  contain: layout style paint;
  pointer-events: none;
  z-index: 0;
}

/* Per-page ambient color — unique glow per page */
body[data-page="home"]::after {
  background-image:
    radial-gradient(ellipse 400px 250px at 8% 12%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 350px 220px at 92% 8%, rgba(157, 78, 221, 0.1), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 80%, rgba(0, 255, 204, 0.1), transparent 60%);
}

body[data-page="products"]::after {
  background-image:
    radial-gradient(ellipse 400px 250px at 8% 12%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 500px 400px at 85% 55%, rgba(157, 78, 221, 0.14), transparent 55%),
    radial-gradient(ellipse 450px 300px at 10% 70%, rgba(0, 255, 204, 0.1), transparent 50%);
}

body[data-page="services"]::after {
  background-image:
    radial-gradient(ellipse 400px 250px at 8% 12%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 350px 220px at 92% 8%, rgba(157, 78, 221, 0.1), transparent 50%),
    radial-gradient(ellipse 550px 350px at 75% 50%, rgba(255, 107, 53, 0.1), transparent 55%);
}

body[data-page="about"]::after {
  background-image:
    radial-gradient(ellipse 500px 350px at 15% 50%, rgba(157, 78, 221, 0.12), transparent 55%),
    radial-gradient(ellipse 450px 300px at 88% 70%, rgba(0, 217, 255, 0.1), transparent 50%);
}

body[data-page="book"]::after {
  background-image:
    radial-gradient(ellipse 400px 250px at 8% 12%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(0, 217, 255, 0.12), transparent 55%);
}

body[data-page="contact"]::after {
  background-image:
    radial-gradient(ellipse 400px 250px at 8% 12%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 500px 350px at 65% 60%, rgba(0, 255, 204, 0.1), transparent 55%);
}

body[data-page="deploy"]::after {
  background-image:
    radial-gradient(ellipse 400px 250px at 8% 12%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 550px 350px at 45% 65%, rgba(255, 107, 53, 0.1), transparent 55%);
}

body[data-page="community-grant"]::after {
  background-image:
    radial-gradient(ellipse 500px 350px at 50% 25%, rgba(157, 78, 221, 0.14), transparent 55%),
    radial-gradient(ellipse 450px 300px at 30% 75%, rgba(0, 255, 204, 0.1), transparent 50%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.97) 0%, rgba(13, 13, 20, 0.95) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Nav search bar — subtle, minimal */
.nav-search {
  margin: 0;
  display: flex;
}

.nav-search-input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem 0.25rem 1.6rem;
  width: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.5rem center;
  transition: all var(--transition);
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(0, 217, 255, 0.15);
  width: 180px;
  background-color: rgba(0, 217, 255, 0.03);
}

.nav-search-input::placeholder {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
}

@media (max-width: 768px) {
  .nav-search { display: none; }
}

/* Search page — clean, centered, Google-style CRT */
.search-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.search-hero form {
  max-width: 600px;
  margin: 0 auto;
}

.search-hero-input {
  width: 100%;
  max-width: 600px;
  padding: 0.9rem 1.2rem 0.9rem 2.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 30px;
  transition: all var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;
}

.search-hero-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.search-hero-input::placeholder {
  color: var(--muted);
}

.search-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.search-results {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-result {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.search-result-title a {
  color: var(--accent);
  text-decoration: none;
}

.search-result-title a:hover {
  text-decoration: underline;
}

.search-result-snippet {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

.search-result-path {
  color: rgba(255,255,255,0.2);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.2rem;
}

.search-count {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .search-hero { padding: 2rem 1rem 1rem; }
  .search-hero-input { font-size: 0.95rem; }
}

/* Mobile hamburger — native <details> drives the menu, zero JS.
   Fixed-position so it isn't constrained by the nav flex layout and
   sits above page content. Visible on ≤768px, hidden on desktop.
   Matches the pattern on the LET'S TEAM apex root (assets/lets-team.html). */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0.7rem;
  right: 0.9rem;
  z-index: 100;
}
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(0, 217, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 217, 255, 0.1);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary::marker { display: none; content: ''; }
.nav-mobile > summary:hover {
  background: rgba(0, 217, 255, 0.08);
  border-color: var(--accent);
}
.nav-mobile > summary > span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-mobile[open] > summary > span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-mobile[open] > summary > span:nth-child(2) {
  opacity: 0;
}
.nav-mobile[open] > summary > span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  max-width: calc(100vw - 1.4rem);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 217, 255, 0.08);
  padding: 0.4rem 0;
  z-index: 60;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.nav-mobile-menu > a {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.nav-mobile-menu > a:hover {
  background: rgba(0, 217, 255, 0.06);
  color: var(--accent);
}
.nav-mobile-menu > a:last-child {
  color: var(--amber);
  font-weight: 700;
  border-bottom: none;
}
.nav-mobile-menu .nav-group-head {
  padding: 0.55rem 1.1rem 0.3rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.nav-mobile-menu .nav-group-head:not(:first-child) {
  border-top: 1px solid var(--border);
  margin-top: 0.2rem;
  padding-top: 0.6rem;
}
.nav-mobile-menu > a.indent {
  padding-left: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu > a.indent:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 900px) {
  .nav-links a {
    font-size: 0.7rem;
  }
}

/* Nav groups — details/summary for Gov, Tools, More */
.nav-group {
  display: block;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::before {
  content: '';
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-right: 0.3em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.15em;
  transition: transform var(--transition);
}

.nav-group[open] summary::before {
  transform: rotate(-135deg);
  vertical-align: 0.05em;
}

.nav-group summary:hover,
.nav-group[open] summary {
  color: var(--accent);
}

.nav-group a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition);
}

.nav-group a:hover {
  color: var(--accent);
}

/* Desktop: nav-group dropdown */
@media (min-width: 769px) {
  .nav-group {
    position: relative;
  }
  .nav-group-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    z-index: 100;
    min-width: 10rem;
    max-width: calc(100vw - 2rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .nav-group a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .nav-group a:hover {
    background: rgba(0, 217, 255, 0.08);
  }
}

@media (max-width: 768px) {
  /* On phone: the new <details class="nav-mobile"> hamburger takes over.
     Hide the desktop inline link list and the inline search box — both
     are reachable via the drawer (Search link inside Tools / Receipts). */
  .nav { padding: 0.7rem 0.9rem; gap: 0.5rem; position: relative; }
  .nav-mobile { display: block; }
  .nav-links { display: none !important; }
  .nav-search { display: none !important; }
  .nav-brand span { font-size: 0.78rem; letter-spacing: 0.16em; }
  .nav-brand { gap: 0.5rem; }
  .nav-brand-logo, .nav-favicon { width: 24px; height: 24px; }
}

@media (max-width: 375px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    padding: 1rem;
  }

  .content {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: filter var(--transition);
}

.nav-logo {
  flex-shrink: 0;
  height: 28px;
  width: auto;
  min-width: 84px;
  object-fit: contain;
  vertical-align: middle;
}

.nav-favicon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

.nav-brand:hover {
  -webkit-text-fill-color: transparent;
}

/* Desktop nav — horizontal links. Mobile override in @media below uses display:none. */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
  }
}

.nav-links a {
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
}

[data-page="home"] .nav-links a[href="/"],
[data-page="products"] .nav-links a[href="/products"],
[data-page="services"] .nav-links a[href="/services"],
[data-page="about"] .nav-links a[href="/about"],
[data-page="contact"] .nav-links a[href="/contact"] {
  color: var(--accent);
  font-weight: 700;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

/* Developer dropdown — groups Source, Summary, Rules */
.nav-developer {
  display: inline-block;
}

.nav-developer summary {
  list-style: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0;
  position: relative;
  text-transform: uppercase;
  transition: all var(--transition);
}

.nav-developer summary::-webkit-details-marker {
  display: none;
}

/* CSS chevron — matches site aesthetic better than Unicode */
.nav-developer summary::before {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.35em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.15em;
  transition: transform var(--transition);
}

.nav-developer[open] summary::before {
  transform: rotate(-135deg);
  vertical-align: 0.05em;
}

.nav-developer summary:hover,
.nav-developer[open] summary {
  color: var(--accent);
}

/* Underline on hover — matches nav links */
.nav-developer summary::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-developer summary:hover::after,
.nav-developer[open] summary::after {
  width: 100%;
}

/* Sub-links inherit nav-link typography */
.nav-developer a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition);
}

.nav-developer a:hover {
  color: var(--accent);
}

/* Active sub-link when on a Developer page */
@media (min-width: 769px) {
  .nav-developer[open] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 2.5rem;
    white-space: nowrap;
  }
  .nav-developer summary {
    padding: 0;
  }
  .nav-developer[open] summary {
    margin-right: 0.5rem;
  }
  /* Separator between summary and sub-links */
  .nav-developer[open] summary::after {
    display: none;
  }
  .nav-developer[open] .nav-developer-sep {
    width: 1px;
    height: 1em;
    margin: 0 1rem;
    background: var(--border);
    flex-shrink: 0;
  }
  .nav-developer a {
    display: inline-block;
    margin: 0;
    padding: 0 1rem;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-developer a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
  }
  .nav-developer a:hover::after {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-developer {
    width: 100%;
  }
  .nav-developer-sep {
    display: none;
  }
  .nav-developer summary {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-developer summary::before {
    margin-right: 0.5em;
  }
  .nav-developer a {
    display: block;
    padding: 0.6rem 0 0.6rem 1.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-developer a:last-of-type {
    border-bottom: none;
  }
}

.content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.content > section {
  margin-bottom: 3rem;
}

.content > section:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .content > section {
    animation: scrollReveal 0.6s ease-out both;
  }
  .content > section:nth-child(1) { animation-delay: 0.05s; }
  .content > section:nth-child(2) { animation-delay: 0.1s; }
  .content > section:nth-child(3) { animation-delay: 0.15s; }
  .content > section:nth-child(4) { animation-delay: 0.2s; }
  .content > section:nth-child(5) { animation-delay: 0.25s; }
}

@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
}

.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 50px rgba(0, 217, 255, 0.2); }
  50% { box-shadow: 0 0 70px rgba(0, 217, 255, 0.35), 0 0 120px rgba(0, 217, 255, 0.1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-logo {
  margin-bottom: 1.5rem;
}

.hero-logo-img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-logo-img:hover {
  border-color: rgba(0, 217, 255, 0.6);
  box-shadow: 0 0 80px rgba(0, 217, 255, 0.4), 0 0 140px rgba(0, 217, 255, 0.15);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }
  .hero-logo-img {
    max-width: 200px;
  }
}

.hero h1 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.25);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

.tagline {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tagline strong {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
}

.hero-stats {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 0.6s ease-out 0.3s both;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.hero p a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.6rem 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.hero p a:hover {
  background: var(--accent);
  color: var(--void);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-cta .btn {
  margin: 0;
}

.hero-cta .btn:not(.btn-secondary) {
  color: var(--void);
}

.services-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.services-section-head {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 2rem 0 1rem;
}

.services-section-head:first-of-type {
  margin-top: 0;
}

.services .service-list li {
  padding: 1rem 0;
}

.services-cta {
  margin-top: 2rem;
}

/* Federal Partners — FBI & DOD IG */
.federal-partners h1 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.federal-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.federal-intro {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.federal-claims {
  margin-bottom: 2rem;
}

.federal-claims h2 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.federal-claims p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.federal-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.federal-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.5;
}

.federal-list li:last-child {
  border-bottom: none;
}

.federal-list strong {
  color: var(--accent);
}

.federal-cta {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.federal-cta a {
  color: var(--accent);
  text-decoration: none;
}

.federal-cta a:hover {
  text-decoration: underline;
}

.contact-cta {
  margin: 1.5rem 0 0.5rem;
}

.contact-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.trust-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-micro {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.contact-secondary {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-secondary a {
  color: var(--accent);
  text-decoration: none;
}

.contact-secondary a:hover {
  text-decoration: underline;
}

.contact-soon {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-style: italic;
}

.hero-skills {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.testimonial {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  border-left-color: var(--cyber-teal);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.08);
}

.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--accent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.testimonials-grid .testimonial {
  margin: 0;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.resume-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.resume-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.resume-raw {
  background: rgba(5, 5, 12, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(0, 217, 255, 0.85);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  overflow-x: auto;
  user-select: all;
  cursor: text;
}

@media (max-width: 768px) {
  .resume-raw {
    font-size: 0.68rem;
    padding: 1rem;
  }
}

.resume-section,
.whitepaper,
.innovation {
  margin-bottom: 2.5rem;
}

.resume-section h2,
.whitepaper h2,
.innovation h1,
.innovation h2 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), transparent) 1;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.experience-item {
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.experience-item:hover {
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
}

.experience-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

.experience-item .dates {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.experience-item p:not(.dates) {
  margin: 0;
  line-height: 1.5;
}

.dates {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.whitepaper-content {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(157, 78, 221, 0.3);
  overflow-x: auto;
  color: var(--accent);
  box-shadow: inset 0 0 40px rgba(157, 78, 221, 0.05);
}

.innovation h1 {
  font-size: 1.5rem;
}

.whitepaper header {
  margin-bottom: 1.5rem;
}

.whitepaper header h1 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tabbed About Me */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
}

.profile-subhead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.08em;
}

.profile-subhead:first-child {
  margin-top: 0;
}

.legacy-pane {
  isolation: isolate;
}

.legacy-tab-content {
  font-family: inherit;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .legacy-tab-content {
    grid-template-columns: 1fr;
  }
}

.legacy-tab-content > .resume-section {
  margin-bottom: 0;
}

.research-topics {
  margin-top: 0;
}

.research-topics h2 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.research-details {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.research-details summary {
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--accent);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition);
  user-select: none;
  -webkit-user-select: none;
}

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

.research-details summary::before {
  content: '▶';
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.research-details[open] summary::before {
  transform: rotate(90deg);
}

.research-details summary:hover {
  background: rgba(0, 217, 255, 0.08);
}

.research-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.research-body h3 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: var(--accent);
}

.research-body ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.research-body .whitepaper-content {
  max-height: 20rem;
  overflow-y: auto;
  font-size: 0.85rem;
}

.legacy-tab-content .resume-section,
.legacy-tab-content .whitepaper,
.legacy-tab-content .innovation {
  margin-bottom: 2rem;
}

.legacy-tab-content .experience-item {
  margin-bottom: 0.6rem;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition);
}

.service-card:hover,
.service-card[open] {
  border-color: rgba(0, 217, 255, 0.2);
}

.service-card summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary::before {
  content: '▶';
  margin-right: 0.5rem;
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.service-card[open] summary::before {
  transform: rotate(90deg);
}

.service-card p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.service-outcome {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Products — coming soon listing */
.products {
  max-width: 900px;
  margin: 0 auto;
}

.products-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.product-card {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.12), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.product-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.03);
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(0, 217, 255, 0.2));
}

.product-card h2 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.product-card h2 a {
  color: inherit;
  text-decoration: none;
}

.product-card h2 a:hover {
  text-decoration: underline;
}

.product-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.product-deps {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

.product-deps a {
  color: var(--accent);
  text-decoration: none;
}

.product-deps a:hover {
  text-decoration: underline;
}

.changelog-entry {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.changelog-repo {
  display: inline-block;
  min-width: 140px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

.changelog-sha {
  color: var(--muted);
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.changelog-msg {
  color: var(--text);
}

.products-cta {
  margin-top: 2rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.pricing-card:hover {
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.12), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.pricing-amount {
  background: linear-gradient(135deg, var(--accent), var(--cyber-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card h2 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.pricing-amount {
  font-family: 'Orbitron', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.75rem 0 0.25rem;
}

.pricing-unit {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card .product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.pricing-divider {
  text-align: center;
  color: var(--muted);
  margin: 1.5rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .pricing-amount {
    font-size: 1.75rem;
  }
}

.services .service-list {
  list-style: none;
  padding: 0;
}

.services .service-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.form-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.2), inset 0 0 6px rgba(0, 217, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3), 0 0 40px rgba(0, 217, 255, 0.1);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(0, 217, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
  transform: translateY(-1px);
}

.error {
  color: var(--accent);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  overflow-x: hidden;
  word-break: break-word;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0.75rem;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-nav a {
    padding: 0.25rem 0;
    font-size: 0.75rem;
  }

  .footer-certs {
    font-size: 0.6rem;
    padding: 0 0.25rem;
    line-height: 1.4;
  }

  .footer-logo {
    width: 140px;
    height: auto;
  }

  .footer-cta .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

.footer-cta {
  margin: 1rem 0 !important;
}

.footer-cta .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.footer p { margin: 0; }

.footer-brand {
  margin-bottom: 0.5rem !important;
}

.footer-brand a {
  display: inline-block;
  transition: opacity var(--transition);
}

.footer-brand a:hover {
  opacity: 0.85;
}

.footer-logo {
  height: 28px;
  width: auto;
  min-width: 84px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-links {
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Gov docs — printable capability statement */
.govdoc-print {
  font-size: 0.85rem;
  line-height: 1.6;
}

.govdoc-print p {
  margin-bottom: 1rem;
}

.govdoc-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .govdoc-print {
    font-size: 0.78rem;
  }
  .govdoc-print .cost-summary {
    margin: 1rem 0;
  }
}

@media print {
  .nav, .footer, .skip-link, .services-cta, .btn {
    display: none !important;
  }
  .govdoc-print {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }
  .service-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .cost-table td {
    color: #000;
  }
}

/* Badge grid — codeskillz gym badges */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.badge-card,
.badge-card:link,
.badge-card:visited,
.badge-card:active {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  color: inherit;
}

.badge-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.badge-cat {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a0a0a;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.badge-name {
  color: #e0e0e0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.badge-desc {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  flex-grow: 1;
}

.badge-ago {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .badge-card {
    padding: 0.75rem;
  }
  .badge-name {
    font-size: 0.75rem;
  }
  .badge-desc {
    font-size: 0.65rem;
  }
}

/* Velocity grid — live repo activity */
.velocity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.velocity-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.velocity-repo {
  color: var(--accent);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

.velocity-repo:hover {
  text-decoration: underline;
}

.velocity-card a:visited,
.velocity-card a:link {
  color: var(--accent);
  text-decoration: none;
}

.velocity-ago {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.velocity-loading {
  color: var(--muted);
  font-size: 0.85rem;
}

.velocity-note {
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
  opacity: 0.6;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .velocity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cost analysis summary table */
.cost-summary {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.cost-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.cost-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.cost-old {
  color: #ff6b6b;
  text-decoration: line-through;
  opacity: 0.7;
}

.cost-new {
  color: var(--accent);
}

.bid-blocked {
  color: var(--orange);
  font-weight: 600;
}

.bid-ready {
  color: var(--accent);
  font-weight: 600;
}

.bid-open {
  color: var(--cyber-teal);
  font-weight: 600;
}

.bid-submitted {
  color: var(--purple);
  font-weight: 600;
}

.bid-won {
  color: #4ade80;
  font-weight: 700;
}

.bid-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.cost-row-highlight {
  background: rgba(255, 255, 255, 0.03);
}

.cost-row-highlight td {
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .cost-summary {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cost-table {
    font-size: 0.8rem;
    min-width: 500px;
  }
  .cost-table td {
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
  }
  .cost-amount {
    white-space: nowrap;
  }
  .bid-date {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .cost-summary {
    border-radius: 0.25rem;
  }
  .cost-table {
    font-size: 0.7rem;
  }
  .cost-table td {
    padding: 0.35rem 0.4rem;
  }
  .cost-amount {
    font-size: 0.65rem;
  }
  .cost-old {
    font-size: 0.6rem;
  }
  .cost-row-highlight td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  .bid-blocked, .bid-ready, .bid-open {
    font-size: 0.6rem;
  }
}

.footer-certs {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

/* Booking page — Braintrust discovery call calendar */
.booking-page {
  padding-bottom: 2rem;
  max-width: 420px;
}

.booking-page h1 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.booking-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.booking-context {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.booking-legend {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.booking-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-style: italic;
}

/* Calendar layout */
.booking-calendar-wrapper {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  animation: booking-fade-in 0.3s ease;
}

@keyframes booking-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.booking-month-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.booking-available-badge {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.booking-available-badge-active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(0, 217, 255, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.booking-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.05em;
}

.booking-nav {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--accent);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.booking-nav:hover {
  background: rgba(0, 217, 255, 0.12);
  border-color: var(--accent);
}

.booking-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0;
}

.booking-calendar-weekday {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 0.4rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-calendar-day {
  aspect-ratio: 1;
  min-height: 40px;
}

.booking-calendar-day-empty {
  background: transparent;
}

.booking-calendar-day-btn {
  width: 100%;
  height: 100%;
  min-height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-calendar-day-available {
  color: var(--text);
  cursor: pointer;
  border-color: rgba(0, 217, 255, 0.5);
  background: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.15);
}

.booking-calendar-day-available:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.35), 0 0 40px rgba(0, 217, 255, 0.1);
  transform: scale(1.08);
}

.booking-calendar-day-available:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.booking-calendar-day-btn.booking-calendar-day-today {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.booking-calendar-day-unavailable .booking-calendar-day-btn {
  cursor: not-allowed;
  opacity: 0.4;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.booking-calendar-day-selected .booking-calendar-day-btn {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.booking-calendar-day-selected {
  outline: none;
}

/* Time slot panel */
.booking-time-panel {
  background: var(--surface);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
  scroll-margin-top: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.booking-time-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

.booking-time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.booking-time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.booking-time-slot:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--accent);
}

.booking-time-slot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.booking-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.booking-fallback {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.booking-fallback a {
  color: var(--accent);
  text-decoration: none;
}

.booking-fallback a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .booking-page {
    max-width: 100%;
  }

  .booking-calendar-wrapper {
    padding: 1rem;
  }

  .booking-calendar-day,
  .booking-calendar-day-btn {
    min-height: 44px;
  }

  .booking-time-slots {
    grid-template-columns: 1fr;
  }

  .booking-time-slot {
    min-height: 48px;
  }

  .booking-time-panel {
    padding: 1rem;
  }
}

/* Google Calendar clone — Month / Week / Day / Agenda */
.gcal-page {
  max-width: 900px;
}

.gcal-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.gcal-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.gcal-sidebar {
  flex-shrink: 0;
  width: 180px;
  padding: 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.gcal-sidebar.collapsed {
  width: 44px;
  padding: 0.5rem;
}

.gcal-sidebar.collapsed .gcal-mini-header,
.gcal-sidebar.collapsed .gcal-mini-grid {
  display: none;
}

.gcal-sidebar-toggle {
  width: 100%;
  min-height: 44px;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.gcal-sidebar-toggle:hover {
  background: rgba(0, 217, 255, 0.1);
}

.gcal-mini-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.gcal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 0.7rem;
}

.gcal-mini-weekday {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.gcal-mini-day {
  aspect-ratio: 1;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
}

.gcal-mini-day:hover {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent);
}

.gcal-mini-day.today {
  background: rgba(157, 78, 221, 0.3);
  color: var(--accent);
}

.gcal-mini-day.available {
  color: var(--text);
  font-weight: 600;
}

.gcal-main-area {
  flex: 1;
  min-width: 0;
}

.gcal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gcal-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gcal-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.gcal-btn:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.gcal-today {
  margin-right: 0.25rem;
}

.gcal-nav {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}

.gcal-nav:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--accent);
}

.gcal-date-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0 0.75rem;
  letter-spacing: 0.05em;
}

.gcal-view-group {
  display: flex;
  gap: 0.25rem;
}

.gcal-view-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.gcal-view-btn:hover {
  color: var(--text);
}

.gcal-view-btn.active {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.gcal-content {
  min-height: 320px;
}

.gcal-pane {
  display: none;
}

.gcal-pane.gcal-pane-active {
  display: block;
}

/* Month grid */
.gcal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.gcal-weekday {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 0.4rem 0;
  letter-spacing: 0.05em;
}

.gcal-day {
  aspect-ratio: 1;
  min-height: 32px;
}

.gcal-day-empty {
  background: transparent;
}

.gcal-day-btn {
  width: 100%;
  height: 100%;
  min-height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: default;
  transition: all var(--transition);
}

.gcal-day-available {
  color: var(--text);
  cursor: pointer;
  border-color: rgba(0, 217, 255, 0.5);
  background: rgba(0, 217, 255, 0.08);
}

.gcal-day-available:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.gcal-day-today {
  border-color: var(--accent);
  color: var(--accent);
}

.gcal-day-unavailable {
  opacity: 0.25;
  color: var(--muted);
}

.gcal-day-unavailable .gcal-day-btn {
  cursor: not-allowed;
}

.gcal-day-selected .gcal-day-btn {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--accent);
}

/* Week view */
.gcal-week-grid {
  display: grid;
  grid-template-columns: 48px repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gcal-week-time-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.gcal-week-time-header {
  height: 36px;
  border-bottom: 1px solid var(--border);
}

.gcal-week-time-slot {
  height: 48px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid var(--border);
}

.gcal-week-day-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.gcal-week-day-header {
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.25rem;
}

.gcal-week-day-name {
  color: var(--muted);
}

.gcal-week-day-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text);
}

.gcal-week-day-available {
  cursor: pointer;
  background: rgba(0, 217, 255, 0.05);
}

.gcal-week-day-available:hover {
  background: rgba(0, 217, 255, 0.12);
  text-decoration: underline;
}

.gcal-week-cell {
  height: 48px;
  border-bottom: 1px solid var(--border);
  padding: 2px;
  position: relative;
}

.gcal-now-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--magenta);
  z-index: 2;
  pointer-events: none;
}

.gcal-now-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--magenta);
  border-radius: 50%;
}

.gcal-week-cell-available {
  background: rgba(0, 217, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcal-week-slot-link {
  display: block;
  flex: 1;
  min-height: 20px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.4);
  transition: all var(--transition);
}

.gcal-week-slot-link:hover {
  background: rgba(0, 217, 255, 0.25);
  border-color: var(--accent);
}

/* Day view */
.gcal-day-grid {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gcal-day-time-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.gcal-day-time-slot {
  height: 48px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid var(--border);
}

.gcal-day-main-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.gcal-day-header {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.gcal-day-available.gcal-day-header {
  cursor: pointer;
  background: rgba(0, 217, 255, 0.05);
}

.gcal-day-available.gcal-day-header:hover {
  background: rgba(0, 217, 255, 0.12);
}

.gcal-day-cell {
  height: 48px;
  border-bottom: 1px solid var(--border);
  padding: 2px;
  position: relative;
}

.gcal-day-cell-available {
  background: rgba(0, 217, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcal-day-slot-link {
  display: block;
  flex: 1;
  min-height: 20px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.4);
  transition: all var(--transition);
}

.gcal-day-slot-link:hover {
  background: rgba(0, 217, 255, 0.25);
  border-color: var(--accent);
}

/* Agenda view */
.gcal-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gcal-agenda-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.gcal-agenda-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.gcal-agenda-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gcal-agenda-slot {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.4);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
}

.gcal-agenda-slot:hover {
  background: rgba(0, 217, 255, 0.25);
  border-color: var(--accent);
}

.gcal-agenda-empty {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}

.gcal-agenda-empty a {
  color: var(--accent);
  text-decoration: none;
}

.gcal-agenda-empty a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .gcal-layout {
    flex-direction: column;
  }

  .gcal-sidebar {
    width: 100%;
  }

  .gcal-sidebar.collapsed {
    width: 100%;
  }

  .gcal-sidebar.collapsed .gcal-mini-header,
  .gcal-sidebar.collapsed .gcal-mini-grid {
    display: none;
  }

  .gcal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gcal-nav-group {
    justify-content: center;
  }

  .gcal-view-group {
    justify-content: center;
  }

  .gcal-view-btn {
    min-height: 44px;
    flex: 1;
  }

  .gcal-toolbar .gcal-btn,
  .gcal-toolbar .gcal-nav {
    min-height: 44px;
  }

  .gcal-week-grid {
    grid-template-columns: 40px repeat(7, minmax(0, 1fr));
    font-size: 0.7rem;
    overflow-x: auto;
  }

  .gcal-agenda-item {
    grid-template-columns: 1fr;
  }
}

/* Developer pages — Source, Executive Summary, Cursor Rules */
.developer-page {
  padding-bottom: 2rem;
}

.developer-page h1 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.developer-page .page-intro {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.developer-page .ai-tldr {
  padding: 0.75rem 1rem;
  background: rgba(0, 217, 255, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.developer-page .ai-ways-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.developer-page .ai-detail {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.developer-page .ai-detail[open] {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.15);
}

.developer-page .ai-detail summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.developer-page .ai-detail[open] summary {
  color: var(--accent);
}

.developer-page .ai-detail p {
  padding: 0 1rem 1rem;
  margin: 0;
}

.developer-page code {
  word-break: break-word;
  overflow-wrap: break-word;
}

.summary-card {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.outcome-cta {
  margin: 1.5rem 0 0.5rem;
}

.outcome-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.developer-page h2 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  letter-spacing: 0.08em;
}

.summary-card h2 {
  margin-top: 0;
}

.developer-page ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.developer-page li {
  margin-bottom: 0.5rem;
}

.source-file,
.rule-file {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.source-file summary,
.rule-file summary {
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.copy-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(0, 217, 255, 0.25);
}

.source-file summary::-webkit-details-marker,
.rule-file summary::-webkit-details-marker {
  display: none;
}

.source-file summary::before,
.rule-file summary::before {
  content: '▶';
  margin-right: 0.5rem;
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.source-file[open] summary::before,
.rule-file[open] summary::before {
  transform: rotate(90deg);
}

.source-code,
.rule-content {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1rem 1.25rem;
  margin: 0;
  background: var(--void);
  border-top: 1px solid var(--border);
  color: var(--accent);
  overflow-x: auto;
  max-height: 24rem;
  overflow-y: auto;
}

/* Print Resume */
.print-resume-bar {
  margin-bottom: 1rem;
}

/* Print styles — resume only, PDF-ready */
@media print {
  .skip-link,
  .nav,
  .footer,
  .tabs,
  .tab-btn,
  .print-resume-bar,
  .research-topics {
    display: none !important;
  }

  .tab-pane#profile {
    display: none !important;
  }

  .tab-pane#legacy {
    display: block !important;
  }

  .legacy-tab-content {
    display: block !important;
    grid: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after {
    display: none !important;
  }

  .content {
    max-width: 100%;
    padding: 0;
  }

  .resume-section h2 {
    color: #000;
    -webkit-text-fill-color: #000;
    background: none;
    border-image: none;
    border-bottom: 1px solid #000;
  }

  .experience-item {
    background: #fff;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .experience-item h3 {
    color: #000;
  }

  .experience-item .dates {
    color: #333;
  }

  .skill-chip {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #000;
  }

  a[href] {
    color: #000;
    text-decoration: underline;
  }
}

/* Intake — waiver-style, cosmic theme (polished) */
body[data-page="intake"] .content,
body[data-page="intake-confirmed"] .content,
body[data-page="community-grant"] .content,
body[data-page="community-grant-confirmed"] .content {
  max-width: 720px;
}

.intake-section {
  padding: 2rem 0 4rem;
}

.intake-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.intake-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.intake-step:not(:last-child)::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--border);
  margin: 0 0.5rem;
  opacity: 0.6;
}

.intake-step.intake-active {
  color: var(--accent);
}

.intake-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.12);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}

.intake-step.intake-active .intake-num {
  background: var(--accent);
  color: var(--void);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

/* Replicated from oakilydokily waiver (.ds-doc) */
.intake-doc {
  background: var(--surface);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.intake-title {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.intake-intro {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Community grant intro — callout like contact testimonial */
body[data-page="community-grant"] .intake-intro {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(0, 217, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

/* Replicated from oakilydokily waiver (.ds-body) */
.intake-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.intake-body::-webkit-scrollbar {
  width: 6px;
}

.intake-body::-webkit-scrollbar-track {
  background: transparent;
}

.intake-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.5;
}

.intake-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.875rem;
  color: var(--text);
}

/* Replicated from oakilydokily waiver (.ds-hint) — warm, visible */
.intake-hint {
  font-size: 0.85rem;
  color: var(--orange);
  margin: -0.25rem 0 1rem;
  font-weight: 500;
}

/* Replicated from oakilydokily waiver (.ds-sign) */
.intake-sign {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--surface-elevated);
}

.intake-line {
  height: 1px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 1rem;
}

/* Replicated from oakilydokily waiver (.ds-sign-label) */
.intake-sign-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.intake-form label:not(.intake-check) {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.intake-form select,
.intake-form input[type="text"],
.intake-form input[type="email"],
.intake-form input[type="tel"],
.intake-form input[type="number"],
.intake-form input[type="url"],
.intake-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.intake-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Community grant — mission/technical_objective need more room */
body[data-page="community-grant"] .intake-form textarea {
  min-height: 120px;
}

.intake-form select:focus,
.intake-form input:focus,
.intake-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}

.intake-form input::placeholder,
.intake-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.intake-consent {
  margin: 1.5rem 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intake-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  cursor: pointer;
  line-height: 1.45;
}

.intake-check:last-child {
  margin-bottom: 0;
}

.intake-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.intake-form .btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.intake-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Replicated from oakilydokily waiver (.ds-note) */
.intake-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.intake-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.intake-done {
  text-align: center;
  padding: 3rem 0;
}

.intake-complete {
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.intake-check-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  background: var(--accent);
  color: var(--void);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.35);
}

.intake-complete h1 {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.intake-success {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.intake-detail {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .intake-section {
    padding: 1.5rem 0 3rem;
  }

  .intake-doc {
    padding: 1.75rem;
  }

  .intake-title {
    font-size: 1.3rem;
  }

  .intake-body {
    max-height: 240px;
    padding: 1.25rem 1.5rem;
  }

  .intake-sign {
    padding: 1.5rem;
  }

  .intake-complete {
    padding: 2rem 1.5rem;
  }
}

/* ===== HOLOGRAPHIC DEPLOY TERMINAL — /deploy ===== */

/* Floating holographic frame — no heavy bezel, transparent + glowing edges */
.crt-monitor {
  max-width: 880px;
  margin: 3rem auto;
  perspective: 1200px;
}

.crt-bezel {
  background: transparent;
  border-radius: 12px;
  padding: 2px;
  position: relative;
  /* Holographic border — animated gradient that shifts */
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.4),
    rgba(157, 78, 221, 0.3),
    rgba(0, 255, 204, 0.2),
    rgba(157, 78, 221, 0.3),
    rgba(0, 217, 255, 0.4)
  );
  animation: holo-border-shift 8s ease-in-out infinite;
  will-change: filter;
  contain: layout style paint;
}

@keyframes holo-border-shift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

/* Outer glow — the holo floats above the page */
.crt-bezel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  box-shadow:
    0 0 30px rgba(0, 217, 255, 0.15),
    0 0 60px rgba(157, 78, 221, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: -1;
}

.crt-brand {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  color: rgba(0, 217, 255, 0.3);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.crt-power {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyber-teal);
  box-shadow: 0 0 8px var(--cyber-teal), 0 0 16px rgba(0, 255, 204, 0.3);
  animation: holo-power-pulse 3s ease-in-out infinite;
  will-change: opacity;
  contain: layout style paint;
}

@keyframes holo-power-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* The screen — dark glass with depth */
.crt-screen {
  background: rgba(5, 5, 12, 0.92);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
}

/* Subtle horizontal scan lines — barely visible, adds texture */
.crt-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 217, 255, 0.02) 3px,
    rgba(0, 217, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Noise overlay — very faint digital grain */
.crt-screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 4;
  opacity: 0.4;
}

/* Vignette — dark edges, bright center like a real display */
.crt-glass {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(5, 5, 12, 0.5) 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 10px;
}

/* Inner top-edge light reflection — like light hitting glass */
.crt-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(0, 217, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(157, 78, 221, 0.3) 70%,
    transparent 95%
  );
  pointer-events: none;
  z-index: 5;
}

/* Breathing ambient glow — the holo hums */
@keyframes holo-ambient {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(15deg) brightness(1.05); }
}

.crt-screen {
  animation: holo-ambient 6s ease-in-out infinite;
  will-change: filter;
  contain: layout style paint;
}

/* Terminal content */
.term-wrap {
  position: relative;
  z-index: 1;
}

/* Header bar — translucent, minimal */
.term-header {
  background: linear-gradient(
    90deg,
    rgba(0, 217, 255, 0.06),
    rgba(157, 78, 221, 0.04),
    rgba(0, 217, 255, 0.06)
  );
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.08);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.term-red { background: #ff5f56; box-shadow: 0 0 6px rgba(255,95,86,0.3); }
.term-yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.3); }
.term-green { background: #27c93f; box-shadow: 0 0 6px rgba(39,201,63,0.3); }

.term-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(0, 217, 255, 0.35);
  margin-left: auto;
  letter-spacing: 1.5px;
}

/* Terminal body */
.term-body {
  background: transparent;
  padding: 1.5rem 1.8rem;
  min-height: 420px;
  max-height: 62vh;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(0, 217, 255, 0.9);
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.15);
}

/* Scrollbar — thin, matches theme */
.term-body::-webkit-scrollbar { width: 4px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.2), rgba(157, 78, 221, 0.2));
  border-radius: 2px;
}
.term-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.4), rgba(157, 78, 221, 0.4));
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-echo {
  color: var(--cyber-teal);
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.25);
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.term-prompt {
  color: var(--cyber-teal);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e8e8e8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  flex: 1;
  caret-color: var(--cyber-teal);
  text-shadow: 0 0 4px rgba(0, 217, 255, 0.15);
}

.term-input::placeholder {
  color: rgba(0, 217, 255, 0.1);
}

/* Boot — holographic materializes instead of CRT scan */
@keyframes holo-boot {
  0% {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(4px);
  }
  40% {
    opacity: 0.6;
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.crt-screen.booting .term-wrap {
  animation: holo-boot 0.8s ease-out forwards;
}

/* Terms drawer — matches holo style */
.deploy-terms-drawer summary {
  color: var(--accent);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.deploy-terms-drawer summary:hover {
  opacity: 1;
}

.deploy-terms-drawer .intake-body {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(5, 5, 12, 0.92);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: 6px;
  margin-top: 0.5rem;
  backdrop-filter: blur(12px);
}

.deploy-terms-drawer pre {
  color: rgba(0, 217, 255, 0.4);
  font-size: 0.72rem;
}

/* Responsive */
@media (max-width: 768px) {
  .crt-monitor {
    margin: 1.5rem 0.75rem;
  }
  .term-body {
    min-height: 320px;
    font-size: 0.75rem;
    padding: 1rem 1.2rem;
  }
  .crt-power {
    right: -12px;
  }
  .crt-brand {
    bottom: -24px;
    font-size: 0.5rem;
  }
}

@media (max-width: 480px) {
  .term-body {
    min-height: 260px;
    font-size: 0.7rem;
    padding: 0.8rem 1rem;
    line-height: 1.7;
  }
  .term-header {
    padding: 0.4rem 0.8rem;
  }
  .term-dot {
    width: 6px;
    height: 6px;
  }
}

/* Products page category headers */
.products-category {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  padding-bottom: 0.5rem;
}

.products-category-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .term-body {
    min-height: 300px;
    font-size: 0.8rem;
    padding: 1rem;
  }
}

/* Mobile fixes — hero CTA, tagline, pricing, analytics, product images */
@media (max-width: 768px) {
  .tagline {
    font-size: 1.1rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .product-img {
    max-height: 140px;
  }
  .cost-table {
    font-size: 0.85rem;
  }
  .cost-table td {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-stats {
    font-size: 0.8rem;
  }
  .cost-table .cost-bar-cell {
    display: none;
  }
  .product-img {
    max-height: 120px;
  }
}

/* Respect user motion preferences */
@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; }
}

/* Mobile GPU — keep shooting stars off on small screens (fixed pseudo-elements are expensive) */
@media (max-width: 768px) {
  .content::before,
  .content::after {
    display: none !important;
  }
}
