@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600&family=Saira+Condensed:wght@400;600;700&display=swap');

:root {
  --color-primary-blue: #2C3EF8;
  --color-light-blue: #ABB2FC;
  --color-off-white: #F7F7FF;
  --color-bright-green: #00FD00;
  --color-dark-purple: #1A0B68;
  --color-black: #131313;
  --color-white: #FFFFFF;

  --color-bg: var(--color-off-white);
  --color-surface: var(--color-white);
  --color-text: var(--color-black);
  --color-muted: #4a4a5a;
  --color-primary: var(--color-primary-blue);
  --color-accent: var(--color-bright-green);

  --font-heading: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --font-size-base: 1rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.15;

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --container-max: 72rem;
  --container-padding: 1.25rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(19, 19, 19, 0.06);
  --shadow-md: 0 1px 3px rgba(19, 19, 19, 0.08), 0 4px 12px rgba(19, 19, 19, 0.04);
  --shadow-lg: 0 8px 24px rgba(26, 11, 104, 0.12), 0 2px 6px rgba(19, 19, 19, 0.06);

  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

ul,
ol {
  list-style: none;
}

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

a:hover,
a:focus-visible {
  color: var(--color-dark-purple);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-dark-purple);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  max-width: 65ch;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.flex {
  display: flex;
  gap: var(--space-4);
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

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

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

.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;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem;
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  height: 120%;
  background: linear-gradient(135deg, rgba(171, 178, 252, 0.18) 0%, rgba(44, 62, 248, 0.08) 100%);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
  transform: rotate(60deg);
  transform-origin: top right;
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 45%;
  height: 80%;
  background: linear-gradient(60deg, rgba(0, 253, 0, 0.06) 0%, rgba(26, 11, 104, 0.05) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 60rem;
}

.hero .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary-blue);
  margin: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--color-dark-purple);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.hero p,
.hero .hero-subtext {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-black);
  margin-top: 1.5rem;
  max-width: 50rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero .cta-button,
.hero .btn-primary {
  background: var(--color-primary-blue);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  will-change: transform;
}

.hero .cta-button:hover,
.hero .btn-primary:hover,
.hero .cta-button:focus-visible,
.hero .btn-primary:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(44, 62, 248, 0.3);
  background: #4655fa;
  color: var(--color-white);
}

.hero .cta-button:active,
.hero .btn-primary:active {
  transform: scale(0.98);
}

.hero .btn-secondary {
  background: transparent;
  color: var(--color-dark-purple);
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid var(--color-dark-purple);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible {
  background: var(--color-dark-purple);
  color: var(--color-white);
  transform: scale(1.03);
}

.hero .btn-secondary:active {
  transform: scale(0.98);
}

.pixel-pattern {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(auto-fit, 40px);
  gap: 40px;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.pixel-pattern > * {
  width: 8px;
  height: 8px;
  background: var(--color-primary-blue);
  border-radius: 1px;
}

.hero::before,
.hero::after {
  background-image:
    radial-gradient(circle, rgba(44, 62, 248, 0.18) 1.5px, transparent 2px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.hero .angle-device {
  position: absolute;
  width: 240px;
  height: 240px;
  background: linear-gradient(60deg, var(--color-primary-blue), var(--color-light-blue));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 80px 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    letter-spacing: -0.015em;
  }

  .hero p,
  .hero .hero-subtext {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    margin-top: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }

  .hero .cta-button,
  .hero .btn-primary,
  .hero .btn-secondary {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 64px 1rem;
    min-height: 60vh;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 11vw, 2.5rem);
  }
}

.services {
  padding: 120px 2rem;
  background: var(--color-white);
}

.services h2 {
  font-family: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 4rem;
  color: var(--color-dark-purple);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-off-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-light-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-family: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary-blue);
}

.service-card p {
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: var(--color-black);
  line-height: 1.6;
}

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

.reveal {
  opacity: 0;
}

.reveal.active {
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1).reveal.active {
  animation-delay: 0.1s;
}

.service-card:nth-child(2).reveal.active {
  animation-delay: 0.2s;
}

.service-card:nth-child(3).reveal.active {
  animation-delay: 0.3s;
}

.service-card:nth-child(4).reveal.active {
  animation-delay: 0.4s;
}

.service-card:nth-child(5).reveal.active {
  animation-delay: 0.5s;
}

.service-card:nth-child(6).reveal.active {
  animation-delay: 0.6s;
}

.services-grid > li:nth-child(1) .service-card.reveal.active {
  animation-delay: 0.1s;
}

.services-grid > li:nth-child(2) .service-card.reveal.active {
  animation-delay: 0.2s;
}

.services-grid > li:nth-child(3) .service-card.reveal.active {
  animation-delay: 0.3s;
}

.services-grid > li:nth-child(4) .service-card.reveal.active {
  animation-delay: 0.4s;
}

.services-grid > li:nth-child(5) .service-card.reveal.active {
  animation-delay: 0.5s;
}

.services-grid > li:nth-child(6) .service-card.reveal.active {
  animation-delay: 0.6s;
}

.trust-section {
  padding: 120px 2rem;
  position: relative;
}

.company-overview {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.company-overview p {
  max-width: none;
  margin-inline: auto;
  color: var(--color-black);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.trust-section h2 {
  font-family: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-dark-purple);
  margin-bottom: 2rem;
}

.educational-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.edu-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.edu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.edu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 62, 248, 0.7), rgba(26, 11, 104, 0.7));
  mix-blend-mode: multiply;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  pointer-events: none;
}

