/* EduSphere – public homepage */
:root {
  --p: #4f46e5; --p2: #7c3aed; --p3: #c026d3; --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0;
  --bg: #ffffff; --alt: #f6f7fc; --r: 22px; --shadow: 0 10px 40px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
em { font-family: 'Playfair Display', Georgia, serif; font-style: italic; background: linear-gradient(120deg, var(--p), var(--p3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(120deg, var(--p), var(--p2)); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35); }
.btn.ghost { background: #eef2ff; color: var(--p); }
.btn.glass { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(10px); }
.btn.white { background: #fff; color: var(--p); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }

/* top bar + nav */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar .wrap { display: flex; gap: 22px; padding-top: 8px; padding-bottom: 8px; }
.topbar i { color: #a5b4fc; margin-right: 4px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 6px 30px rgba(15, 23, 42, .08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { display: block; color: var(--ink); font-size: 16px; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 12px; }
.brand.light b { color: #fff; } .brand.light small { color: #94a3b8; }
.logo { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 22px; background: linear-gradient(135deg, var(--p), var(--p2)); box-shadow: 0 8px 18px rgba(79, 70, 229, .35); }
.logo.sm { width: 40px; height: 40px; font-size: 18px; }
.links { display: flex; align-items: center; gap: 6px; }
.links > a:not(.btn) { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--text); }
.links > a:not(.btn):hover { background: var(--alt); color: var(--p); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--alt); font-size: 24px; cursor: pointer; color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background: radial-gradient(1200px 600px at 80% -10%, #ede9fe 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #e0f2fe 0%, transparent 60%), #fbfbff; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 12s ease-in-out infinite; }
.b1 { width: 320px; height: 320px; background: #a5b4fc; top: -80px; right: 10%; }
.b2 { width: 260px; height: 260px; background: #f9a8d4; bottom: -60px; left: 30%; animation-delay: -4s; }
.b3 { width: 200px; height: 200px; background: #67e8f9; top: 40%; left: -60px; animation-delay: -8s; }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--p); box-shadow: var(--shadow); }
.pill-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; letter-spacing: -.03em; margin: 20px 0 18px; }
.hero-copy > p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust i { color: var(--p); margin-right: 4px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: 290px; height: 590px; border-radius: 46px; background: #0f172a; padding: 12px; box-shadow: 0 40px 80px rgba(79, 70, 229, .35), inset 0 0 0 2px #334155; position: relative; transform: rotate(-3deg); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0f172a; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #f4f5fb; display: flex; flex-direction: column; font-size: 12px; }
.ps-head { display: flex; justify-content: space-between; align-items: center; padding: 34px 16px 12px; background: linear-gradient(120deg, var(--p), var(--p2)); color: #fff; font-size: 15px; }
.ps-hero { margin: 12px; padding: 14px; border-radius: 18px; color: #fff; background: linear-gradient(130deg, var(--p), var(--p2) 60%, var(--p3)); }
.ps-hero small { opacity: .85; } .ps-hero > b { display: block; font-size: 15px; }
.ps-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ps-pills span { background: rgba(255, 255, 255, .18); border-radius: 10px; padding: 6px; font-size: 10px; }
.ps-pills b { display: block; font-size: 14px; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 12px 8px; }
.ps-grid i { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, white); }
.ps-card { display: flex; gap: 10px; align-items: center; background: #fff; margin: 4px 12px; padding: 10px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.ps-card b { display: block; color: var(--ink); font-size: 12.5px; } .ps-card small { color: var(--muted); }
.ps-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fef3c7; color: #d97706; }
.ps-card .ic.g { background: #d1fae5; color: #059669; }
.ps-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 14px 10px 18px; background: #fff; border-top: 1px solid var(--line); font-size: 18px; color: #9ca3af; }
.ps-nav .on { color: var(--p); }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; animation: float 7s ease-in-out infinite; }
.float-card i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 17px; }
.float-card b { display: block; color: var(--ink); } .float-card small { color: var(--muted); }
.fc1 { top: 70px; left: -10px; } .fc1 i { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.fc2 { bottom: 80px; right: -6px; animation-delay: -3s; } .fc2 i { background: linear-gradient(135deg, #22c55e, #059669); }

/* stats band */
.stats-band { margin-top: -50px; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 26px; box-shadow: 0 20px 60px rgba(15, 23, 42, .1); padding: 30px 10px; }
.stats > div { text-align: center; border-right: 1px solid var(--line); }
.stats > div:last-child { border: 0; }
.stats b { font-size: 44px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.stats span { font-size: 30px; font-weight: 800; color: var(--p); }
.stats p { margin: 0; color: var(--muted); font-weight: 500; }

/* sections */
.sec { padding: 96px 0; }
.sec.alt { background: var(--alt); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.sec-head p { color: var(--muted); margin: 10px 0 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p); background: #eef2ff; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow.light { background: rgba(255, 255, 255, .15); color: #fff; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 850; letter-spacing: -.025em; }
.lead { font-size: 17px; color: var(--muted); }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; font-weight: 500; color: var(--ink); }
.ticks i { color: #22c55e; font-size: 18px; }
.quote-card { position: relative; padding: 40px 34px 30px; border-radius: 28px; color: #fff; background: linear-gradient(140deg, var(--p), var(--p2) 60%, var(--p3)); box-shadow: 0 30px 60px rgba(79, 70, 229, .3); overflow: hidden; }
.quote-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.quote-card .q { font-size: 60px; line-height: .5; opacity: .35; }
.quote-card p { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; line-height: 1.5; margin: 18px 0 26px; }
.quote-card .by { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.quote-card .by .logo { background: rgba(255, 255, 255, .2); box-shadow: none; }
.quote-card .by small { opacity: .8; display: block; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.f-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.class-chip { border-radius: 18px; padding: 20px; background: linear-gradient(160deg, #fff, #f5f3ff); border: 1px solid #e0e7ff; text-align: center; }
.class-chip i { font-size: 24px; color: var(--p); }
.class-chip b { display: block; color: var(--ink); font-size: 17px; margin-top: 6px; }
.class-chip small { color: var(--muted); }
.timeline-day { margin-top: 50px; background: var(--ink); color: #fff; border-radius: 28px; padding: 34px; }
.timeline-day h3 { color: #fff; font-size: 22px; margin-bottom: 26px; }
.timeline-day h3 i { color: #fbbf24; }
.day { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.day::before { content: ''; position: absolute; top: 25px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, #6366f1, #ec4899); }
.day > div { text-align: center; position: relative; }
.day span { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #1e293b; border: 2px solid #6366f1; font-size: 20px; color: #a5b4fc; position: relative; }
.day b { display: block; font-size: 17px; } .day small { color: #94a3b8; }

.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facility { border-radius: var(--r); padding: 26px 22px; color: #fff; background: var(--g); min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; transition: transform .25s; }
.facility:hover { transform: translateY(-6px) rotate(-.5deg); }
.facility i { position: absolute; top: 18px; right: 18px; font-size: 46px; opacity: .3; }
.facility b { font-size: 19px; } .facility small { opacity: .9; }

.app-sec { background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #831843); color: #e0e7ff; position: relative; overflow: hidden; }
.app-sec h2 { color: #fff; }
.app-sec .lead { color: #c7d2fe; }
.app-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.app-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 30px; }
.app-feats div { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.app-feats i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.roles { display: grid; gap: 14px; }
.role { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.role:hover { background: rgba(255, 255, 255, .14); transform: translateX(6px); }
.role i { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: #fff; color: var(--p2); flex: none; }
.role b { color: #fff; display: block; font-size: 17px; } .role small { color: #c7d2fe; }

.news { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news-card { display: flex; gap: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s; }
.news-card:hover { box-shadow: var(--shadow); }
.news-card .date { width: 64px; flex: none; height: 70px; border-radius: 16px; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; display: grid; place-items: center; align-content: center; line-height: 1.1; }
.news-card .date b { font-size: 24px; } .news-card .date small { font-size: 12px; text-transform: uppercase; font-weight: 700; }
.news-card h3 { font-size: 18px; margin: 6px 0; }
.news-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--muted); }
.t-event { background: #ede9fe; color: #6d28d9; } .t-holiday { background: #dbeafe; color: #1d4ed8; } .t-notice { background: #fce7f3; color: #be185d; }

.admit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { display: grid; gap: 14px; margin-top: 30px; }
.step { display: flex; gap: 16px; align-items: center; background: #fff; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); }
.step > span { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); }
.step b { color: var(--ink); display: block; } .step small { color: var(--muted); }
.enquiry { background: #fff; border-radius: 28px; padding: 32px; box-shadow: 0 30px 70px rgba(15, 23, 42, .12); }
.enquiry h3 { font-size: 24px; margin-bottom: 18px; }
.enquiry label { display: block; margin-bottom: 14px; }
.enquiry label span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; background: #fafbff; outline: none; transition: border .15s, box-shadow .15s; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { border-color: var(--p); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); background: #fff; }
.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.enquiry .small { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.enquiry .err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { text-align: center; padding: 30px 0; }
.sent i { font-size: 60px; color: #22c55e; }
.sent h3 { margin: 10px 0 6px; }
.sent p { color: var(--muted); margin: 0 0 20px; }

.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.c-card { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); text-align: center; transition: transform .2s, box-shadow .2s; }
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-card i { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); }
.c-card b { display: block; color: var(--ink); font-size: 17px; } .c-card small { color: var(--muted); }

.footer { background: var(--ink); color: #94a3b8; padding: 60px 0 0; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h4 { color: #fff; margin-bottom: 14px; }
.foot a:not(.brand) { display: block; padding: 4px 0; } .foot a:not(.brand):hover { color: #fff; }
.foot p { margin: 14px 0 0; font-size: 14px; }
.copy { text-align: center; padding: 22px; margin-top: 40px; border-top: 1px solid #1e293b; font-size: 13.5px; }
.m-cta { display: none; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .blob, .float-card { animation: none; } html { scroll-behavior: auto; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: 1fr 1fr; }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .links { position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: #fff; padding: 12px; border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, .15); display: none; }
  .links.open { display: flex; }
  .links > a { padding: 12px 14px !important; }
  .hero { padding: 40px 0 90px; }
  .hero-grid, .about, .app-grid, .admit { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: 2; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stats > div:nth-child(2) { border-right: 0; }
  .news { grid-template-columns: 1fr; }
  .day { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .day::before { display: none; }
  .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; }
  .sec { padding: 70px 0; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .topbar .wrap { justify-content: space-between; gap: 10px; font-size: 12px; }
  .brand small { display: none; }
  .brand b { font-size: 14px; max-width: 190px; }
  .hero h1 { font-size: 36px; }
  .hero-copy > p { font-size: 16px; }
  .cta .btn { flex: 1; }
  .phone { width: 250px; height: 510px; }
  .fc1 { left: 0; top: 30px; } .fc2 { right: 0; }
  .stats b { font-size: 34px; }
  .features, .facilities, .contact { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr 1fr; gap: 12px; }
  .facility { min-height: 140px; padding: 18px 16px; }
  .facility b { font-size: 16px; }
  .app-feats { grid-template-columns: 1fr; }
  .enquiry { padding: 24px 18px; }
  .enquiry .row { grid-template-columns: 1fr; gap: 0; }
  .timeline-day { padding: 26px 18px; }
  .m-cta { display: block; position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); text-align: center; padding: 15px; border-radius: 16px; color: #fff; font-weight: 700; background: linear-gradient(120deg, var(--p), var(--p2)); box-shadow: 0 12px 30px rgba(79, 70, 229, .45); }
  .footer { padding-bottom: 70px; }
}
