/* TeachMate Styles - Blue/White theme with dark mode and glassmorphism */
:root {
	--bg: #f8fafc; /* slate-50 */
	--panel: rgba(255, 255, 255, 0.7);
	--text: #0f172a; /* slate-900 */
	--muted: #475569; /* slate-600 */
	--primary: #1e40af; /* blue-800 */
	--primary-600: #2563eb; /* blue-600 */
	--ring: rgba(37, 99, 235, 0.35);
	--border: rgba(2, 6, 23, 0.08);
	--shadow: 0 10px 30px rgba(2, 6, 23, 0.08), 0 2px 8px rgba(2, 6, 23, 0.05);
}

@media (prefers-color-scheme: dark) {
	html[data-theme="auto"] {
		--bg: #0b1220;
		--panel: rgba(15, 23, 42, 0.6);
		--text: #e5e7eb;
		--muted: #9aa4b2;
		--primary: #60a5fa;
		--primary-600: #60a5fa;
		--ring: rgba(99, 102, 241, 0.35);
		--border: rgba(255, 255, 255, 0.08);
		--shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
	}
}

html[data-theme="dark"] {
	--bg: #0b1220;
	--panel: rgba(15, 23, 42, 0.6);
	--text: #e5e7eb;
	--muted: #9aa4b2;
	--primary: #60a5fa;
	--primary-600: #60a5fa;
	--ring: rgba(99, 102, 241, 0.35);
	--border: rgba(255, 255, 255, 0.08);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: radial-gradient(1200px 800px at 10% -10%, rgba(37, 99, 235, 0.12), transparent),
		radial-gradient(1200px 800px at 120% 10%, rgba(99, 102, 241, 0.12), transparent),
		var(--bg);
	color: var(--text);
	line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--panel);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	box-shadow: var(--shadow);
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(180deg, var(--primary-600), var(--primary)); color: white; border-color: transparent; }
.btn.ghost { background: transparent; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 40px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--panel);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	box-shadow: var(--shadow);
	color: var(--text);
	cursor: pointer;
}
.icon { height: 20px; width: 20px; }

/* Glass */
.glass { background: var(--panel); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 50; padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand-logo { font-size: 22px; }
.brand-text { letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-only { display: none; }

.mobile-menu { display: none; flex-direction: column; gap: 10px; padding: 10px 12px; }
.mobile-menu a { color: var(--text); text-decoration: none; padding: 10px 8px; border-radius: 8px; }
.mobile-menu.open { display: flex; }

/* Sections */
.section { padding: 80px 0; }
.section-title { font-size: 32px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
.section-subtitle { color: var(--muted); margin: 0 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }

/* Hero */
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero .accent { color: var(--primary-600); font-weight: 800; }
.lead { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.checks li::before { content: "✔"; color: var(--primary-600); margin-right: 8px; }
.cta-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.hero-card { border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: 800; }
.stat-label { color: var(--muted); font-weight: 600; font-size: 14px; }
.divider { width: 1px; height: 40px; background: var(--border); }

/* Solutions */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 18px; border-radius: 16px; }
.card-icon { font-size: 26px; }
.card h3 { margin: 8px 0 6px; }
.card p { color: var(--muted); margin: 0; }
.card:hover { transform: translateY(-2px); transition: transform 0.12s ease; }

/* Vision */
.vision-visual { border-radius: 18px; padding: 16px; }
.visual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.visual-card { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; border: 1px dashed var(--border); }

/* Contact */
.form { padding: 16px; border-radius: 16px; }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
input, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.7); color: var(--text); outline: none; box-shadow: inset 0 0 0 0px var(--ring); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea,
html[data-theme="auto"] input, html[data-theme="auto"] textarea { background: rgba(2, 6, 23, 0.3); }
input:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--ring); }
.error { color: #ef4444; min-height: 16px; }

/* Footer */
.footer { padding: 40px 0 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal { text-align: center; color: var(--muted); margin-top: 16px; font-size: 14px; }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel); border: 1px solid var(--border); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 960px) {
	.grid-2 { grid-template-columns: 1fr; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.hero-card { grid-template-columns: 1fr 1fr; }
	.divider { display: none; }
}
@media (max-width: 720px) {
	.nav-links { display: none; }
	.mobile-only { display: inline-flex; }
	.cards { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }
	.hero h1 { font-size: 38px; }
}
