/* =========================================================
   CMH Group — Launch / Coming Soon
   ========================================================= */

:root {
  --bg: #0a0a0f;
  --bg-elev: #10101a;
  --bg-card: #14141f;
  --line: color-mix(in oklab, #ffffff 8%, transparent);
  --line-soft: color-mix(in oklab, #ffffff 4%, transparent);
  --text: #e8e7ef;
  --text-muted: #9a98ad;
  --text-dim: #6c6a82;
  --accent: #ffb347;
  --accent-3: #8c7bff;
  --warn: #facc15;
  --err: #f87171;

  --radius: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --pad-x: clamp(20px, 4vw, 56px);

  --serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --size-h1: clamp(2.6rem, 1.5rem + 5.2vw, 6rem);
  --size-body: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1; display: flex; flex-direction: column; }

h1,h2,h3,h4 { letter-spacing: -0.02em; line-height: 1.08; margin: 0; font-weight: 600; color: var(--text); }
h1 { font-size: var(--size-h1); }

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }

.serif-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

/* ───── background atmosphere ───── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.orb {
  position: fixed; pointer-events: none; z-index: 0;
  width: 720px; height: 720px; border-radius: 50%;
  filter: blur(120px); opacity: 0.45;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb-a { top: -280px; right: -200px; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); animation-duration: 22s; }
.orb-b { bottom: -360px; left: -240px; background: radial-gradient(circle, var(--accent-3) 0%, transparent 65%); opacity: 0.3; animation-duration: 18s; animation-delay: -6s; }

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.02); }
  100% { transform: translate(-40px, -20px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}



/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: color-mix(in oklab, #ffffff 3%, transparent); }

/* ───── launch hero ───── */
.launch-hero {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px var(--pad-x);
}
.launch-content {
  max-width: 780px; width: 100%;
  text-align: center;
}
.brand-center {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.brand-center .brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg-elev));
  color: var(--accent); border: 1px solid var(--line);
}
.brand-center .brand-name {
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
}

.eyebrow-launch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in oklab, #ffffff 3%, transparent);
  margin: 0 0 24px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); } 70% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.launch-title {
  font-weight: 600; letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.launch-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  max-width: 480px; margin: 0 auto 32px;
  color: var(--text-muted);
}

/* ───── launch actions ───── */
.launch-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.launch-actions .subscribe-form {
  display: flex; gap: 8px; width: 100%; max-width: 440px;
}
.subscribe-form input {
  flex: 1; min-width: 0;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 0.95rem;
  font-family: var(--sans); outline: none;
}
.subscribe-form input::placeholder { color: var(--text-dim); }
.subscribe-form input:focus { border-color: var(--accent); }
.subscribe-form button {
  padding: 12px 24px; border-radius: 999px; border: none;
  background: var(--text); color: var(--bg);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--sans); white-space: nowrap;
  transition: background 0.25s var(--ease);
}
.subscribe-form button:hover { background: var(--accent); }

.launch-contact {
  margin: 0; font-size: 0.95rem;
}
.launch-contact a {
  color: var(--accent); font-weight: 500;
}
.launch-contact a:hover { text-decoration: underline; }

.coming-badge {
  display: inline-block;
  padding: 6px 18px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ───── launch footer ───── */
.launch-footer {
  position: relative; z-index: 2;
  text-align: center;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--line-soft);
}
.launch-footer p {
  margin: 0; font-size: 0.8rem; color: var(--text-dim);
}

/* ───── modal ───── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, #000 60%, transparent);
  display: grid; place-items: center;
  padding: var(--pad-x);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  max-width: 400px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translateY(12px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.modal-icon.thanks { color: var(--accent); background: color-mix(in oklab, var(--accent) 16%, transparent); }
.modal-icon.already { color: var(--warn); background: color-mix(in oklab, var(--warn) 16%, transparent); }
.modal-icon.error { color: var(--err); background: color-mix(in oklab, var(--err) 16%, transparent); }
.modal h3 {
  font-size: 1.25rem;
}
.modal p {
  font-size: 0.95rem; color: var(--text-muted); margin: 0 0 12px;
}
.modal-close-btn {
  padding: 10px 28px; border-radius: 999px; border: none;
  background: var(--text); color: var(--bg);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  font-family: var(--sans);
  transition: background 0.25s var(--ease);
}
.modal-close-btn:hover { background: var(--accent); }

/* ───── responsive ───── */
@media (max-width: 560px) {
  .launch-actions .subscribe-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition: none !important; }
}
