/* Astralith — Brand tokens locked per Astralith Brand Style Guide v1.1.
 * Do not introduce new colors or fonts here. If a token is missing, the
 * style guide is the source of truth — update it there, then mirror here. */

:root {
  /* Color — Section 2 */
  --onyx:         #14141A;
  --indigo:       #2E2E8B;
  --indigo-light: #6B6BD6;
  --bone:         #F5F5F2;
  --graphite:     #4A4A52;

  /* Type — Section 3 */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale (loose, brand-guide doesn't lock these) */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
}

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

html, body { height: 100%; }

body {
  background: var(--onyx);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Starfield ──────────────────────────────────────────────── */
.hero-stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: var(--indigo-light);
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

/* ── Signup form ────────────────────────────────────────────── */
.hero-form {
  width: 100%;
  max-width: 480px;
}

.hero-form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--bone);
  letter-spacing: 0.02em;
  text-align: left;
  margin-bottom: var(--space-xs);
}

.hero-form-row {
  display: flex;
  gap: var(--space-xs);
}

.hero-form-row input[type="email"] {
  flex: 1;
  padding: var(--space-sm) 1rem;
  background: rgba(245, 245, 242, 0.05);
  border: 1px solid rgba(245, 245, 242, 0.2);
  border-radius: 8px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.hero-form-row input[type="email"]::placeholder {
  color: rgba(245, 245, 242, 0.4);
}

.hero-form-row button {
  padding: var(--space-sm) var(--space-md);
  background: var(--indigo);
  color: var(--bone);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.hero-form-row button:hover {
  background: var(--indigo-light);
}

.hero-form-row button:disabled {
  background: var(--graphite);
  cursor: not-allowed;
  opacity: 0.6;
}

.hero-form-note {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  text-align: left;
  min-height: 1.2em;
  color: var(--indigo-light);
}

.hero-form-note.error {
  color: #D97A6C;  /* warm muted red — only used here, intentional one-off */
}

.hero-form-note.success {
  color: var(--indigo-light);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--graphite);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    padding: var(--space-lg) 1.25rem;
  }
  .hero-logo {
    margin-bottom: var(--space-md);
  }
  .hero-form-row {
    flex-direction: column;
  }
  .hero-form-row button {
    width: 100%;
  }
}

/* ── A11y ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
