/* ==========================================================================
   ExamBuddy — Modern Design System & Stylesheet
   Academic resources for university students
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Color Palette - Clean white and blue */
  --bg-dark: #F5F8FF;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F6FF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --border-subtle: #E2EAF5;
  --border-glow: rgba(37, 99, 235, 0.24);
  --border-active: rgba(37, 99, 235, 0.55);
  
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-glow: rgba(37, 99, 235, 0.14);
  
  --secondary: #0284C7;
  --secondary-light: #2563EB;
  
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  
  --text-main: #14213D;
  --text-muted: #52627A;
  --text-dim: #718096;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(22, 50, 92, 0.07);
  --shadow-md: 0 10px 28px rgba(22, 50, 92, 0.10);
  --shadow-lg: 0 20px 48px rgba(22, 50, 92, 0.14);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.10);
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  background-color: #F5F8FF;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 55%);
  background-size: 100% 100%;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide AI floating glow orbs */
.bg-glow-container {
  display: none !important;
}

/* Typography & Global Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-wrapper {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary-light);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.badge-tag.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.badge-tag.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #1D4ED8 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  color: #38BDF8;
  background: none;
  -webkit-text-fill-color: initial;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Glassmorphic Card Container */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.08rem;
  border-radius: var(--radius-full);
}

.btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #2563EB 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.65);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Official Google Play Badge Button */
.btn-play-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
  transition: var(--transition);
  text-decoration: none;
}

.btn-play-store:hover {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.3);
  color: #FFFFFF;
}

.btn-play-store svg {
  flex-shrink: 0;
}

.btn-play-store .btn-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.btn-play-store .btn-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94A3B8;
  font-weight: 600;
}

.btn-play-store .btn-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-heading);
}

.btn-outline-glow {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.btn-outline-glow:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-light);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 24px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-container > nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.logo-text span {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.15vw, 20px);
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  font-size: clamp(0.8rem, 0.9vw, 0.94rem);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.nav-cta-group > .btn {
  white-space: nowrap;
}

