/* ═══════════════════════════════════════════════════════════════════
   Integrate AI — landing page
   Colors lifted from Figma: #529ECD primary, #21538F dark blue,
   #486284 slate, #1E5B92 deep, #1A202C text
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --c-primary: #529ECD;
  --c-primary-hover: #4189b6;
  --c-deep: #1E5B92;
  --motion-scale: 1;
  --c-deep-dark: #164873;
  --c-mid: #21538F;
  --c-slate: #486284;
  --c-ink: #1A202C;
  --c-line: #DDE0E4;
  --c-surface: #F3F3F3;
  --c-bg: #ffffff;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius-btn: 12px;
  --maxw: 1320px;
  --pad-x: clamp(20px, 4vw, 70px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(82,158,205,.55);
}
.btn--primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(82,158,205,.7);
}

/* ═══════════════════════════════ NAV ═══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
  background: rgba(255,255,255,.77);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(72,98,132,.08);
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-img { height: 38px; width: auto; display: block; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__wordmark strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--c-deep);
  letter-spacing: .02em;
}
.nav__wordmark em {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--c-slate);
  margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--c-slate);
  letter-spacing: -.02em;
  opacity: .9;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--c-primary);
  transition: right .25s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--c-deep); }
.nav__links a:not(.nav__cta):hover::after { right: 0; }
.nav__cta {
  background: var(--c-primary);
  color: #fff !important;
  padding: 12px 22px !important;
  border-radius: 14px;
  font-weight: 600;
  opacity: 1 !important;
}
.nav__cta:hover { background: var(--c-primary-hover); }

/* ═══════════════════════════════ HERO ═══════════════════════════════ */
.hero {
  position: relative;
  padding: 140px var(--pad-x) 80px;
  overflow: hidden;
  min-height: 720px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 60%),
    url(assets/bg-bubbles.png) right center / cover no-repeat;
  opacity: .28;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__text h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0 0 28px;
  text-wrap: balance;
  text-transform: uppercase;
}
.hero__text p {
  font-size: 16px;
  color: var(--c-slate);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.7;
}
.hero__portrait {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  justify-self: end;
  width: 100%;
  margin-right: -40px;
}
.hero__portrait-plate {
  display: none;
}
.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(30,91,146,.35);
  animation: floatY calc(6s * var(--motion-scale)) ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ═══════════════════════════════ SOCIAL PROOF ═══════════════════════════════ */
.social-proof {
  position: relative;
  background: var(--c-mid);
  padding: 90px var(--pad-x) 56px;
  text-align: center;
}
.social-proof__fin {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(0,30,60,.35));
  z-index: 2;
}
.social-proof__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: .03em;
  color: #fff;
  margin: 0 0 28px;
}
.social-proof__logos {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.logo-plate {
  width: 140px; height: 140px;
  background: #fff;
  border-radius: 16px;
  display: grid; place-items: center;
  padding: 18px;
  opacity: 1;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.18);
}
.logo-plate:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -8px rgba(0,0,0,.25); }
.logo-plate img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
/* Office Line is wider than tall — give it extra vertical space so it visually matches the others */
.logo-plate--wide { padding: 36px 18px; }

/* ═══════════════════════════════ SECTION TITLE ═══════════════════════════════ */
.section-title {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-slate);
  text-align: center;
  margin: 0 0 56px;
}

/* ═══════════════════════════════ PROCESS ═══════════════════════════════ */
.process {
  position: relative;
  padding: 100px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.process__diver-side {
  position: absolute;
  left: -40px;
  top: 80px;
  width: 220px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(15,52,96,.28));
  animation: floatY calc(6s * var(--motion-scale)) ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.process__bubbles {
  position: absolute;
  left: 100px;
  top: 30px;
  right: auto;
  width: 60px;
  height: 200px;
  z-index: 2;
}
@media (max-width: 1200px) {
  .process__diver-side { width: 170px; left: -20px; top: 60px; }
  .process__bubbles { left: 80px; top: 20px; height: 160px; }
}
@media (max-width: 900px) {
  .process__diver-side, .process__bubbles { display: none; }
}
.process__track {
  position: absolute;
  /* span from center of first badge to center of last badge */
  left: 12.5%;
  right: 12.5%;
  /* sit at the vertical center of the badges, which are 106px tall starting at top:0 of steps */
  top: 23px;
  height: 60px;
  pointer-events: none;
  z-index: 0;
  grid-column: 1 / -1;
}
.process__track svg { width: 100%; height: 100%; overflow: visible; }
.process__diver {
  position: absolute;
  /* sits to the LEFT of the first badge */
  left: -200px;
  top: -8px;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(30,91,146,.25));
  animation: floatY calc(5s * var(--motion-scale)) ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 1100px) {
  .process__diver { display: none; }
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0; padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}
.step {
  text-align: center;
  padding: 0 8px;
}
.step__badge {
  width: 106px; height: 106px;
  border-radius: 30px;
  background: rgba(72, 98, 132, 0.14);
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  transition: background .3s;
  position: relative;
  z-index: 1;
}
.step__badge img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
.step:hover .step__badge { background: rgba(72, 98, 132, 0.22); }
.step h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--c-ink);
  margin: 0 0 18px;
  min-height: 56px;
  text-wrap: balance;
}
.step p {
  font-size: 14px;
  line-height: 1.75;
  color: #3d4656;
  margin: 0;
  letter-spacing: -.01em;
}
.process__cta {
  text-align: center;
  margin-top: 72px;
}

