:root {
  --ink: #0c1b33;
  --ink-soft: #3a4a66;
  --blue-900: #071733;
  --blue-800: #0b2c66;
  --blue-600: #0f5bd6;
  --blue-500: #1e74ff;
  --blue-200: #cfe0ff;
  --surface: #ffffff;
  --border: rgba(12, 27, 51, 0.12);
  --shadow: 0 30px 60px rgba(8, 23, 51, 0.18);
  --shadow-soft: 0 20px 45px rgba(8, 23, 51, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f6f9ff 0%, #ecf2ff 45%, #f7faff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(15, 91, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 91, 214, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 0;
}

.glow-1 {
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(30, 116, 255, 0.6) 0%, rgba(30, 116, 255, 0) 70%);
}

.glow-2 {
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(15, 91, 214, 0.5) 0%, rgba(15, 91, 214, 0) 70%);
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
  z-index: 5;
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-scrolled {
  box-shadow: 0 18px 34px rgba(8, 23, 51, 0.1);
}

.topbar {
  background: var(--blue-900);
  color: #fff;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 20px;
}

.topbar-links {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(12, 27, 51, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(12, 27, 51, 0.1);
}

.brand-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  line-height: 1;
}

.brand-title {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}

.brand-subtitle {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(12, 27, 51, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(12, 27, 51, 0.1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(12, 27, 51, 0.14);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

.btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.ghost {
  border-color: rgba(8, 23, 51, 0.2);
  color: var(--blue-800);
  background: transparent;
}

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

.hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, rgba(7, 23, 51, 0.9), rgba(15, 91, 214, 0.58));
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 23, 51, 0.92) 0%, rgba(7, 23, 51, 0.72) 46%, rgba(7, 23, 51, 0.42) 100%),
    radial-gradient(circle at 22% 22%, rgba(30, 116, 255, 0.34), transparent 32%);
  z-index: -1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero h1,
.hero .lead {
  color: #ffffff;
}

.hero .eyebrow {
  color: #cfe0ff;
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 50px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--blue-600);
  margin-bottom: 16px;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 4vw, 3.9rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.stat {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 600;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 27, 51, 0.08);
  color: var(--ink);
}

.panel-card h3 {
  color: var(--ink);
}

.panel-card p:not(.panel-label) {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--blue-600);
  margin-bottom: 10px;
  font-weight: 600;
}

.section {
  padding: 80px 0;
}

.section-contrast {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-top: 1px solid rgba(12, 27, 51, 0.05);
  border-bottom: 1px solid rgba(12, 27, 51, 0.05);
}

.section-header {
  margin-bottom: 36px;
}

.overview-grid,
.values-grid,
.advantage-grid,
.testimonial-grid,
.stack-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.solutions-grid,
.products-grid,
.services-grid,
.gallery-grid,
.jobs-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.featured-services-grid .flip-card {
  grid-column: span 2;
}

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

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

.solution-card,
.product-card,
.service-card,
.gallery-card,
.job-card,
.value-card,
.advantage-card,
.testimonial-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-card:hover,
.product-card:hover,
.service-card:hover,
.value-card:hover,
.advantage-card:hover,
.testimonial-card:hover,
.job-card:hover,
.service-detail:hover,
.legal-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(8, 23, 51, 0.16);
}

.stat,
.panel-card,
.training-badge {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover,
.panel-card:hover,
.training-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(8, 23, 51, 0.14);
}

.solution-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(15, 91, 214, 0.12);
  color: var(--blue-600);
  margin-bottom: 16px;
}

.flip-card {
  perspective: 1200px;
  outline: none;
}

.flip-card-inner {
  position: relative;
  min-height: 330px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 24px 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
  backface-visibility: hidden;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
}

.flip-card-front {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 255, 0.95));
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(140deg, rgba(15, 91, 214, 0.1), rgba(7, 23, 51, 0.05));
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card:focus-visible .flip-card-inner {
  box-shadow: 0 0 0 4px rgba(30, 116, 255, 0.25);
  border-radius: 22px;
}