.edu-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--color-white);
  z-index: 1;
}

.edu-card h3 {
  font-family: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.edu-card-content p {
  color: var(--color-white);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: none;
}

.edu-card:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--color-white);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--color-dark-purple);
  transform: scale(1.1);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .trust-section {
    padding: 80px 1.25rem;
  }

  .company-overview {
    margin-bottom: 2.5rem;
  }

  .educational-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .edu-card {
    height: 260px;
  }

  .edu-card-content {
    padding: 1.5rem;
  }

  .social-links {
    gap: 1.25rem;
    margin-top: 2rem;
  }
}

.contact-section {
  padding: 120px 2rem;
  background: var(--color-off-white);
}

.contact-section h2 {
  font-family: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--color-dark-purple);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: var(--color-white);
  color: var(--color-black);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-blue);
}

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

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary-blue);
  color: var(--color-white);
  font-family: 'Saira Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover:not(.loading):not(.success):not(.error):not([disabled]) {
  background: #4655fa;
}

.submit-btn.loading {
  background: var(--color-light-blue);
  cursor: not-allowed;
}

.submit-btn.success {
  background: var(--color-bright-green);
  color: var(--color-black);
  cursor: default;
}

.submit-btn.error {
  background: #ef4444;
  cursor: pointer;
}

.submit-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.9;
}

.submit-btn .btn-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-btn .btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  color: transparent;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.form-message .message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.form-message .message-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 80px 1.25rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--color-white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.header .logo-container {
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.header .logo {
  height: 60px;
  width: auto;
  min-height: 50px;
}

.footer {
  background: var(--color-dark-purple);
  color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer .social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.footer .social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer .social-link:hover,
.footer .social-link:focus-visible {
  background: var(--color-light-blue);
  color: var(--color-dark-purple);
  transform: scale(1.1);
}

.footer .copyright {
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: var(--color-light-blue);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1.25rem;
  }

  .header .logo-container {
    padding: 0 20px;
  }

  .header .logo {
    height: 50px;
  }

  .footer {
    padding: 2.5rem 1.25rem;
  }

  .footer .social-links {
    gap: 1.5rem;
  }

  .services {
    padding: 80px 1.25rem;
  }

  .services h2 {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.5rem 1rem;
  }

  .header .logo {
    height: 44px;
    min-height: 44px;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer .social-links {
    gap: 1rem;
  }

  .footer .copyright {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero .cta-button:hover,
  .hero .btn-primary:hover,
  .hero .btn-secondary:hover {
    transform: none;
  }

  .edu-card:hover img,
  .social-link:hover,
  .footer .social-link:hover {
    transform: none;
  }

  .reveal {
    opacity: 1;
  }

  .skeleton {
    animation: none;
  }
}
