/*
 * This is a manifest file that'll be compiled into application.css.
 */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ── Animations ─────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.char {
  display: inline-block;
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s);
}

.anim {
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--step) * 0.12s);
}

/* ── Base ────────────────────────────────────────────────────── */

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #f1f5f9;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.6875rem 1.5rem;
  border-radius: 7px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: none;
}

.btn-primary {
  background: #f8fafc;
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #e2e8f0;
}

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #1e293b;
}

.btn-ghost:hover {
  color: #f1f5f9;
  border-color: #475569;
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ── Landing page ────────────────────────────────────────────── */

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Landing header ──────────────────────────────────────────── */

.landing-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.landing-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.hero-headline {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #f8fafc;
}

.hero-sub {
  margin: 0 0 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #64748b;
  line-height: 1.7;
  max-width: 540px;
}

/* ── Features ────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  padding: 0 2rem 5rem;
}

.feature {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 2rem;
}

.feature-icon {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.feature-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.feature-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

/* ── Pull quote ──────────────────────────────────────────────── */

.quote-section {
  max-width: 700px;
  padding: 0 2rem 5rem;
  text-align: center;
}

.pull-quote {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: #94a3b8;
  line-height: 1.6;
  border: none;
}

.pull-quote-author {
  font-size: 0.875rem;
  color: #475569;
  font-style: normal;
}

/* ── CTA section ─────────────────────────────────────────────── */

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem 5rem;
  border-top: 1px solid #1e293b;
  width: 100%;
  max-width: 900px;
}

.cta-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.cta-sub {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: #64748b;
}

/* ── Landing footer ──────────────────────────────────────────── */

.landing-footer {
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.landing-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: #334155;
}

.footer-link {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(148, 163, 184, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-link:hover {
  color: #f1f5f9;
  text-decoration-color: rgba(241, 245, 249, 0.5);
}

/* ── Nav ────────────────────────────────────────────────────── */

.app-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #111827;
  border-bottom: 1px solid #1e293b;
}

.app-nav-email {
  font-size: 0.875rem;
  color: #94a3b8;
}

.app-nav-signout {
  background: none;
  border: 1px solid #374151;
  color: #9ca3af;
  padding: 0.375rem 0.75rem;
  border-radius: 5px;
  font-size: 0.8125rem;
  cursor: pointer;
}

.app-nav-signout:hover {
  border-color: #6b7280;
  color: #d1d5db;
}

/* ── Flash messages ─────────────────────────────────────────── */

.flash {
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  border-left: 3px solid;
}

.flash-notice {
  background: #0f2a1e;
  border-color: #22c55e;
  color: #86efac;
}

.flash-alert {
  background: #2a0f0f;
  border-color: #ef4444;
  color: #fca5a5;
}

/* ── Auth page ──────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #0a0a0a;
  font-family: system-ui, -apple-system, sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 2.5rem;
}

.auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s;
}

.auth-input:focus {
  border-color: #4f46e5;
}

.auth-submit {
  margin-top: 0.5rem;
  padding: 0.6875rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-submit:hover {
  background: #4338ca;
}