.flip-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--blue-600);
  font-weight: 600;
}

.solution-card ul,
.service-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.solution-card ul li,
.service-card ul li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.flip-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.flip-card ul li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.product-meta span {
  background: rgba(15, 91, 214, 0.1);
  color: var(--blue-800);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.gallery-card figcaption {
  padding: 18px 20px 22px;
}

.gallery-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 27, 51, 0.1);
  font-weight: 600;
  color: var(--blue-800);
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.page-hero {
  padding: 90px 0 60px;
}

.page-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.statement {
  font-size: 1.15rem;
  color: var(--ink-soft);
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
}

.quote {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.client-name {
  display: block;
  font-weight: 600;
}

.client-role {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.tech-section {
  background: #f1f6ff;
}

.tech-note {
  margin: 12px 0 28px;
  max-width: 700px;
}

.marquee-container {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}

.marquee {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: tech-marquee 30s linear infinite;
}

.marquee-container:hover .marquee {
  animation-play-state: paused;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #f1f6ff 0%, rgba(241, 246, 255, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(270deg, #f1f6ff 0%, rgba(241, 246, 255, 0) 100%);
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(12, 27, 51, 0.08);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.tech-item img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 6px 12px rgba(12, 27, 51, 0.12));
}

@keyframes tech-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(12, 27, 51, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}

.checkbox {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--blue-600);
  margin-bottom: 6px;
}

.faq {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.faq-item {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(12, 27, 51, 0.1);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  display: none;
}

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

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

.faq-toggle {
  font-size: 1.2rem;
  color: var(--blue-600);
  transition: transform 0.2s ease;
}

.site-footer {
  padding: 60px 0 32px;
  background: #171717;
  color: #e5e7eb;
}

.site-footer .brand-title {
  color: #ffffff;
}

.site-footer .brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-description {
  color: rgba(229, 231, 235, 0.7);
  max-width: 280px;
}

.footer-column h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-column a {
  color: rgba(229, 231, 235, 0.8);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.text-link,
.contact-details a {
  color: var(--blue-600);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.text-link:hover,
.contact-details a:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

.site-footer .footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
}

.site-footer .footer-contact a {
  color: rgba(229, 231, 235, 0.86);
  overflow-wrap: anywhere;
}

.site-footer .footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

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

.footer-social a {
  color: rgba(229, 231, 235, 0.8);
  font-weight: 600;
}

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

.legal-content {
  display: grid;
  gap: 24px;
}

.legal-block {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
}

.legal-block h2 {
  margin-bottom: 10px;
}

.legal-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.resource-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.training-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(30, 116, 255, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(15, 91, 214, 0.18), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-top: 1px solid rgba(12, 27, 51, 0.05);
  border-bottom: 1px solid rgba(12, 27, 51, 0.05);
}

.training-orbit {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(30, 116, 255, 0.35);
  animation: orbit-spin 18s linear infinite;
  opacity: 0.6;
}

.training-orbit.orbit-2 {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -240px;
  border-color: rgba(15, 91, 214, 0.2);
  animation-duration: 24s;
}

.training-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.training-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.training-badge {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
  display: grid;
  gap: 6px;
  animation: float-up 3.4s ease-in-out infinite;
}

.training-badge:nth-child(2) {
  animation-delay: 0.3s;
}

.training-badge:nth-child(3) {
  animation-delay: 0.6s;
}

.training-badge:nth-child(4) {
  animation-delay: 0.9s;
}

.training-badge span {
  font-weight: 700;
  color: var(--blue-800);
}

.training-badge small {
  color: var(--ink-soft);
}

.training-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-top: 24px;
}

.training-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
}

.training-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(8, 23, 51, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.training-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink-soft);
}

