/* ===== LANDING PAGE CSS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060608;
  --bg2:       #0d0d14;
  --bg3:       #12121e;
  --border:    rgba(255,255,255,0.07);
  --blue:      #5865F2;
  --purple:    #9b59b6;
  --pink:      #e91e8c;
  --text:      #e8e8f0;
  --muted:     #8888aa;
  --radius:    14px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }

.gradient-text {
  background: linear-gradient(135deg, #5865F2, #9b59b6, #e91e8c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 24px;
  background: rgba(6,6,8,0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  font-size: 1.2rem; color: var(--text); }
.logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--blue), var(--pink));
  border-radius: 9px; display: grid; place-items: center; font-size: 18px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-login { display: flex; align-items: center; gap: 8px; background: var(--blue); color: #fff;
  padding: 9px 18px; border-radius: 10px; text-decoration: none; font-size: 0.875rem; font-weight: 600;
  transition: all .2s; white-space: nowrap; }
.btn-login:hover { background: #4752d4; transform: translateY(-1px); }

.nav-profile {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-family: inherit;
  text-decoration: none; color: var(--text);
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  transition: all .2s;
}
.nav-profile:hover, .nav-profile:focus {
  background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.45);
  transform: translateY(-1px);
}
.nav-profile-img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--blue);
}
.nav-profile-name { font-size: .875rem; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-go-dash { font-size: .75rem; font-weight: 600; color: var(--blue); margin-left: 4px; white-space: nowrap; }
.nav-profile:hover .nav-go-dash { color: #fff; }

.hero-welcome-back {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(88,101,242,0.12); border: 1px solid rgba(88,101,242,0.3);
  margin-bottom: 16px; font-size: .9rem;
}
.hero-welcome-back img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--blue); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  gap: 64px; padding: 100px 24px 60px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; position: relative; }
.hero-bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 20% 40%, rgba(88,101,242,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(233,30,140,.08) 0%, transparent 70%),
              var(--bg); }
.hero-content { flex: 1; min-width: 300px; max-width: 560px; }
.hero-badge { display: inline-block; background: rgba(88,101,242,.15); border: 1px solid rgba(88,101,242,.3);
  color: #a5acff; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .04em; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -.02em; }
.hero-content p { color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }
.error-toast { background: rgba(237,66,69,.15); border: 1px solid rgba(237,66,69,.4); color: #ff7b7e;
  padding: 10px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .9rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary { display: flex; align-items: center; gap: 9px; background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; padding: 13px 24px; border-radius: 12px; text-decoration: none; font-weight: 700;
  font-size: .95rem; transition: all .2s; box-shadow: 0 4px 24px rgba(88,101,242,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(88,101,242,.5); }
.btn-primary.large { padding: 16px 32px; font-size: 1.05rem; }
.btn-ghost { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none;
  padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border); transition: all .2s; }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat { font-size: .85rem; color: var(--muted); }
.stat span { color: var(--text); font-weight: 700; margin-right: 4px; }
.stat-divider { width: 1px; height: 16px; background: var(--border); }

/* HERO MOCKUP */
.hero-mockup { flex: 1; min-width: 300px; max-width: 480px; }
.mockup-window { background: #1e1f22; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 32px 80px rgba(0,0,0,.6); }
.mockup-titlebar { background: #2b2d31; padding: 12px 16px; display: flex; align-items: center;
  gap: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #28ca41; }
.mockup-titlebar span { color: #8888aa; font-size: .8rem; margin-left: 8px; font-weight: 500; }
.mockup-body { padding: 20px; }
.mock-message { display: flex; gap: 14px; }
.mock-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--blue), var(--pink));
  border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.mock-content { flex: 1; }
.mock-name { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.bot-badge { background: var(--blue); color: #fff; font-size: .6rem; padding: 1px 5px;
  border-radius: 4px; font-weight: 700; letter-spacing: .04em; }
.mock-embed { background: #2b2d31; border-radius: 8px; overflow: hidden; display: flex; margin-top: 4px; }
.mock-embed-bar { width: 4px; flex-shrink: 0; }
.mock-embed-content { padding: 14px 16px; flex: 1; }
.mock-embed-title { font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: 6px; }
.mock-embed-desc { font-size: .8rem; color: #d1d1e0; line-height: 1.5; margin-bottom: 12px; }
.mock-embed-fields { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mock-field { background: rgba(255,255,255,.05); border-radius: 6px; padding: 8px 10px;
  font-size: .75rem; color: #b8b8cc; min-width: 100px; }
.mock-field b { color: #e0e0f0; display: block; margin-bottom: 2px; }
.mock-embed-footer { font-size: .7rem; color: #555570; }

/* FEATURES */
.features { max-width: 1200px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.section-label { color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px; }
.features h2, .how h2, .cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; text-align: left; }
.feature-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .25s; }
.feature-card:hover { border-color: rgba(88,101,242,.3); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.feature-card.featured { background: linear-gradient(135deg, rgba(88,101,242,.12), rgba(155,89,182,.12));
  border-color: rgba(88,101,242,.3); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* HOW IT WORKS */
.how { max-width: 1200px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.steps { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.step { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; text-align: left; flex: 1; min-width: 200px; max-width: 280px; }
.step-num { width: 42px; height: 42px; background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.step-arrow { font-size: 1.5rem; color: var(--muted); }

/* CTA SECTION */
.cta-section { position: relative; text-align: center; padding: 100px 24px;
  background: linear-gradient(180deg, transparent, rgba(88,101,242,.06), transparent); overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(88,101,242,.15), transparent 70%);
  pointer-events: none; }
.cta-section p { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: #444460; font-size: .8rem; width: 100%; text-align: center; margin-top: 8px; }

@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 90px; gap: 40px; }
  .nav-links { display: none; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .footer-links { margin-left: 0; }
}
