/* ================================
   CHATSETTU LANDING PAGE V3
   Modern pass: refined color system, layered depth, glow accents.
   Depends on main.css tokens: --gradient, --border, --primary,
   --primary-light. Brand: blue core + saffron accent.
   ================================ */

html { scroll-behavior: smooth; }

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --surface-tint: #f8faff;
  --card-border: #e8ecf4;
  --saffron: #FF9933;
  --glow-blue: rgba(37, 99, 235, 0.35);
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-card-hover: 0 2px 4px rgba(15,23,42,.05), 0 20px 48px rgba(37, 99, 235,.14);
}

/* ---------- STICKY BLUR HEADER ---------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: right .25s ease;
}
.nav-link:hover::after { right: 0; }

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 110px 20px 100px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -12%, rgba(37, 99, 235,.14), transparent 62%),
    radial-gradient(ellipse 45% 38% at 88% 12%, rgba(59, 130, 246,.10), transparent 68%),
    radial-gradient(ellipse 42% 36% at 8% 30%, rgba(255,153,51,.07), transparent 70%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(37, 99, 235,.32) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 85%);
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  top: -220px; right: -220px;
  background: radial-gradient(circle, rgba(37, 99, 235,.22), transparent 65%);
  z-index: -1;
  animation: blobDrift 12s ease-in-out infinite;
}
.hero-section::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  bottom: -240px; left: -220px;
  background: radial-gradient(circle, rgba(255,153,51,.14), transparent 65%);
  z-index: -1;
  animation: blobDrift 14s ease-in-out infinite reverse;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 153, 51, 0.25);
  color: #b45309;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  box-shadow: 0 4px 18px rgba(255, 153, 51, 0.10);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-title span {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-text {
  max-width: 720px;
  margin: auto;
  color: var(--ink-muted);
  font-size: 1.18rem;
  line-height: 1.75;
}

.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34,197,94,.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ---------- SCROLL REVEAL (js-gated, never traps content hidden) ---------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero-section::before,
  .hero-section::after,
  .ai-preview,
  .pulse-dot,
  .hero-title span { animation: none !important; }
}

/* ---------- CTAs ---------- */
.cta-main {
  position: relative;
  background: var(--gradient);
  color: white;
  padding: 16px 34px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-block;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(37, 99, 235,.32), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-main::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.cta-main:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37, 99, 235,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.cta-main:hover::after { left: 130%; }

.cta-secondary {
  display: inline-block;
  padding: 0.95rem 2rem;
  background: rgba(255,255,255,.85);
  color: #2563eb;
  text-decoration: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid var(--card-border);
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
  transition: all 0.2s;
}
.cta-secondary:hover { border-color: #93c5fd; background: #f8faff; transform: translateY(-2px); }

/* ---------- AI EMPLOYEE PREVIEW ---------- */
.ai-preview {
  margin: 70px auto 0;
  max-width: 430px;
  background: white;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235,.14);
  box-shadow:
    0 0 0 6px rgba(37, 99, 235,.05),
    0 30px 80px rgba(15,23,42,.16);
  animation: float 5s ease-in-out infinite;
  text-align: left;
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 15px;
}
.ai-avatar {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(37, 99, 235,.35);
}
.ai-message {
  background: #f1f5f9;
  padding: 12px 15px;
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  margin-top: 15px;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.ai-message.bot {
  background: linear-gradient(135deg, #eef2ff, #fff7ed);
  border: 1px solid rgba(37, 99, 235,.12);
}

/* ---------- HERO AI PREVIEW — rotating live-feel demo ---------- */
.ai-typing {
  display: inline-flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 14px 15px;
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  margin-top: 15px;
  width: fit-content;
}
.ai-typing span {
  width: 6px; height: 6px;
  background: var(--ink-faint);
  border-radius: 50%;
  animation: aiTypingBounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiTypingBounce {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.ai-msg-fade { animation: aiMsgFadeIn .35s ease; }
@keyframes aiMsgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTION HEADINGS ---------- */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.9rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6 60%, var(--saffron));
}
.section-subtitle {
  text-align: center;
  color: var(--ink-muted);
  max-width: 650px;
  margin: auto;
  line-height: 1.7;
}

/* ---------- FEATURE CARDS ---------- */
.feature-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235,.28);
  box-shadow: var(--shadow-card-hover);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.feature-card p {
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.feature-icon {
  width: 55px; height: 55px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #fff7ed);
  border: 1px solid rgba(37, 99, 235,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin: 0 auto 20px;
}

/* ---------- GLASS (demo video frame) ---------- */
.glass-box {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235,.16);
  box-shadow:
    0 0 0 6px rgba(37, 99, 235,.05),
    0 25px 60px rgba(15,23,42,.12);
  border-radius: 28px;
}

/* ---------- PROBLEM STATS ---------- */
.problem-stat {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.problem-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.problem-stat-text {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
.problem-stat-src {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* ---------- HOW IT WORKS ---------- */
.how-card {
  position: relative;
  background: white;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}
.how-card:hover {
  border-color: rgba(37, 99, 235,.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.how-card-featured {
  border-color: rgba(37, 99, 235,.45);
  background: linear-gradient(160deg, #ffffff 0%, #f5f4ff 100%);
  box-shadow: 0 0 0 5px rgba(37, 99, 235,.06), var(--shadow-card);
}
.how-number {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #e0e3f5, #eef0fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.how-card-featured .how-number {
  background: linear-gradient(180deg, #93c5fd, #dbeafe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.how-icon { font-size: 2rem; margin-top: 0.5rem; display: block; }
.how-time {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ---------- FOR CARDS (industries) ---------- */
.for-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
}
.for-card:hover {
  border-color: rgba(37, 99, 235,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.for-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.8rem;
}
.for-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.for-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ---------- PRICING ---------- */
.pricing-card {
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}
.pricing-card ul li { color: var(--ink-soft); font-size: 0.95rem; }

.popular { position: relative; overflow: hidden; }
.popular::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 4px; width: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6, var(--saffron));
}
/* Popular card: dark slate so its light-gray text utilities stay readable */
.pricing-card.popular {
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(37, 99, 235,.35), transparent 70%),
    linear-gradient(160deg, #111633, #1e293b);
  border: 1px solid rgba(37, 99, 235,.35);
  box-shadow: 0 0 0 6px rgba(37, 99, 235,.08), 0 24px 60px rgba(30,27,75,.35);
}
.pricing-card.popular:hover {
  box-shadow: 0 0 0 6px rgba(37, 99, 235,.12), 0 30px 70px rgba(30,27,75,.45);
}
.pricing-card.popular h3,
.pricing-card.popular > div { color: #f8fafc; }
.pricing-card.popular ul li { color: #e2e8f0; }

.popular-tag {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235,.4);
}

/* ---------- POLICY BOX ---------- */
.policy-box {
  background: var(--surface-tint);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
}
.policy-item strong {
  display: block;
  color: #2563eb;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.policy-item p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- ABOUT ---------- */
.about-box {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}
.about-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}
.about-stat span.icon { font-size: 1.3rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-box {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow .2s;
}
.faq-box.open {
  border-color: rgba(37, 99, 235,.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235,.06), var(--shadow-card);
}
.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #2563eb;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-box.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.2rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-box.open .faq-answer { display: block; }

/* ---------- FINAL CTA ---------- */
.no-website {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 65% at 50% -15%, rgba(37, 99, 235,.4), transparent 65%),
    radial-gradient(ellipse 45% 45% at 92% 100%, rgba(255,153,51,.12), transparent 70%),
    linear-gradient(160deg, #0d1129, #1e293b);
  color: white;
  border: 1px solid rgba(37, 99, 235,.25);
  border-radius: 30px;
  padding: 64px 30px;
}
.no-website::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.no-website h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- MOBILE MENU ---------- */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  padding: 1rem 0;
}
.mobile-link {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}
.mobile-link:hover { background: #f8faff; color: #2563eb; }
.mobile-cta {
  margin: 0.8rem 1.5rem 0;
  background: var(--gradient);
  color: white !important;
  border-radius: 10px;
  text-align: center;
  border: none;
}

/* ---------- FOOTER ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ---------- BTN SECONDARY ---------- */
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-secondary:hover { background: #2563eb; color: white; }

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .hero-section { padding-top: 76px; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .no-website h2 { font-size: 2rem; }
  nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid.grid-cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid.grid-cols-2 { grid-template-columns: 1fr; }
}