/* ═══════════════════════════════ WATER LEVEL ═══════════════════════════════ */
.waterlevel {
  position: relative;
  padding: 120px 0 160px;
  overflow: hidden;
  background: linear-gradient(180deg,
    #fff 0%,
    #eaf3fa 8%,
    #bcd8ea 20%,
    #6fa8c8 45%,
    #2f6a9a 70%,
    #0f2e4e 100%);
}
.waterlevel__sea { position: absolute; inset: 0; pointer-events: none; }
.waterlevel__sea-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(800px 300px at 20% 60%, rgba(255,255,255,.08), transparent 70%);
}
.waterlevel__bubbles {
  position: absolute; inset: 0;
  background: url(assets/bg-bubbles.png) center / cover no-repeat;
  opacity: .12;
  mix-blend-mode: screen;
}

/* floating decorative divers */
.diver {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.diver img { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(0,20,40,.35)); }
.diver--1 {
  top: 40px;
  left: -80px;
  width: 420px;
  animation: floatDiver calc(7s * var(--motion-scale)) ease-in-out infinite;
}
@keyframes floatDiver {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(16px, -22px) rotate(1deg); }
}

/* bubble clusters rising off the diver */
.bubble-cluster {
  position: absolute;
  top: 10%;
  right: 6%;
  width: 80px;
  height: 220px;
  pointer-events: none;
}
.bubble-cluster span {
  --d: 0s; --s: 10px; --x: 0px;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(180,220,240,.5) 70%, rgba(130,190,220,.2));
  box-shadow: inset 0 0 4px rgba(255,255,255,.6);
  animation: bubbleRise calc(3.4s * var(--motion-scale)) ease-out infinite;
  animation-delay: var(--d);
  opacity: 0;
}
@keyframes bubbleRise {
  0%   { transform: translate(-50%, 0) scale(.6); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translate(calc(-50% + var(--x)), -220px) scale(1.1); opacity: 0; }
}

.waterlevel__header {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto 60px;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.waterlevel__header h2 {
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-slate);
  margin: 0;
  text-align: right;
}
.waterlevel__pill {
  display: inline-flex;
  align-items: center;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -10px rgba(82,158,205,.6);
}

/* scroll-diagram layout */
.wl-scroll {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: start;
}
.wl-text-col { padding-top: 40px; }
.wl-text {
  max-width: 560px;
  color: rgba(255,255,255,.92);
}
.wl-text p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 22px;
}
.wl-text--accent {
  font-weight: 700;
  color: #fff !important;
  font-size: 17px !important;
  padding: 18px 22px;
  border-left: 3px solid var(--c-primary);
  background: rgba(255,255,255,.06);
  border-radius: 6px;
}
.wl-text__cta { margin-top: 18px; }

/* sticky diagram */
.wl-diagram-col {
  position: sticky;
  top: 120px;
  height: 680px;
}
.wl-diagram {
  position: relative;
  height: 100%;
  padding: 40px 0;
}
.wl-axis {
  position: absolute;
  left: 30px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.15));
  border-radius: 2px;
}
.wl-axis__tip {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-primary);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(82,158,205,.25);
}

.wl-layer {
  position: absolute;
  left: 30px;
  right: 0;
  /* even vertical spacing, 5 layers across ~600px */
  top: calc(40px + var(--depth) * 145px);
  display: flex;
  align-items: flex-start;
  gap: 0;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--depth) * 60ms);
}
.wl-layer.is-active {
  opacity: 1;
  transform: translateX(0);
}
.wl-layer__line {
  width: 56px;
  height: 2px;
  background: #fff;
  margin-top: 14px;
  position: relative;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--depth) * 60ms + 150ms);
}
.wl-layer__line::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.wl-layer.is-active .wl-layer__line { transform: scaleX(1); }

