/* ==========================================================================
   SP Tech Services — Coming Soon page
   Concept: the site's own build, shown as a live deploy console.
   Type:  Bricolage Grotesque (display) / IBM Plex Sans (body) / IBM Plex Mono (console, chips)
   Breakpoints: 640px (sm), 960px (md)
   ========================================================================== */

:root {
  --bg:            #08070d;
  --bg-panel:      #100e1c;
  --bg-panel-2:    #17142a;
  --violet:        #8b5cf6;
  --violet-deep:   #4c1d95;
  --lime:          #a3e635;
  --green-deep:    #16a34a;
  --text:          #f2eefc;
  --text-dim:      #948fb3;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
}

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

body {
  background: var(--bg);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ==========================================================================
   Page shell
   ========================================================================== */

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(720px 480px at 50% 38%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--bg);
}

/* ==========================================================================
   Circuit-trace backdrop
   ========================================================================== */

.circuits {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.circuits__trace {
  fill: none;
  stroke-width: 1.4;
}

.circuits__trace--violet { stroke: rgba(139, 92, 246, 0.28); }
.circuits__trace--lime   { stroke: rgba(163, 230, 53, 0.22); }

.circuits__node {
  fill: var(--bg);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.4;
}

.circuits__node--violet { color: var(--violet); }
.circuits__node--lime   { color: var(--lime); }

.circuits__node.is-hit {
  animation: node-hit 0.8s ease-out;
}

@keyframes node-hit {
  0%   { stroke: rgba(255, 255, 255, 0.3); filter: none; }
  12%  { stroke: #ffffff; filter: drop-shadow(0 0 7px currentColor) drop-shadow(0 0 14px currentColor); }
  100% { stroke: rgba(255, 255, 255, 0.3); filter: none; }
}

/* Travels along a trace toward its node; positioned via script.js */
.circuits__pulse {
  opacity: 0;
}

.circuits__pulse--violet { fill: var(--violet); filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.9)); }
.circuits__pulse--lime   { fill: var(--lime);   filter: drop-shadow(0 0 5px rgba(163, 230, 53, 0.9)); }

/* ==========================================================================
   Shared chip component (nav phone, status badge, console chrome share it)
   ========================================================================== */

.chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  font-size: 13px;
  text-decoration: none;
}

.chip--phone {
  padding: 9px 16px;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.chip--phone:hover {
  border-color: var(--border-strong);
  background: var(--bg-panel-2);
}

.chip--status {
  padding: 7px 14px 7px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.18);
  animation: dot-pulse 2s ease-in-out infinite;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.logo {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 9999px;
}

.logo-img {
  height: 24px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 40px;
  margin: auto 0;
  gap: 22px;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  max-width: 16ch;
}

.lede {
  margin-top: -10px;
  max-width: 42ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ==========================================================================
   Console (signature element)
   ========================================================================== */

.console {
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -35px rgba(139, 92, 246, 0.4), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-align: left;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border);
}

.console__dots {
  display: flex;
  gap: 6px;
}

.console__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.console__dots span:nth-child(1) { background: #f87171; }
.console__dots span:nth-child(2) { background: #fbbf24; }
.console__dots span:nth-child(3) { background: #34d399; }

.console__tab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.console__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px 14px;
}

.console__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.console__sym {
  flex: none;
  width: 14px;
  text-align: center;
}

.console__sym--prompt { color: var(--violet); }
.console__sym--ok     { color: var(--lime); }
.console__sym--spin   { color: var(--violet); display: inline-block; }

.console__txt {
  color: var(--text-dim);
  white-space: pre;
}

.console__line--active .console__txt { color: var(--text); }

.console__txt.is-typing::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 13px;
  margin-left: 2px;
  background: var(--text);
  vertical-align: -2px;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.console__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 20px 18px;
}

.console__track {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.console__fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--green-deep), var(--lime));
  transition: width 0.4s ease-out;
}

.console__pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  min-width: 3ch;
  text-align: right;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  color: #0a0713;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 20px 45px -18px rgba(139, 92, 246, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px -16px rgba(139, 92, 246, 0.7);
}

.cta:focus-visible,
.chip--phone:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  position: relative;
  z-index: 1;
  padding: 20px 16px 26px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .nav { padding: 20px 24px; }
  .logo-img { height: 28px; }
  .hero { gap: 26px; padding: 36px 20px 48px; }
  .lede { font-size: 16.5px; }
  .cta { padding: 16px 30px; font-size: 16px; }
}

@media (min-width: 960px) {
  .nav { padding: 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
