/* =====================================================
   DevMeister Software Lab — style.css
   ===================================================== */

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

/* ── Design tokens ── */
:root {
  --bg:       #07090f;
  --blue:     #3b7ef8;
  --blue-d:   #1a5de8;
  --blue-g:   rgba(59, 126, 248, 0.28);
  --blue-s:   rgba(59, 126, 248, 0.10);
  --red:      #e03535;
  --red-g:    rgba(224, 53, 53, 0.25);
  --white:    #edf2ff;
  --muted:    #4d5a72;
  --border:   rgba(255, 255, 255, 0.07);
  --card:     rgba(255, 255, 255, 0.035);
  --sans:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', monospace;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =====================================================
   BACKGROUND EFFECTS
   ===================================================== */

/* Grid lines */
.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 20%, transparent 100%);
}

/* Ambient glowing orbs */
.orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; filter: blur(110px); z-index: 0;
}
.orb-1 {
  width: 650px; height: 650px;
  background: var(--blue-g);
  top: -200px; left: -180px;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--red-g);
  bottom: -80px; right: -80px;
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 260px; height: 260px;
  background: var(--blue-g);
  bottom: 20%; left: 60%;
  opacity: 0.4;
  animation: drift 32s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0)       scale(1);    }
  to   { transform: translate(35px, 25px) scale(1.1);  }
}

/* Particle canvas */
#cv { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem 2rem;
  gap: 1.5rem;
}

/* =====================================================
   LOGO
   ===================================================== */
.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo {
  /* El fondo del logo (#07090f) coincide exactamente
     con el fondo del site — se integra sin recuadro */
  width: clamp(320px, 55vw, 700px);
  height: auto;
  border-radius: 0;
  background: transparent;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.4s, opacity 0.4s;
  user-select: none;
  display: block;
}
.logo:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  animation: fadeUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.badge:hover { border-color: var(--blue); color: var(--white); }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(224, 53, 53, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(224, 53, 53, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(224, 53, 53, 0);   }
}

/* Headline */
.headline {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--white);
}
.grad {
  background: linear-gradient(110deg, var(--blue) 10%, #90c0ff 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subline */
.sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
}

/* =====================================================
   COUNTDOWN
   ===================================================== */
.clock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-g), transparent);
}
.unit:hover {
  border-color: rgba(59, 126, 248, 0.4);
  background: var(--blue-s);
}

.val {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
.val.flip { animation: flip 0.25s ease; }
@keyframes flip {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.lbl {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.sep {
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--muted);
  opacity: 0.45;
  margin-bottom: 1.2rem;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.1;  }
}

/* =====================================================
   NOTIFY FORM
   ===================================================== */
.form {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-s);
}

.inp {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 1.1rem;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.inp::placeholder { color: var(--muted); }

.btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.4rem;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn:hover         { background: var(--blue-d); }
.btn:hover svg     { transform: translateX(3px); }
.btn:active        { transform: scale(0.97); }

.err {
  color: var(--red);
  font-size: 0.82rem;
  font-family: var(--mono);
}
.ok {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(59, 126, 248, 0.4);
  border-radius: 14px;
  background: var(--blue-s);
  color: var(--white);
  font-size: 0.95rem;
  animation: fadeUp 0.5s ease both;
}

/* =====================================================
   TECH TAGS
   ===================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  animation: fadeUp 0.9s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  cursor: default;
}
.tag:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-s);
}

/* =====================================================
   FOOTER
   ===================================================== */
.foot {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.6rem;
}
.foot-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
  opacity: 0.75;
}
.foot-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 520px) {
  .headline       { font-size: 2.5rem; }
  .unit           { min-width: 64px; padding: 0.8rem 0.5rem; }
  .val            { font-size: 1.5rem; }
  .sep            { font-size: 1.3rem; margin-bottom: 1rem; }
  .btn span       { display: none; }
  .btn            { padding: 0.9rem 1rem; }
  .foot           { flex-direction: column; align-items: center; text-align: center; }
}
