/* Vibe Lab - self-hosted, no external fonts or scripts */
:root {
  --bg: #07080f;
  --bg-2: #0d1020;
  --surface: #11142a;
  --border: rgba(255, 255, 255, 0.11);
  --text: #eef1fa;
  --muted: #b3bad0;
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --pink: #f472b6;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 52%, var(--pink));
  --radius: 18px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(103, 232, 249, 0.09), transparent 60%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 8vw, 5.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--cyan); }
strong { color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px) { .wrap { padding-inline: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus and skip link */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 0.75rem 1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 15, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-mark { display: block; flex: none; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) { color: var(--muted); text-decoration: none; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.95rem; }
.nav-list a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-hide-sm { display: none; }
@media (min-width: 820px) { .nav-hide-sm { display: block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  color: #07080f; text-decoration: none; cursor: pointer;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  border: 0; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 30px -10px rgba(167, 139, 250, 0.7);
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 38px -10px rgba(244, 114, 182, 0.75); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--border) inset;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset; }
.text-link { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { color: #fff; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 82vh; min-height: 82svh;
  display: flex; align-items: center;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(244, 114, 182, 0.20), transparent 65%),
    radial-gradient(700px 420px at 20% 75%, rgba(103, 232, 249, 0.16), transparent 65%),
    radial-gradient(900px 520px at 55% 50%, rgba(167, 139, 250, 0.14), transparent 70%);
}
.hero::after {
  /* faint grid so the hero reads as complete without the canvas */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
}
.hero::before {
  /* soft fade into the page below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 8, 15, 0), var(--bg));
}
.hero-canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none;
}
.hero-canvas.is-on { opacity: 1; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { color: var(--violet); -webkit-text-fill-color: currentColor; background: none; }
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #d3d8e8; max-width: 38rem; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Sections */
.section { padding: 4.5rem 0; position: relative; }
@media (min-width: 720px) { .section { padding: 5.5rem 0; } }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(167, 139, 250, 0.13), transparent 45%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(103, 232, 249, 0.45), rgba(255, 255, 255, 0.06) 40%, rgba(244, 114, 182, 0.4)) border-box;
  transition: translate 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { translate: 0 -3px; box-shadow: 0 20px 50px -24px rgba(167, 139, 250, 0.55); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 1rem; border-radius: 12px;
  fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(103, 232, 249, 0.1); box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.25) inset;
}
.card:nth-child(2) .icon { stroke: var(--violet); background: rgba(167, 139, 250, 0.12); box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3) inset; }
.card:nth-child(3) .icon { stroke: var(--pink); background: rgba(244, 114, 182, 0.1); box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.28) inset; }
.card:nth-child(4) .icon { stroke: #fcd34d; background: rgba(252, 211, 77, 0.1); box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.25) inset; }

/* Steps */
.steps { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.step {
  position: relative; padding: 1.6rem 1.5rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: 50%; font-weight: 800; color: #07080f; background: var(--grad);
  box-shadow: 0 0 24px -4px rgba(167, 139, 250, 0.8);
}
@media (min-width: 820px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: calc(1.6rem + 22px); left: calc(1.5rem + 52px); right: -1.25rem; height: 2px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.6), rgba(167, 139, 250, 0));
  }
}
.safety {
  display: flex; gap: 0.9rem; align-items: flex-start;
  margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border-radius: 14px;
  background: rgba(103, 232, 249, 0.06); border: 1px solid rgba(103, 232, 249, 0.25);
  color: #d3d8e8;
}
.icon-inline { flex: none; width: 32px; height: 32px; padding: 5px; margin: 0; }

/* Founder */
.founder {
  display: grid; gap: 1.5rem; align-items: start;
  padding: 2rem 1.5rem; border-radius: 24px;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.10), rgba(103, 232, 249, 0.04) 60%, transparent), var(--bg-2);
  border: 1px solid var(--border);
}
@media (min-width: 720px) { .founder { grid-template-columns: auto 1fr; gap: 2.5rem; padding: 3rem; } }
.founder p { color: #d3d8e8; max-width: 44rem; }
.founder p:last-child { margin-bottom: 0; }
.monogram {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px;
  font-size: 2rem; font-weight: 800; color: #07080f; background: var(--grad);
  box-shadow: 0 0 50px -12px rgba(244, 114, 182, 0.8);
}

/* Register */
.register { display: grid; gap: 2rem; }
@media (min-width: 900px) { .register { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; } }
.register-intro p { color: #d3d8e8; }
.note { font-size: 0.95rem; color: var(--muted) !important; }
.form {
  display: grid; gap: 1rem 1.25rem; grid-template-columns: 1fr;
  padding: 1.5rem; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--border);
}
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; padding: 2rem; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { font-weight: 400; color: var(--muted); font-size: 0.85em; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #070914; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
select option { background: #0d1020; color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.36); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(103, 232, 249, 0.15);
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #fb7185; }
.check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.check input { flex: none; width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--violet); }
.check label { font-weight: 400; color: #d3d8e8; }
.form-actions { display: flex; }
.field-error { margin: 0; color: #fda4af; font-size: 0.95rem; font-weight: 600; }
.field-error[hidden], .form-status[hidden] { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #fb7185; }
.form-status { padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: #d3d8e8; }
.form-status p { margin: 0; }
.form-status.is-ok { border-color: rgba(103, 232, 249, 0.55); background: rgba(103, 232, 249, 0.08); color: #fff; }
.form-status.is-error { border-color: rgba(251, 113, 133, 0.6); background: rgba(251, 113, 133, 0.08); color: #fff; }
/* Honeypot: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-underline-offset: 3px; display: inline-block; padding: 0.5rem 0; }
.footer-links a:hover { color: var(--cyan); }

/* Privacy page */
.page { padding: 3.5rem 0 4.5rem; }
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.prose p, .prose li { color: #d3d8e8; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.updated { color: var(--muted) !important; font-size: 0.95rem; }

/* Scroll reveal: only hidden when JS is running and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1), translate 0.3s ease, box-shadow 0.3s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .cards .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
  .js .cards .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
  .js .cards .reveal:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover { translate: none; }
}
