/* CSS variables from site identity */

:root {
  --bb-kelly:var(--theme-component-primary-1);
  --bb-kelly-dim:var(--theme-catalog-muted-54);
  --bb-bg:var(--theme-component-page-20);
  --bb-panel-bg:var(--theme-catalog-page-56);
  --bb-text:var(--theme-component-ink-18);
  --bb-text-dim:var(--theme-catalog-muted-58);
  --bb-error:var(--theme-component-error-1);
  --bb-glow-primary:0 0 20px var(--theme-component-primary-34);
  --font-tech:'Ultra', Georgia, serif;
  --font-code:'JetBrains Mono', 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color:var(--bb-bg);
  color:var(--bb-text);
  font-family: var(--font-body, 'Geist', sans-serif);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.bb-container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* --- HUD ELEMENTS --- */

#scrollProgress {
  position: fixed;
  top: 80px;
  left: 0;
  width: 0%;
  height: 3px;
  background:var(--bb-kelly);
  box-shadow:0 0 10px var(--bb-kelly);
  z-index: 1001;
  transition: width 0.1s linear;
}

.scan-beam {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background:linear-gradient(90deg, transparent, var(--bb-kelly), transparent);
  box-shadow:0 0 15px var(--bb-kelly);
  z-index: 9998;
  pointer-events: none;
  opacity: 0.15;
  animation: autoScan 10s infinite linear;
}

@keyframes autoScan {

  0% {
    top: -5%;
  }

  100% {
    top: 105%;
  }
}

/* NAVIGATION - MATCHES INDEX EXACTLY */

