/* ============================================================
   FONTS — Google Fonts loaded via <link> in HTML head
   ============================================================ */

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #0F1E3D;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p {
  margin: 0;
}

button {
  font-family: inherit;
}

::selection {
  background: #1F5BD0;
  color: #fff;
}

/* ============================================================
   LAYOUT UTILITY
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--white {
  background: #ffffff;
}

.section--tinted {
  background: #F5F8FD;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 680px;
}

.section-badge {
  display: inline-block;
  font: 600 .78rem/1 'IBM Plex Sans', sans-serif;
  letter-spacing: .22em;
  color: #1F5BD0;
  padding: 7px 13px;
  border: 1px solid #D6E2F6;
  border-radius: 999px;
}

.section-badge--on-white {
  background: #F2F7FE;
}

.section-badge--on-tinted {
  background: #ffffff;
}

.section-badge--on-dark {
  color: #9DC0FF;
  border-color: rgba(157, 192, 255, .3);
  background: rgba(255, 255, 255, .06);
}

.section-title {
  font: 600 clamp(1.85rem, 3.4vw, 2.6rem)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
  color: #0F1E3D;
}

.section-title--light {
  color: #ffffff;
}

.section-desc {
  font: 400 1.1rem/1.6 'IBM Plex Sans', sans-serif;
  color: #51607A;
  text-wrap: pretty;
}

.section-desc--light {
  color: #A9B8D6;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 30, 61, .05);
  transition: box-shadow .3s ease, background .3s ease;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.logo-text {
  font: 700 1.3rem/1 'Space Grotesk', sans-serif;
  letter-spacing: .16em;
  color: #0F1E3D;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 9px;
  font: 500 .95rem 'IBM Plex Sans', sans-serif;
  color: #42506B;
  transition: background .2s, color .2s;
}

.nav-link:hover {
  background: #F0F4FB;
  color: #1F5BD0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #F0F4FB;
  border: 1px solid #E4EAF4;
  border-radius: 10px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 6px 11px;
  font: 600 .82rem 'IBM Plex Sans', sans-serif;
  cursor: pointer;
  background: transparent;
  color: #5B6B86;
  transition: background .2s ease, color .2s ease;
}

.lang-btn--active {
  background: #1F5BD0;
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #E4EAF4;
  background: #fff;
  color: #0F1E3D;
  cursor: pointer;
}

.nav-mobile {
  border-top: 1px solid #E9EEF7;
  background: #fff;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 18px;
}

.nav-mobile-link {
  padding: 13px 12px;
  border-radius: 10px;
  font: 500 1.05rem 'IBM Plex Sans', sans-serif;
  color: #27324A;
  transition: background .2s;
}

.nav-mobile-link:hover {
  background: #F0F4FB;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 110px);
}

.hero-bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 91, 208, .11) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  opacity: .75;
}

.hero-bg-circles {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 580px;
  height: 580px;
  pointer-events: none;
}

.hero-bg-circles g {
  transform-origin: center;
  animation: rakosPulse 6.5s ease-in-out infinite;
}

.hero-inner {
  position: relative;
}

.hero-content {
  max-width: 850px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 .82rem/1 'IBM Plex Sans', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #1F5BD0;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1F5BD0;
  box-shadow: 0 0 0 4px rgba(31, 91, 208, .16);
  flex-shrink: 0;
}

.hero-title {
  font: 600 clamp(2.5rem, 6.4vw, 4.7rem)/1.04 'Space Grotesk', sans-serif;
  letter-spacing: -.025em;
  color: #0F1E3D;
  margin-top: 20px;
  text-wrap: balance;
}

.hero-desc {
  font: 400 clamp(1.06rem, 1.7vw, 1.32rem)/1.6 'IBM Plex Sans', sans-serif;
  color: #51607A;
  margin-top: 24px;
  max-width: 640px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1F5BD0;
  color: #fff;
  padding: 15px 24px;
  border-radius: 12px;
  font: 600 1rem 'IBM Plex Sans', sans-serif;
  box-shadow: 0 14px 30px -14px rgba(31, 91, 208, .75);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary:hover {
  background: #1A4FB5;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(31, 91, 208, .85);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: #1F3B6E;
  padding: 15px 24px;
  border-radius: 12px;
  border: 1px solid #D6E0F2;
  font: 600 1rem 'IBM Plex Sans', sans-serif;
  transition: border-color .2s, color .2s, background .2s;
}

.btn-secondary:hover {
  border-color: #1F5BD0;
  color: #1F5BD0;
  background: #F6F9FE;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(34px, 5vw, 76px);
}

.about-col-left {
  flex: 1 1 340px;
  min-width: 288px;
}

.about-col-right {
  flex: 1 1 400px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-heading-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.about-lead {
  font: 500 clamp(1.12rem, 1.5vw, 1.28rem)/1.55 'IBM Plex Sans', sans-serif;
  color: #2A3650;
  margin-top: 20px;
  text-wrap: pretty;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #F2F7FE;
  border: 1px solid #E1EAF8;
  font: 600 .92rem 'IBM Plex Sans', sans-serif;
  color: #1F3B6E;
}

.about-body {
  font: 400 1.075rem/1.75 'IBM Plex Sans', sans-serif;
  color: #51607A;
  text-wrap: pretty;
}

/* ============================================================
   CARDS (solutions, support shared pattern)
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(34px, 4vw, 52px);
}

.solutions-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.support-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid #E4EAF4;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(15, 30, 61, .4);
  border-color: #C7D8F4;
}

.card--support {
  gap: 15px;
}

.card--highlight {
  background: #1F5BD0;
  border-color: #1F5BD0;
  box-shadow: 0 22px 44px -22px rgba(31, 91, 208, .75);
}

.card--highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -20px rgba(31, 91, 208, .85);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #EAF1FD;
  color: #1F5BD0;
  flex-shrink: 0;
}

.card--highlight .card-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.card-title {
  font: 600 1.06rem/1.35 'IBM Plex Sans', sans-serif;
  color: #16223D;
}

.card--highlight .card-title {
  color: #fff;
}

/* ============================================================
   REFERENCES
   ============================================================ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 4vw, 52px);
}

.ref-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #F7FAFE;
  border: 1px solid #ECF1F9;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.ref-item:hover {
  background: #fff;
  border-color: #C7D8F4;
  box-shadow: 0 14px 30px -20px rgba(15, 30, 61, .35);
  transform: translateY(-2px);
}

.ref-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #EAF1FD;
  color: #1F5BD0;
  flex-shrink: 0;
}

.ref-item-label {
  font: 600 1rem/1.3 'IBM Plex Sans', sans-serif;
  color: #1B2840;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 4vw, 52px);
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid #E4EAF4;
  border-radius: 16px;
  padding: 26px 24px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(15, 30, 61, .4);
  border-color: #C7D8F4;
}

.service-card-icon {
  position: absolute;
  top: 24px;
  right: 22px;
  color: #1F5BD0;
}

.service-number {
  font: 700 2.4rem/1 'Space Grotesk', sans-serif;
  color: #DCE6F7;
  letter-spacing: -.02em;
}

.service-title {
  font: 600 1.12rem/1.3 'IBM Plex Sans', sans-serif;
  color: #16223D;
  margin-top: 14px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 10vw, 130px) 0;
  background: #0F1E3D;
}

.contact-bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: .9;
}

.contact-inner {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: 16px;
  margin-top: clamp(34px, 4vw, 52px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 28px 26px;
  transition: background .25s, border-color .25s, transform .25s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(157, 192, 255, .55);
  transform: translateY(-3px);
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .1);
  color: #9DC0FF;
  flex-shrink: 0;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
}

.contact-card-label {
  font: 600 .76rem/1 'IBM Plex Sans', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9DC0FF;
}

.contact-card-email {
  font: 600 1.18rem/1.3 'Space Grotesk', sans-serif;
  color: #fff;
  margin-top: 11px;
  word-break: break-word;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0B1426;
  color: #8FA2C2;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 34px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font: 700 1.12rem/1 'Space Grotesk', sans-serif;
  letter-spacing: .16em;
  color: #fff;
}

.footer-tagline {
  font: 400 .92rem/1.4 'IBM Plex Sans', sans-serif;
  color: #6E80A2;
  border-left: 1px solid #243352;
  padding-left: 14px;
  margin-left: 4px;
}

.footer-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font: 500 .9rem 'IBM Plex Sans', sans-serif;
}

.footer-link {
  color: #9DC0FF;
  transition: color .2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-copy {
  color: #6E80A2;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rakosPulse {
  0%   { transform: scale(1);    opacity: .85; }
  50%  { transform: scale(1.05); opacity: 1;   }
  100% { transform: scale(1);    opacity: .85; }
}

/* ============================================================
   RESPONSIVE — mobile nav breakpoint
   ============================================================ */
@media (max-width: 880px) {
  .nav-links {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 881px) {
  .nav-mobile {
    display: none !important;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
