/**
 * almitu - Main Stylesheet
 * Modern EdTech Design System
 * © 2026 almitu
 */

:root {
  /* 2026 Modern EdTech Palette */
  --primary: #FF6B35;
  --primary-dark: #E85A2A;
  --primary-light: #FF8C66;
  --secondary: #004E89;
  --secondary-dark: #003D6B;
  --accent: #FFD23F;
  --success: #06D6A0;
  --navy: #1A1D29;
  --ink: #2D3142;
  --muted: #6C7489;
  --bg: #F8F9FD;
  --card: #FFFFFF;
  --line: rgba(29, 33, 41, .08);
  --shadow: 0 8px 32px rgba(29, 33, 41, .06);
  --shadow-lg: 0 20px 60px rgba(29, 33, 41, .10);
  --shadow-xl: 0 30px 80px rgba(29, 33, 41, .12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #F8F9FD 0%, #FFFFFF 100%);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility: Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* almitu brand name styling */
.almitu-brand {
  font-weight: 700;
  color: var(--primary);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(248, 249, 253, .92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(29, 33, 41, .03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand .name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--navy);
  font-size: 28px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand .tag {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .3px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  background: rgba(29, 33, 41, .04);
}

.nav-links a.active {
  background: rgba(0, 78, 137, .06);
  color: var(--secondary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(255, 107, 53, .30), 0 2px 8px rgba(255, 107, 53, .20);
  font-weight: 700 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, .35), 0 4px 12px rgba(255, 107, 53, .25);
}

/* Typography */
h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -.5px;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -1px;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.3px;
}

p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  max-width: 840px;
  margin-bottom: 64px;
  text-align: center;
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, .12), rgba(255, 107, 53, .08));
  border: 1px solid rgba(255, 107, 53, .20);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 80px 0 120px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, .08), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(0, 78, 137, .06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 210, 63, .15), transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 214, 160, .25);
  background: linear-gradient(135deg, rgba(6, 214, 160, .12), rgba(6, 214, 160, .08));
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(6, 214, 160, .15);
}

.launch-badge .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(6, 214, 160, .7);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 214, 160, .7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(6, 214, 160, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0);
  }
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy), var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* change the hero font color if the system prefers dark mode */
@media (prefers-color-scheme: dark) {
  .hero h1 {
    background-color: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-sub {
  font-size: 21px;
  color: var(--ink);
  margin: 0 auto 40px;
  max-width: 680px;
  line-height: 1.6;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 64px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.btn:hover:before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 107, 53, .30), 0 4px 12px rgba(255, 107, 53, .20);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, .35), 0 6px 16px rgba(255, 107, 53, .25);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(0, 78, 137, .08);
  color: var(--secondary);
  border: 2px solid rgba(0, 78, 137, .20);
}

.btn-secondary:hover {
  background: rgba(0, 78, 137, .12);
  border-color: rgba(0, 78, 137, .30);
  transform: translateY(-2px);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, .15);
}

.card:hover:before {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: 16px;
  color: var(--navy);
}

.card p {
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

.card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(29, 33, 41, .05);
}

.card li:last-child {
  border-bottom: none;
}

.card li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}

/* Feature Cards with Numbers */
.feature-card {
  position: relative;
  padding-left: 80px;
}

.feature-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 53, .25);
  font-family: "Space Grotesk", sans-serif;
}

.feature-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 78, 137, .08);
  font-weight: 700;
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Comparison Table */
.comparison-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(0, 78, 137, .06), rgba(0, 78, 137, .03));
}

.comparison-table th {
  padding: 24px;
  text-align: left;
  font-weight: 800;
  color: var(--navy);
  border-bottom: 2px solid var(--line);
  font-size: 17px;
  font-family: "Space Grotesk", sans-serif;
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, rgba(255, 107, 53, .12), rgba(255, 107, 53, .08));
  color: var(--primary);
  position: relative;
}

.comparison-table th.highlight:after {
  content: "⚡";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: var(--muted);
  font-weight: 600;
}

.comparison-table .yes {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .no {
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.testimonial:before {
  content: "“";
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(255, 107, 53, .08);
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial .quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
  flex-shrink: 0;
}

.testimonial .info {
  flex: 1;
}

.testimonial .name {
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 4px;
}

.testimonial .role {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all .2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 107, 53, .20);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 28px;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  transition: all .2s ease;
}

.faq-question:hover {
  background: rgba(255, 107, 53, .03);
}

.faq-question .icon {
  font-size: 24px;
  color: var(--primary);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer-content {
  padding: 0 28px 28px;
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

/* CTA Cards */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, .04), rgba(255, 107, 53, .02));
  border: 2px solid rgba(255, 107, 53, .15);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s ease;
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.cta-card:hover:before {
  opacity: .03;
}

.cta-card h3 {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.cta-card p {
  margin-bottom: 28px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  font-size: 16px;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 420px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 32px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* if the system is dark mode */
@media (prefers-color-scheme: dark) {
  .footer-brand-text {
    background-color: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.footer-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-links a {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all .2s ease;
  color: var(--ink);
  font-size: 15px;
}

.footer-links a:hover {
  background: rgba(255, 107, 53, .06);
  border-color: rgba(255, 107, 53, .20);
  color: var(--primary);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding: 60px 0 100px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cta-cards {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .card {
    padding: 32px 24px;
  }

  .testimonial {
    padding: 28px 24px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .stat-value {
    font-size: 32px;
  }

  .feature-card {
    padding-left: 0;
    padding-top: 80px;
    text-align: center;
  }

  .feature-num {
    left: 50%;
    transform: translateX(-50%);
  }

  .feature-badge {
    display: block;
  }

  .comparison-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
