/* ==================== QUIZEE MARKETING SITE — DESIGN SYSTEM ====================
   Palette derived from the actual Quizee logo (navy → blue → purple, pink accent).
   Type: Plus Jakarta Sans (display) + Inter (body).
================================================================================= */
:root {
  --navy: #0a0e27;
  --navy-soft: #10163a;
  --blue: #3b5fe0;
  --blue-bright: #4f7fff;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6e9f5;
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --grad-hero: linear-gradient(160deg, #0a0e27 0%, #161b47 55%, #241a52 100%);
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 24px 60px rgba(59, 95, 224, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: inline-block; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lift); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 28px 70px rgba(59, 95, 224, 0.28); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 248, 252, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand img { height: 42px; width: 42px; border-radius: 11px; object-fit: cover; }
.footer-logo-wide { height: 44px; width: auto; object-fit: contain; margin-bottom: 16px; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.nav-links a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; z-index: 200; position: relative; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .header-actions .btn-outline { display: none; }
  .mobile-toggle { display: block; }
}

/* ---------------- Mobile nav drawer ---------------- */
.mobile-drawer { position: fixed; inset: 0; background: rgba(10,14,39,0.55); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel { position: absolute; top: 0; right: 0; width: min(80vw, 320px); height: 100%; background: #fff; padding: 90px 28px 28px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.15); }
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-panel a { padding: 14px 4px; font-weight: 700; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-drawer-panel .btn { margin-top: 16px; justify-content: center; }
.mobile-drawer-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* ---------------- Hero ---------------- */
.hero { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; padding: 90px 0 110px; }
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(139,92,246,0.35), transparent 70%); border-radius: 50%; filter: blur(10px); }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -15%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,95,224,0.3), transparent 70%); border-radius: 50%; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); color: #fff; margin-bottom: 22px; }
.hero h1 .grad-text { background: linear-gradient(90deg, #7fa4ff, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 500px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-login { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.hero-login a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------------- Screenshot showcase (browser-window mockup — preserves real aspect ratio, no squeezing) ---------------- */
.phone-stack { position: relative; display: flex; align-items: center; justify-content: center; padding: 30px 0; }
.browser-mock { position: relative; width: 100%; max-width: 460px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1); }
.browser-mock .chrome-bar { background: #eef0f6; padding: 10px 14px; display: flex; gap: 6px; }
.browser-mock .chrome-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.browser-mock img { width: 100%; height: auto; display: block; }
.browser-mock.mock-2 { position: absolute; max-width: 300px; right: -30px; bottom: -40px; transform: rotate(-3deg); z-index: 0; opacity: 0.94; }
.browser-mock.mock-1 { position: relative; z-index: 1; }
.available-tag { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 6px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; color: #fff; backdrop-filter: blur(8px); z-index: 4; letter-spacing: 0.04em; white-space: nowrap; }

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .phone-stack { padding-top: 50px; }
  .browser-mock.mock-2 { display: none; }
}

/* ---------------- Sections ---------------- */
.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .muted { color: rgba(255,255,255,0.6); }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,0.68); }

/* ---------------- Story rows (screenshot + text alternating) ---------------- */
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 110px; }
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse .story-text { order: 2; }
.story-row.reverse .story-visual { order: 1; }
.story-step { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.story-step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }
.story-text h3 { font-size: 1.7rem; margin-bottom: 14px; }
.story-text p { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }
.feature-label { display: inline-block; background: #eef2ff; color: var(--blue); font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 100px; }
.story-visual { display: flex; justify-content: center; }
.shot-frame { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--border); background: #fff; width: 100%; max-width: 460px; }
.shot-frame .chrome-bar { background: #eef0f6; padding: 10px 14px; display: flex; gap: 6px; }
.shot-frame .chrome-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.shot-frame img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .story-row, .story-row.reverse .story-text, .story-row.reverse .story-visual { grid-template-columns: 1fr; order: initial; }
  .story-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 70px; text-align: center; }
  .story-visual { order: -1; }
}

