/* ============================================================
   LEARNING HOME — AI STUDY TOOL STYLESHEET
   File: ai-style.css
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg:       #070b14;
  --bg2:      #0c1120;
  --bg3:      #111827;
  --primary:  #1B3F6E;
  --accent:   #F4A261;
  --accent2:  #e8943a;
  --green:    #2ECC71;
  --white:    #ffffff;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --border:   rgba(255,255,255,0.08);
  --card:     rgba(255,255,255,0.04);
  --radius:   18px;
  --shadow:   0 8px 32px rgba(0,0,0,0.35);
  --font:     'Space Grotesk', sans-serif;
  --bn-font:  'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: var(--font); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CANVAS BG ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---- PROGRESS ---- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffd700);
  z-index: 10001;
  transition: width 0.1s;
}


/* ---- NAV (AI PAGE OVERRIDES) ---- */
nav.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
nav.scrolled .logo-main {
  color: #1B3F6E;
}
nav.scrolled .logo-sub {
  color: #64748b;
}
nav.scrolled .nav-link {
  color: #1f2937;
}
nav.scrolled .nav-link:hover,
nav.scrolled .nav-link.active {
  color: var(--accent);
}
nav.scrolled .hamburger {
  color: #1B3F6E;
}
nav.scrolled .translate-icon-wrapper .goog-te-gadget-simple a {
  color: #1B3F6E !important;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(244,162,97,0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(244,162,97,0.4); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
}
.g1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,63,110,0.3), transparent 70%);
  top: -100px; left: -100px;
}
.g2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244,162,97,0.12), transparent 70%);
  top: 100px; right: -100px;
}
.hero .container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.25);
  padding: 7px 18px;
  border-radius: 50px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.htag {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 5px 13px;
  border-radius: 50px;
  font-family: var(--font);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- HERO VISUAL (ORB) ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(244,162,97,0.15);
  animation: orbit 8s linear infinite;
}
.r1 { width: 280px; height: 280px; }
.r2 { width: 370px; height: 370px; border-color: rgba(27,63,110,0.35); animation-duration: 14s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.orb-core {
  position: relative;
  z-index: 2;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(46,107,175,0.7), rgba(7,11,20,0.9));
  border: 2px solid rgba(244,162,97,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 0 60px rgba(244,162,97,0.15), 0 0 120px rgba(27,63,110,0.2);
  animation: orb-float 4s ease-in-out infinite;
}
@keyframes orb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stat-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
  animation: card-float 4s ease-in-out infinite;
}
.stat-card span { font-size: 1.3rem; }
.stat-card strong { font-family: var(--font); font-size: 0.82rem; color: var(--white); }
.stat-card small { font-size: 0.68rem; color: var(--muted); }
.s1 { top: 30px; right: 30px; animation-delay: 0s; }
.s2 { bottom: 50px; right: 10px; animation-delay: 1s; }
.s3 { top: 30px; left: 30px; animation-delay: 2s; }
.s4 { bottom: 50px; left: 10px; animation-delay: 3s; }
@keyframes card-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- TICKER ---- */
.ticker-bar {
  background: rgba(244,162,97,0.08);
  border-top: 1px solid rgba(244,162,97,0.2);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-inner span {
  color: var(--accent);
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 500;
  padding: 0 40px;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- SECTIONS ---- */
.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- HOW SECTION ---- */
.how-section { background: var(--bg2); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffd700);
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: left;
}
.how-card:hover { transform: translateY(-6px); border-color: rgba(244,162,97,0.25); }
.how-card:hover::before { transform: scaleX(1); }
.how-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(244,162,97,0.25);
}
.how-icon { font-size: 2rem; margin-bottom: 12px; }
.how-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.how-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* ---- AI TOOL SECTION ---- */
.tool-section {
  background: linear-gradient(180deg, var(--bg) 0%, #060b14 100%);
  padding: 96px 0;
  position: relative;
}
.tool-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(27,63,110,0.15), transparent 60%);
  pointer-events: none;
}

