/* ============================================
   SMARTSCHOOL — Design System
   Palette: Alpine Frost + Deep Navy
   Fonts: Bricolage Grotesque + Plus Jakarta Sans
   ============================================ */

:root {
  --frost-light: #E3EDF7;
  --frost-mid: #A8C4E0;
  --navy: #2E5090;
  --navy-dark: #0A1929;
  --navy-mid: #1A3A6B;
  --accent: #60A5FA;
  --accent-bright: #3B82F6;
  --white: #FFFFFF;
  --off-white: #F7FAFD;
  --text-primary: #0A1929;
  --text-secondary: #4A6070;
  --text-muted: #7A90A0;
  --green: #10B981;
  --green-light: #D1FAE5;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --orange: #F59E0B;
  --orange-light: #FEF3C7;
  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --teal: #14B8A6;
  --teal-light: #CCFBF1;
  --border: rgba(46, 80, 144, 0.12);
  --shadow-sm: 0 2px 8px rgba(10, 25, 41, 0.08);
  --shadow-md: 0 8px 32px rgba(10, 25, 41, 0.12);
  --shadow-lg: 0 24px 64px rgba(10, 25, 41, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ============ UTILITIES ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon { display: flex; align-items: center; }

.logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.03em;
}

.logo-accent { color: var(--navy); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--frost-light);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-nav {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46, 80, 144, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.title-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(227, 237, 247, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-subtitle-bn {
  color: rgba(168, 196, 224, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-bright);
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(168, 196, 224, 0.7);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(168, 196, 224, 0.2);
}

/* NFC Device Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nfc-device {
  position: relative;
  z-index: 2;
}

.device-screen {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 300px;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: rgba(227, 237, 247, 0.7);
  font-weight: 500;
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.screen-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.screen-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.nfc-ring {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.3);
  animation: ripple 2.5s ease-out infinite;
}

.ring.r1 { width: 120px; height: 120px; animation-delay: 0s; }
.ring.r2 { width: 90px; height: 90px; animation-delay: 0.4s; }
.ring.r3 { width: 60px; height: 60px; animation-delay: 0.8s; border-color: rgba(96, 165, 250, 0.5); }

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

.nfc-icon {
  position: relative;
  z-index: 2;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tap-status {
  color: rgba(227, 237, 247, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.attendance-card {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.attendance-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-avatar {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.card-class {
  font-size: 0.75rem;
  color: rgba(227, 237, 247, 0.6);
}

.card-time {
  font-size: 0.75rem;
  color: var(--green);
  margin-top: 2px;
}

.device-base {
  height: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin: 0 16px;
}

/* Floating notifications */
.floating-notif {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  animation: float 4s ease-in-out infinite;
}

.notif-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.notif-2 {
  bottom: 15%;
  left: -30px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.notif-icon { font-size: 1.2rem; }

.notif-text {
  display: flex;
  flex-direction: column;
}

.notif-text strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.notif-text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ============ FEATURES STRIP ============ */
.features-strip {
  background: var(--navy);
  padding: 16px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(227, 237, 247, 0.8);
}

.strip-inner .sep { color: var(--accent); opacity: 0.5; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SECTIONS COMMON ============ */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--frost-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============ FEATURES GRID ============ */
.features { background: var(--off-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-large {
  grid-column: span 1;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 80, 144, 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap.blue { background: rgba(46, 80, 144, 0.1); color: var(--navy); }
.feature-icon-wrap.green { background: var(--green-light); color: var(--green); }
.feature-icon-wrap.orange { background: var(--orange-light); color: var(--orange); }
.feature-icon-wrap.purple { background: var(--purple-light); color: var(--purple); }
.feature-icon-wrap.teal { background: var(--teal-light); color: var(--teal); }
.feature-icon-wrap.red { background: var(--red-light); color: var(--red); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tags span {
  background: var(--frost-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============ MODULES ============ */
.modules { background: var(--white); }

.modules-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  background: var(--frost-light);
  padding: 6px;
  border-radius: var(--radius-md);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) { color: var(--navy); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.module-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.module-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.module-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.module-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.module-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Phone Mockup */
.phone-frame {
  width: 240px;
  background: var(--navy-dark);
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(46, 80, 144, 0.1);
  margin: 0 auto;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 20px;
  background: var(--navy-dark);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--off-white);
  border-radius: 20px;
  padding: 16px;
  min-height: 360px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-avatar {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
}

.app-avatar.blue-av { background: var(--navy); }

.app-card {
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.green-card { background: var(--green-light); }
.blue-card { background: var(--frost-light); }

.app-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.app-card-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.app-card-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.app-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.app-mini-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.mini-icon { font-size: 1.1rem; margin-bottom: 4px; }

.app-notif {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.app-notif.blue-notif { background: var(--frost-light); }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.notif-dot.blue-dot { background: var(--navy); }

/* Dashboard Mockup */
.dashboard-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-stat {
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.green-stat { background: var(--green-light); }
.red-stat { background: var(--red-light); }
.yellow-stat { background: var(--orange-light); }

.ds-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ds-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.dash-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.dash-bars { display: flex; flex-direction: column; gap: 8px; }

.dash-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dash-bar-row > span:first-child { width: 52px; flex-shrink: 0; }
.dash-bar-row > span:last-child { width: 32px; text-align: right; font-weight: 600; color: var(--navy); }

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--frost-light);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ============ SECURITY ============ */
.security {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
}

.section-header.light { }
.white-tag { background: rgba(96, 165, 250, 0.15); color: var(--accent); border: 1px solid rgba(96, 165, 250, 0.2); }
.white-title { color: var(--white) !important; }
.white-desc { color: rgba(227, 237, 247, 0.7) !important; }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.security-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-4px);
}

.sec-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(96, 165, 250, 0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.sec-icon { margin-bottom: 16px; }

.security-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.security-card p {
  font-size: 0.875rem;
  color: rgba(227, 237, 247, 0.65);
  line-height: 1.65;
  margin-bottom: 20px;
}

.sec-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.sec-badge.high { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.2); }
.sec-badge.medium { background: rgba(245, 158, 11, 0.15); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.2); }
.sec-badge.ai { background: rgba(139, 92, 246, 0.15); color: #A78BFA; border: 1px solid rgba(139, 92, 246, 0.2); }

/* ============ PHASES ============ */
.phases { background: var(--off-white); }

.phases-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phase-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
}

.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phase-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--frost-mid);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--frost-mid);
  flex-shrink: 0;
  margin-top: 4px;
  transition: var(--transition);
}

.phase-dot.active-dot {
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(46, 80, 144, 0.2);
}

.phase-line {
  width: 2px;
  flex: 1;
  background: var(--frost-mid);
  margin: 8px 0;
  min-height: 40px;
}

.phase-content {
  padding-bottom: 48px;
}

.phase-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.phase-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.phase-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-tags span {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============ TECH STACK ============ */
.tech-stack { background: var(--white); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tech-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tech-item:hover {
  border-color: rgba(46, 80, 144, 0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tech-icon {
  width: 64px;
  height: 64px;
  background: var(--frost-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.tech-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tech-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ BANGLADESH ============ */
.bangladesh { background: var(--off-white); }

.bd-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bd-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.bd-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.bd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bd-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.bd-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.bd-logo {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--frost-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bd-school-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bd-school-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bd-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}

.bd-row span { color: var(--text-secondary); }
.bd-row strong { font-weight: 700; color: var(--text-primary); }
.green-text { color: var(--green) !important; }
.red-text { color: var(--red) !important; }

.bd-payment-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-badge.bkash { background: #FFE4F0; color: #E2136E; }
.payment-badge.nagad { background: #FFF0E0; color: #F05A28; }
.payment-badge.rocket { background: #F0E8FF; color: #8B2FC9; }

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-text p {
  color: rgba(227, 237, 247, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(227, 237, 247, 0.8);
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(227, 237, 247, 0.4);
}

.contact-form select {
  color: rgba(227, 237, 247, 0.7);
  cursor: pointer;
}

.contact-form select option { background: var(--navy-dark); color: var(--white); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-bright);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-submit:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(168, 196, 224, 0.6);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-accent { color: var(--accent); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(227, 237, 247, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(168, 196, 224, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(168, 196, 224, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(168, 196, 224, 0.4);
}

/* ============ ANIMATIONS ============ */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up { transform: translateY(40px); }

.reveal.visible, .reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.3s; }

.security-grid .security-card:nth-child(2) { transition-delay: 0.1s; }
.security-grid .security-card:nth-child(3) { transition-delay: 0.2s; }
.security-grid .security-card:nth-child(4) { transition-delay: 0.1s; }
.security-grid .security-card:nth-child(5) { transition-delay: 0.2s; }
.security-grid .security-card:nth-child(6) { transition-delay: 0.3s; }

.tech-grid .tech-item:nth-child(2) { transition-delay: 0.1s; }
.tech-grid .tech-item:nth-child(3) { transition-delay: 0.2s; }
.tech-grid .tech-item:nth-child(4) { transition-delay: 0.1s; }
.tech-grid .tech-item:nth-child(5) { transition-delay: 0.2s; }
.tech-grid .tech-item:nth-child(6) { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .module-layout { grid-template-columns: 1fr; gap: 40px; }
  .bd-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .modules-tabs { flex-direction: column; width: 100%; }
  .module-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stats { gap: 20px; }
  .floating-notif { display: none; }
  .bd-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
}