@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --card: rgba(255, 255, 255, .88);
  --ink: #242321;
  --muted: #69736b;
  --soft: #a5ada4;
  --line: rgba(100, 117, 104, .18);
  --coral: #cb674e;
  --coral-soft: rgba(203, 103, 78, .11);
  --sage: #647568;
  --violet: #7869be;
  --cyan: #63c1ce;
  --shadow: 0 28px 80px rgba(67, 62, 52, .13), 0 4px 18px rgba(67, 62, 52, .06);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #201f1d;
  --card: rgba(48, 46, 43, .9);
  --ink: #f8f5ef;
  --muted: #b3bdb4;
  --soft: #818d83;
  --line: rgba(160, 170, 160, .2);
  --coral-soft: rgba(203, 103, 78, .17);
  --shadow: 0 28px 90px rgba(0, 0, 0, .3), 0 4px 18px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  transition: background .45s ease, color .45s ease;
}
button { font: inherit; }

.atmosphere, .grain, .glow { position: fixed; inset: 0; pointer-events: none; }
.atmosphere { overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.72), transparent 42%); }
:root[data-theme="dark"] .atmosphere { background: radial-gradient(circle at 50% 42%, rgba(108, 105, 142, .12), transparent 42%); }
.grain { opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
:root[data-theme="dark"] .grain { opacity: .1; mix-blend-mode: screen; }
.glow { filter: blur(70px); opacity: .26; }
.glow--one { inset: auto auto 6vh -14vw; width: 38vw; height: 38vw; background: var(--cyan); border-radius: 50%; animation: drift 12s ease-in-out infinite alternate; }
.glow--two { inset: 6vh -10vw auto auto; width: 32vw; height: 32vw; background: var(--violet); border-radius: 50%; animation: drift 15s ease-in-out -4s infinite alternate-reverse; }

.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.coming-card {
  position: relative;
  width: min(100%, 780px);
  min-height: 820px;
  overflow: hidden;
  padding: 58px clamp(24px, 6vw, 70px) 24px;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: card-in .8s cubic-bezier(.2,.8,.2,1) both;
}
.coming-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 42%, rgba(203,103,78,.04)); }
.card-grid { position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent, black 25%, black 70%, transparent); }
.theme-toggle { position: absolute; top: 22px; right: 24px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--sage); background: transparent; font-size: 25px; transition: color .25s, transform .25s, background .25s; }
.theme-toggle:hover { transform: rotate(18deg); color: var(--coral); background: var(--coral-soft); }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }

.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; color: var(--muted); }
.brand-mark { width: 60%; height: 60%; display: grid; place-items: center; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-line { width: 1px; height: 26px; background: var(--line); }
.brand-caption { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(203,103,78,.22); border-radius: 999px; color: var(--coral); background: var(--coral-soft); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow__dot, .footer-status span { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(203,103,78,.5); animation: ping 2s infinite; }
h1 { max-width: 650px; margin: 22px auto 14px; font-size: clamp(36px, 6vw, 64px); line-height: 1.03; letter-spacing: -.065em; font-weight: 800; }
h1 em { color: var(--coral); font-style: normal; position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; right: 2%; bottom: -7px; left: 1%; height: 7px; background: var(--coral); opacity: .25; border-radius: 50%; transform: rotate(-2deg); }
.hero-copy__lead { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.75; }

.neural-stage { position: relative; width: min(100%, 570px); height: 250px; margin: 28px auto 15px; }
#neuralCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.neural-core { position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; display: grid; place-items: center; transform: translate(-50%, -50%); }
.core-ring { position: absolute; border: 1px solid var(--coral); border-radius: 50%; opacity: .5; }
.core-ring--outer { inset: -22px; border-color: var(--cyan); animation: spin 15s linear infinite; border-style: dashed; }
.core-ring--inner { inset: -7px; border-color: var(--coral); animation: spin-reverse 8s linear infinite; }
.core-pulse { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(203,103,78,.95) 0 7%, rgba(203,103,78,.32) 8% 22%, rgba(120,105,190,.22) 46%, transparent 70%); box-shadow: 0 0 50px rgba(203,103,78,.34); animation: breathe 3s ease-in-out infinite; }
.core-label { position: relative; z-index: 1; color: white; font-family: "DM Mono", monospace; font-size: 14px; line-height: 1.1; letter-spacing: .08em; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.core-label small { font-size: 7px; letter-spacing: .17em; }
.stage-tag { position: absolute; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: color-mix(in srgb, var(--card) 76%, transparent); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.stage-tag::before { content: ""; width: 5px; height: 5px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.stage-tag--top { top: 10px; left: 10%; }
.stage-tag--right { top: 49%; right: 1%; }
.stage-tag--bottom { bottom: 5px; left: 14%; }

.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 7px auto 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.status-item { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.status-item span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-item i { width: 5px; height: 5px; flex: none; margin-left: auto; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.status-icon { color: var(--coral); font-size: 9px; }
.launch-note { display: flex; align-items: center; gap: 15px; justify-content: center; text-align: center; }
.launch-note__line { width: 42px; height: 1px; background: var(--coral); opacity: .45; }
.launch-note p { margin: 0; color: var(--coral); font-size: 12px; line-height: 1.65; }
.launch-note strong { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.launch-note p span { color: var(--muted); font-size: 11px; }
.card-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 42px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--soft); font-family: "DM Mono", monospace; font-size: 9px; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; }
.footer-status span { width: 5px; height: 5px; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); animation-duration: 2.5s; }

@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes breathe { 0%,100% { transform: scale(.9); opacity: .78; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(203,103,78,.45); } 70% { box-shadow: 0 0 0 7px rgba(203,103,78,0); } 100% { box-shadow: 0 0 0 0 rgba(203,103,78,0); } }
@keyframes drift { from { transform: translate3d(-4%, 2%, 0) scale(1); } to { transform: translate3d(5%, -5%, 0) scale(1.12); } }

@media (max-width: 560px) {
  .page-shell { padding: 14px 10px; }
  .coming-card { min-height: calc(100vh - 28px); border-radius: 22px; padding: 45px 19px 20px; }
  .theme-toggle { top: 13px; right: 13px; }
  .brand-lockup { margin-bottom: 25px; }
  .brand-caption { display: none; }
  .neural-stage { height: 205px; margin-top: 22px; }
  .stage-tag { font-size: 8px; }
  .stage-tag--top { left: 0; }
  .stage-tag--right { right: -4px; }
  .stage-tag--bottom { left: 2%; }
  .status-row { gap: 6px; margin-bottom: 25px; }
  .status-item { gap: 5px; font-size: 8px; }
  .status-item i { display: none; }
  .card-footer { flex-direction: column; align-items: center; gap: 8px; margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
