/* Coming-soon page. Values from the EvariLABS brand tokens (Living Night set). */
:root {
  --bg-deep: #0a0f14;
  --bg-dark: #0f1419;
  --bg-card: #1a222d;
  --accent: #4ea3dc;
  --accent-light: #7dbde8;
  --light-warm: #ffefd5;
  --text-white: rgba(255, 255, 255, .95);
  --text-light: rgba(255, 255, 255, .75);
  --text-muted: rgba(255, 255, 255, .5);
  --border-light: rgba(255, 255, 255, .08);
  --success: #22c55e;
  --error: #f87171;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { background: var(--bg-deep); }

body.soon {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* A pool of warm light from an overhead luminaire, fading into night. */
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(255, 239, 213, .13), rgba(255, 239, 213, .04) 45%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(78, 163, 220, .07), transparent 70%),
    var(--bg-deep);
}

#page {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 32px;
}

/* Calculation grid: faint photometric points, brightest under the light. */
.soon-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 239, 213, .22) 1px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, #000 0%, rgba(0,0,0,.35) 55%, transparent 85%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, #000 0%, rgba(0,0,0,.35) 55%, transparent 85%);
  animation: breathe 9s var(--ease) infinite alternate;
}

@keyframes breathe {
  from { opacity: .55; }
  to   { opacity: 1; }
}

.soon-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  text-align: center;
  animation: rise .9s var(--ease) both;
}

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

.soon-logo {
  display: block;
  width: 320px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 56px;
}

.soon-eyebrow {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.soon-wrap h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-white);
  text-wrap: balance;
}

.soon-lead {
  max-width: 34em;
  text-wrap: pretty;
  margin: 0 auto 40px;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.8;
}

.soon-lead em {
  font-style: normal;
  font-weight: 500;
  color: var(--light-warm);
}

/* Form */
.soon-form { max-width: 480px; margin: 0 auto; }

.soon-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.soon-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(26, 34, 45, .7);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.soon-row:focus-within {
  border-color: rgba(78, 163, 220, .55);
  box-shadow: 0 0 0 4px rgba(78, 163, 220, .12);
}

.soon-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--text-white);
  background: transparent;
  border: 0;
  outline: none;
}

.soon-row input::placeholder { color: var(--text-muted); }

.soon-row button {
  flex: none;
  padding: 12px 26px;
  font: inherit;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--bg-deep);
  background: var(--accent);
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.soon-row button:hover { background: var(--accent-light); }
.soon-row button:active { transform: scale(.98); }
.soon-row button:focus-visible { outline: 2px solid var(--light-warm); outline-offset: 2px; }
.soon-row button:disabled { opacity: .65; cursor: progress; }

.soon-msg {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-size: .95rem;
}
.soon-msg.is-ok { color: var(--success); }
.soon-msg.is-error { color: var(--error); }

.soon-fine {
  margin: 4px 0 0;
  font-size: .8125rem;
  color: var(--text-muted);
}

/* Footer */
.soon-footer {
  padding: 24px 16px 32px;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-muted);
}
.soon-footer p { margin: 0; }
.soon-footer a { color: var(--text-light); text-decoration: none; border-bottom: 1px solid var(--border-light); }
.soon-footer a:hover { color: var(--text-white); border-color: var(--accent); }

/* 404 in coming-soon mode */
.soon-404 { text-align: center; }
.soon-404 a { color: var(--accent-light); }

@media (max-width: 520px) {
  #page { padding-top: 48px; }
  .soon-logo { margin-bottom: 40px; }
  .soon-row { flex-direction: column; border-radius: 16px; }
  .soon-row button { border-radius: 10px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .soon-grid, .soon-wrap { animation: none; }
}
