/* UniversitasAI Marketing Website — Shared Styles */
/* Design System: Inter font, navy/blue brand, mobile-first responsive */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ───── CSS Custom Properties ───── */
:root {
  --navy: #0A1628;
  --blue: #1A73E8;
  --blue-light: #49a3f1;
  --blue-dark: #1557b0;
  --green: #10B981;
  --green-light: #34d399;
  --orange: #F59E0B;
  --purple: #7B1FA2;
  --red: #EF4444;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.95);
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
  --max-width: 1200px;
  --nav-height: 72px;

  --gradient-blue: linear-gradient(135deg, #1A73E8 0%, #49a3f1 100%);
  --gradient-navy: linear-gradient(135deg, #0A1628 0%, #1e293b 100%);
  --gradient-hero: linear-gradient(135deg, #0A1628 0%, #1a2744 50%, #1A73E8 100%);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --bg-nav: rgba(15, 23, 42, 0.95);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
  --border-light: #1e293b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--blue-light);
}

ul, ol {
  list-style: none;
}

/* ───── Typography ───── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ───── Layout ───── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

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

.section-header p {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* ───── Navigation ───── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

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

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-mobile a:hover {
  background: var(--bg-alt);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-white {
  background: #fff;
  color: var(--navy);
}

.btn-white:hover {
  background: #f1f5f9;
  color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  border-color: #fff;
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: #059669;
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

/* ───── Cards ───── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-icon.blue { background: rgba(26, 115, 232, 0.1); color: var(--blue); }
.card-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.card-icon.purple { background: rgba(123, 31, 162, 0.1); color: var(--purple); }
.card-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--orange); }

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.75) 50%, rgba(26, 115, 232, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 32px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.hero-stat .label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-content { padding: 48px 24px; }
  .hero-stats { gap: 24px; }
}

/* ───── Trust Bar ───── */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.trust-bar p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background: rgba(26, 115, 232, 0.1);
  color: var(--blue);
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-purple {
  background: rgba(123, 31, 162, 0.1);
  color: var(--purple);
  border: 1px solid rgba(123, 31, 162, 0.2);
}

.badge-orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ───── Stats Strip ───── */
.stats-strip {
  padding: 48px 0;
  background: var(--gradient-navy);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 0.8125rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ───── Steps ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}

/* ───── CTA Banner ───── */
.cta-banner {
  background: var(--gradient-hero);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.cta-banner .hero-buttons {
  justify-content: center;
}

/* ───── Testimonial ───── */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ───── Split Section ───── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.split-content h2 {
  margin-bottom: 16px;
}

.split-content p {
  margin-bottom: 24px;
}

.split-content ul {
  margin-bottom: 24px;
}

.split-content ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.split-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='10' height='10'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

@media (max-width: 768px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
}

/* ───── Pricing Table ───── */
.pricing-grid {
  display: grid;
  gap: 24px;
}

.pricing-grid.three { grid-template-columns: repeat(3, 1fr); }
.pricing-grid.four { grid-template-columns: repeat(4, 1fr); }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled::before {
  content: '\2715';
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .pricing-grid.three, .pricing-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pricing-grid.three, .pricing-grid.four { grid-template-columns: 1fr; }
}

/* ───── FAQ ───── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  text-align: left;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-arrow {
  transition: transform var(--transition);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--bg-card);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 0.9375rem;
}

/* ───── Blog Cards ───── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body .badge {
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.blog-card-body h3 a {
  color: var(--text);
}

.blog-card-body h3 a:hover {
  color: var(--blue);
}

.blog-card-body p {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.blog-card-body .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

/* ───── Contact Form ───── */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ───── Footer ───── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.25rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ───── Page Hero (inner pages) ───── */
.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: var(--gradient-navy);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ───── Utilities ───── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ───── Agents Grid ───── */
.agent-group {
  margin-bottom: 48px;
}

.agent-group h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.agent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.agent-item:hover {
  background: var(--bg-alt);
}

.agent-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.agent-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.agent-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ───── Timeline ───── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue);
}

.timeline-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.875rem;
}

/* ───── Portal Cards ───── */
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.portal-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.portal-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portal-card-body {
  padding: 24px;
}

.portal-card-body h3 {
  margin-bottom: 4px;
}

.portal-card-body .portal-pages {
  font-size: 0.8125rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ───── Animations ───── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ───── K-12 Specific ───── */
.k12-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.k12-feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.k12-feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* ───── Misc ───── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.metric-card .metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.metric-card .metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ───── Features Page: Jump Nav ───── */
.feature-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ───── Features Page: 5-Column Agent Grid ───── */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

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

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.agent-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.agent-card-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
  display: block;
}

.agent-card h4 {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.agent-card p {
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ───── Features Page: Checklist Cards ───── */
.feature-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.feature-checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.feature-checklist-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.feature-checklist-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.feature-checklist-card ul {
  list-style: none;
}

.feature-checklist-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-checklist-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ───── Comparison Page: Table ───── */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comparison-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.comparison-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table .highlight-col {
  background: rgba(26, 115, 232, 0.06);
}

[data-theme="dark"] .comparison-table .highlight-col {
  background: rgba(26, 115, 232, 0.12);
}

.comparison-table th.highlight-col {
  background: rgba(26, 115, 232, 0.15);
  color: var(--blue);
}

[data-theme="dark"] .comparison-table th.highlight-col {
  background: rgba(26, 115, 232, 0.25);
}

.comparison-table tbody tr:hover {
  background: var(--bg-alt);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Check/X indicators */
.check-yes {
  color: var(--green);
  font-weight: 600;
}

.check-yes::before {
  content: '\2713 ';
  font-weight: 700;
}

.check-no {
  color: var(--red);
  opacity: 0.7;
}

.check-no::before {
  content: '\2715 ';
  font-weight: 700;
}

.check-partial {
  color: var(--orange);
}

.check-partial::before {
  content: '\25CB ';
}

/* ───── Comparison Page: Head-to-Head ───── */
.h2h-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}

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

.h2h-section h4 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--text);
}

.h2h-list {
  list-style: none;
}

.h2h-list li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.h2h-list li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--text-secondary);
  font-weight: 700;
}

.h2h-list-green li::before {
  content: '\2713';
  left: 0;
  color: var(--green);
}

.h2h-list-red li::before {
  content: '\2715';
  left: 0;
  color: var(--red);
}

/* ───── Comparison Page: TCO ───── */
.tco-table .tco-total-row td {
  border-top: 2px solid var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 1rem;
}

.tco-green {
  color: var(--green);
  font-size: 1.125rem;
}

.tco-red {
  color: var(--red);
  font-size: 1.125rem;
}

.tco-savings-card {
  display: inline-block;
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 40px 64px;
  text-align: center;
}

.tco-savings-number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.tco-savings-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 640px) {
  .tco-savings-card { padding: 32px; }
  .tco-savings-number { font-size: 2.25rem; }
}
