@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1c2a35;
  --ink-soft: #3a4b5c;
  --bg: #e9f0f7;
  --paper: #f4f7fb;
  --white: #f8fbff;
  --primary: #7fb3e8;
  --primary-deep: #5c8cc1;
  --accent: #f4b7c6;
  --accent-deep: #e28ea4;
  --muted: #e3e9f1;
  --muted-deep: #d4dbe6;
  --shadow-dark: rgba(24, 38, 51, 0.18);
  --shadow-light: rgba(255, 255, 255, 0.9);
  --shadow-soft: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
  --shadow-soft-sm: 10px 10px 20px rgba(24, 38, 51, 0.12), -10px -10px 20px rgba(255, 255, 255, 0.9);
  --shadow-pressed: inset 10px 10px 20px rgba(24, 38, 51, 0.14), inset -10px -10px 20px rgba(255, 255, 255, 0.85);
  --radius-card: 20px;
  --radius-pill: 999px;
  --container: 1240px;
  --ease-out: cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(40% 40% at 15% 10%, rgba(127, 179, 232, 0.35), transparent 60%),
    radial-gradient(35% 35% at 85% 15%, rgba(244, 183, 198, 0.32), transparent 60%),
    radial-gradient(30% 30% at 20% 85%, rgba(180, 213, 247, 0.45), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #e9f0f7 60%, #f6f8fb 100%);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

body::before {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(127, 179, 232, 0.55), transparent 70%);
}

body::after {
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(244, 183, 198, 0.55), transparent 70%);
  animation-delay: -6s;
}

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

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

main {
  overflow-x: clip;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 104px 0;
}

section.light {
  background: var(--paper);
}

section.cream {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)) var(--bg);
}

@media (max-width: 900px) {
  section {
    padding: 72px 0;
  }

  .container {
    padding: 0 18px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0;
  transition: padding 0.3s var(--ease-out), background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(244, 247, 251, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft-sm);
  border-bottom: 1px solid rgba(92, 140, 193, 0.18);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0;
  line-height: 1;
}

.brand img {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
}

.brand span {
  display: none;
}

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

.nav-links a {
  position: relative;
  padding: 8px 2px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 88%, var(--white));
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--ink);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(92, 140, 193, 0.2);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-soft-sm);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-out);
}

.lang-btn:hover {
  color: var(--ink);
  border-color: rgba(92, 140, 193, 0.35);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #f9fbff;
  box-shadow: 0 6px 14px rgba(92, 140, 193, 0.35);
}

.flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(28, 42, 53, 0.18);
}

footer .brand img {
  height: 64px;
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(92, 140, 193, 0.2);
  background: var(--paper);
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft-sm);
}

.mobile-drawer {
  display: none;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions .nav-cta-secondary,
  .nav-actions .lang-switch {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .brand img {
    height: 52px;
    max-width: 190px;
  }

  .mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 13, 0.5);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: block;
  }

  .mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 90vw);
    height: 100%;
    background: var(--paper);
    border-left: 1px solid rgba(92, 140, 193, 0.18);
    box-shadow: -18px 0 40px rgba(24, 38, 51, 0.18);
    padding: 22px;
    transform: translateX(102%);
    transition: transform 0.3s var(--ease-out);
  }

  .mobile-drawer.open .drawer-panel {
    transform: translateX(0);
  }

  .drawer-links {
    margin: 24px 0;
    display: grid;
    gap: 14px;
  }

  .drawer-links a {
    border-bottom: 1px solid rgba(92, 140, 193, 0.2);
    padding: 10px 0;
    font-weight: 600;
  }

  .drawer-lang {
    margin-top: 12px;
  }

  .drawer-lang .lang-switch {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 11px 21px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #f9fbff;
  box-shadow: 0 14px 28px rgba(92, 140, 193, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(92, 140, 193, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background: var(--paper);
  border-color: rgba(92, 140, 193, 0.2);
  color: var(--ink);
  box-shadow: var(--shadow-soft-sm);
}

.btn-secondary:hover {
  border-color: rgba(92, 140, 193, 0.45);
  background: var(--white);
  box-shadow: 12px 12px 22px rgba(24, 38, 51, 0.18), -12px -12px 22px rgba(255, 255, 255, 0.95);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-pressed);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
  color: var(--primary-deep);
  font-weight: 700;
}

.hero h1 {
  margin: 10px 0 14px;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(42px, 5.8vw, 74px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero p {
  margin: 0 0 24px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid rgba(92, 140, 193, 0.2);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-soft-sm);
}

.hero-visual {
  --hero-image: none;
  min-height: 540px;
  border-radius: calc(var(--radius-card) + 6px);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(24, 38, 51, 0.12) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 20px 20px 40px rgba(24, 38, 51, 0.22), -20px -20px 40px rgba(255, 255, 255, 0.95);
  filter: saturate(1.05);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius-card) - 2px);
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(18, 28, 38, 0.65));
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  color: #fefcf7;
  max-width: 240px;
}

