:root {
  --bg: #0a0a0a;
  --panel: #131313;
  --border: #232323;
  --yellow: #e6ff00;
  --purple: #9d00ff;
  --grey: #9a9a9a;
  --white: #f5f5f5;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: inherit; }

/* Top nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav .brand .mark {
  height: 1.3em;
  width: auto;
  color: var(--yellow);
  flex-shrink: 0;
}
.nav .brand .ai { color: var(--yellow); }
.nav .brand .dev { color: var(--grey); font-weight: 700; }
.nav .links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav .links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav .links a:hover { color: var(--white); }
.nav .links a.login {
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  padding: 6px 16px;
}
.nav .links a.login:hover {
  background: var(--yellow);
  color: var(--bg);
}

/* Page shell */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  min-height: calc(100vh - 73px);
}
.page.page-hero {
  align-items: flex-start;
  padding-top: 12vh;
}
main {
  text-align: center;
  max-width: 560px;
  width: 100%;
}
main.hero {
  max-width: 980px;
}
.logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  display: block;
}
h1 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.headline {
  margin: 0;
  transition: opacity 1.2s ease-in-out;
}
.headline .line {
  display: block;
}
.headline.fade-out {
  opacity: 0;
}
.subhead {
  color: var(--grey);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 24px auto 32px;
}
.cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 14px 28px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover {
  background: var(--purple);
  color: var(--white);
}
.bottom-brand {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bottom-brand .logo {
  width: 56px;
  height: 56px;
  margin: 0;
}
.badge {
  display: inline-block;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
footer {
  position: fixed;
  right: 24px;
  bottom: 16px;
  color: #555;
  font-size: 0.8rem;
}

/* Forms */
form.card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 8px;
}
form.card label {
  display: block;
  font-size: 0.85rem;
  color: var(--grey);
  margin: 16px 0 6px;
}
form.card label:first-of-type { margin-top: 0; }
form.card input,
form.card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
form.card input:focus,
form.card textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
form.card button {
  margin-top: 24px;
  width: 100%;
  background: var(--yellow);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
form.card button:hover:not(:disabled) {
  background: var(--purple);
  color: var(--white);
}
form.card button:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-status {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--yellow); }
.form-status.error { color: #ff6b6b; }
