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

:root {
  --primary: #243746;
  --secondary: #2F5E78;
  --accent: #4F9EC7;
  --light: #F5F7FA;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #5E6E7A;
  --radius: 12px;
  --radius-lg: 24px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(36, 55, 70, 0.06);
  --shadow-hover: 0 20px 40px rgba(36, 55, 70, 0.12);
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
  border: 2px solid var(--light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Graphic Concept: Grid Backgrounds & Convergence */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(47, 94, 120, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 94, 120, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
}

.converge-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 158, 199, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.converge-arrow-decor {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  max-width: 700px;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 650px;
  margin-bottom: 48px;
}

/* Buttons and Ripple Effect */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(36, 55, 70, 0.2);
}

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 55, 70, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid rgba(36, 55, 70, 0.15);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(36, 55, 70, 0.02);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 158, 199, 0.3);
}

.btn-accent:hover {
  background-color: #3b88b0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 158, 199, 0.45);
}

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

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Button Ripple Effect */
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 70px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}

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

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

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

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

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  background-color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-illustration {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(47, 94, 120, 0.1);
  background-color: var(--white);
  transition: var(--transition);
}

.hero-img-wrapper:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 30px 60px rgba(36, 55, 70, 0.18);
}

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

/* --- Who We Are Section --- */
.about {
  background-color: var(--light);
}

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

.about-text {
  position: relative;
}

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

.about-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 158, 199, 0.15);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(79, 158, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-icon svg {
  width: 24px;
  height: 24px;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.about-card p {
  font-size: 0.9rem;
}

/* --- Solutions Section --- */
.solutions {
  background-color: var(--white);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.solution-card {
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(36, 55, 70, 0.06);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 158, 199, 0.2);
}

.solution-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(79, 158, 199, 0.1) 0%, rgba(47, 94, 120, 0.1) 100%);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.solution-card-icon svg {
  width: 28px;
  height: 28px;
}

.solution-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Large Featured Solution (Plataforma Control Escolar) */
.solution-card.featured {
  grid-column: span 3;
  background-color: var(--white);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(36, 55, 70, 0.05);
  position: relative;
  overflow: hidden;
}

/* Glassmorphism for featured card */
.solution-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(79, 158, 199, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Layout for Gov Process card */
.solution-card.gov-process {
  grid-column: span 3;
}

.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(79, 158, 199, 0.08);
  border: 1px solid rgba(79, 158, 199, 0.15);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  align-self: flex-start;
}

.gov-note {
  font-size: 0.8rem !important;
  color: var(--text-muted);
  font-style: normal;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-top: 16px;
  margin-bottom: 0 !important;
}

.gov-note span {
  font-weight: 600;
  color: var(--primary);
}

.solution-card.standard {
  grid-column: span 2;
}

.solution-card .btn-text {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
}

.solution-card .btn-text:hover {
  color: var(--accent);
}

.solution-card .btn-text svg {
  transition: var(--transition);
}

.solution-card .btn-text:hover svg {
  transform: translateX(4px);
}

/* --- Benefits Section --- */
.benefits {
  background-color: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.benefit-card {
  background-color: var(--white);
  padding: 48px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

.benefit-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Technologies Section --- */
.tech {
  background-color: var(--white);
}

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

.tech-card {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
}

.tech-card:hover {
  background-color: var(--white);
  border-color: rgba(79, 158, 199, 0.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.tech-icon {
  width: 48px;
  height: 48px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tech-card:hover .tech-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

/* --- Why Xistemags Section --- */
.why {
  background-color: var(--light);
}

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

.why-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 158, 199, 0.15);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(47, 94, 120, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.why-card p {
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta {
  background-color: var(--white);
  padding-bottom: 60px;
}

.cta-box {
  background: linear-gradient(135deg, #1b2935 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(36, 55, 70, 0.15);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
}

.cta-box .converge-shape {
  background: radial-gradient(circle, rgba(79, 158, 199, 0.12) 0%, transparent 75%);
  width: 500px;
  height: 500px;
}

.cta-box-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  color: var(--white);
  font-size: 2.75rem;
  line-height: 1.2;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: 12px;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 1.5rem;
}

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

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 24px;
  font-weight: 600;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item div {
  font-size: 0.95rem;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: var(--transition);
}

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

/* --- Interactive Detail Drawer (Plataforma Control Escolar) --- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 55, 70, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background-color: var(--white);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  z-index: 2001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer.open {
  right: 0;
}

.drawer-header {
  padding: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-title-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(79, 158, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.drawer-close:hover {
  background-color: var(--light);
  color: var(--primary);
}

.drawer-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-intro {
  font-size: 1rem;
  color: var(--text-muted);
}

.drawer-modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-module-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--light);
  border: 1px solid transparent;
  transition: var(--transition);
}

.drawer-module-item:hover {
  background-color: var(--white);
  border-color: rgba(79, 158, 199, 0.15);
  box-shadow: 0 4px 12px rgba(36, 55, 70, 0.03);
  transform: translateY(-2px);
}

.drawer-module-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.drawer-module-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.drawer-module-text p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.drawer-footer {
  padding: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--light);
  display: flex;
  gap: 16px;
}

/* --- Scroll Reveal Animations --- */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
  pointer-events: none;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

/* Delay modifiers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Responsive Media Queries (Mobile First) */

@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-grid {
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .solution-card.featured,
  .solution-card.gov-process {
    grid-column: span 2;
  }
  
  .solution-card.standard {
    grid-column: span 1;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav-menu.open {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  /* Hamburger transform when menu is open */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-actions {
    display: none; /* Hide desktop action buttons on mobile, or move to mobile menu */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-desc {
    margin: 0 auto 32px auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-illustration {
    order: -1; /* Place image above text on mobile */
  }

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

  .solution-card.featured,
  .solution-card.gov-process,
  .solution-card.standard {
    grid-column: span 1;
  }

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

  .cta-box {
    padding: 60px 24px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
