/* JustAskGen — GenX-coded, minimal, confident */

:root {
  --bg: #0f1419;
  --bg-alt: #1a222c;
  --text: #e6edf3;
  --text-muted: #8b9cad;
  --accent: #f59e0b;
  --accent-dim: #d97706;
  --border: #2d3a47;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --space: 1.25rem;
  --wrap: min(90vw, 720px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* Header */
.site-header {
  padding: var(--space) 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.nav-login {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-login:hover {
  color: var(--accent);
}

/* Login modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.modal--open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 24rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.modal-close:hover {
  color: var(--text);
  background: var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.login-form .form-group {
  margin-bottom: 1rem;
}

.login-form .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.login-form .form-input {
  width: 100%;
}

.login-error {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #ef4444;
}

.login-error[hidden] {
  display: none;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .hero-image img {
    width: 180px;
    height: 180px;
  }
}

.hero-tag {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.hero-byline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 2rem;
}

.hero-status {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 1.5rem;
}

.hero-status a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-status a:hover {
  color: var(--accent-hover, var(--accent));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Waiting list form */
.waiting-list-form {
  max-width: 28em;
  margin-top: 1.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
}

.form-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.form-message {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.form-message--success {
  color: #22c55e;
}

.form-message--error {
  color: #ef4444;
}

.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;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.offer-list li:last-child {
  border-bottom: none;
}

.offer-icon {
  font-family: var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
}

.offer-list strong {
  color: var(--text);
}

/* CTA section */
.section--cta {
  text-align: center;
  padding: 4rem 0;
}

.section--cta .section-lead {
  margin-inline: auto 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer p + p {
  margin-top: 0.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-top p {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent);
}

.social-link svg {
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.8125rem;
}

.site-footer .logo {
  font-size: inherit;
}

@media (max-width: 480px) {
  .nav {
    gap: 1rem;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .section {
    padding: 2.5rem 0;
  }
}
