:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-border: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --success: #34d399;
  --error: #f87171;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  text-align: center;
  padding: 5rem 0 3rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-bio {
  color: var(--text);
}

.logo-unity {
  color: var(--accent);
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Vision Cards */
.vision {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0 3rem;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.vision-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.vision-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.vision-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vision-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
}

.vision-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.vision-card li strong {
  color: var(--text);
}

/* Pipeline */
.pipeline {
  padding: 1rem 0 3rem;
}

.pipeline h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Signup */
.signup {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.signup h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.signup > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-row input[type="email"]:focus {
  border-color: var(--accent);
}

.form-row input[type="email"]::placeholder {
  color: #475569;
}

.form-row button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.form-row button:hover {
  opacity: 0.9;
}

.form-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
  color: var(--text-muted);
}

.form-note.success { color: var(--success); }
.form-note.error { color: var(--error); }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-license {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--mono);
}

/* Header Row (logo + auth) */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#auth-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-email {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-btn {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.auth-btn:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.auth-btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.auth-btn-primary:hover {
  opacity: 0.9;
}

.logo-link {
  text-decoration: none;
}

/* Auth Pages */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  margin: 2rem auto 3rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.google-btn:hover {
  border-color: var(--text-muted);
  background: #1a2235;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bg-card-border);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.auth-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: var(--accent);
}

.auth-field input::placeholder {
  color: #475569;
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-message {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-message.success { color: var(--success); }
.auth-message.error { color: var(--error); }

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-resend {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-resend a {
  color: var(--accent);
  text-decoration: none;
}

.auth-resend a:hover {
  text-decoration: underline;
}

.verify-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.verify-info strong {
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  header { padding: 3rem 0 2rem; }
  .logo { font-size: 2rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: 1rem; }
  .form-row { flex-direction: column; }
  .form-row button { width: 100%; }
  .signup { padding: 2rem 1.25rem; }
}
