/* ── xqcsmp design system ─────────────────────────────────────────────
   Minimal, cinematic, personal. Dark canvas, one bright accent. */
:root {
  --bg: #0a0a0c;
  --bg-2: #101015;
  --ink: #f4f4f6;
  --muted: #8b8b96;
  --faint: #55555f;
  --line: #1e1e26;
  --accent: #9146ff;      /* twitch purple */
  --accent-2: #c9a7ff;
  --good: #57d38c;
  --bad: #ff6b6b;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ambient background: faint drifting glow + grain */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 20% -10%, rgba(145,70,255,0.16), transparent 60%),
    radial-gradient(50vmax 50vmax at 100% 110%, rgba(80,40,160,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0,-2%,0) scale(1.05); } }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── landing ── */
.wrap {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 40px;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  letter-spacing: .08em; text-transform: uppercase;
}
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); display: inline-block; margin-right: 8px; vertical-align: middle; }

.hero { align-self: center; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--accent-2);
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px;
  opacity: 0; animation: rise .8s .05s forwards;
}
.name {
  font-size: clamp(72px, 22vw, 180px); line-height: .92; font-weight: 800;
  letter-spacing: -.03em; margin: 0; color: var(--ink);
  opacity: 0; animation: rise .9s .12s forwards;
}
.name .g { background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede {
  font-size: clamp(18px, 3.4vw, 24px); color: var(--muted); max-width: 46ch;
  margin: 22px 0 0; opacity: 0; animation: rise .9s .2s forwards;
}
.lede b { color: var(--ink); font-weight: 600; }

.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; opacity: 0; animation: rise .9s .3s forwards; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; padding: 14px 22px; border-radius: 12px;
  border: 1px solid var(--line); background: #16161d; color: var(--ink);
  cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-twitch { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(145,70,255,.35); }
.btn-twitch:hover { background: #a05cff; box-shadow: 0 12px 40px rgba(145,70,255,.5); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { background: transparent; }

.foot { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; display:flex; gap:18px; flex-wrap:wrap; }
.foot .sep { color: var(--line); }

/* notices */
.notice {
  margin-top: 26px; padding: 14px 16px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--line); background: #14141b; color: var(--muted);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.notice.show { opacity: 1; transform: none; }
.notice.bad { border-color: rgba(255,107,107,.3); color: #ffbaba; }
.notice.good { border-color: rgba(87,211,140,.3); color: #b6f0cf; }

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

/* ── studio ── */
.studio-card {
  position: relative; z-index: 2; max-width: 620px; margin: 0 auto;
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 24px;
}
.hello { font-family: var(--mono); color: var(--accent-2); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.studio-card h1 { font-size: clamp(34px, 7vw, 54px); margin: 0 0 8px; letter-spacing: -.02em; }
.studio-card p.sub { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

.field { margin-bottom: 16px; }
.field label { display:block; font-family: var(--mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing:.08em; margin-bottom: 8px; }
textarea, input[type=text] {
  width: 100%; background: #121218; border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; font-family: var(--sans); resize: vertical;
}
textarea:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(145,70,255,.2); }
textarea { min-height: 140px; }

.actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; align-items:center; }
.sent { color: var(--good); font-size: 14px; }
.err { color: var(--bad); font-size: 14px; }

.divider { height:1px; background: var(--line); margin: 34px 0; }
.preview-teaser { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 20px; border:1px solid var(--line); border-radius:16px; background: linear-gradient(180deg,#14141b,#0f0f14); }
.preview-teaser h3 { margin:0 0 4px; font-size:18px; }
.preview-teaser p { margin:0; color:var(--muted); font-size:14px; }

@media (max-width: 640px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .preview-teaser { flex-direction: column; align-items: stretch; text-align:left; }
}