.wl-layer__label {
  padding-left: 14px;
}
.wl-layer__label h4 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .02em;
  color: #fff;
  margin: 0 0 8px;
}
.wl-layer__label ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.88);
}
.wl-layer__label li::before { content: "• "; color: rgba(255,255,255,.5); }

/* progression gradient per layer (darker = deeper) */
.wl-layer[data-idx="0"] .wl-layer__label h4 { color: #0d3a5f; }
.wl-layer[data-idx="0"] .wl-layer__label ul { color: #1e4a6f; }
.wl-layer[data-idx="0"] .wl-layer__line,
.wl-layer[data-idx="0"] .wl-layer__line::after { border-color: #1e4a6f; background: #1e4a6f; }
.wl-layer[data-idx="0"] .wl-layer__line::after { background: transparent; }
.wl-layer[data-idx="4"] .wl-layer__label h4 { color: #9ED5FF; }

/* moving diver sprite along the axis */
.wl-diagram__diver {
  position: absolute;
  left: -26px;
  top: 10px;
  width: 90px;
  transition: top .6s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 10px 20px rgba(0,20,40,.4));
}
.wl-diagram__diver img {
  width: 100%;
  animation: floatY calc(4s * var(--motion-scale)) ease-in-out infinite;
}

/* ═══════════════════════════════ AUTOMATIZÁCIÓK ═══════════════════════════════ */
.autom {
  padding: 110px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.autom .section-title {
  text-align: left;
  color: var(--c-slate);
  margin-bottom: 48px;
}
.autom__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.autom-card {
  padding: 36px 28px;
  border-radius: 15px;
  color: #fff;
  min-height: 284px;
  background:
    linear-gradient(180deg, rgba(159,101,212,0.22) 0%, rgba(159,101,212,0) 60%),
    linear-gradient(var(--c-primary), var(--c-primary));
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 12px 30px -12px rgba(30,91,146,.35);
}
.autom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -16px rgba(30,91,146,.5);
}
.autom-card h3 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 30px 0 18px;
}
.autom-card p {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

/* ═══════════════════════════════ FORM ═══════════════════════════════ */
.form-section {
  position: relative;
  padding: 90px var(--pad-x) 130px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.form-section__title {
  text-align: left;
  color: var(--c-slate);
  margin-bottom: 36px;
}
.form-section__diver {
  position: absolute;
  left: calc(var(--pad-x) + 260px);
  top: 10px;
  width: 110px;
  pointer-events: none;
  animation: floatY calc(5s * var(--motion-scale)) ease-in-out infinite;
  z-index: 0;
}
.form-section__diver img { width: 100%; }
@media (max-width: 900px) {
  .form-section__diver { display: none; }
}

.form {
  background: var(--c-surface);
  border-radius: 18px;
  padding: 56px 80px;
  display: grid;
  gap: 20px;
  box-shadow: 0 18px 40px -20px rgba(17,19,35,.08);
}
.field { display: block; }
.field__label {
  display: block;
  font-weight: 500;
  color: var(--c-slate);
  font-size: 14px;
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--c-line);
  font: inherit;
  color: var(--c-ink);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--c-primary);
}
.form__submit {
  justify-self: start;
  padding: 15px 48px;
  border-radius: 14px;
  font-size: 14px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: capitalize;
}

/* ═══════════════════════════════ FOOTER ═══════════════════════════════ */
.footer {
  background: linear-gradient(135deg, rgba(85,160,210,.87) 0%, rgba(30,91,146,.87) 100%), #f5f5f5;
  padding: 50px var(--pad-x) 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: #fff;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.footer__logo-img {
  height: 64px;
  width: auto;
  display: block;
  /* invert blue logo to white for dark footer */
  filter: brightness(0) invert(1);
}
.footer__logo span { display: flex; flex-direction: column; line-height: 1; }
.footer__logo strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .02em;
}
.footer__logo em {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .2em;
  margin-top: 4px;
  opacity: .9;
}
.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 15px;
  opacity: .9;
  position: relative;
  padding-bottom: 2px;
}
.footer__nav a:hover { opacity: 1; }
.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  transition: background .2s;
}
.footer__social a:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 420px; justify-self: center; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .process__track { display: none; }
  .autom__grid { grid-template-columns: repeat(2, 1fr); }
  .wl-scroll { grid-template-columns: 1fr; }
  .wl-diagram-col { position: relative; top: 0; }
  .diver--1 { width: 280px; top: 0; left: -60px; opacity: .65; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__links .nav__cta { display: inline-flex; }
  .hero { padding-top: 110px; }
  .process__steps { grid-template-columns: 1fr; }
  .autom__grid { grid-template-columns: 1fr; }
  .social-proof__logos { gap: 22px; }
  .form { padding: 32px 24px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