.nav-mobile-download {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #A5B4FC;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #CBD5E1;
  font-weight: 500;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-item h3 span {
  color: var(--primary-light);
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Hero Showcase Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 320px;
  background: #111827;
  border-radius: 44px;
  border: 4px solid #334155;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.25);
  padding: 14px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #0B1220;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-header {
  padding: 16px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.mockup-brand span {
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
}

.mockup-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-banner {
  background: linear-gradient(135deg, #3730A3, #1E1B4B);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.mockup-banner h4 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.mockup-banner p {
  font-size: 0.72rem;
  color: #A5B4FC;
}

.mockup-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-tile {
  background: rgba(30, 41, 59, 0.6);
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.m-tile .icon {
  font-size: 1.4rem;
}

.m-tile span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #E2E8F0;
}

/* Floating Badges */
.floating-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.floating-card.card-left {
  top: 18%;
  left: -35px;
}

.floating-card.card-right {
  bottom: 22%;
  right: -30px;
  animation-delay: -2s;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.f-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.f-icon.blue { background: rgba(59, 130, 246, 0.2); }
.f-icon.green { background: rgba(16, 185, 129, 0.2); }

.f-text h5 {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
}

.f-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.about-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card p {
  color: #CBD5E1;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.problem-list, .solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.problem-list li, .solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.problem-list li .bullet {
  color: var(--accent-rose);
  font-weight: 700;
  font-size: 1.1rem;
}

.solution-list li .bullet {
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Department Grid */
.dept-showcase {
  margin-top: 56px;
}

.dept-showcase h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 30px;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.dept-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.dept-pill:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.dept-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dept-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.dept-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-box:hover::after {
  opacity: 1;
}

.feat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.feature-box h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feat-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.feat-highlights li {
  font-size: 0.85rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-highlights li span {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Interactive Tools (CGPA Calculator & Attendance Simulator)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.calculator-card {
  padding: 36px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-header h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subject-table-container {
  overflow-x: auto;
  margin-bottom: 24px;
}

.subject-table {
  width: 100%;
  border-collapse: collapse;
}

.subject-table th {
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.subject-table td {
  padding: 10px 12px;
}

.input-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.input-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

select.input-control option {
  background: #0F172A;
  color: #FFFFFF;
}

.btn-remove-row {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove-row:hover {
  background: rgba(244, 63, 94, 0.25);
}

.calc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-result-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #FFFFFF;
}

.result-val span {
  color: var(--accent-emerald);
}

/* Attendance Widget */
.attendance-widget {
  padding: 36px;
}

.att-form-group {
  margin-bottom: 20px;
}

.att-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.att-result-display {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.att-percentage {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.att-status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.att-status-badge.safe {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.att-status-badge.danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.att-advice {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Support & FAQ Section
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.support-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-card {
  padding: 28px;
}

.support-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #A5B4FC;
}

.email-copy-btn {
  background: rgba(99, 102, 241, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.email-copy-btn:hover {
  background: var(--primary-light);
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary-light);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Download Modal & Toasts
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}

.qr-code-box {
  background: #FFFFFF;
  padding: 16px;
  border-radius: var(--radius-md);
  width: 180px;
  height: 180px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.qr-code-box img {
  width: 100%;
  height: 100%;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid var(--border-glow);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060911;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-4px);
  background: var(--primary-light);
}

/* ==========================================================================
   Policy & Terms Dedicated Page Styles
   ========================================================================== */
.policy-page-header {
  padding: 140px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.policy-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 50px 0 100px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.policy-toc h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.policy-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-toc a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.policy-toc a:hover, .policy-toc a.active {
  background: rgba(99, 102, 241, 0.15);
  color: #FFFFFF;
}

.policy-content section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: #FFFFFF;
}

.policy-content h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
  color: #E2E8F0;
}

.policy-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.policy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy-content li {
  margin-bottom: 8px;
}

/* White and blue theme refinements */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.logo-text,
.nav-link:hover,
.nav-link.active,
.hero-subtitle,
.stat-item h3,
.mockup-brand span,
.f-text h5,
.about-card p,
.feat-highlights li,
.result-val,
.faq-question,
.footer-col h4,
.footer-bottom-links a:hover,
.policy-content h2 {
  color: var(--text-main);
}

.hero-tag {
  background: #EAF2FF;
  border-color: #CFE0FF;
  color: #1D4ED8;
}

.btn-secondary {
  background: #FFFFFF;
  color: #1D4ED8;
  border: 1px solid #C8D8F0;
}

.btn-secondary:hover {
  background: #EFF6FF;
  color: #1D4ED8;
}

.phone-mockup {
  background: #FFFFFF;
  border-color: #D6E2F2;
  box-shadow: 0 25px 60px -15px rgba(22, 50, 92, 0.20), 0 0 50px rgba(37, 99, 235, 0.12);
}

.phone-screen {
  background: #F7FAFF;
  border-color: #E2EAF5;
}

.mockup-header {
  background: #FFFFFF;
  border-bottom-color: #E2EAF5;
}

.mockup-banner {
  background: linear-gradient(135deg, #2563EB, #0EA5E9);
  border-color: rgba(37, 99, 235, 0.2);
}

.mockup-banner p {
  color: #EAF4FF;
}

.m-tile {
  background: #FFFFFF;
  border-color: #E2EAF5;
  box-shadow: 0 2px 8px rgba(22, 50, 92, 0.05);
}

.m-tile span {
  color: #334155;
}

.floating-card {
  background: rgba(255, 255, 255, 0.96);
}

.input-control {
  background: #FFFFFF;
  color: var(--text-main);
  border-color: #CBD8E8;
}

select.input-control option {
  background: #FFFFFF;
  color: var(--text-main);
}

.calc-result-box {
  background: linear-gradient(135deg, #EFF6FF, #E0F2FE);
  border-color: #BFDBFE;
}

.att-result-display,
.email-box {
  background: #F7FAFF;
}

.email-box {
  color: #1D4ED8;
}

.email-copy-btn {
  background: #EAF2FF;
  color: #1D4ED8;
  border-color: #C8D8F0;
}

.faq-question {
  color: var(--text-main);
}

.modal-overlay {
  background: rgba(15, 35, 70, 0.46);
}

.modal-close {
  background: #EFF6FF;
  color: var(--text-muted);
}

.modal-close:hover {
  color: #1D4ED8;
  background: #DBEAFE;
}

.toast {
  background: #FFFFFF;
  color: var(--text-main);
}

.site-footer {
  background: #EDF4FF;
}

.footer-links a:hover {
  color: #1D4ED8;
}

.policy-page-header {
  background: linear-gradient(180deg, #EAF2FF 0%, transparent 100%);
}

.policy-toc a:hover,
.policy-toc a.active {
  background: #EAF2FF;
  color: #1D4ED8;
}

.policy-content h3 {
  color: #334155;
}

.team-page-header {
  position: relative;
  overflow: hidden;
  padding: 156px 0 82px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(43, 121, 237, 0.19), transparent 65%),
    linear-gradient(180deg, #EDF4FF 0%, rgba(245, 248, 255, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.team-page-header .container {
  max-width: 800px;
}

.team-page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.team-page-header p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.team-content {
  padding-top: 68px;
  padding-bottom: 96px;
}

.team-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.team-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #2870D6;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.team-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.team-intro p {
  color: var(--text-muted);
  line-height: 1.75;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.founder-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 34px 28px 30px;
  border: 1px solid #E2EAF5;
  border-radius: 26px;
  background: linear-gradient(155deg, #FFFFFF 20%, #F3F7FF 100%);
  box-shadow: 0 14px 34px rgba(35, 68, 115, 0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.founder-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #31B6E7);
  content: '';
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(35, 68, 115, 0.13);
}

.founder-photo-wrap {
  position: relative;
  width: 186px;
  height: 186px;
  margin-bottom: 23px;
  border-radius: 50%;
  background: linear-gradient(140deg, #2672E8, #53C4E7);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.founder-photo {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.founder-card:nth-child(2) .founder-photo {
  object-position: center center;
}

.founder-photo-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.founder-role {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 11px;
  border: 1px solid #D9E7FC;
  border-radius: 999px;
  background: #EFF5FF;
  color: #2463C5;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.founder-info h3 {
  margin: 11px 0 8px;
  color: #172B4D;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.founder-info p {
  max-width: 320px;
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.65;
}

.team-groups-intro {
  margin-top: 76px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  grid-column: span 2;
  min-height: 220px;
  padding: 27px;
  border: 1px solid #E3EAF4;
  background: linear-gradient(145deg, #FFFFFF, #F7FAFF);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: #C6D9F5;
  box-shadow: 0 14px 30px rgba(35, 68, 115, 0.1);
}

.team-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.team-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.team-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 1.55rem;
  font-weight: 700;
}

.team-icon-blue { background: #EDF4FF; border-color: #DCE9FF; color: #2E70DB; }
.team-icon-violet { background: #F3EEFF; border-color: #E7DCFF; color: #8158D8; }
.team-icon-cyan { background: #EAF8FC; border-color: #D8F0F7; color: #198BAA; }
.team-icon-green { background: #EAF8F1; border-color: #D5F0E2; color: #24966A; }
.team-icon-amber { background: #FFF6E8; border-color: #F8E9CC; color: #C8861D; }

.team-card h3 {
  min-height: 2.8em;
  margin-bottom: 9px;
  color: #1C2D46;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.team-cta {
  margin-top: 52px;
  padding: 42px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(75, 153, 255, 0.2), transparent 65%),
    linear-gradient(135deg, #EFF6FF, #E6F4FF);
  border: 1px solid #CFE0FF;
  border-radius: 24px;
}

.team-cta h2 {
  margin-bottom: 10px;
}

.team-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.university-model {
  margin: 72px 0 64px;
  padding: 48px 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.045), rgba(14, 165, 233, 0.025));
}

.university-model .section-header {
  margin-bottom: 32px;
}

.university-model .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.university-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.university-model-card {
  padding: 24px;
}

.university-model-card .dept-icon {
  margin-bottom: 16px;
}

.university-model-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.university-model-card p,
.university-availability,
.tool-disclaimer {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.university-availability {
  margin: 24px auto 0;
  max-width: 860px;
  text-align: center;
}

.university-availability strong {
  color: var(--text-main);
}

.tool-disclaimer {
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .university-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    background: #FFFFFF;
    border-left-color: var(--border-subtle);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-page-header {
    padding: 130px 0 56px;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-cta-bar, .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .policy-container {
    grid-template-columns: 1fr;
  }
  
  .policy-toc {
    position: static;
  }
}

/* Dedicated Download CTA Section */
.cta-banner-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-banner-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner-info p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.cta-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cta-action-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.qr-code-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

/* Table Responsiveness */
.subject-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

.subject-table-container::-webkit-scrollbar {
  height: 6px;
}

.subject-table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.subject-table-container::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 3px;
}

/* Mobile Overlay Mask & Sticky Download Bar */
.nav-overlay-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay-mask.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-download-bar.visible {
  transform: translateY(0);
}

.mobile-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-bar-info img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.mobile-bar-text h4 {
  font-size: 0.95rem;
  line-height: 1.2;
}

.mobile-bar-text p {
  font-size: 0.75rem;
  color: var(--accent-amber);
}

@media (min-width: 769px) {
  .mobile-sticky-download-bar {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-cta-bar, .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-banner-info p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-badges-row {
    justify-content: center;
  }
  
  .policy-container {
    grid-template-columns: 1fr;
  }
  
  .policy-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .floating-card {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-card {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .hero-cta-bar {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-bar .btn, .hero-cta-bar .btn-play-store {
    width: 100%;
    justify-content: center;
  }

  .section-wrapper {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-page-header {
    padding: 130px 0 56px;
  }

  .university-model-grid {
    grid-template-columns: 1fr;
  }

  .university-model {
    padding: 32px 20px;
    margin: 48px 0;
  }
}

@media (max-width: 1280px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: #FFFFFF;
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 40px;
    gap: 20px;
    transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .nav-links.open {
    right: 0;
    box-shadow: -10px 0 40px rgba(22, 50, 92, 0.18);
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-mobile-download {
    display: block;
    width: 100%;
    margin-top: auto;
    margin-bottom: 16px;
  }

  .nav-mobile-download .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .nav-container > nav {
    flex: 0 0 auto;
  }

  .nav-cta-group > .btn {
    display: none;
  }

  .mobile-toggle {
    display: block;
    color: var(--text-main);
    z-index: 100;
  }
}

.cta-banner-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-banner-info h2 {
  color: var(--text-main);
}

.cta-action-side {
  background: rgba(255, 255, 255, 0.88);
}

.mobile-sticky-download-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: var(--border-subtle);
  box-shadow: 0 -8px 30px rgba(22, 50, 92, 0.12);
}

.hero-visual {
  min-width: 0;
  perspective: 1200px;
}

.app-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 390px);
  padding: 8px 0 42px;
}

.phone-mockup {
  position: relative;
  width: min(350px, 100%);
  height: 630px;
  padding: 9px;
  border: 1px solid #D5E2F3;
  border-radius: 46px;
  background: linear-gradient(145deg, #FFFFFF, #DFE9F6);
  box-shadow: 0 34px 70px -34px rgba(30, 64, 120, 0.48), 0 18px 38px rgba(37, 99, 235, 0.12), inset 0 0 0 2px #FFFFFF;
  animation: phoneSway 9s ease-in-out infinite;
  transform-style: preserve-3d;
  z-index: 2;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #E4ECF7;
  border-radius: 36px;
  background: #F7F9FD;
  color: #14213D;
}

.phone-island {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 17px;
  border-radius: 999px;
  background: #172033;
  transform: translateX(-50%);
}

.phone-status-bar {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: space-between;
  padding: 2px 18px 0;
  color: #334155;
  font-size: 0.67rem;
  font-weight: 700;
}

.status-icons {
  font-size: 0.56rem;
  letter-spacing: 2px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 5px 16px;
  border-bottom: 1px solid #E8EEF7;
  background: rgba(255, 255, 255, 0.95);
}

.mockup-brand {
  gap: 8px;
}

.mockup-brand img {
  width: 29px;
  height: 29px;
  border: 1px solid #E6EDF7;
  border-radius: 50%;
  object-fit: cover;
}

.mockup-brand span {
  color: #172B4D;
  font-size: 0.95rem;
  font-weight: 800;
}

.app-notification {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #53657E;
}

.app-notification svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 17px 14px;
}

.app-greeting h3 {
  color: #172B4D;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.app-greeting p {
  margin-top: 3px;
  color: #75839A;
  font-size: 0.73rem;
}

.app-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563EB, #168AE2);
  box-shadow: 0 3px 9px rgba(37, 99, 235, 0.2);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-slide {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0 15px 10px;
  animation: appSlideEnter 0.38s ease both;
}

.app-slide[hidden] {
  display: none;
}

.university-app-card {
  position: relative;
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 17px;
  border-radius: 21px;
  background: linear-gradient(125deg, #075CE5 0%, #1678EF 58%, #149BEA 100%);
  box-shadow: 0 8px 18px rgba(20, 103, 224, 0.2);
  color: #FFFFFF;
}

.university-app-card::after {
  position: absolute;
  right: -25px;
  bottom: -64px;
  width: 175px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(3, 44, 151, 0.18));
  content: '';
}

.university-app-copy {
  position: relative;
  z-index: 1;
  max-width: 215px;
}

.app-overline {
  display: block;
  color: #55708F;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.university-app-card .app-overline {
  color: #D7E8FF;
}

.university-app-card h4 {
  margin: 8px 0 5px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.university-app-card p {
  max-width: 195px;
  color: #EAF3FF;
  font-size: 0.68rem;
  line-height: 1.4;
}

.university-app-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.3rem;
}

.app-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 2px 10px;
  color: #1E2D45;
  font-size: 0.76rem;
}

.app-section-heading span {
  color: #3478DD;
  font-size: 0.64rem;
  font-weight: 700;
}

.app-feature-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(55px, 1fr));
  gap: 8px;
  min-height: 0;
}

.app-feature-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #E6ECF5;
  border-radius: 13px;
  background: #FFFFFF;
  box-shadow: 0 3px 8px rgba(34, 61, 99, 0.045);
  color: #35445C;
  font-size: 0.69rem;
  font-weight: 700;
}

.app-feature-icon,
.resource-icon,
.app-tool-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.app-feature-icon.syllabus,
.resource-icon.blue { background: #EEF4FF; color: #3478E5; }
.app-feature-icon.papers,
.resource-icon.violet { background: #F3EEFF; color: #8857E8; }
.app-feature-icon.notices,
.resource-icon.amber { background: #FFF6E7; color: #E99A16; }
.app-feature-icon.results { background: #E8F8F0; color: #20A66A; }
.app-feature-icon.calendar { background: #EAF4FF; color: #3282E6; }
.app-feature-icon.profile { background: #EAF9F7; color: #20A99A; }

.app-chevron {
  margin-left: auto;
  color: #8491A4;
  font-size: 1.25rem;
  line-height: 1;
}

.app-panel-heading {
  padding: 8px 2px 15px;
}

.app-panel-heading h4 {
  margin: 7px 0 4px;
  color: #1B2B45;
  font-size: 1.02rem;
  line-height: 1.3;
}

.app-panel-heading p {
  color: #75839A;
  font-size: 0.72rem;
}

.app-resource-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.app-resource-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid #E7EDF6;
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 0 3px 9px rgba(34, 61, 99, 0.04);
}

.app-resource-row > span:nth-child(2),
.app-tool-title > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.app-resource-row strong,
.app-tool-title strong {
  color: #253650;
  font-size: 0.72rem;
}

.app-resource-row small,
.app-tool-title small {
  color: #8491A4;
  font-size: 0.61rem;
}

.app-resource-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 3px;
  padding: 10px 11px;
  border-radius: 11px;
  background: #EDF5FF;
  color: #49617E;
  font-size: 0.63rem;
  line-height: 1.45;
}

.app-resource-note span {
  color: #3276DE;
}

.app-tool-card {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #E5ECF5;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(34, 61, 99, 0.045);
}

.app-tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-tool-icon.cgpa { background: #F0EBFF; color: #7D54DD; }
.app-tool-icon.attendance { background: #E8F8F0; color: #1DA568; }

.app-grade-preview {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #F6F8FC;
  color: #7E8BA0;
  font-size: 0.61rem;
}

.app-grade-preview strong {
  color: #243650;
  font-size: 1.05rem;
}

.app-grade-preview span:last-child {
  margin-left: auto;
}

.app-progress-track {
  height: 6px;
  margin: 14px 2px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #EAF0F7;
}

.app-progress-caption {
  display: flex;
  justify-content: space-between;
  color: #7C899D;
  font-size: 0.58rem;
}

.app-progress-caption span:last-child {
  color: #2875D8;
  font-weight: 700;
}

.app-tool-disclaimer {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 10px;
  background: #FFF8E9;
  color: #866B3C;
  font-size: 0.61rem;
  line-height: 1.4;
}

.app-bottom-nav {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #E8EEF7;
  background: #FFFFFF;
}

.app-bottom-nav span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7D899B;
  font-size: 0.62rem;
}

.app-bottom-nav span.selected {
  color: #1769DE;
  font-weight: 700;
}

.app-bottom-nav b {
  font-size: 1.12rem;
}

.showcase-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.showcase-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #DCE6F3;
  border-radius: 50%;
  background: #FFFFFF;
  color: #35516F;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.showcase-arrow:hover {
  transform: translateY(-1px);
  background: #EFF5FF;
  color: #1D63C7;
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.showcase-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #C7D4E5;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.showcase-dot.is-active {
  width: 20px;
  background: #2674E8;
}

.showcase-status {
  color: #6C7E95;
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.floating-card {
  z-index: 3;
  border-color: #DBE6F5;
  box-shadow: 0 16px 38px rgba(30, 64, 120, 0.14);
}

.f-text h5 {
  color: #243650;
}

.f-text p {
  color: #64758D;
}

@keyframes phoneSway {
  0%, 100% { transform: rotateY(-3deg) rotateX(1deg) translateY(0); }
  50% { transform: rotateY(3deg) rotateX(-1deg) translateY(-5px); }
}

@keyframes appSlideEnter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .app-showcase {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .app-showcase {
    width: min(100%, 350px);
  }

  .phone-mockup {
    height: 610px;
  }

  .university-app-card {
    min-height: 124px;
    padding: 14px;
  }

  .app-feature-grid {
    gap: 7px;
  }

  .app-feature-card {
    gap: 7px;
    padding: 7px;
    font-size: 0.65rem;
  }
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card:nth-child(4),
  .team-card:nth-child(5) {
    grid-column: auto;
  }

  .team-card:nth-child(5) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .team-page-header {
    padding: 126px 0 52px;
  }

  .team-content {
    padding-top: 52px;
    padding-bottom: 68px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
  }

  .founder-card {
    padding: 28px 22px 25px;
  }

  .founder-photo-wrap {
    width: 166px;
    height: 166px;
  }

  .team-groups-intro {
    margin-top: 58px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .team-card,
  .team-card:nth-child(5) {
    grid-column: auto;
    width: 100%;
    min-height: 0;
    padding: 23px;
  }

  .team-card h3 {
    min-height: 0;
  }

  .team-cta {
    margin-top: 36px;
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mockup {
    animation: none;
  }

  .app-slide {
    animation: none;
  }

  .founder-card,
  .team-card {
    transition: none;
  }

  .showcase-arrow,
  .showcase-dot {
    transition: none;
  }
}

.selected-candidates-trigger {
  position: relative;
  gap: 8px;
  border: 1px solid #1D63CC;
  background: linear-gradient(135deg, #2879E8 0%, #155BC1 100%);
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.selected-candidates-trigger:hover {
  transform: translateY(-2px);
  border-color: #124FAE;
  background: linear-gradient(135deg, #216DD8 0%, #104FAF 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.selected-candidates-trigger .candidate-trigger-star {
  color: #D8EBFF;
  font-size: 1rem;
}

.candidate-new-badge {
  margin-left: 3px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .selected-candidates-trigger {
    transition: none;
  }
}

.candidate-modal-overlay {
  overflow-y: auto;
  background: rgba(14, 29, 52, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.candidate-modal-content {
  max-width: 590px;
  max-height: min(760px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 34px;
  border-color: #DDE8F7;
  background: linear-gradient(155deg, #FFFFFF 0%, #F6F9FF 100%);
  text-align: left;
}

.candidate-modal-close {
  z-index: 1;
  border: 1px solid #E1E9F4;
  background: #FFFFFF;
  color: #52627A;
}

.candidate-modal-close:hover {
  background: #EDF4FF;
  color: #174D9E;
}

.candidate-modal-heading {
  padding: 4px 40px 22px 2px;
}

.candidate-modal-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
  place-items: center;
  border: 1px solid #D7E6FF;
  border-radius: 14px;
  background: linear-gradient(145deg, #EFF5FF, #E7F7FF);
  color: #2774DB;
  font-size: 1.2rem;
}

.candidate-modal-eyebrow {
  color: #3476CF;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.candidate-modal-heading h2 {
  margin: 6px 0 5px;
  color: #162B49;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2rem);
  letter-spacing: -0.035em;
}

.candidate-modal-heading p,
.candidate-modal-note {
  color: #66768E;
  font-size: 0.92rem;
  line-height: 1.6;
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.candidate-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid #E4EBF5;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(35, 68, 115, 0.035);
}

.candidate-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.avatar-blue { border-color: #D8E6FF; background: #EEF4FF; color: #326BCB; }
.avatar-cyan { border-color: #D5EDF6; background: #EAF8FC; color: #2187A5; }
.avatar-amber { border-color: #F3E5CB; background: #FFF6E8; color: #B77A1C; }
.avatar-violet { border-color: #E6DCFA; background: #F4F0FF; color: #7954C6; }
.avatar-green { border-color: #D6EDDF; background: #ECF8F1; color: #27835B; }

.candidate-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.candidate-details strong {
  color: #20334F;
  font-size: 0.94rem;
  font-weight: 800;
}

.candidate-details > span {
  color: #6E7D92;
  font-size: 0.78rem;
  line-height: 1.4;
}

.candidate-team-mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #F1F5FB;
  color: #53708F;
  font-size: 1rem;
}

.candidate-modal-note {
  margin: 17px 2px 0;
  font-size: 0.8rem;
}

.candidate-accept-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.candidate-accept-button > span {
  font-size: 1.1rem;
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .candidate-modal-content {
    max-height: calc(100dvh - 24px);
    padding: 26px 18px 22px;
  }

  .candidate-modal-heading {
    padding-right: 38px;
  }

  .candidate-item {
    gap: 10px;
    padding: 11px 10px;
  }

  .candidate-details > span {
    font-size: 0.72rem;
  }

  .candidate-team-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-modal-content {
    transition: none;
  }
}

.rules-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 68px;
  border-bottom: 1px solid #E1EAF6;
  background:
    radial-gradient(ellipse at 72% 0%, rgba(30, 132, 231, 0.16), transparent 45%),
    linear-gradient(180deg, #EDF4FF 0%, #F8FAFF 100%);
}

.rules-hero-inner {
  max-width: 940px;
}

.rules-back-link {
  display: inline-flex;
  margin-bottom: 25px;
  color: #4E6684;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.rules-back-link:hover,
.rules-inline-download:hover {
  color: #145EC6;
}

.rules-eyebrow,
.rules-section-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #286CC8;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rules-eyebrow {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #D4E4FA;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.rules-hero h1 {
  max-width: 820px;
  margin: 18px 0 12px;
  color: #162B49;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.rules-lead {
  max-width: 710px;
  color: #596D87;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.75;
}

.rules-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 21px;
  color: #586C86;
  font-size: 0.81rem;
}

.rules-hero-meta span {
  display: inline-flex;
  gap: 6px;
}

.rules-hero-meta b {
  color: #263F60;
}

.rules-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.rules-hero-actions .btn,
.rules-bottom-link .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.rules-download-button {
  border-color: #CBDAEE;
}

.rules-content {
  max-width: 1100px;
  padding-top: 38px;
  padding-bottom: 76px;
}

.rules-confidential-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid #F0D8A9;
  border-radius: 15px;
  background: #FFF9EC;
  color: #725A32;
}

.rules-notice-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #F7E7C2;
  color: #8A5C0C;
  font-size: 0.9rem;
  font-weight: 800;
}

.rules-confidential-notice p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.rules-confidential-notice strong {
  color: #5C431E;
}

.rules-document-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 18px;
}

.rules-document-heading h2 {
  margin: 6px 0 5px;
  color: #1A2E49;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.rules-document-heading p {
  color: #6A7A91;
  font-size: 0.87rem;
}

.rules-inline-download {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #DAE5F2;
  border-radius: 10px;
  background: #FFFFFF;
  color: #315D98;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rules-inline-download:hover {
  border-color: #BDD2EF;
  background: #F5F9FF;
}

.rules-viewer {
  overflow: hidden;
  border: 1px solid #D4DEEC;
  border-radius: 17px;
  background: #E9EEF6;
  box-shadow: 0 18px 45px rgba(27, 56, 99, 0.12);
}

.rules-viewer iframe {
  display: block;
  width: 100%;
  height: min(82vh, 1050px);
  min-height: 650px;
  border: 0;
  background: #E9EEF6;
}

.rules-viewer-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: #596D87;
  font-size: 0.82rem;
}

.rules-viewer-fallback p {
  margin: 0;
}

.rules-viewer-fallback a {
  color: #1D63C7;
  font-weight: 700;
}

.rules-bottom-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 27px;
  padding: 20px 22px;
  border: 1px solid #DCE7F5;
  border-radius: 15px;
  background: linear-gradient(120deg, #F5F9FF, #F0F8FF);
}

.rules-bottom-link p {
  margin: 0;
  color: #516782;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .rules-hero {
    padding: 122px 0 48px;
  }

  .rules-hero-meta {
    flex-direction: column;
    gap: 7px;
  }

  .rules-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rules-content {
    padding-top: 26px;
    padding-bottom: 52px;
  }

  .rules-document-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 32px;
  }

  .rules-viewer {
    border-radius: 12px;
  }

  .rules-viewer iframe {
    height: 75vh;
    min-height: 520px;
  }

  .rules-bottom-link {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }
}
