/* ============================================================
   Landing & auth pages
   ============================================================ */

.land-body { background: var(--bg); overflow-x: hidden; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.land-nav .container { display: flex; align-items: center; gap: 28px; height: 66px; }
.land-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; }
.land-links { display: flex; gap: 26px; margin-left: 12px; }
.land-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color var(--t-fast); }
.land-links a:hover { color: var(--brand-500); }
.land-nav .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 60px; text-align: center; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
}
.hero-bg::before { width: 560px; height: 560px; background: #818cf8; top: -180px; left: -120px; animation: floaty 9s ease-in-out infinite; }
.hero-bg::after { width: 480px; height: 480px; background: #ec4899; top: -80px; right: -140px; opacity: 0.22; animation: floaty 11s 1.5s ease-in-out infinite; }
[data-theme="dark"] .hero-bg::before { opacity: 0.18; }
[data-theme="dark"] .hero-bg::after { opacity: 0.12; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--brand-600);
}
[data-theme="dark"] .hero-eyebrow { color: var(--brand-300); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; max-width: 820px; margin: 0 auto 20px; }
.hero p.lede { font-size: clamp(15.5px, 1.7vw, 18.5px); color: var(--text-2); max-width: 620px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: 13px; color: var(--text-3); display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .lucide { width: 14px; height: 14px; color: var(--success); }

/* ---------- Product preview ---------- */
.preview-wrap { margin: 54px auto 0; max-width: 1000px; position: relative; padding: 0 24px; }
.preview-frame {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 40px 100px -20px rgba(79, 70, 229, 0.35);
  background: var(--surface);
}
.preview-topbar { display: flex; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-topbar span { width: 11px; height: 11px; border-radius: 50%; }
.preview-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.preview-side { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; background: var(--surface); }
.pv-navline { height: 30px; border-radius: 8px; background: var(--bg-2); }
.pv-navline.on { background: var(--brand-50); position: relative; }
.pv-navline.on::after { content: ""; position: absolute; left: 8px; top: 9px; width: 60%; height: 12px; border-radius: 4px; background: var(--brand-300); }
.preview-main { padding: 20px; background: var(--bg); }
.pv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.pv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.pv-card .bar1 { height: 9px; width: 55%; border-radius: 4px; background: var(--bg-2); margin-bottom: 9px; }
.pv-card .bar2 { height: 16px; width: 70%; border-radius: 5px; background: var(--brand-200); }
.pv-chart { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: 210px; position: relative; }
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600;
  animation: floaty 5.5s ease-in-out infinite;
}
.float-chip .lucide { width: 17px; height: 17px; }
.chip-a { top: 18%; left: -26px; animation-delay: 0.4s; }
.chip-b { bottom: 14%; right: -20px; animation-delay: 1.6s; }
.float-chip small { display: block; font-weight: 500; color: var(--text-3); font-size: 11.5px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-500); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 16px; }

.logos-row { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 26px 0 8px; opacity: 0.72; }
.logos-row span { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--text-3); display: flex; align-items: center; gap: 7px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 26px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.feature-icon .lucide { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* AI showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.showcase h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.showcase p.big { color: var(--text-2); font-size: 15.5px; margin-bottom: 24px; }
.show-list { display: flex; flex-direction: column; gap: 15px; }
.show-list li { display: flex; gap: 13px; list-style: none; }
.show-list .lucide { width: 21px; height: 21px; color: var(--success); flex: none; margin-top: 1px; }
.show-list strong { display: block; font-size: 14.5px; }
.show-list span { font-size: 13.5px; color: var(--text-3); }

.ai-demo-card { padding: 22px; position: relative; }
.ai-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.ai-msg .bubble {
  background: var(--bg-2); border-radius: 4px 16px 16px 16px; padding: 13px 16px;
  font-size: 13.5px; line-height: 1.6;
}
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg.user .bubble { background: var(--grad-brand); color: #fff; border-radius: 16px 4px 16px 16px; }

/* Workflow */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { padding: 26px 22px; position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.step-card h3 { font-size: 15.5px; margin-bottom: 7px; }
.step-card p { font-size: 13.5px; color: var(--text-2); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border: 2px solid var(--brand-500); box-shadow: var(--shadow-brand); }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 17px; }
.price-card .desc { font-size: 13.5px; color: var(--text-3); margin: 6px 0 20px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; }
.price small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.price-feats { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.price-feats .lucide { width: 17px; height: 17px; color: var(--success); flex: none; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: #f59e0b; }
.stars .lucide { width: 16px; height: 16px; fill: currentColor; }
.testi-card blockquote { font-size: 14.5px; color: var(--text-2); line-height: 1.65; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who strong { display: block; font-size: 14px; }
.testi-who span { font-size: 12.5px; color: var(--text-3); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 19px 22px; font-size: 15px; font-weight: 600; text-align: left; color: var(--text);
}
.faq-q .lucide { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--t-med); flex: none; }
.faq-item.open .faq-q .lucide { transform: rotate(45deg); color: var(--brand-500); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* CTA band */
.cta-band {
  background: var(--grad-hero); border-radius: var(--r-xl); padding: 60px 40px; text-align: center;
  color: #fff; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1);
}
.cta-band::before { width: 300px; height: 300px; top: -150px; left: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -110px; right: -60px; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-band p { opacity: 0.85; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .btn-white { background: #fff; color: var(--brand-700); }
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

/* Footer */
.land-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a { font-size: 14px; color: var(--text-2); transition: color var(--t-fast); }
.footer-grid ul a:hover { color: var(--brand-500); }
.footer-about p { font-size: 13.5px; color: var(--text-3); max-width: 280px; margin-top: 14px; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.footer-social { display: flex; gap: 8px; }

/* ---------- Auth page ---------- */
.auth-body {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: var(--grad-hero); color: #fff; padding: 54px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-side::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,0.09); top: -160px; right: -140px; }
.auth-side::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.07); bottom: -120px; left: -90px; }
.auth-side .land-brand { color: #fff; position: relative; z-index: 1; }
.auth-quote { margin: auto 0; position: relative; z-index: 1; max-width: 430px; }
.auth-quote h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.auth-quote p { opacity: 0.88; font-size: 15px; line-height: 1.7; }
.auth-stats { display: flex; gap: 34px; margin-top: 34px; }
.auth-stats strong { font-size: 26px; display: block; }
.auth-stats span { font-size: 13px; opacity: 0.8; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 44px 24px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 25px; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-hint {
  background: var(--brand-50); border: 1px dashed var(--brand-300); border-radius: var(--r-sm);
  padding: 12px 15px; font-size: 12.5px; color: var(--brand-700); margin-bottom: 22px; line-height: 1.7;
}
[data-theme="dark"] .demo-hint { color: var(--brand-300); }
.demo-hint code { font-weight: 700; font-family: ui-monospace, monospace; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .land-links { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 640px) {
  .features-grid, .testi-grid, .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding-top: 120px; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
  .pv-cards { grid-template-columns: 1fr 1fr; }
  .float-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
