/* Shared app-style terminal header for main site pages */
.scc-global-header {
  width: 100%;
}

.scc-global-header .wrap {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

.scc-header-container {
  width: 100%;
  padding-top: 18px;
  padding-bottom: 8px;
}

.scc-terminal-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(124, 255, 178, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(0, 225, 255, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 255, 178, 0.08), transparent 28%),
    linear-gradient(180deg, #10141b 0%, #0b0f15 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  color: #eafcff;
  margin: 0 0 18px;
}

.scc-terminal-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.25;
}

.scc-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124, 255, 178, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

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

.scc-terminal-dot.red { background: #ff5f57; }
.scc-terminal-dot.yellow { background: #febc2e; }
.scc-terminal-dot.green { background: #28c840; }

.scc-terminal-title {
  margin-left: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #8fb4c0;
  font-family: Consolas, Monaco, monospace;
}

.scc-terminal-body {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 24px;
}

.scc-terminal-brand-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
}

.scc-header-auth-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.scc-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(124, 255, 178, 0.45);
  transition: filter 120ms ease, transform 120ms ease;
}

.scc-header-btn--signin {
  color: #08140f;
  background: linear-gradient(135deg, #7cffb2, #00e1ff);
  box-shadow: 0 4px 18px rgba(0, 225, 255, 0.22);
}

.scc-header-btn--signin:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.scc-terminal-logo-wrap {
  width: 92px;
  height: 92px;
  min-width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(124, 255, 178, 0.16);
  box-shadow:
    0 0 20px rgba(124, 255, 178, 0.12),
    0 0 30px rgba(0, 225, 255, 0.06);
}

.scc-terminal-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: auto;
}

.scc-terminal-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 320px;
}

.scc-terminal-ascii {
  margin: 0;
  white-space: pre;
  font-family: Consolas, Monaco, monospace;
  font-size: 16px;
  line-height: 1.12;
  color: #7cffb2;
  text-shadow:
    0 0 8px rgba(124, 255, 178, 0.35),
    0 0 16px rgba(124, 255, 178, 0.10);
  opacity: 0;
  transform: translateY(6px);
  animation: sccAsciiIn 700ms ease forwards;
  animation-delay: 120ms;
}

.scc-terminal-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(4px);
  animation: sccFadeUp 600ms ease forwards;
  animation-delay: 520ms;
}

.scc-terminal-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #00e1ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  animation: sccFadeUp 600ms ease forwards;
  animation-delay: 720ms;
}

.scc-terminal-boot {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(124, 255, 178, 0.10);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  color: #cdeff4;
}

.scc-boot-line {
  opacity: 0;
  transform: translateY(3px);
  margin: 6px 0;
  animation: sccBootLine 450ms ease forwards;
  /* animation-delay set per line in JS (page-aware boot sets, variable line counts) */
}

.scc-boot-line--post {
  animation-duration: 480ms;
}

.scc-boot-line .prompt {
  color: #7cffb2;
  font-weight: 700;
  margin-right: 8px;
}

.scc-boot-line:last-child {
  color: #7cffb2;
  font-weight: 700;
}

.scc-terminal-support {
  margin: 12px 0 0;
  padding: 0 2px;
  min-height: 1.35em;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #9ec9d4;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.scc-terminal-support--visible {
  opacity: 1;
  transform: translateY(0);
}

.scc-global-header-cta-mount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.scc-header-marketing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(124, 255, 178, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: #eafcff;
  transition: filter 120ms ease, transform 120ms ease;
}

.scc-header-marketing-cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.scc-header-marketing-cta--primary {
  border-color: rgba(124, 255, 178, 0.55);
  background: linear-gradient(135deg, #7cffb2, #00e1ff);
  color: #061018;
  box-shadow: 0 4px 16px rgba(0, 225, 255, 0.18);
}

.scc-header-marketing-cta--secondary {
  border-color: rgba(100, 140, 155, 0.55);
  background: rgba(16, 34, 39, 0.55);
}

.scc-terminal-banner.ready .scc-terminal-boot::after {
  content: "_";
  display: inline-block;
  margin-left: 4px;
  color: #7cffb2;
  animation: sccBlink 1s steps(1) infinite;
}

.scc-nav-feedback-slot {
  display: inline;
}

.scc-nav-feedback.scc-nav-feedback--pending {
  font-weight: 600;
  color: #ffb86c;
}

.scc-header-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(0, 0.72fr);
  gap: 12px;
  width: 100%;
  max-width: none;
}

/* Community is always the last group — give Website + App more width so Website links stay on one row. */
.scc-header-links > .scc-link-group:last-child {
  padding: 8px;
  gap: 6px;
}

.scc-header-links > .scc-link-group:last-child .scc-link-title {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.scc-header-links > .scc-link-group:last-child a {
  padding: 5px 6px;
  font-size: 11px;
}

.scc-link-group {
  border: 1px solid rgba(124, 255, 178, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scc-link-title {
  font-size: 11px;
  color: #8fb4c0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 4px;
}

.scc-link-group a {
  border: 1px solid rgba(64, 101, 114, 0.75);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: #d4f5ff;
  background: rgba(16, 34, 39, 0.45);
  transition: filter 120ms ease, transform 120ms ease;
  text-decoration: none;
}

.scc-link-group a:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.scc-link-group a.active {
  border-color: rgba(124, 255, 178, 0.9);
  color: #08140f;
  background: linear-gradient(135deg, #7cffb2, #00e1ff);
}

/* Hide legacy page headers once shared header is mounted */
.scc-has-global-header .site-header,
.scc-has-global-header .shell > .header {
  display: none !important;
}

@keyframes sccAsciiIn {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

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

@keyframes sccBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
  .scc-header-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .scc-global-header .wrap {
    width: 90%;
  }

  .scc-terminal-body {
    padding: 18px;
  }

  .scc-terminal-brand-row {
    align-items: flex-start;
    gap: 16px;
  }

  .scc-header-auth-cta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .scc-header-btn--signin {
    width: 100%;
    max-width: 280px;
  }

  .scc-terminal-logo-wrap {
    width: 76px;
    height: 76px;
    min-width: 76px;
  }

  .scc-terminal-logo {
    width: 52px;
    height: 52px;
  }

  .scc-terminal-ascii {
    font-size: 12px;
  }

  .scc-terminal-name {
    font-size: 22px;
  }

  .scc-terminal-subtitle {
    font-size: 12px;
  }

  .scc-terminal-boot {
    font-size: 12px;
  }

  .scc-link-group {
    gap: 6px;
  }
}

