/* ===== RabbitClip — Coming Soon (Matrix theme) ===== */

:root {
  --green: #00ff41;
  --green-dim: #00b32d;
  --green-glow: rgba(0, 255, 65, 0.65);
  --bg: #000000;
}

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

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--green);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* Matrix rain canvas fills the viewport behind everything */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Centered foreground content */
.overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.panel {
  width: 100%;
  max-width: 640px;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: rgba(0, 12, 2, 0.55);
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.12),
    inset 0 0 30px rgba(0, 255, 65, 0.05);
}

/* ===== Status line ===== */
.status {
  font-size: clamp(0.75rem, 2.6vw, 0.95rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ===== Headline + subline ===== */
.headline {
  margin-top: 1.6rem;
  font-family: "Orbitron", "Share Tech Mono", monospace;
  font-weight: 600;
  font-size: clamp(1.4rem, 5.5vw, 2.5rem);
  line-height: 1.2;
  color: #d6ffe2;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.subline {
  margin: 1rem auto 0;
  max-width: 46ch;
  font-size: clamp(0.9rem, 3.2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(0, 255, 65, 0.78);
  overflow-wrap: break-word;
}

/* Brand word inside the subline — lowercase, a touch bolder + glowing */
.brandword {
  font-weight: 800;
  color: #d6ffe2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px var(--green-glow);
}

/* ===== Footer ===== */
.footer {
  margin-top: 2.2rem;
  font-size: clamp(0.7rem, 2.4vw, 0.85rem);
  letter-spacing: 1px;
  color: rgba(0, 255, 65, 0.5);
}

.footer a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 65, 0.35);
  transition: color 0.2s, text-shadow 0.2s, border-color 0.2s;
}

.footer a:hover {
  color: #4dff7a;
  border-color: var(--green);
  text-shadow: 0 0 10px var(--green-glow);
}

/* ===== Responsive tweaks ===== */
/* Tablets / large phones */
@media (max-width: 600px) {
  .panel {
    border-radius: 12px;
  }
  .headline br {
    display: none; /* let it wrap naturally on narrow screens */
  }
}

/* Small phones */
@media (max-width: 380px) {
  .status {
    letter-spacing: 2px;
  }
}

/* Short / landscape screens — keep everything visible without clipping */
@media (max-height: 480px) {
  .overlay {
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .headline {
    margin-top: 1rem;
  }
  .footer {
    margin-top: 1.4rem;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none !important;
  }
}
