/* =============================================================================
   Education Management System — ল্যান্ডিং পেইজ
   অন্ধকার থিম • কফির উষ্ণ রং (অ্যাম্বার) • বাংলা-আগে ফন্ট
   ============================================================================= */
:root {
    --bg: #0e0e10;
    --bg2: #17171a;
    --ink: #ececee;
    --muted: #9a9aa0;
    --line: rgba(255, 255, 255, 0.08);
    --amber: #f5b544;
    --amber-2: #e08a2c;
    --steel: #ffd28a;
    --card: rgba(255, 255, 255, 0.05);
    --font: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', 'Vrinda', 'Shonar Bangla', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-en: 'Poppins', 'Inter', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); min-height: 100vh; overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- পটভূমি ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(1200px 700px at 50% 110%, #1a0f08 0%, transparent 60%), radial-gradient(900px 600px at 10% -10%, #1c1c20 0%, transparent 60%), linear-gradient(180deg, #0e0e10, #0b0b0d 60%, #0c0a08); }
.bg .glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.bg .g1 { width: 620px; height: 620px; left: 50%; bottom: -220px; transform: translateX(-50%); background: rgba(242, 150, 60, 0.28); animation: breathe 9s ease-in-out infinite; }
.bg .g2 { width: 520px; height: 520px; right: -160px; top: -160px; background: rgba(255, 255, 255, 0.04); }
.bg .grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%); }
#dust { position: absolute; inset: 0; }
#dust { position: absolute; inset: 0; }
#dust span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 214, 160, 0.6); animation: floaty linear infinite; }
@keyframes floaty { 0% { transform: translateY(0) translateX(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(-120vh) translateX(40px); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.38; } 50% { opacity: 0.62; } }

/* ---------- উপরের বার ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(180deg, rgba(14, 14, 16, 0.85), rgba(14, 14, 16, 0)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-en); font-weight: 700; letter-spacing: 0.08em; }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.navlink { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-nav { cursor: pointer; text-decoration: none; border: 1px solid rgba(245, 181, 68, 0.5); background: rgba(245, 181, 68, 0.1); color: var(--amber); font-weight: 700; font-size: 0.95rem; padding: 8px 18px; border-radius: 999px; transition: all 0.2s; }
.btn-nav:hover { background: var(--amber); color: #1a1206; }

main, .foot { position: relative; z-index: 2; }

/* ---------- হিরো ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: clamp(84px, 11vh, 120px) clamp(14px, 4vw, 48px) 28px; display: flex; flex-direction: column; align-items: center; }
.hero-head { text-align: center; width: 100%; max-width: 1100px; }
.brand-title { font-family: var(--font-en); font-weight: 800; font-size: clamp(1.5rem, 4.4vw, 3.3rem); letter-spacing: 0.02em; line-height: 1.12; background: linear-gradient(180deg, #fff6e6 10%, #f2b45a 70%, #c8761f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(242, 150, 60, 0.3)); }
.brand-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.question { font-weight: 800; font-size: clamp(2.6rem, min(9.2vw, 11.5vh), 6.6rem); line-height: 1.15; margin-top: clamp(10px, 2.4vh, 22px); color: var(--ink); text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); }
.question span { background: linear-gradient(180deg, #ffd89a, #f08a2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { color: var(--muted); font-size: clamp(1rem, 1.9vw, 1.25rem); margin-top: 4px; }

.hero-main { width: 100%; max-width: 1240px; margin-top: clamp(4px, 1.5vh, 14px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0fr); align-items: center; gap: 0; transition: grid-template-columns 1s cubic-bezier(0.2, 0.8, 0.2, 1), gap 1s; }
.hero.poured .hero-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(12px, 2.5vw, 36px); }

/* ---------- দৃশ্য ---------- */
.stage { position: relative; width: 100%; min-width: 0; max-width: min(1160px, max(340px, calc((100vh - 330px) * 2.44))); margin: 0 auto; user-select: none; -webkit-user-select: none; }
#scene { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
#handleHit { cursor: grab; touch-action: none; outline: none; }
#handleHit.drag { cursor: grabbing; }
#handleHit:focus-visible { stroke: rgba(245, 181, 68, 0.35); }
.pulse { fill: none; stroke: var(--amber); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
.stage.touched .pulse, .hero.poured .pulse { display: none; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.95; } 100% { transform: scale(2.1); opacity: 0; } }
.steam path { fill: none; stroke: rgba(255, 255, 255, 0.38); stroke-width: 6; stroke-linecap: round; opacity: 0; }
.steam.on path { animation: steam 3.4s ease-in-out infinite; }
.steam.on path:nth-child(2) { animation-delay: 0.9s; }
.steam.on path:nth-child(3) { animation-delay: 1.8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(18px) scaleY(0.85); } 30% { opacity: 0.75; } 100% { opacity: 0; transform: translateY(-34px) scaleY(1.12); } }
.stream-shine { stroke-dasharray: 16 10; animation: flow 0.45s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 0.9s ease-out infinite; }
#ripple2 { animation-delay: 0.45s; }
@keyframes ripple { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

/* হাতের ইঙ্গিত */
.hand { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -10px 0 0 -26px; pointer-events: none; opacity: 0; z-index: 3; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); animation: handHint 3.6s ease-in-out 1.2s infinite; }
.hand .ring { position: absolute; left: 12px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); opacity: 0; animation: ringTap 3.6s ease-out 1.2s infinite; }
.stage.touched .hand, .hero.poured .hand { display: none; }
@keyframes handHint {
    0% { opacity: 0; transform: translateY(26px) scale(1); }
    10% { opacity: 1; transform: translateY(0) scale(1); }
    18% { transform: translateY(0) scale(0.9); }
    24% { transform: translateY(0) scale(0.9); }
    58% { opacity: 1; transform: translateY(calc(var(--drag, 110px) * -1)) scale(0.9); }
    72% { opacity: 0; transform: translateY(calc(var(--drag, 110px) * -1)) scale(1); }
    100% { opacity: 0; transform: translateY(26px) scale(1); }
}
@keyframes ringTap { 0%, 10% { opacity: 0; transform: scale(0.4); } 16% { opacity: 1; transform: scale(0.7); } 28% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; } }

.hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--amber); font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.18rem); margin-top: 2px; animation: nudge 2s ease-in-out infinite; }
.hint svg { animation: lift 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes lift { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.stage.touched .hint, .hero.poured .hint { opacity: 0; visibility: hidden; height: 0; margin: 0; animation: none; }
.skip { display: block; margin: 6px auto 0; background: none; border: 0; color: #7f879b; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.9rem; padding: 6px 10px; }
.skip:hover { color: #fff; }
.hero.poured .skip { display: none; }

/* ---------- লগ ইন কার্ড ---------- */
.auth { position: relative; min-width: 0; overflow: hidden; opacity: 0; transform: translateX(40px) scale(0.98); pointer-events: none; border-radius: 24px; border: 1px solid transparent; transition: opacity 0.8s ease 0.25s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
.hero:not(.poured) .auth { max-height: 0; }
.hero:not(.poured) .auth { max-height: 0; }
.hero.poured .auth { opacity: 1; transform: none; pointer-events: auto; border-color: rgba(255, 255, 255, 0.14); background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.auth-inner { padding: clamp(20px, 2.6vw, 30px); min-width: 300px; }
.ready { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #b9f3c9; background: rgba(60, 200, 110, 0.12); border: 1px solid rgba(60, 200, 110, 0.3); padding: 4px 12px 4px 8px; border-radius: 999px; }
.auth h3 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); font-weight: 700; margin: 12px 0 14px; line-height: 1.3; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(0, 0, 0, 0.35); border-radius: 14px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 1rem; padding: 10px 8px; border-radius: 11px; cursor: pointer; transition: all 0.2s; }
.tabs button.on { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #1a1206; box-shadow: 0 6px 18px rgba(245, 181, 68, 0.35); }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 0; cursor: pointer; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 1.02rem; transition: transform 0.15s, box-shadow 0.2s; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.btn-google:disabled { opacity: 0.6; cursor: wait; }
.or { display: flex; align-items: center; gap: 12px; color: #8b93a8; font-size: 0.88rem; margin: 16px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.f { display: block; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: #cfd5e4; }
.f input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 1rem; color: #fff; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.f input::placeholder { color: #6f778c; }
.f input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 181, 68, 0.2); }
.f.bad input { border-color: #ef6b6b; }
.pw { position: relative; display: block; }
.pw input { padding-right: 74px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-38%); border: 0; background: rgba(255, 255, 255, 0.08); color: #cbd2e4; font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.eye:hover { background: rgba(255, 255, 255, 0.16); }
.msg { min-height: 22px; font-size: 0.9rem; margin: 2px 0 8px; color: #ff9c9c; }
.msg.ok { color: #9be7b4; }
.btn-main { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border: 0; border-radius: 14px; cursor: pointer; font-size: 1.05rem; font-weight: 800; color: #1a1206; background: linear-gradient(135deg, #ffd08a, var(--amber) 45%, var(--amber-2)); box-shadow: 0 10px 28px rgba(245, 181, 68, 0.38); transition: transform 0.15s, box-shadow 0.2s, filter 0.2s; }
.btn-main:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(245, 181, 68, 0.5); }
.btn-main:disabled { opacity: 0.65; cursor: wait; transform: none; }
.link { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--steel); cursor: pointer; font-size: 0.92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.demo-note { margin-top: 14px; font-size: 0.8rem; line-height: 1.55; color: #e9c98f; background: rgba(245, 181, 68, 0.08); border: 1px dashed rgba(245, 181, 68, 0.4); padding: 9px 12px; border-radius: 12px; }
.done { text-align: center; padding: 48px 22px; }
.done h3 { margin: 14px 0 6px; }
.done p { color: var(--muted); }
.done svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 0.7s ease forwards; }
.done svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 0.5s ease 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- সুবিধাসমূহ ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.features { padding: clamp(60px, 10vh, 110px) 0 clamp(50px, 8vh, 90px); background: linear-gradient(180deg, transparent, rgba(10, 14, 24, 0.85) 18%); border-top: 1px solid var(--line); }
.kicker { color: var(--amber); font-weight: 700; letter-spacing: 0.04em; font-size: 0.95rem; text-align: center; }
.features h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.25; margin: 6px 0 12px; }
.lead { text-align: center; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 720px; margin: 0 auto 40px; }
.lead b { color: var(--amber); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { padding: 24px 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; opacity: 0; transform: translateY(24px); }
.card.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-5px); border-color: rgba(245, 181, 68, 0.5); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.card .ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(245, 181, 68, 0.12); border: 1px solid rgba(245, 181, 68, 0.3); margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.cta { text-align: center; margin-top: 44px; }
.cta .btn-main { width: auto; padding: 14px 40px; }

.foot { padding: 34px 0 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 0.95rem; background: #0b0b0d; }
.foot-brand { font-family: var(--font-en); font-weight: 700; color: var(--ink); letter-spacing: 0.06em; margin-bottom: 4px; }
.foot b { color: var(--amber); }

/* ---------- ছোট স্ক্রিন ---------- */
@media (max-width: 900px) {
    .hero.poured .hero-main { grid-template-columns: minmax(0, 1fr); }
    .hero-main { grid-template-columns: minmax(0, 1fr); }
    .auth { display: none; }
    .hero.poured .auth { display: block; margin: 8px auto 0; width: 100%; max-width: 480px; }
    .auth-inner { min-width: 0; }
    .navlink { display: none; }
}
@media (max-width: 520px) {
    .hint { font-size: 0.98rem; }
    .btn-nav { padding: 7px 14px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .card { opacity: 1; transform: none; }
    #dust { display: none; }
}

/* ---------- নতুন হেডার ও হিরো-হেড ---------- */
.brand { letter-spacing: 0; gap: 14px; }
.brand-logo { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--amber); background: linear-gradient(145deg, #1d1a14, #0e0d0b); border: 1px solid rgba(245, 181, 68, 0.35); box-shadow: 0 0 22px rgba(245, 181, 68, 0.25); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-family: var(--font-en); font-size: clamp(0.95rem, 2.2vw, 1.3rem); font-weight: 700; color: #fff; letter-spacing: 0; }
.brand-text small { font-family: var(--font-en); font-size: clamp(0.58rem, 1.3vw, 0.72rem); font-weight: 600; letter-spacing: 0.16em; color: var(--amber); }
.btn-portal { display: inline-flex; align-items: center; gap: 8px; border: 0; color: #1a1206; background: linear-gradient(135deg, #ffd08a, var(--amber) 45%, var(--amber-2)); box-shadow: 0 8px 24px rgba(245, 181, 68, 0.35); padding: 11px 20px; border-radius: 14px; }
.btn-portal:hover { color: #1a1206; filter: brightness(1.07); transform: translateY(-1px); background: linear-gradient(135deg, #ffd08a, var(--amber) 45%, var(--amber-2)); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 6px auto 0; padding: 7px 20px; border-radius: 999px; font-weight: 600; font-size: clamp(0.85rem, 1.6vw, 1rem); color: var(--amber); border: 1px solid rgba(245, 181, 68, 0.4); background: rgba(245, 181, 68, 0.08); }
.tag { max-width: 780px; margin-left: auto; margin-right: auto; line-height: 1.75; }

.foot-role { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- টাইপোগ্রাফি ---------- */
body { font-feature-settings: "kern" 1, "liga" 1; text-rendering: optimizeLegibility; }
.question { letter-spacing: -0.01em; text-wrap: balance; }
.tag { text-wrap: pretty; color: #a1a1aa; }
.kicker { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 0.88rem; letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; }
.kicker::before, .kicker::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 181, 68, 0.7)); }
.kicker::after { transform: scaleX(-1); }
.features h2 { letter-spacing: -0.01em; text-wrap: balance; margin: 10px 0 14px; }
.features .lead { color: #a1a1aa; line-height: 1.8; text-wrap: pretty; }

/* ---------- কার্ড ---------- */
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: card; gap: 16px; }
.card { counter-increment: card; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 22px 20px 24px; border-radius: 16px; background: linear-gradient(180deg, #19191c, #141417); border: 1px solid var(--line); }
.card::before { content: '০' counter(card, bengali); position: absolute; top: 18px; right: 18px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(147, 160, 184, 0.6); }
.card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #f5b544, #e08a2c); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.card.in:hover { transform: translateY(-4px); border-color: rgba(245, 181, 68, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.card:hover::after { transform: scaleX(1); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; background: rgba(245, 181, 68, 0.14); border: 1px solid rgba(245, 181, 68, 0.28); }
.card .ico svg { width: 22px; height: 22px; stroke: #f5b544; stroke-width: 1.8; }
.card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; margin: 0 0 8px; color: #f4f4f5; }
.card p { font-size: 0.93rem; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.brand-text b, .btn-portal span { white-space: nowrap; }
.btn-portal { white-space: nowrap; }
@media (max-width: 640px) {
    .brand { gap: 10px; min-width: 0; }
    .brand-logo { width: 38px; height: 38px; border-radius: 11px; }
    .brand-logo svg { width: 22px; height: 22px; }
    .brand-text small { display: none; }
    .brand-text b { font-size: 0.86rem; }
    .btn-portal { padding: 9px 12px; border-radius: 12px; }
    .btn-portal span { font-size: 0.84rem; }
    .navlink { display: none; }
    .topbar { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 400px) { .brand-text b { font-size: 0.68rem; } .btn-portal svg { display: none; } .btn-portal { padding: 8px 10px; } .btn-portal span { font-size: 0.8rem; } .brand { gap: 8px; } .brand-logo { width: 34px; height: 34px; } }
/* ---------- চিন্তিত শিক্ষক: কফি ঢাললে সরে যায়, কাপ-ফ্লাক্স তাঁর জায়গা নেয় ---------- */
#teacher { transition: opacity 0.6s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero.poured #teacher { opacity: 0; transform: translateX(-140px); pointer-events: none; }
.t-head { transform-box: fill-box; transform-origin: 50% 85%; animation: tSigh 4.8s ease-in-out infinite; }
@keyframes tSigh { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) translateY(2px); } }
#sweat { animation: tSweat 2.8s ease-in infinite; }
@keyframes tSweat { 0% { opacity: 0; transform: translateY(-4px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
.t-think { transform-box: fill-box; transform-origin: center; animation: tThink 2.6s ease-in-out infinite; }
@keyframes tThink { 50% { transform: translateY(-7px) rotate(3deg); } }
.hero.poured .stage { max-width: min(760px, max(320px, calc((100vh - 300px) * 1.33))); }
@media (prefers-reduced-motion: reduce) { .t-head, #sweat, .t-think { animation: none; } #teacher { transition: none; } }
/* ---------- হিরো: স্পষ্ট "শুরু করুন" বোতাম ---------- */
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(14px, 2.4vh, 22px); }
.btn-hero { width: auto; padding: 14px 34px; font-size: 1.1rem; border-radius: 14px; }
.btn-hero svg { transition: transform 0.2s; }
.btn-hero:hover svg { transform: translateX(3px); }
.hero-or { color: var(--muted); font-size: 0.95rem; }
.hero.poured .hero-cta { display: none; }
.skip { display: none !important; }

/* ---------- তিন ধাপ ---------- */
.cards.steps { list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1040px; margin: 0 auto; }
.step { padding: 26px 24px 28px; }
.step .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(245, 181, 68, 0.12); border-color: rgba(245, 181, 68, 0.3); }
.step .ico svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.22rem; }
.step-arrow { position: absolute; right: -24px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); z-index: 2; }
.step-arrow::before { content: ''; position: absolute; inset: 3px 5px 3px 0; border-top: 2.5px solid var(--amber); border-right: 2.5px solid var(--amber); transform: rotate(45deg); }
.cards.steps .card { overflow: visible; }
.mods-title { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.14em; margin: 46px 0 14px; }
.mods { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.mods li { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: #d4d4d8; font-size: 0.95rem; font-weight: 500; }
.foot-copy { margin-top: 8px; font-size: 0.82rem; color: #71717a; }
@media (max-width: 900px) {
    .cards.steps { grid-template-columns: 1fr; gap: 26px; max-width: 520px; }
    .step-arrow { right: 50%; top: auto; bottom: -24px; transform: translateX(50%) rotate(90deg); }
}
/* ---------- হিরো: "শুরু করুন" (হাতল টানার ইঙ্গিতের জায়গায়) ---------- */
.hint-btn { width: auto; margin: 10px auto 0; padding: 13px 34px; font-size: 1.08rem; display: flex; }
.hint-btn svg { transition: transform 0.2s; }
.hint-btn:hover svg { transform: translateX(3px); }
.stage.touched .hint-btn, .hero.poured .hint-btn { display: none; }
.tag br { display: block; }
@media (max-width: 760px) { .tag br { display: none; } }
.nowrap { white-space: nowrap; }
.lead { max-width: 960px; }

/* ---------- আটটি মডিউল: ৪টি করে দুই সারিতে ---------- */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 920px; }
.mods li { text-align: center; padding: 10px 12px; border-radius: 12px; white-space: nowrap; }
@media (max-width: 700px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mods li { white-space: normal; } }

/* ---------- ফুটার ---------- */
.foot { text-align: left; padding: 44px 0 26px; background: #0b0b0d; }
.foot-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.foot-col { min-width: 0; }
.foot-brand { font-size: 1.15rem; letter-spacing: 0.02em; margin-bottom: 6px; color: #f4f4f5; }
.foot-tag { color: var(--muted); font-size: 0.95rem; max-width: 460px; line-height: 1.7; }
.foot-dev { text-align: right; }
.foot-label { font-size: 0.75rem; letter-spacing: 0.16em; color: #71717a; margin-bottom: 4px; }
.foot-name { color: #e4e4e7; font-size: 1rem; }
.foot-name b { color: var(--amber); }
.foot-role { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.foot-copy { text-align: center; margin-top: 18px; font-size: 0.85rem; color: #71717a; }
@media (max-width: 640px) { .foot-main { flex-direction: column; } .foot-dev { text-align: left; } }.brand-text small { font-family: var(--font); letter-spacing: 0.01em; font-size: clamp(0.66rem, 1.4vw, 0.8rem); }
.tag { max-width: 880px; }
.mods-title, .foot-label { letter-spacing: 0.02em; }

/* ---------- হিরো টাইপোগ্রাফি: শিরোনাম ও বক্তব্য ---------- */
.question { font-size: clamp(2.2rem, min(6.4vw, 9vh), 4.9rem); line-height: 1.2; letter-spacing: -0.005em; margin-top: clamp(12px, 2.2vh, 20px); }
.question span { display: inline-block; padding-bottom: 0.06em; }
.tag { max-width: 900px; margin-top: clamp(8px, 1.6vh, 14px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tag-q { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 600; color: #f4f4f5; letter-spacing: 0; }
.tag-a { font-size: clamp(1rem, 1.75vw, 1.2rem); color: #a1a1aa; line-height: 1.75; }
.tag-a em { font-style: normal; color: var(--amber); font-weight: 600; }
.tag-a strong { color: #e4e4e7; font-weight: 600; }

/* ---------- ফুটার: নির্মাতার ছবি ---------- */
.foot-main { align-items: center; }
.foot-brand { font-size: 1.25rem; margin: 0; }
.foot-dev { display: flex; align-items: center; gap: 16px; text-align: left; }
.foot-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid rgba(245, 181, 68, 0.55); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); flex: 0 0 auto; }
.foot-label { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a90; margin-bottom: 2px; }
.foot-name { font-family: var(--font-en); font-size: 1.12rem; font-weight: 700; color: var(--amber); line-height: 1.3; }
.foot-role { font-family: var(--font-en); font-size: 0.9rem; color: #a1a1aa; }
@media (max-width: 640px) { .foot-main { align-items: flex-start; } }
.foot-label { text-transform: none; letter-spacing: 0.04em; font-size: 0.8rem; }

/* ---------- লগ ইন কার্ড এলে উপরের লেখা ধীরে ভাঁজ হয়ে সরে যায়; কাপ ও লগ ইন কার্ড উপরে উঠে আসে ---------- */
.hero-head { max-height: 640px; overflow: hidden; transition: max-height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, margin 0.8s ease, transform 0.8s ease; }
.hero.poured .hero-head { max-height: 0; opacity: 0; margin: 0; transform: translateY(-16px); pointer-events: none; }
.hero { transition: padding 0.8s ease; }
.hero.poured { padding-top: clamp(76px, 9vh, 96px); }
.hero.poured .hero-main { margin-top: 0; align-items: start; }
@media (prefers-reduced-motion: reduce) { .hero-head { transition: none; } }
/* ---------- ফুটার: লোগো, লিংক ও যোগাযোগ ---------- */
.foot-main { align-items: center; }
.foot-id { display: flex; flex-direction: column; gap: 12px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.foot-logo .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
.foot-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: 54px; }
.foot-links a, .foot-links button { background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.92rem; color: #a1a1aa; text-decoration: none; padding: 4px 10px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.foot-links a:first-child { padding-left: 0; }
.foot-links a:hover, .foot-links button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.foot-links button::before { content: '·'; color: #52525b; margin-right: 12px; }
.foot-dev { align-items: center; }
.foot-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fc { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.12); color: #e4e4e7; background: rgba(255, 255, 255, 0.03); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.fc-wa svg { color: #25d366; }
.fc-wa:hover { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.5); color: #fff; }
.fc-mail svg { color: var(--amber); }
.fc-mail:hover { background: rgba(245, 181, 68, 0.12); border-color: rgba(245, 181, 68, 0.5); color: #fff; }
.fc-mail span { font-family: var(--font-en); }
@media (max-width: 640px) { .foot-links { margin-left: 0; } }
@media (max-width: 640px) { .foot-dev { align-items: flex-start; } .foot-photo { width: 60px; height: 60px; } }

/* ফুটারের বামে যোগাযোগ */
.foot-id .foot-contact { margin-top: 0; margin-left: 54px; align-items: center; }
.fc-label { font-family: var(--font-en); font-size: 0.85rem; font-weight: 600; color: #8a8a90; margin-right: 2px; }
@media (max-width: 640px) { .foot-id .foot-contact { margin-left: 0; } }
/* ফুটারের বামে টুপির প্রতীক — ডানের ছবির মতো একই মাপ ও গোল ফ্রেম */
.foot-id { flex-direction: row; align-items: center; gap: 16px; }
.foot-emblem { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--amber);
    background: radial-gradient(circle at 50% 35%, #26221a, #121110 70%); border: 2px solid rgba(245, 181, 68, 0.55); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); text-decoration: none; }
.foot-idtxt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-id .foot-contact { margin-left: 0; }
@media (max-width: 640px) { .foot-id { align-items: flex-start; } .foot-emblem { width: 60px; height: 60px; } }