/* ==========================================
   VibePentester — Coming Soon Styles
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --bg:          #0a0e17;
  --bg-surface:  #0f1422;
  --bg-card:     #141a2a;
  --border:      #1e2a42;
  --text:        #c8d6e5;
  --text-dim:    #5a6a85;
  --text-bright: #eef2f7;
  --accent:      #00e5a0;
  --accent-dim:  #00e5a033;
  --accent2:     #7c5cfc;
  --accent2-dim: #7c5cfc33;
  --red:         #ff5f5f;
  --yellow:      #ffd95f;
  --green:       #00e5a0;

  /* Typography */
  --ff-sans:  'Outfit', system-ui, -apple-system, sans-serif;
  --ff-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs:  .25rem;
  --space-sm:  .5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Animated Grid Background --- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,160,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Scan line effect */
.scan-line {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .15;
  z-index: 1;
  animation: scanDown 6s ease-in-out infinite;
}

@keyframes scanDown {
  0%   { top: -5%; }
  100% { top: 105%; }
}

/* --- Particles Canvas --- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Main Content --- */
main {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Top Bar / Nav --- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-bright);
  user-select: none;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--accent);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--accent)); }
  50%      { opacity: .6; filter: drop-shadow(0 0 2px var(--accent)); }
}

.logo-text .accent {
  color: var(--accent);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--text-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  background: rgba(0,229,160,.06);
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  animation: fadeUp .8s ease-out;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  animation: fadeUp .8s ease-out both;
}
.hero-title .line:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) { animation-delay: .25s; }
.hero-title .line:nth-child(3) { animation-delay: .4s; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
  animation: fadeUp .8s ease-out .5s both;
}

/* --- Countdown --- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  animation: fadeUp .8s ease-out .6s both;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.cd-num {
  font-family: var(--ff-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
}

.cd-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-top: var(--space-xs);
}

.cd-sep {
  font-family: var(--ff-mono);
  font-size: 1.8rem;
  color: var(--accent);
  opacity: .5;
  animation: blink 1s ease-in-out infinite;
}

/* --- Signup Form --- */
.signup-form {
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp .8s ease-out .7s both;
}

.input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color .3s, box-shadow .3s;
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.input-wrap input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: transparent;
  color: var(--text-bright);
  font-family: var(--ff-mono);
  font-size: .95rem;
  outline: none;
}

.input-wrap input::placeholder {
  color: var(--text-dim);
}

.input-wrap button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, #00c98a 100%);
  color: var(--bg);
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}

.input-wrap button:hover {
  opacity: .9;
  transform: scale(1.02);
}

.input-wrap button:active {
  transform: scale(.98);
}

.btn-icon {
  transition: transform .2s;
}

.input-wrap button:hover .btn-icon {
  transform: translateX(3px);
}

.form-note {
  margin-top: var(--space-sm);
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
}

.form-success {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0,229,160,.08);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: .85rem;
  text-align: center;
}

/* --- Terminal --- */
.terminal-section {
  padding: var(--space-xl) 0;
}

.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0,229,160,.05),
    0 20px 60px rgba(0,0,0,.4);
  animation: fadeUp .8s ease-out .9s both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red    { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green  { background: var(--green); }

.terminal-title {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: var(--space-lg);
  font-family: var(--ff-mono);
  font-size: .85rem;
  line-height: 1.8;
  min-height: 220px;
  overflow: hidden;
}

.terminal-line {
  white-space: nowrap;
  overflow: hidden;
}

.prompt {
  color: var(--accent);
  margin-right: var(--space-sm);
  user-select: none;
}

.cmd {
  color: var(--text-bright);
}

.output {
  color: var(--text-dim);
}

.output.success {
  color: var(--accent);
}

.output.warn {
  color: var(--yellow);
}

.output.info {
  color: var(--accent2);
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: cursorBlink .7s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-2xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl) var(--space-lg);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  animation: fadeUp .8s ease-out 1s both;
}

.feature-card:nth-child(2) { animation-delay: 1.15s; }
.feature-card:nth-child(3) { animation-delay: 1.3s; }

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-dim);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  main {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .countdown {
    gap: var(--space-xs);
  }

  .cd-block {
    min-width: 56px;
    padding: var(--space-sm);
  }

  .cd-num {
    font-size: 1.4rem;
  }

  .input-wrap {
    flex-direction: column;
    border-radius: 12px;
  }

  .input-wrap input {
    text-align: center;
    padding: var(--space-md);
  }

  .input-wrap button {
    justify-content: center;
    border-radius: 0 0 11px 11px;
  }

  .terminal-body {
    padding: var(--space-md);
    font-size: .75rem;
  }

  .footer {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