.training-visual {
  margin: 16px 0 10px;
  border-radius: 18px;
  background-image: linear-gradient(135deg, rgba(11, 44, 102, 0.85), rgba(30, 116, 255, 0.75)),
    url("https://icma.org/sites/default/files/AdobeStock_229010056-MODIFIED-Aurielaki.jpg");
  background-size: cover;
  background-position: center;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.training-visual img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(7, 23, 51, 0.35));
}

.training-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.training-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.training-tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 91, 214, 0.08);
  border: 1px solid rgba(12, 27, 51, 0.08);
  font-weight: 600;
  color: var(--blue-800);
}

.training-tech-item img {
  width: 22px;
  height: 22px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid rgba(30, 116, 255, 0.35);
  box-shadow: 0 24px 45px rgba(8, 23, 51, 0.16);
}

.pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(8, 23, 51, 0.18);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--blue-800);
}

.price-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@keyframes orbit-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float-up {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 26px;
  align-items: start;
}

.service-detail {
  background: #ffffff;
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 27, 51, 0.08);
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}

.operations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-media {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  background: #eef4ff;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.service-detail:hover .service-media {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

.service-detail-header,
.service-detail > p,
.service-detail > ul,
.bpo-service-groups {
  margin-left: 24px;
  margin-right: 24px;
}

.service-detail-header {
  padding-top: 20px;
}

.service-detail > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 0;
}

.service-detail > ul {
  align-self: start;
  padding-bottom: 22px;
  margin-top: 0;
}

.service-detail-header {
  display: grid;
  gap: 6px;
}

.service-icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(15, 91, 214, 0.12);
  border: 1px solid rgba(12, 27, 51, 0.08);
}

.flip-card-face .service-icon {
  margin-bottom: 8px;
}

.service-detail-header .service-icon {
  width: 48px;
  height: 48px;
}

.service-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--blue-600);
  font-weight: 600;
}

.service-detail ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.bpo-service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: -2px;
  margin-bottom: 24px;
}

.bpo-service-groups > div {
  border: 1px solid rgba(12, 27, 51, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248, 251, 255, 0.9);
}

.bpo-service-groups h4 {
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.bpo-service-groups ul {
  gap: 8px;
}

.job-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.job-apply {
  color: var(--blue-600);
  font-weight: 700;
  margin-top: 4px;
}

.job-apply:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.application-form {
  position: relative;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.flip-reveal.fade-in {
  transform: translateY(26px) rotateX(7deg) rotateY(-7deg);
  transform-origin: center bottom;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.flip-reveal.fade-in.visible {
  transform: translateY(0) rotateX(0) rotateY(0);
}

@media (max-width: 1024px) {
  .container {
    width: min(1120px, 92vw);
  }

  .hero-inner,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .training-header {
    grid-template-columns: 1fr;
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .featured-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(2.2rem, 8vw, 3.1rem);
  }

  h2 {
    font-size: clamp(1.7rem, 6vw, 2.35rem);
  }

  .hero,
  .page-hero {
    padding: 70px 0 48px;
  }

  .topbar-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(12, 27, 51, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 8px;
  }

  .nav.open {
    display: grid;
    animation: menu-drop 0.25s ease;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav a:hover,
  .nav a:focus {
    background: rgba(15, 91, 214, 0.08);
  }

  .nav a::after {
    display: none;
  }

  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.55;
  }

  .container {
    width: min(100% - 28px, 560px);
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 26px;
  }

  .hero,
  .page-hero {
    padding: 54px 0 42px;
  }

  .hero-inner {
    gap: 30px;
  }

  .hero-stats,
  .overview-grid,
  .values-grid,
  .advantage-grid,
  .testimonial-grid,
  .stack-grid,
  .solutions-grid,
  .products-grid,
  .services-grid,
  .gallery-grid,
  .jobs-grid,
  .service-detail-grid,
  .pricing-grid,
  .training-tech {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .statement,
  .service-detail {
    border-radius: 18px;
  }

  .bpo-service-groups {
    grid-template-columns: 1fr;
  }

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

  .service-detail-header,
  .service-detail > p,
  .service-detail > ul,
  .bpo-service-groups {
    margin-left: 18px;
    margin-right: 18px;
  }

  .featured-services-grid {
    grid-template-columns: 1fr;
  }

  .flip-card-inner {
    min-height: 310px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .chatbot {
    right: 12px;
    bottom: 12px;
    left: auto;
    display: block;
  }

  .chatbot-toggle img {
    width: 54px;
    height: 54px;
  }

  .chatbot-panel {
    right: 0;
    bottom: 62px;
    width: min(calc(100vw - 24px), 360px);
    max-height: calc(100vh - 96px);
  }

  .chatbot.panel-right .chatbot-panel {
    left: 0;
    right: auto;
  }

  .chatbot.panel-left .chatbot-panel {
    left: auto;
    right: 0;
  }

  .chatbot-messages {
    max-height: 240px;
  }

  .chatbot-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .flip-reveal.fade-in,
  .fade-in.visible,
  .flip-reveal.fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flip-card-inner {
    transition: none;
  }

  .flip-card:hover .flip-card-inner,
  .flip-card:focus .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: none;
  }

  .marquee {
    animation: none;
  }

  .training-orbit,
  .training-badge {
    animation: none;
  }

  .gallery-card img {
    transition: none;
  }
}

.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  font-family: "Manrope", "Segoe UI", sans-serif;
  touch-action: none;
  transition: left 0.2s ease, top 0.2s ease, right 0.2s ease, bottom 0.2s ease, transform 0.2s ease;
}

.chatbot.is-dragging {
  cursor: grabbing;
  transition: none;
}

.chatbot-toggle {
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 999px;
  padding: 6px;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  touch-action: none;
  user-select: none;
}

.chatbot-toggle img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(7, 23, 51, 0.22));
  pointer-events: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.chatbot-toggle:hover img,
.chatbot.is-dragging .chatbot-toggle img {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 16px 28px rgba(7, 23, 51, 0.28));
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(340px, 90vw);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 27, 51, 0.1);
  overflow: hidden;
  display: none;
}

