/* ═══════════════════════════════════════════
   DEJAVIU — Landing + Auth CSS
   Commercial · Polished · Canva-inspired
   ═══════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8f8f8;
  --bg-dark: #0d0d0d;
  --text: #1a1a1a;
  --text-sub: #555;
  --text-muted: #999;
  --border: #e8e8e8;
  --brand: #1a8a7a;
  --brand-dark: #146b5e;
  --brand-light: #e6f5f3;
  --accent: #b5366a;
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 15px;
}

/* ── Nav ──────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 32px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--text-sub); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: 10px; }
.nav__btn { display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 100px; font-family: var(--font); font-size: 14px; font-weight: 600; text-decoration: none; transition: all var(--transition); }
.nav__btn--ghost { color: var(--text); }
.nav__btn--ghost:hover { background: var(--bg-subtle); }
.nav__btn--primary { color: white; background: var(--brand); }
.nav__btn--primary:hover { background: var(--brand-dark); }
.nav__mobile { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent;
  background: var(--brand); color: white;
  cursor: pointer; transition: all var(--transition);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--text); background: transparent; }
.btn--full { width: 100%; justify-content: center; }
.btn--white { background: white; color: var(--text); }
.btn--white:hover { background: #f0f0f0; }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 32px 80px;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,138,122,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(181,54,106,0.04) 0%, transparent 50%),
    var(--bg);
}
.hero__content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero__badge {
  display: inline-block; padding: 6px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-light); margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero__title { font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.hero__gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub { font-size: 18px; color: var(--text-sub); margin: 20px 0 32px; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

.hero__visual { position: relative; z-index: 1; max-width: 800px; margin: 60px auto 0; }
.hero__mockup {
  background: var(--bg-dark); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.1);
}
.mockup__bar { padding: 10px 14px; display: flex; gap: 6px; }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mockup__screen { display: flex; height: 340px; }
.mockup__sidebar { width: 56px; background: rgba(255,255,255,0.04); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.m-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.m-icon--active { background: var(--brand); opacity: 0.8; }
.mockup__main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-card { background: rgba(255,255,255,0.04); border-radius: 10px; flex: 1; }
.m-card--lg { flex: 2; }
.m-row { display: flex; gap: 10px; flex: 1; }

/* ── Logos ─────────────────────────────── */
.logos { padding: 48px 32px; text-align: center; border-top: 1px solid var(--border); }
.logos__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.logos__row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.logos__item { font-size: 14px; font-weight: 600; color: var(--text-sub); }
.logos__sep { color: var(--text-muted); }

/* ── Sections ─────────────────────────── */
.section__inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section__title { font-size: 36px; font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.section__sub { font-size: 16px; color: var(--text-sub); text-align: center; margin: 8px 0 48px; }

/* ── Features ─────────────────────────── */
.features { padding: 80px 0; background: var(--bg-subtle); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition);
}
.feature:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature__icon { font-size: 28px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* ── Steps ─────────────────────────────── */
.steps { padding: 80px 0; }
.steps__grid { display: flex; align-items: flex-start; justify-content: center; gap: 20px; }
.step-card {
  flex: 1; max-width: 300px; background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
}
.step-card__num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand);
  color: white; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-sub); }
.step-card__arrow { font-size: 24px; color: var(--text-muted); margin-top: 50px; }

/* ── Pricing ──────────────────────────── */
.pricing { padding: 80px 0; background: var(--bg-subtle); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; position: relative; transition: all var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card--popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 100px; background: var(--brand); color: white;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.price-card__header h3 { font-size: 18px; font-weight: 700; }
.price-card__price { font-size: 42px; font-weight: 800; margin: 8px 0 16px; letter-spacing: -0.02em; }
.price-card__price span { font-size: 15px; font-weight: 500; color: var(--text-sub); }
.price-card__list { list-style: none; margin-bottom: 24px; }
.price-card__list li { font-size: 14px; color: var(--text-sub); padding: 6px 0; border-bottom: 1px solid var(--border); }
.price-card__list li::before { content: '✓ '; color: var(--brand); font-weight: 700; }

/* ── CTA Final ────────────────────────── */
.cta-final {
  padding: 80px 0; text-align: center;
  background: var(--bg-dark); color: white;
}
.cta-final h2 { font-size: 36px; font-weight: 800; }
.cta-final p { font-size: 16px; color: rgba(255,255,255,0.6); margin: 12px 0 28px; }

/* ── Footer ───────────────────────────── */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer__inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; gap: 64px; }
.footer__brand { flex: 1; }
.footer__brand img { margin-bottom: 12px; }
.footer__brand p { font-size: 13px; color: var(--text-muted); max-width: 260px; }
.footer__links { display: flex; gap: 48px; }
.footer__col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.footer__col a { display: block; font-size: 14px; color: var(--text-sub); text-decoration: none; padding: 3px 0; transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { max-width: 1100px; margin: 32px auto 0; padding: 20px 32px; border-top: 1px solid var(--border); }
.footer__bottom p { font-size: 12px; color: var(--text-muted); }

/* ── Auth Pages ───────────────────────── */
.auth-body { background: var(--bg-subtle); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand {
  background: linear-gradient(160deg, #0d2925, #1a8a7a 50%, #b5366a);
  color: white; display: flex; align-items: center; justify-content: center; padding: 48px;
}
.auth-brand__content { max-width: 400px; }
.auth-brand__content img { margin-bottom: 32px; }
.auth-brand__content h2 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.auth-brand__content p { font-size: 15px; opacity: 0.8; line-height: 1.6; }
.auth-brand__features { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-feat { font-size: 13px; font-weight: 500; opacity: 0.9; }
.auth-feat span { color: #5aedc6; margin-right: 6px; }

.auth-form-side {
  display: flex; align-items: center; justify-content: center; padding: 48px;
  background: white;
}
.auth-form-wrap { max-width: 400px; width: 100%; }
.auth-form-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: var(--text-sub); margin-bottom: 28px; }
.auth-error { padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 15px;
  outline: none; transition: border-color var(--transition);
}
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,138,122,0.1); }

.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-sub); }
.auth-switch a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-terms { text-align: center; margin-top: 24px; font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.auth-terms a { color: var(--text-sub); }

/* ── Mobile ───────────────────────────── */
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__links.open, .nav__actions.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: white; padding: 16px 32px; border-bottom: 1px solid var(--border); }
  .nav__mobile { display: block; }
  .hero { padding: 120px 20px 60px; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; }
  .hero__sub br { display: none; }
  .hero__visual { margin-top: 40px; }
  .mockup__screen { height: 200px; }
  .features__grid { grid-template-columns: 1fr; }
  .steps__grid { flex-direction: column; align-items: center; }
  .step-card__arrow { display: none; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { gap: 32px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