/* ---------------- Cards ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-card { background: var(--card); border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow-card); border: 1px solid var(--border); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.feature-card .icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.3rem; color: #fff; }
.feature-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------------- Ecosystem (three audiences) ---------------- */
.eco-flow { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin-top: 50px; }
.eco-card { background: var(--card); border-radius: var(--radius); padding: 40px 32px; width: 280px; text-align: center; box-shadow: var(--shadow-card); border: 1px solid var(--border); position: relative; z-index: 2; }
.eco-card .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; padding: 6px 14px; border-radius: 100px; margin-bottom: 18px; }
.eco-card.student .tag { background: #eef2ff; color: var(--blue); }
.eco-card.parent .tag { background: #f3e8ff; color: var(--purple); }
.eco-card.institute .tag { background: #fce7f3; color: var(--pink); }
.eco-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.eco-card p { color: var(--muted); font-size: 0.92rem; }
.eco-arrow { width: 60px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--purple)); position: relative; z-index: 1; }
.eco-arrow::after { content: '→'; position: absolute; right: -4px; top: -11px; color: var(--purple); font-weight: 900; }

@media (max-width: 940px) {
  .eco-flow { flex-direction: column; }
  .eco-arrow { width: 2px; height: 40px; }
  .eco-arrow::after { content: '↓'; right: -9px; top: auto; bottom: -6px; }
}

/* ---------------- Choose-experience cards ---------------- */
.choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.choose-card { border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow-card); border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 18px; }
.choose-card h3 { font-size: 1.4rem; }
.choose-card .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .choose-grid { grid-template-columns: 1fr; } }

/* ---------------- App download band ---------------- */
.download-band { background: var(--grad-hero); color: #fff; border-radius: 32px; padding: 70px 50px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.download-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(139,92,246,0.35), transparent 60%); }
.download-band .content { position: relative; z-index: 1; }
.download-band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.download-band p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 28px; max-width: 460px; }
.download-band .phone-mini { position: relative; z-index: 1; width: 260px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 30px 70px rgba(0,0,0,0.5); background: #fff; }
.download-band .phone-mini .chrome-bar { background: #eef0f6; padding: 8px 12px; display: flex; gap: 5px; }
.download-band .phone-mini .chrome-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.download-band .phone-mini img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .download-band { grid-template-columns: 1fr; text-align: center; padding: 50px 28px; } .download-band .content p { margin-left: auto; margin-right: auto; } .download-band .phone-mini { margin: 0 auto; } }

/* ---------------- Final CTA ---------------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 16px; }
.final-cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 34px; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-grid h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- Footer contact bar ---------------- */
.footer-contact { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.92rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.8); font-weight: 500; }
.footer-contact a:hover { color: #fff; }
.footer-contact i { color: var(--blue-bright); font-size: 1.05rem; }
.footer-contact a:has(.fa-whatsapp) i { color: #25d366; }

/* ---------------- WhatsApp chat widget ---------------- */
.wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-chat-card { width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; opacity: 0; transform: translateY(16px) scale(0.95); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.wa-chat-card.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-chat-header { background: #075e54; color: #fff; padding: 16px; display: flex; align-items: center; gap: 12px; position: relative; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.wa-chat-name { font-weight: 700; font-size: 0.95rem; }
.wa-chat-status { font-size: 0.75rem; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.wa-chat-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.wa-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 1rem; cursor: pointer; padding: 4px; }
.wa-chat-body { background: #e5ddd5; padding: 16px; }
.wa-bubble { background: #fff; padding: 12px 14px; border-radius: 10px; font-size: 0.85rem; color: #1f2937; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.wa-start-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #fff; padding: 14px; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.wa-start-btn:hover { background: #20bd5a; color: #fff; }
.whatsapp-float { width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(37,211,102,0.45); color: #fff; font-size: 1.7rem; border: none; cursor: pointer; transition: transform 0.2s ease; flex-shrink: 0; }
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 640px) { .wa-chat-card { width: calc(100vw - 32px); } .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; } }

/* ---------------- Page hero (sub-pages) ---------------- */
.page-hero { background: var(--grad-hero); color: #fff; padding: 70px 0 90px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 3.8vw, 3.2rem); margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 620px; margin: 0 auto 30px; }
.page-hero .hero-ctas { justify-content: center; }

/* ---------------- Utility ---------------- */
.mt-lg { margin-top: 60px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
