/* ===== CSS VARIABLES ===== */
:root {
  --navy:   #1f2937;
  --blue:   #1565c0;
  --teal:   #0097a7;
  --teal2:  #00bcd4;
  --coral:  #ff7a59;
  --coral2: #ff9776;
  --gold:   #f59e0b;
  --gold2:  #ffc857;
  --green:  #16a34a;
  --purple: #7c3aed;
  --red:    #dc2626;
  --sky:    #fff1e8;
  --white:  #ffffff;
  --text:   #1f2937;
  --muted:  #6b7280;
  --bg:     #fdfbf7;
  --yellow: #ffc857;
  --border: rgba(255, 122, 89, 0.14);
  --card:   #ffffff;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255, 251, 245, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,122,89,0.12);
  padding: 0 5vw; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0; text-decoration: none; }
.nav-logo-img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { color: rgba(31,41,55,0.72); font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 9px; transition: background 0.18s, color 0.18s; }
.nav-links a:hover { background: rgba(255,122,89,0.1); color: var(--coral); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 11px; opacity: 0.7; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 14px;
  overflow: hidden; min-width: 170px; box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  animation: dropIn 0.22s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; color: rgba(31,41,55,0.8); font-size: 13.5px; font-weight: 600; padding: 11px 18px; text-decoration: none; transition: background 0.15s, color 0.15s; border-bottom: 1px solid rgba(0,0,0,0.05); }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(255,122,89,0.1); color: var(--coral); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: rgba(0,0,0,0.05); border-radius: 9px; border: 1px solid rgba(0,0,0,0.08); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s; }
.mobile-menu { display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 998; background: rgba(255,251,245,0.98); backdrop-filter: blur(16px); padding: 16px 5vw 24px; border-bottom: 1px solid rgba(0,0,0,0.06); max-height: calc(100vh - 66px); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: rgba(31,41,55,0.82); font-size: 15px; font-weight: 700; text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 110px 5vw 72px;
  background: linear-gradient(145deg, #fff8f2 0%, #ffe9db 50%, #fff2e6 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,122,89,0.09) 1px, transparent 1px); background-size: 25px 25px; }
.page-hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.page-hero-glow-1 { width: 400px; height: 400px; top: -100px; left: -100px; background: radial-gradient(circle, rgba(255,122,89,0.16) 0%, transparent 65%); }
.page-hero-glow-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 65%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; color: #e35a35; margin-bottom: 14px; }
.page-hero h1 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(30px, 5vw, 52px); color: var(--navy); line-height: 1.15; }
.page-hero p { font-size: clamp(15px, 2vw, 17px); color: #4b5768; font-weight: 600; line-height: 1.65; max-width: 580px; margin: 14px auto 0; }

/* ===== SECTION GLOBALS ===== */
section { padding: 90px 5vw; }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(30px, 5vw, 52px); line-height: 1.18; color: var(--navy); margin-bottom: 18px; }
.section-title em { font-style: italic; color: var(--teal); }
.section-lead { font-size: clamp(15px, 2vw, 17px); color: var(--muted); font-weight: 600; line-height: 1.75; max-width: 640px; }

/* ===== APP CARDS (shared: Home, About, Apps) ===== */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 48px; }
.app-card { background: #fff; border-radius: 24px; padding: 26px; border: 2px solid transparent; box-shadow: 0 4px 18px rgba(0,80,140,0.08); transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.app-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 24px 24px 0 0; }
.grade4::before  { background: linear-gradient(90deg, #0097a7, #1565c0); }
.grade5::before  { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.grade6::before  { background: linear-gradient(90deg, #f59e0b, #f97316); }
.grade7::before  { background: linear-gradient(90deg, #dc2626, #f97316); }
.grade8::before  { background: linear-gradient(90deg, #1565c0, #7c3aed); }
.app-card:hover  { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,80,140,0.15); }
.grade4:hover { border-color: #67e8f9; }
.grade5:hover { border-color: #c4b5fd; }
.grade6:hover { border-color: #fcd34d; }
.grade7:hover { border-color: #fca5a5; }
.grade8:hover { border-color: #a5b4fc; }
.app-top  { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.grade4 .app-icon { background: linear-gradient(135deg, #cffafe, #67e8f9); }
.grade5 .app-icon { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.grade6 .app-icon { background: linear-gradient(135deg, #fef3c7, #fcd34d); }
.grade7 .app-icon { background: linear-gradient(135deg, #fee2e2, #fca5a5); }
.grade8 .app-icon { background: linear-gradient(135deg, #e0e7ff, #a5b4fc); }
.app-name     { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 18px; color: var(--navy); }
.app-subtitle { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.app-stats    { display: flex; gap: 14px; }
.app-stat     { flex: 1; text-align: center; padding: 10px 8px; background: #f8fbff; border-radius: 12px; border: 1px solid rgba(0,120,180,0.08); }
.app-stat-num { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 18px; color: var(--teal); }
.app-stat-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.app-desc     { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.6; }
.btn-play { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #0d2545, #1565c0); color: #fff; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; padding: 13px 20px; border-radius: 14px; text-decoration: none; transition: transform 0.18s, box-shadow 0.18s; box-shadow: 0 4px 14px rgba(21,101,192,0.3); margin-top: auto; }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21,101,192,0.42); }

/* ===== CTA BOX ===== */
.cta-box { background: linear-gradient(135deg, #ff7a59, #e8552f); border-radius: 28px; padding: 52px; text-align: center; position: relative; overflow: hidden; margin: 60px 0 0; }
.cta-box::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 28px 28px; }
.cta-box h2 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(26px, 4vw, 40px); color: #fff; margin-bottom: 14px; position: relative; }
.cta-box p { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.85); max-width: 500px; margin: 0 auto 32px; line-height: 1.65; position: relative; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; padding: 14px 28px; border-radius: 50px; text-decoration: none; box-shadow: 0 6px 22px rgba(21,128,61,0.45); transition: transform 0.2s, box-shadow 0.2s; }
.btn-cta-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 32px rgba(21,128,61,0.55); }
.btn-cta-secondary { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25); color: #fff; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700; padding: 12px 24px; border-radius: 50px; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: #2b2420; border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 5vw 28px; color: rgba(235,220,208,0.65); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 24px; background: linear-gradient(130deg, #ffb08f, #ff7a59); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; display: block; }
.footer-desc { font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: rgba(240,225,215,0.5); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(235,220,208,0.7); font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: #ff9776; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.footer-bottom a { color: rgba(235,220,208,0.5); text-decoration: none; }
.footer-bottom a:hover { color: #ff9776; }
.android-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 8px 14px; font-size: 12px; font-weight: 700; color: rgba(240,225,215,0.8); text-decoration: none !important; transition: background 0.15s; }
.android-badge:hover { background: rgba(255,255,255,0.1) !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse    { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.5); opacity: 0.4; } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes dropIn   { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== ANDROID NOTE ===== */
.android-note-wrapper { text-align: center; margin-top: 20px; }
.android-note { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid rgba(0,150,200,0.15); border-radius: 50px; padding: 10px 22px; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: 0 2px 10px rgba(0,100,160,0.08); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 0 18px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 22px; }
  section { padding: 64px 5vw; }
}
@media (max-width: 480px) {
  .apps-grid { grid-template-columns: 1fr; }
}