/* ---- TOOL CARD ---- */
.tool-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: 44px;
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(4px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

/* ---- TOOL STEPS ---- */
.tool-step { margin-bottom: 36px; }
.tool-step:last-of-type { margin-bottom: 0; }
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.25);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}
.step-label {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* ---- CLASS GRID ---- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}
.class-btn {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  color: rgba(255,255,255,0.6);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.class-btn:hover, .class-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(244,162,97,0.3);
}

/* ---- SUBJECT GRID ---- */
.subject-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subj-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 9px 18px;
  color: rgba(255,255,255,0.65);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
}
.subj-btn span { font-size: 1rem; }
.subj-btn:hover, .subj-btn.active {
  background: rgba(27,63,110,0.6);
  border-color: #2E6BAF;
  color: white;
}

/* ---- MODE GRID ---- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mode-btn {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  color: rgba(255,255,255,0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mode-btn .mode-icon { font-size: 1.8rem; }
.mode-btn strong { font-family: var(--font); font-size: 0.82rem; color: rgba(255,255,255,0.85); display: block; }
.mode-btn small { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.mode-btn:hover, .mode-btn.active {
  background: rgba(27,63,110,0.4);
  border-color: rgba(46,107,175,0.7);
  color: white;
}
.mode-btn.active { box-shadow: 0 0 0 2px rgba(46,107,175,0.4); }

/* ---- INPUT AREA ---- */
.input-area { display: flex; flex-direction: column; gap: 12px; }
.input-options { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Toggle switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  user-select: none;
}
.toggle-label input { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  position: relative;
  transition: background 0.3s;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.3s;
}
.toggle-label input:checked ~ .toggle-track { background: rgba(244,162,97,0.3); border-color: var(--accent); }
.toggle-label input:checked ~ .toggle-track .toggle-thumb { left: 20px; background: var(--accent); }

.textarea-wrap { position: relative; }
.topic-textarea {
  width: 100%;
  min-height: 90px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 50px 16px 18px;
  color: var(--white);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.97rem;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s;
}
.topic-textarea::placeholder { color: rgba(255,255,255,0.28); }
.topic-textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.07); }
.char-count {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ---- SAMPLES ---- */
.samples { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.samples-label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; padding-top: 6px; }
.sample-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
}
.chip:hover { background: rgba(244,162,97,0.12); border-color: rgba(244,162,97,0.3); color: var(--accent); }