nav {
  height: 80px;
  background:var(--theme-component-page-21);
  border-bottom:1px solid var(--bb-kelly-dim);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.logo img {
  height: 45px;
  filter:drop-shadow(0 0 5px var(--bb-kelly));
  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  filter:drop-shadow(0 0 12px var(--bb-kelly));
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color:var(--bb-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.3s;
  position: relative;
}

nav ul li a:hover, nav ul li a.active {
  color:var(--bb-kelly);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background:var(--bb-kelly);
  transition: 0.3s;
}

nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

/* HERO / COMMS HEADER */

.hero {
  position: relative;
  padding: 180px 0 100px;
  min-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:radial-gradient(circle at center, var(--theme-catalog-surface-62) 0%, transparent 80%);
  border-bottom:1px solid var(--bb-kelly-dim);
  text-align: center;
}

.bb-hero-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* Particle Canvas */

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

.hero-text {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 800px;
}

.comms-svg {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.dish-rotate {
  transform-origin: 40px 60px;
  animation: sweep 8s ease-in-out infinite;
}

@keyframes sweep {

  0%, 100% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(20deg);
  }
}

.signal-wave {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: signal 2s linear infinite;
  opacity: 0;
}

.signal-wave:nth-child(2) {
  animation-delay: 0.6s;
}

.signal-wave:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes signal {

  0% {
    stroke-dashoffset: 50;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
  padding-left: 2px;
}

.hero p {
  font-size: 1.2rem;
  color:var(--bb-text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* TERMINAL CONTAINER */

.terminal-container {
  background:var(--bb-panel-bg);
  border:1px solid var(--theme-catalog-scene-border-184);
  border-radius:4px;
  overflow: hidden;
  margin: 80px 0;
  box-shadow:0 0 40px var(--theme-catalog-scene-ink-185);
  position: relative;
}

.terminal-header {
  background:var(--theme-catalog-scene-bg-186);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom:1px solid var(--bb-kelly-dim);
  font-family: var(--font-code);
  font-size: 14px;
  color:var(--bb-kelly);
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color:var(--bb-text);
}

.status-blink {
  width: 8px;
  height: 8px;
  background:var(--bb-kelly);
  border-radius:50%;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {

  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.terminal-body {
  padding: 50px;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-family: var(--font-code);
  font-size: 14px;
  color:var(--bb-kelly);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.form-input, .form-textarea {
  width: 100%;
  background:var(--theme-component-page-50);
  border:1px solid var(--theme-component-border-15);
  padding: 15px 20px;
  color:var(--theme-component-ink-5);
  font-family: var(--font-code);
  font-size: max(14px, 0.95rem);
  outline:none;
  border-radius:2px;
  transition: 0.3s;
}

.form-input:focus, .form-textarea:focus {
  border-color:var(--bb-kelly);
  background:var(--theme-catalog-focus-187);
}

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

.btn-transmit {
  width: 100%;
  padding: 20px;
  background:transparent;
  border:1px solid var(--bb-kelly);
  color:var(--bb-kelly);
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  border-radius:2px;
}

.btn-transmit:hover {
  background:var(--bb-kelly);
  color:var(--theme-catalog-ink-74);
  box-shadow:var(--bb-glow-primary);
}

/* TRANSMISSION OVERLAY */

.transmission-overlay {
  position: absolute;
  inset: 0;
  background:var(--bb-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 40px;
  text-align: center;
}

.transmission-overlay.active {
  display: flex;
}

.progress-bar-container {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background:var(--theme-catalog-surface-70);
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background:var(--bb-kelly);
  box-shadow:0 0 10px var(--bb-kelly);
  transition: width 3s linear;
}

.success-message {
  color:var(--bb-kelly);
  font-weight: 700;
  display: none;
  font-size: 1.2rem;
}

/* REVEAL UTILITY */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  filter:blur(4px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
  filter:blur(0px);
}

/* TACTICAL RETICLE - MATCHES INDEX */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  border:1px solid var(--bb-kelly);
  border-radius:50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:0 0 8px var(--theme-component-primary-34);
  background-image:linear-gradient(90deg, var(--bb-kelly) 20%, transparent 20%, transparent 80%, var(--bb-kelly) 80%),
                              linear-gradient(180deg, var(--bb-kelly) 20%, transparent 20%, transparent 80%, var(--bb-kelly) 80%);
  background-position:center;
  background-size:100% 1px, 1px 100%;
  background-repeat:no-repeat;
}

.cursor::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  border-top:1px dotted var(--bb-kelly);
  opacity: 0.4;
}

.cursor::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  border-left:1px dotted var(--bb-kelly);
  opacity: 0.4;
}

.cursor-coords {
  position: absolute;
  right: -85px;
  top: -15px;
  font-family: var(--font-code);
  font-size: 14px;
  color:var(--bb-kelly);
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow:0 0 5px var(--theme-catalog-primary-125);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background:var(--theme-catalog-surface-31);
  border-radius:50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  pointer-events: none;
  box-shadow:0 0 12px var(--theme-catalog-primary-32);
}

.cursor.active {
  width: 85px;
  height: 85px;
  background:var(--theme-catalog-surface-126);
  border-color:var(--theme-component-border-7);
}

footer {
  padding: 80px 0;
  text-align: center;
  border-top:1px solid var(--bb-kelly-dim);
  color:var(--bb-text-dim);
}

@media (max-width: 768px) {

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

  nav ul {
    display: none;
  }

  .terminal-body {
    padding: 30px 20px;
  }

  body {
    cursor: auto;
  }

  .cursor, .cursor-dot {
    display: none;
  }
}

/* BB nav normalization: keeps the command bar locked between root header pages. */

nav {
  box-sizing: border-box;
  height: 80px;
  min-height: 80px;
  padding: 0;
  display: flex;
  align-items: center;
}

nav > .bb-container {
  width: 92%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

nav .logo,
    nav .logo a {
  display: flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}

nav .logo img {
  display: block;
  width: auto;
  height: 45px;
  max-height: 45px;
}

nav .bb-container > div:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 28px;
  min-height: 80px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0;
  line-height: 1;
  letter-spacing: 1.5px;
}

nav ul li a::after {
  bottom: -7px;
}

nav . {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 40px;
}

nav . {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* BB nav normalization mobile guard */

@media (max-width: 768px) {

  nav ul {
    display: none;
  }

  nav > .bb-container {
    width: 92%;
  }

  nav .bb-container > div:last-child {
    gap: 12px;
  }
}

/* =========================================================
       SUGGESTIONS REVAMP: clean feedback channel
    ========================================================= */

:root {
  --bb-ink:var(--theme-component-ink-20);
  --bb-muted:var(--theme-component-muted-9);
  --bb-soft-line:var(--theme-catalog-border-78);
  --bb-panel:var(--theme-catalog-surface-177);
  --bb-accent:var(--theme-component-primary-44);
  --bb-accent-soft:var(--theme-component-primary-45);
  --bb-blue:var(--theme-component-info-5);
}

body {
  background:linear-gradient(var(--theme-catalog-surface-84) 1px, transparent 1px),
        linear-gradient(90deg, var(--theme-catalog-surface-84) 1px, transparent 1px),
        radial-gradient(circle at 80% 14%, var(--theme-catalog-surface-75), transparent 32rem),
        var(--theme-component-page-18);
  background-size:68px 68px, 68px 68px, auto, auto;
  color:var(--bb-ink);
}

.scan-beam,
    #particle-canvas,
    .bb-hero-bg-svg {
  opacity: 0.1;
}

.hero {
  min-height: calc(86svh - 80px);
  padding: 142px 0 82px;
  align-items: flex-start;
  text-align: left;
  background:linear-gradient(90deg, var(--theme-component-page-23), var(--theme-component-page-24) 48%, var(--theme-component-page-25)),
        radial-gradient(circle at 78% 38%, var(--theme-catalog-surface-144), transparent 34rem);
}

.comms-svg {
  display: none;
}

.hero-text {
  max-width: 880px;
  margin: 0;
}

.eyebrow,
    .mini-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border:1px solid var(--theme-catalog-border-88);
  border-radius:999px;
  background:var(--theme-catalog-surface-89);
  color:var(--bb-accent);
  font-family: var(--font-code);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 20px;
  color:var(--bb-ink);
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
  padding-left: 0;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color:var(--bb-muted);
  font-size: clamp(max(15px, 1.05rem), 1.6vw, 1.28rem);
  line-height: 1.7;
}

.suggestion-actions,
    .suggestion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.suggestion-actions a,
    .suggestion-links a {
  color:var(--bb-ink);
  text-decoration: none;
  border:1px solid var(--bb-soft-line);
  border-radius:999px;
  padding: 10px 14px;
  background:var(--theme-catalog-surface-90);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.suggestion-actions a:first-child {
  background:var(--bb-accent);
  border-color:var(--bb-accent);
  color:var(--theme-catalog-primary-91);
  font-weight: 800;
}

.suggestion-actions a:hover,
    .suggestion-links a:hover {
  border-color:var(--theme-catalog-border-92);
  background:var(--bb-accent-soft);
  transform: translateY(-2px);
}

.suggestions-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: start;
  margin: -54px auto 76px;
  position: relative;
  z-index: 3;
}

.suggestion-guide,
    .terminal-container {
  border:1px solid var(--bb-soft-line);
  border-radius:8px;
  background:linear-gradient(135deg, var(--theme-catalog-scene-bg-188), var(--theme-catalog-scene-bg-189));
  box-shadow:0 24px 80px var(--theme-catalog-scene-ink-190);
}

.suggestion-guide {
  padding: 30px;
}

.suggestion-guide h2 {
  margin: 14px 0;
  color:var(--bb-ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.suggestion-guide p {
  color:var(--bb-muted);
  font-size: max(15px, 1.02rem);
  line-height: 1.7;
}

.suggestion-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.suggestion-list li {
  border-top:1px solid var(--bb-soft-line);
  padding-top: 14px;
}

.suggestion-list strong {
  display: block;
  color:var(--bb-ink);
  margin-bottom: 4px;
}

.suggestion-list span {
  color:var(--bb-muted);
  line-height: 1.55;
}

.terminal-container {
  margin: 0;
  overflow: hidden;
}

.terminal-header {
  background:var(--theme-catalog-scene-bg-191);
  border-bottom:1px solid var(--bb-soft-line);
  letter-spacing: 0;
}

.terminal-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  color:var(--bb-accent);
  letter-spacing: 0;
}

.form-input,
    .form-textarea {
  border:1px solid var(--bb-soft-line);
  border-radius:6px;
  background:var(--theme-catalog-surface-169);
  color:var(--bb-ink);
  font-family: var(--font-tech);
  font-size: 1rem;
}

.form-input::placeholder,
    .form-textarea::placeholder {
  color:var(--theme-catalog-ink-192);
}

.form-input:focus,
    .form-textarea:focus {
  border-color:var(--theme-catalog-focus-193);
  background:var(--theme-catalog-focus-194);
}

.form-textarea {
  min-height: 180px;
}

.btn-transmit {
  border-radius:6px;
  background:var(--bb-accent);
  border-color:var(--bb-accent);
  color:var(--theme-catalog-primary-91);
  letter-spacing: 0;
  text-transform: none;
}

.btn-transmit:hover {
  background:var(--theme-catalog-surface-195);
  color:var(--theme-catalog-primary-91);
}

.form-note {
  margin-top: 14px;
  color:var(--bb-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 980px) {

  .suggestions-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 126px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .suggestions-shell {
    margin-top: -30px;
  }
}
