/* Home page (plain HTML rebuild). Builds on global.css / style.css. */

/* Header: rules styled-jsx used to inject at runtime. */
@media only screen and (width <= 1023px) {
	.mobile-menu { height: 100vh !important; top: 0 !important; }
	.header-lower { padding-top: 10px; padding-bottom: 10px; }
}
.main-header .header-lower { transition: background 0.3s ease, backdrop-filter 0.3s ease; }
.main-header.header-scrolled .header-lower {
	background: rgba(15, 13, 43, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Preloader */
.preloader {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #0a0a1a 0%, #0f0d2b 50%, #1a0a2e 100%);
	transition: opacity 0.6s ease;
}
.preloader.is-done { opacity: 0; pointer-events: none; }
.preloader_logo { margin-bottom: 32px; animation: preloaderPulse 2s ease-in-out infinite; }
.preloader_logo img { width: 80px; height: 80px; object-fit: contain; }
.preloader_name {
	font-size: 32px; font-weight: 800; letter-spacing: 4px; line-height: 1.6; padding: 15px 0; margin-bottom: 36px;
	font-family: Digital-Desolation, sans-serif;
	background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.preloader_track { width: 200px; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; }
.preloader_bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6); border-radius: 10px; animation: preloaderBar 2s ease-in-out infinite; }
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
@keyframes preloaderBar { 0% { width: 0%; margin-left: 0%; } 50% { width: 80%; margin-left: 10%; } 100% { width: 0%; margin-left: 100%; } }

/* Scroll-driven background */
.scroll-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.scroll-bg canvas { display: block; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0; transition: opacity 0.1s ease; }
.scroll-bg canvas.is-ready { opacity: 1; }
.scroll-bg_shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(15, 13, 43, 0.6), #0f0d2b); }

/* Shared section scaffolding */
.home-section { position: relative; padding: 110px 0; z-index: 1; }
.home-section--tight { padding: 80px 0; }
.section-label {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
	color: #c7caff; padding: 8px 20px; margin-bottom: 22px;
	border: 1px solid rgba(129, 140, 248, 0.35); border-radius: 30px; background: rgba(69, 73, 143, 0.18);
}
.section-heading { color: #ffffff; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 800; margin-bottom: 22px; }
.section-heading span { font-family: 'Lora', serif; font-style: italic; color: #a5b4fc; }
.section-lead { color: rgba(255, 255, 255, 0.82); font-size: 18px; line-height: 1.7; margin-bottom: 18px; }
.section-closing { color: #ffffff; font-size: 19px; font-weight: 600; line-height: 1.5; margin-top: 26px; }
.text-center .section-lead { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Hero */
.banner-one_text p { margin-bottom: 14px; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }
/* MIKU NCERT module grid */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.module-card { display: block; text-decoration: none; padding: 28px 26px; }
.module-card h4 { color: #ffffff; font-size: 20px; margin: 16px 0 8px; }
.module-card p { color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.6; margin: 0; }
.module-card .glass-card_icon { width: 46px; height: 46px; font-size: 20px; }
.miku-languages { color: #ffffff; font-weight: 600; font-size: 18px; margin-top: 36px; }

/* Feature sections: copy beside a visual */
.feature-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; }
.feature-section--flip .feature-copy { order: 2; }
.feature-section--flip .feature-visual { order: 1; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; }
.feature-list li { display: flex; gap: 14px; margin-bottom: 16px; color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.6; }
.feature-list li > i { color: #a5b4fc; font-size: 14px; margin-top: 6px; width: 16px; flex: none; }
.feature-list strong { color: #ffffff; }
.feature-visual { display: flex; justify-content: center; }
.phone-shot {
	width: 100%; max-width: 320px; border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
	animation: gentleFloat 5s ease-in-out infinite;
}
.phone-shot--wide { max-width: 440px; border-radius: 22px; }
@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Step flows (Visualize -> Understand ...) */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.flow span {
	padding: 8px 16px; border-radius: 30px; font-size: 14px; font-weight: 600; color: #ffffff;
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.flow i { color: #a5b4fc; font-size: 12px; }
.flow-caption { color: rgba(255, 255, 255, 0.6); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 26px; }

/* Hint ladder */
.hint-ladder { list-style: none; padding: 0; margin: 26px 0 0; }
.hint-ladder li { position: relative; padding: 0 0 18px 54px; color: rgba(255, 255, 255, 0.75); line-height: 1.6; }
.hint-ladder li::before {
	content: attr(data-step); position: absolute; left: 0; top: -2px;
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	font-size: 14px; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #4f74f3, #7a58e5);
}
.hint-ladder li:not(:last-child)::after {
	content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 2px; background: rgba(165, 180, 252, 0.3);
}
.hint-ladder strong { color: #ffffff; }

.lang-toggle {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 22px; border-radius: 30px;
	color: #ffffff; font-weight: 700; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.lang-toggle i { color: #a5b4fc; }

/* Card grids (For Schools, Industry) */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.info-card h4 { color: #ffffff; font-size: 19px; margin: 16px 0 10px; }
.info-card p { color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.65; margin: 0; }
.info-card .glass-card_icon { width: 46px; height: 46px; font-size: 20px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 40px; }
.cta-row--left { justify-content: flex-start; }

/* Final CTA */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.cta-card { display: flex; flex-direction: column; }
.cta-card h4 { color: #ffffff; font-size: 21px; margin-bottom: 12px; }
.cta-card p { color: rgba(255, 255, 255, 0.75); line-height: 1.65; flex: 1; }
.cta-card .cta-row { justify-content: flex-start; margin-top: 18px; gap: 10px; }
.cta-card .template-btn { padding: 12px 20px; font-size: 14px; }
.contact-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; margin-top: 48px; color: rgba(255, 255, 255, 0.85); }
.contact-strip a, .contact-strip span { color: #ffffff; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.contact-strip i { color: #a5b4fc; }
.final-tagline { color: #ffffff; font-size: 22px; font-weight: 700; margin-top: 40px; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges--center { justify-content: center; }
.store-badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; min-width: 160px; text-align: left;
	background: #000000; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.store-badge:hover { color: #ffffff; border-color: #ffffff; transform: translateY(-2px); }
.store-badge i { font-size: 26px; line-height: 1; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 10px; letter-spacing: 0.3px; opacity: 0.85; }
.store-badge b { font-size: 17px; font-weight: 600; }

/* Footer */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ffffff; }
.main-footer .footer-text { color: #ffffff; margin-bottom: 20px; font-size: 16px; }

/* Responsive */
@media (max-width: 1199px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
	.home-section { padding: 80px 0; }
	.feature-grid { grid-template-columns: 1fr; gap: 44px; }
	.feature-section--flip .feature-copy, .feature-section--flip .feature-visual { order: 0; }
	.module-grid, .cta-grid { grid-template-columns: repeat(2, 1fr); }
	.phone-shot { max-width: 280px; }
}
@media (max-width: 767px) {
	.home-section { padding: 64px 0; }
	.module-grid, .cta-grid, .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
	.section-lead { font-size: 16px; }
}