/* ---- ASK BUTTON ---- */
.btn-ask {
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(244,162,97,0.3);
  margin: 28px 0 0;
  letter-spacing: 0.3px;
}
.btn-ask:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(244,162,97,0.4); }
.btn-ask:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---- LOADING ---- */
.loading-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  gap: 16px;
}
.loading-orb {
  position: relative;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: var(--font);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.loading-sub { font-size: 0.78rem; color: var(--muted); }
.dots span { animation: blink 1.4s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

/* ---- OUTPUT ---- */
.output-area {
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.output-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  flex-wrap: wrap;
  gap: 10px;
}
.output-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.output-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(46,204,113,0.5);
  animation: blink 1.5s ease-in-out infinite;
}
.output-actions { display: flex; gap: 8px; }
.out-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.65);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.out-btn:hover { background: rgba(255,255,255,0.12); color: white; }
.out-btn.out-wa:hover { background: rgba(37,211,102,0.2); border-color: rgba(37,211,102,0.3); color: #25D366; }
.output-box {
  padding: 28px 28px 20px;
  color: rgba(255,255,255,0.85);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.94rem;
  line-height: 1.9;
  min-height: 180px;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ---- FOLLOW-UP ---- */
.followup-area {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}
.followup-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.followup-row { display: flex; gap: 10px; }
.followup-inp {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  color: white;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
}
.followup-inp::placeholder { color: var(--muted); }
.followup-inp:focus { border-color: var(--accent); }
.btn-followup {
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(27,63,110,0.7);
  border: 1px solid rgba(46,107,175,0.5);
  color: white;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.btn-followup:hover { background: #1B3F6E; }

/* ---- FEATURES SECTION ---- */
.features-section { background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.35s;
  border-bottom: 3px solid transparent;
}
.feat-card:hover {
  border-color: var(--border);
  border-bottom-color: var(--c);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.feat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feat-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
.feat-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(244,162,97,0.1);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--font);
}

/* ---- BENGALI SECTION ---- */
.bengali-section {
  background: linear-gradient(135deg, #060b14, #0c1120);
  padding: 96px 0;
}
.bengali-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.bengali-left h2 {
  font-family: var(--bn-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.bengali-left > p {
  font-family: var(--bn-font);
  font-size: 0.97rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 24px;
}
.bengali-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.bengali-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--bn-font);
  font-size: 0.93rem;
  color: rgba(255,255,255,0.8);
}
.bcheck { font-size: 1rem; }

/* Demo Card */
.demo-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.demo-live {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  animation: blink 1.5s infinite;
  font-family: 'JetBrains Mono', monospace;
}
.demo-header > span:last-child { font-family: var(--bn-font); color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.demo-q {
  background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.2);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--accent);
  font-family: var(--bn-font);
  font-size: 0.87rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.demo-a {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 16px;
}
.demo-a-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font);
  margin-bottom: 10px;
}
.demo-a p {
  font-family: var(--bn-font);
  color: rgba(255,255,255,0.8);
  font-size: 0.86rem;
  line-height: 1.8;
  margin-bottom: 8px;
}
.demo-a ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}
.demo-a ul li {
  font-family: var(--bn-font);
  color: rgba(255,255,255,0.7);
  font-size: 0.84rem;
  line-height: 1.7;
}
.demo-tip {
  color: var(--accent);
  font-size: 0.8rem;
}

/* ---- FAQ SECTION ---- */
.faq-section { background: var(--bg); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.faq-left h2 { margin-bottom: 14px; }
.faq-left > p { color: var(--muted); font-size: 0.93rem; line-height: 1.8; margin-bottom: 28px; }
.faq-cta-card {
  background: linear-gradient(135deg, var(--primary), rgba(46,107,175,0.8));
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(46,107,175,0.3);
}
.faq-cta-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.faq-cta-card p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 18px; line-height: 1.7; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s;
}
.btn-wa:hover { background: #1da851; transform: translateY(-1px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(244,162,97,0.35); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  user-select: none;
}
.fq-ico { font-size: 1.2rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.open .fq-ico { transform: rotate(45deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-ans p { padding: 0 20px 18px; font-size: 0.87rem; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-ans { max-height: 300px; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--bg2);
  padding: 96px 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 { font-size: 2.6rem; font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-inner p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wa-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: #25D366;
  color: white;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa-big:hover { background: #1da851; transform: translateY(-2px); }

/* ---- FLOATING BUTTONS ---- */
.flt-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9998;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
}
.flt-wa::before {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  animation: wa-ring 2s infinite;
  z-index: -1;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }
.flt-wa:hover { transform: scale(1.1); }
.flt-ph {
  position: fixed;
  bottom: 90px; right: 24px;
  z-index: 9998;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(27,63,110,0.5);
  transition: all 0.3s;
}
.flt-ph:hover { transform: scale(1.1); }
.flt-top {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9998;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(244,162,97,0.3);
  transition: all 0.3s;
}
.flt-top:hover { background: var(--accent2); }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(20,28,45,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: var(--font);
  z-index: 10000;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- FADE IN ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- OUTPUT FORMATTING ---- */
.output-box .ai-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  display: block;
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(244,162,97,0.15);
}
.output-box .ai-title:first-child { margin-top: 0; }
.output-box .step-block {
  background: rgba(244,162,97,0.07);
  border-left: 3px solid rgba(244,162,97,0.5);
  border-radius: 0 8px 8px 0;
  padding: 9px 14px;
  margin: 8px 0;
}
.output-box .step-block strong { color: var(--accent); }
.output-box .ans-box {
  background: rgba(46,204,113,0.1);
  border: 1.5px solid rgba(46,204,113,0.35);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--green);
  margin: 8px 0;
}
.output-box hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .how-grid { grid-template-columns: repeat(2,1fr); }
  .mode-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .bengali-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(6,1fr); }
}
@media (max-width: 640px) {
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 1.8rem; }
  .tool-card { padding: 24px 18px; }
  .how-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(4,1fr); }
  .hero-btns, .cta-btns { flex-direction: column; align-items: flex-start; }
  .cta-btns { align-items: center; }
  .followup-row { flex-direction: column; }
  .output-actions { gap: 6px; }
  .out-btn span { display: none; }
}
