/* ==========================================================
   TRONARE SALT — Coming Soon
   Dark hacker / cybersecurity theme
   ========================================================== */

:root {
  --bg: #060907;
  --panel-bg: #0a0f0b;
  --green: #39ff88;
  --green-dim: #1c8a4f;
  --green-glow: rgba(57, 255, 136, 0.55);
  --red: #ff3b3b;
  --red-dim: #7a1f1f;
  --amber: #ffb020;
  --text-muted: #6fae86;
  --border: #12351f;
  --font-mono: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--green);
  font-family: var(--font-mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px;
}

/* ---------- Background layers ---------- */

#matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.16;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, transparent 75%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.5;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
}

/* ---------- Status bar ---------- */

.status-bar {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(6, 9, 7, 0.6);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px 1px var(--green-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-time {
  color: var(--green-dim);
  margin-left: 4px;
}

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

/* ---------- Layout ---------- */

.wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ---------- Terminal panel ---------- */

.terminal {
  width: 100%;
  background: linear-gradient(180deg, rgba(10, 15, 11, 0.92), rgba(6, 9, 7, 0.96));
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(57, 255, 136, 0.05),
    0 0 40px rgba(57, 255, 136, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0a120c;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
}
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--green); }

.terminal-path {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 28px 26px 32px;
}

/* ---------- Boot log ---------- */

.boot-log {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--green-dim);
  min-height: 96px;
  margin-bottom: 18px;
}

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

.boot-log .line.ok {
  color: var(--green);
}

.boot-log .prompt {
  color: var(--red);
}

/* ---------- Brand ---------- */

.brand {
  text-align: center;
  margin: 10px 0 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.brand.visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-title {
  margin: 0;
  font-size: clamp(28px, 6vw, 46px);
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--green);
  text-shadow:
    0 0 6px var(--green-glow),
    0 0 18px rgba(57, 255, 136, 0.35),
    0 0 40px rgba(57, 255, 136, 0.2);
}

/* ---------- Coming soon / glitch ---------- */

.coming-soon {
  position: relative;
  text-align: center;
  margin: 10px 0 4px;
  font-size: clamp(20px, 4.2vw, 30px);
  letter-spacing: 0.2em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.coming-soon.visible {
  opacity: 1;
}

.coming-soon.glitch::before,
.coming-soon.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  overflow: hidden;
}

.coming-soon.glitch::before {
  color: var(--red);
  animation: glitch-1 3.2s infinite linear;
  clip-path: inset(0 0 60% 0);
}

.coming-soon.glitch::after {
  color: var(--green);
  animation: glitch-2 3.6s infinite linear;
  clip-path: inset(60% 0 0 0);
}

@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93% { transform: translate(-2px, -1px); opacity: 0.8; }
  95% { transform: translate(2px, 1px); opacity: 0.8; }
  97% { transform: translate(-1px, 0); opacity: 0.5; }
  98% { opacity: 0; }
}

@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0, 0); opacity: 0; }
  91% { transform: translate(2px, 1px); opacity: 0.8; }
  94% { transform: translate(-2px, -1px); opacity: 0.6; }
  96% { transform: translate(1px, 0); opacity: 0.4; }
  97.5% { opacity: 0; }
}

/* ---------- Tagline ---------- */

.tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 24px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.tagline.visible {
  opacity: 1;
}

/* ---------- Progress bar ---------- */

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 460px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.progress-wrap.visible {
  opacity: 1;
}

.progress-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-bar {
  flex: 1;
  height: 10px;
  border: 1px solid var(--border);
  background: #050805;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    45deg,
    var(--green),
    var(--green) 6px,
    var(--green-dim) 6px,
    var(--green-dim) 12px
  );
  box-shadow: 0 0 10px var(--green-glow);
  transition: width 1.8s ease;
}

.progress-pct {
  font-size: 11px;
  color: var(--green);
  min-width: 34px;
  text-align: right;
}

/* ---------- Access note / stay tuned ---------- */

.access-note {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--red);
  margin: 0 0 16px;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-shadow: 0 0 8px rgba(255, 59, 59, 0.35);
}

.access-note.visible {
  opacity: 1;
}

.stay-tuned {
  text-align: center;
  color: var(--green);
  font-size: 13px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.stay-tuned.visible {
  opacity: 1;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  color: var(--green);
}

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

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-top: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .terminal-body {
    padding: 20px 16px 26px;
  }

  .status-bar {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 5px 9px;
  }

  .progress-wrap {
    flex-wrap: wrap;
  }

  .progress-label {
    width: 100%;
  }
}

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