.chatbot.panel-right .chatbot-panel {
  left: 0;
  right: auto;
}

.chatbot.panel-left .chatbot-panel {
  left: auto;
  right: 0;
}

.chatbot.panel-down .chatbot-panel {
  top: 70px;
  bottom: auto;
}

.chatbot.panel-up .chatbot-panel {
  top: auto;
  bottom: 70px;
}

.chatbot-panel.open {
  display: block;
  animation: chatbot-pop 0.25s ease;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f1f6ff;
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
}

.chatbot-title {
  font-weight: 700;
}

.chatbot-subtitle {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chatbot-close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.chatbot-messages {
  max-height: 280px;
  overflow: auto;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.chatbot-message {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chatbot-message.bot {
  background: #f6f9ff;
  border: 1px solid rgba(12, 27, 51, 0.06);
}

.chatbot-message.user {
  background: rgba(30, 116, 255, 0.12);
  border: 1px solid rgba(30, 116, 255, 0.2);
  justify-self: end;
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 0;
}

.chatbot-quick button {
  border: 1px solid rgba(12, 27, 51, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 16px 16px;
}

.chatbot-form input {
  border: 1px solid rgba(12, 27, 51, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.chatbot-form button {
  border: none;
  background: var(--blue-600);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

@keyframes chatbot-pop {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes menu-drop {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .chatbot {
    right: 12px;
    bottom: 12px;
    left: auto;
    display: block;
  }

  .chatbot-toggle img {
    width: 54px;
    height: 54px;
  }

  .chatbot-panel {
    right: 0;
    bottom: 62px;
    width: min(calc(100vw - 24px), 360px);
    max-height: calc(100vh - 96px);
  }

  .chatbot.panel-right .chatbot-panel {
    left: 0;
    right: auto;
  }

  .chatbot.panel-left .chatbot-panel {
    left: auto;
    right: 0;
  }

  .chatbot-messages {
    max-height: 240px;
  }

  .chatbot-form {
    grid-template-columns: 1fr;
  }
}