.hero-badge strong {
  display: block;
  font-size: 20px;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.hero-badge span {
  font-size: 13px;
  color: rgba(254, 252, 247, 0.85);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .hero-visual {
    min-height: 420px;
  }
}

/* Shared sections */
.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  max-width: 70ch;
  color: var(--ink-soft);
}

.grid-2,
.grid-3,
.two-col,
.multi-column,
.timeline {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

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

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
  gap: 24px;
}

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

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-snap-type: x mandatory;
  scroll-padding: 8px;
}

.scroll-row > * {
  scroll-snap-align: start;
}

.scroll-row::-webkit-scrollbar {
  height: 10px;
}

.scroll-row::-webkit-scrollbar-track {
  background: rgba(127, 179, 232, 0.18);
  border-radius: 999px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: rgba(92, 140, 193, 0.45);
  border-radius: 999px;
}

.scroll-row--services > * {
  flex: 0 0 260px;
}

.scroll-row--solutions > * {
  flex: 0 0 min(360px, 86vw);
}

.card {
  background: var(--paper);
  border: 1px solid rgba(92, 140, 193, 0.18);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft-sm);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 179, 232, 0.6), transparent);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(92, 140, 193, 0.45);
}

.card h2,
.card h3 {
  margin: 0 0 12px;
}

.card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.card-media {
  margin: -24px -24px 18px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  height: 190px;
  position: relative;
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 19, 13, 0) 48%, rgba(16, 19, 13, 0.22) 100%);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid rgba(92, 140, 193, 0.2);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft-sm);
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.list li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 183, 198, 0.35);
}

.multi-item {
  background: var(--paper);
  border: 1px solid rgba(92, 140, 193, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
  box-shadow: var(--shadow-soft-sm);
}

.multi-item:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 140, 193, 0.45);
  box-shadow: var(--shadow-soft);
}

.image-box {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 340px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.image-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 20, 28, 0.08), rgba(13, 20, 28, 0.32));
}

.image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.two-col:hover .image-box img {
  transform: scale(1.03);
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1.6px;
  text-decoration-color: rgba(127, 179, 232, 0.95);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.inline-cta:hover {
  color: var(--primary-deep);
  transform: translateX(3px);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(92, 140, 193, 0.2);
  background: var(--paper);
  box-shadow: var(--shadow-soft-sm);
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(92, 140, 193, 0.16);
  font-size: 14px;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--white);
}

tr:last-child td {
  border-bottom: none;
}

/* Timeline */
.timeline {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step {
  border-radius: var(--radius-card);
  border: 1px solid rgba(92, 140, 193, 0.18);
  background: var(--paper);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-soft-sm);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--primary) 100%);
  color: #1b2530;
  font-weight: 800;
  margin-bottom: 10px;
}

/* CTA band */
.cta-band {
  border-radius: 22px;
  padding: 34px;
  border: 1px solid rgba(92, 140, 193, 0.22);
  background: linear-gradient(135deg, rgba(127, 179, 232, 0.3) 0%, rgba(244, 247, 251, 0.95) 40%, rgba(244, 183, 198, 0.22) 100%);
  display: grid;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  animation: soft-glow 10s ease-in-out infinite;
}

.cta-band h2 {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.cta-band p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 960px) {
  .cta-band {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* Forms */
form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(92, 140, 193, 0.18);
  border-radius: 14px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: var(--shadow-pressed);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 179, 232, 0.25);
}

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

/* Footer */
footer {
  margin-top: 56px;
  padding: 54px 0;
  color: #eef5ff;
  background:
    radial-gradient(80% 180% at 0% 0%, rgba(127, 179, 232, 0.28), transparent 46%),
    linear-gradient(180deg, #1f2c3a 0%, #141b24 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer-grid h4 {
  margin: 0 0 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-links span {
  color: rgba(238, 245, 255, 0.88);
  font-size: 14px;
}

.footer-note {
  margin-top: 12px;
  color: rgba(238, 245, 255, 0.7);
  font-size: 14px;
}

/* Motion */
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -10px, 0);
  }
}

@keyframes soft-glow {
  0%,
  100% {
    box-shadow: var(--shadow-soft);
  }
  50% {
    box-shadow: 18px 18px 38px rgba(24, 38, 51, 0.2), -18px -18px 38px rgba(255, 255, 255, 0.95);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .cta-band {
    animation: none;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .hero-visual,
  .image-box img,
  .multi-item,
  .inline-cta,
  .site-header,
  .mobile-drawer,
  .drawer-panel {
    transition: none;
  }
}

@media (max-width: 768px) {
  .brand img {
    height: 46px;
    max-width: 168px;
  }

  footer .brand img {
    height: 56px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .card,
  .step,
  .cta-band {
    padding: 20px;
  }

  .card-media {
    margin: -20px -20px 16px;
    height: 168px;
  }

  .cta-band {
    border-radius: 18px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
