/* Evorix — Coming Soon */

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

:root {
  --cyan:      #00C4CC;
  --cyan-soft: #95D8DE;
  --cyan-deep: #005860;
  --dark-bg:   #080C10;
  --dark-card: #0F1419;
  --dark-line: #1A2030;
  --text:      #F0F2F4;
  --muted:     #8A929A;
  --container: 560px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Inter, system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  isolation: isolate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.bg-nodes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg-nodes.ready { opacity: 1; }

.bg-glow {
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(600px circle at 30% 25%, rgba(0, 196, 204, 0.14), transparent 60%),
    radial-gradient(500px circle at 75% 85%, rgba(0, 88, 96, 0.35), transparent 65%);
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.9;
  animation: drift 18s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.05); }
}

.card {
  width: 100%;
  max-width: var(--container);
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  margin: 0 auto 32px;
  padding: 6px 8px;
  border-radius: 14px;
  transition: transform 0.2s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand img {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 24px rgba(0, 196, 204, 0.35));
}
.wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 auto 28px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cyan-soft);
  background: rgba(0, 196, 204, 0.08);
  border: 1px solid rgba(0, 196, 204, 0.25);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #c8ced4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 36px;
}

.signup { position: relative; }
.form { width: 100%; transition: opacity 0.35s ease, transform 0.35s ease; }
.signup.sent .form {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hp { /* honeypot — hidden from humans */
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  opacity: 0;
}

.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus-within {
  border-color: rgba(0, 196, 204, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 196, 204, 0.12);
}

.field input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  min-width: 0;
}
.field input[type="email"]::placeholder { color: var(--muted); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--dark-bg);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn:hover  { background: var(--cyan-soft); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0, 196, 204, 0.55); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; }
.btn-arrow { transition: transform 0.2s ease; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8, 12, 16, 0.25);
  border-top-color: var(--dark-bg);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}
.btn.is-loading .btn-label,
.btn.is-loading .btn-arrow { opacity: 0; transform: scale(0.9); }
.btn.is-loading .btn-spinner { opacity: 1; }
.btn-label, .btn-arrow { transition: opacity 0.2s ease, transform 0.2s ease; }

@keyframes spin { to { transform: rotate(360deg); } }

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
}
.hint.success { color: var(--cyan-soft); }
.hint.error   { color: #ff8a8a; }

/* ===== Success panel ===== */

.success {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  padding: 12px 6px 4px;
}
.signup.sent .success {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.success-check {
  color: var(--cyan);
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(0, 196, 204, 0.5));
}
.success-check svg { overflow: visible; }

.sc-ring {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transform-origin: center;
  transform: rotate(-90deg);
}
.sc-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.success-check {
  opacity: 0;
  transform: scale(0.7);
  transition: none;
}
.signup.sent .success-check {
  animation: sc-emerge 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.signup.sent .sc-ring {
  animation: sc-ring-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.signup.sent .sc-tick {
  animation: sc-tick-draw 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}
@keyframes sc-ring-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-tick-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-emerge {
  0%   { opacity: 0; transform: scale(0.7); filter: drop-shadow(0 0 0 rgba(0, 196, 204, 0)); }
  45%  { opacity: 1; transform: scale(1.04); filter: drop-shadow(0 0 32px rgba(149, 216, 222, 0.75)); }
  100% { opacity: 1; transform: scale(1);    filter: drop-shadow(0 0 18px rgba(0, 196, 204, 0.5)); }
}

.success-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(6px);
}
.signup.sent .success-title {
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

.success-sub {
  font-size: 15px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
}
.signup.sent .success-sub {
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}
.success-sub #success-email {
  color: var(--cyan-soft);
  font-weight: 500;
}

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Particle burst canvas — positioned behind the text, clipped to the card. */
.burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.signup.sent .burst { opacity: 1; }

.meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--muted);
  list-style: none;
  letter-spacing: 0.02em;
}

.foot {
  margin-top: 56px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.foot .sep { opacity: 0.5; }
.foot a:hover { color: var(--cyan-soft); }

@media (max-width: 520px) {
  .brand img { width: 68px; height: 68px; }
  .wordmark { font-size: 26px; }
  .field { flex-direction: column; padding: 8px; }
  .field input[type="email"] { padding: 14px; }
  .btn { justify-content: center; padding: 14px; width: 100%; }
  .meta { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow, .badge .dot, .card { animation: none; }
  .btn:hover .btn-arrow, .brand:hover { transform: none; }
}
