/* ============================================================
   Eduscolar Corporate Website — Design System
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --primary:        #4F46E5;
  --primary-light:  #818CF8;
  --primary-dark:   #3730A3;
  --secondary:      #7C3AED;
  --accent:         #06B6D4;
  --accent-2:       #10B981;
  --accent-3:       #F59E0B;

  --dark:           #020617;
  --dark-2:         #0F172A;
  --dark-3:         #1E293B;
  --mid:            #334155;
  --border:         rgba(255,255,255,0.10);
  --border-light:   #E2E8F0;

  --text-white:     #FFFFFF;
  --text-light:     #CBD5E1;
  --text-muted:     #94A3B8;
  --text-dark:      #0F172A;
  --text-body:      #334155;
  --text-sub:       #64748B;

  --glass:          rgba(255,255,255,0.05);
  --glass-hover:    rgba(255,255,255,0.09);
  --glass-border:   rgba(255,255,255,0.12);

  --gradient-hero:  linear-gradient(135deg, #020617 0%, #0F172A 50%, #1a0533 100%);
  --gradient-brand: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
  --gradient-text:  linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #67E8F9 100%);
  --gradient-card:  linear-gradient(135deg, rgba(79,70,229,0.15) 0%, rgba(124,58,237,0.10) 100%);
  --gradient-hub:   linear-gradient(135deg, #0F172A 0%, #1a0533 100%);
  --gradient-gi:    linear-gradient(135deg, #0F172A 0%, #032030 100%);

  --nav-height:     72px;
  --section-pad:    100px;
  --section-pad-sm: 60px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --shadow:         0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.20);
  --shadow-glow:    0 0 40px rgba(79,70,229,0.25);
  --shadow-cyan:    0 0 40px rgba(6,182,212,0.20);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { line-height: 1.75; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-pad) 0; }
.section-sm { padding: var(--section-pad-sm) 0; }
.section-dark { background: var(--dark-2); }
.section-darker { background: var(--dark); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700;
  transition: all 0.25s ease; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,70,229,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,70,229,0.50);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.60);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark-3);
  color: #fff;
  border-color: var(--glass-border);
}
.btn-dark:hover {
  background: var(--mid);
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-purple { background: rgba(124,58,237,0.15); color: #C084FC; border: 1px solid rgba(192,132,252,0.25); }
.badge-cyan   { background: rgba(6,182,212,0.12);  color: #67E8F9; border: 1px solid rgba(103,232,249,0.25); }
.badge-green  { background: rgba(16,185,129,0.12); color: #6EE7B7; border: 1px solid rgba(110,231,183,0.25); }
.badge-indigo { background: rgba(79,70,229,0.15);  color: #A5B4FC; border: 1px solid rgba(165,180,252,0.25); }

/* ── Glass Cards ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* White Cards */
.white-card {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.white-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(79,70,229,0.12);
  border-color: rgba(79,70,229,0.25);
}

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1.1rem; color: var(--text-sub);
  max-width: 600px; margin: 0 auto;
}
.section-header-light h2 { color: #fff; }
.section-header-light p  { color: var(--text-light); }

/* ── Icon Box ── */
.icon-box {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; margin-bottom: 18px;
}
.icon-box-sm {
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 1.1rem; flex-shrink: 0;
}
.icon-indigo  { background: rgba(79,70,229,0.15); }
.icon-purple  { background: rgba(124,58,237,0.15); }
.icon-cyan    { background: rgba(6,182,212,0.12); }
.icon-green   { background: rgba(16,185,129,0.12); }
.icon-amber   { background: rgba(245,158,11,0.12); }
.icon-pink    { background: rgba(236,72,153,0.12); }

/* ── Divider ── */
.divider {
  height: 1px; background: var(--gradient-brand);
  opacity: 0.25; border: none; margin: 0;
}

/* ── Animated Orb Background ── */
.orb-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: var(--secondary); top: 100px; right: -100px; animation-delay: 2s; }
.orb-3 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: 30%; animation-delay: 4s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Grid Pattern Overlay ── */
.grid-pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Stats Counter ── */
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem; font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* ── Feature Row ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── CTA Section ── */
.cta-section {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  padding: 100px 0; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: var(--text-light); font-size: 1.1rem; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero ── */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  padding: 140px 0 100px; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero p  { color: var(--text-light); font-size: 1.15rem; max-width: 640px; margin: 0 auto 40px; }
.page-hero .badge { margin-bottom: 20px; }

/* ── Glow Line ── */
.glow-line {
  height: 2px; border: none;
  background: var(--gradient-brand);
  box-shadow: 0 0 20px rgba(79,70,229,0.5);
  margin: 0;
}

/* ── Tag List ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(79,70,229,0.10);
  color: var(--primary-light);
  border: 1px solid rgba(79,70,229,0.20);
}

/* ── Visual Mockup Box ── */
.mockup-box {
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.mockup-inner {
  background: var(--dark-2);
  border-radius: 20px;
  padding: 24px;
  min-height: 320px;
}
.mockup-topbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; --section-pad-sm: 40px; }
  .grid-2  { grid-template-columns: 1fr; gap: 24px; }
  .grid-3  { grid-template-columns: 1fr; gap: 20px; }
  .grid-4  { grid-template-columns: 1fr 1fr; gap: 16px; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
  .stat-number { font-size: 2.2rem; }
}

/* ── Responsive layout classes (use !important to beat inline styles) ── */
@media (max-width: 1024px) {
  /* Features category tabs: 6-col → 3-col */
  .cat-tabs-grid     { grid-template-columns: repeat(3, 1fr) !important; }
  /* Pillars band: 4-col → 2-col */
  .pillars-grid      { grid-template-columns: repeat(2, 1fr) !important; }
  /* Dashboard mockup: sidebar+main → single col, hide sidebar */
  .mockup-db-grid    { grid-template-columns: 1fr !important; }
  .mockup-db-sidebar { display: none !important; }
  /* Stats strip inside mockup: 4-col → 2-col */
  .mockup-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Generic 2-col section layouts → single col */
  .layout-2col       { grid-template-columns: 1fr !important; gap: 40px !important; }
  .about-2col        { grid-template-columns: 1fr !important; gap: 40px !important; }
  /* Contact: 1.4fr+1fr → single col */
  .contact-layout    { grid-template-columns: 1fr !important; }
  /* Values/team 3-col → 2-col */
  .values-grid       { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  /* Features category tabs: 3-col → 2-col */
  .cat-tabs-grid     { grid-template-columns: repeat(2, 1fr) !important; }
  .pillars-grid      { gap: 16px !important; }
  .mockup-stats-grid { gap: 8px !important; }
  /* Values/team 2-col → single col */
  .values-grid       { grid-template-columns: 1fr !important; }
  /* Hero CTA buttons: stack vertically */
  .hero-cta          { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .hero-cta .btn     { text-align: center; }
}
@media (max-width: 480px) {
  .pillars-grid      { grid-template-columns: 1fr !important; }
  .mockup-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
