/* ============================================================
   mine.domain.com — Coming Soon
   Aesthetic: Retro-pixel / Dark Terminal / Minecraft-coded
   ============================================================ */

:root {
  --green:    #4ade80;
  --green-d:  #166534;
  --green-l:  #bbf7d0;
  --dirt:     #92400e;
  --stone:    #3f3f46;
  --bg:       #0a0a0f;
  --bg2:      #111118;
  --bg3:      #1a1a24;
  --border:   #2d2d3d;
  --text:     #d4d4e8;
  --text-dim: #6b6b8a;
  --accent:   #facc15;
  --accent2:  #fb923c;
  --danger:   #f87171;
  --pixel:    'Press Start 2P', monospace;
  --mono:     'VT323', monospace;
  --radius:   0px; /* hard pixel edges */
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--pixel);
  font-size: 10px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Particle canvas ───────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ── Scanlines ─────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
}

/* ── Corner decorations ────────────────────────────────────── */
.corner {
  position: fixed;
  width: 32px; height: 32px;
  z-index: 10;
  pointer-events: none;
}
.corner--tl { top: 16px; left: 16px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.corner--tr { top: 16px; right: 16px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); }
.corner--bl { bottom: 16px; left: 16px; border-bottom: 2px solid var(--green); border-left: 2px solid var(--green); }
.corner--br { bottom: 16px; right: 16px; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }

/* ── Wrapper ───────────────────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ── Status bar ────────────────────────────────────────────── */
.status-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--green);
  animation: blink-dot 1.2s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.status-text { color: var(--green); flex: 1; }
.status-ip   { color: var(--text-dim); font-size: 15px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

/* Pixel logo decoration */
.logo-pixels {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  margin-bottom: 4px;
}
.px-row { display: flex; gap: 3px; }
.px {
  width: 10px; height: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: inline-block;
}
.px.g {
  background: var(--green-d);
  border-color: var(--green);
  box-shadow: 0 0 4px var(--green-d);
}

.site-title {
  font-family: var(--pixel);
  font-size: clamp(14px, 3.5vw, 26px);
  color: var(--green-l);
  letter-spacing: 0.04em;
  text-shadow:
    2px 2px 0 var(--green-d),
    0 0 20px rgba(74,222,128,0.4);
  animation: flicker 8s linear infinite;
}

.site-title .dot { color: var(--accent); }

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.85; }
}

.site-subtitle {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-top: 6px;
}

/* ── Glitch text ───────────────────────────────────────────── */
.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch {
  font-family: var(--pixel);
  font-size: clamp(18px, 5vw, 36px);
  color: var(--accent);
  text-shadow:
    3px 3px 0 var(--dirt),
    0 0 30px rgba(250,204,21,0.5);
  position: relative;
  display: inline-block;
  animation: glitch-base 3s steps(1) infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
}
.glitch::before {
  color: var(--danger);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  transform: translate(-3px, 0);
  animation: glitch-before 3s steps(1) infinite;
}
.glitch::after {
  color: #60a5fa;
  clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%);
  transform: translate(3px, 0);
  animation: glitch-after 3s steps(1) infinite;
}

@keyframes glitch-base {
  0%, 90%, 100% { transform: none; }
  91%  { transform: skewX(-2deg); }
  93%  { transform: none; }
  95%  { transform: skewX(1deg); }
}
@keyframes glitch-before {
  0%, 89%, 95%, 100% { opacity: 0; }
  90%, 94%            { opacity: 1; transform: translate(-4px, 2px); }
}
@keyframes glitch-after {
  0%, 91%, 97%, 100% { opacity: 0; }
  92%, 96%            { opacity: 1; transform: translate(4px, -2px); }
}

.tagline {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
  max-width: 520px;
  margin: 4px auto 0;
}

/* ── Countdown ─────────────────────────────────────────────── */
.countdown-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 2px solid var(--green-d);
  padding: 16px 20px;
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

.cd-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,222,128,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.cd-num {
  font-family: var(--pixel);
  font-size: clamp(24px, 5vw, 40px);
  color: var(--green);
  text-shadow: 0 0 16px rgba(74,222,128,0.7);
  display: block;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  transition: transform 0.1s ease;
}

.cd-num.flip {
  animation: num-flip 0.15s ease;
}
@keyframes num-flip {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0.6); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}

.cd-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cd-sep {
  font-family: var(--pixel);
  font-size: 30px;
  color: var(--green-d);
  align-self: flex-start;
  margin-top: 14px;
  animation: blink-dot 1s ease-in-out infinite;
}

/* ── Feature cards ─────────────────────────────────────────── */
.features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green-d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feat-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.feat-card:hover::after { transform: scaleX(1); }

.feat-icon {
  font-size: 28px;
  line-height: 1;
}

.feat-card h3 {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--green-l);
  letter-spacing: 0.05em;
}

.feat-card p {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Notify form ───────────────────────────────────────────── */
.notify-section {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.notify-label {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.notify-form {
  display: flex;
  width: 100%;
  gap: 0;
}

.nick-input {
  flex: 1;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-right: none;
  color: var(--green-l);
  font-family: var(--mono);
  font-size: 20px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  caret-color: var(--green);
}

.nick-input::placeholder { color: var(--text-dim); }

.nick-input:focus {
  border-color: var(--green-d);
}

.notify-btn {
  background: var(--green-d);
  border: 2px solid var(--green-d);
  color: var(--green-l);
  font-family: var(--pixel);
  font-size: 9px;
  padding: 12px 16px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 0;
}
.notify-btn span, .notify-btn { z-index: 1; position: relative; }

.notify-btn:hover {
  color: var(--bg);
}
.notify-btn:hover::before { transform: scaleX(1); }
.notify-btn:active { transform: scale(0.97); }

.notify-success {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--green);
  letter-spacing: 0.05em;
}

.notify-success.hidden { display: none; }

.waitlist-count {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-dim);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-line {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-sep { color: var(--border); }
.footer-line strong { color: var(--green-l); }

.footer-copy {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
  opacity: 0.5;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
  .wrapper { padding: 20px 14px 40px; gap: 36px; }
  .status-ip { display: none; }
  .cd-block { min-width: 60px; padding: 12px 10px; }
  .notify-form { flex-direction: column; }
  .nick-input { border-right: 2px solid var(--border); border-bottom: none; }
  .notify-btn { width: 100%; }
}
