/* MoldChem — coming-soon styles (MoldChem design system: dark theme + violet brand) */

/* ── Self-hosted brand fonts ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Merriweather Sans';
  src: url('/assets/fonts/MerriweatherSans-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ── Tokens (MoldChem dark theme + brand violet) ──────────────────────────── */
:root {
  --bg:        #0F0F14;
  --surface:   #1E1E2F;
  --border:    #2D2D44;
  --text:      #E2E2E2;
  --muted:     #A0A0B8;
  --primary:   #A855F7;
  --primary-2: #7C3AED;
  --primary-deep: #4C1D95;
  --gradient:  linear-gradient(135deg, #A855F7 0%, #7C3AED 55%, #4C1D95 100%);
  --success:   #10B981;
  --danger:    #EF4444;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-ui:      'Merriweather Sans', system-ui, sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Ambient: a soft violet glow + faint hexagon field, both decorative. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(40rem 30rem at 85% 110%, rgba(76, 29, 149, 0.18), transparent 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><path d='M30 1L58 17v18L30 51 2 35V17z' fill='none' stroke='%23A855F7' stroke-opacity='0.05' stroke-width='1'/></svg>");
  background-size: 60px 52px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}

main {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1;
}
.wordmark .chem {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 18px;
}
.lede {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 8px;
}
.lede.small { font-size: 0.98rem; margin-bottom: 36px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 44px; }
.btn {
  font-family: var(--font-ui);
  font-size: 1rem; font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; }

/* ── Notify form ──────────────────────────────────────────────────────────── */
.notify { width: 100%; max-width: 440px; }
.notify-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; display: block; }
.notify-row { display: flex; gap: 10px; }
.notify input[type="email"] {
  flex: 1; min-width: 0;
  font-family: var(--font-ui); font-size: 1rem;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.notify input[type="email"]::placeholder { color: #6B6B82; }
.notify input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
/* Honeypot — hidden from humans, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-status { font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.notify-status.ok  { color: var(--success); }
.notify-status.err { color: var(--danger); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px 20px 32px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
footer a:hover { color: var(--text); border-color: var(--primary); }
.sep { margin: 0 10px; opacity: 0.5; }

@media (max-width: 460px) {
  .notify-row { flex-direction: column; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
}
