/* =========================================================
   Clikso — Landing
   ========================================================= */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --dark: #000;
  --dark-2: #111113;
  --dark-3: #1c1c1e;
  --blue: #0a84ff;
  --indigo: #5e5ce6;
  --purple: #bf5af2;
  --pink: #ff375f;
  --orange: #ff9f0a;
  --green: #30d158;
  --teal: #40c8e0;
  --grad: linear-gradient(90deg, #0a84ff 0%, #5e5ce6 40%, #bf5af2 75%, #ff375f 100%);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --gutter: max(24px, calc((100vw - 1120px) / 2 + 24px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: rgba(10, 132, 255, 0.22); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); letter-spacing: 0; margin-bottom: 14px; }
.eyebrow--light { color: #64d2ff; }
.section-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.section-title--light { color: #f5f5f7; }
.muted { color: var(--muted); }
.muted-light { color: #6e6e73; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head--left { text-align: left; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px;
  border-radius: 999px;
  font: 500 17px/1 var(--font);
  border: 0; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0077ed; transform: scale(1.03); box-shadow: 0 10px 30px -10px rgba(10,132,255,.6); }
.btn--sm { height: 32px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.link-arrow { color: var(--blue); font-size: 17px; font-weight: 500; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; display: grid; place-items: center;
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__word { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 13px; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 100px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; left: 50%; top: -10%;
  width: 1100px; height: 800px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 50%, rgba(10,132,255,.18), transparent),
    radial-gradient(closest-side at 70% 45%, rgba(191,90,242,.16), transparent),
    radial-gradient(closest-side at 50% 70%, rgba(255,55,95,.08), transparent);
  filter: blur(20px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translateX(-50%) translateY(40px) scale(1.06); } }
.hero__content { position: relative; }
.hero__title {
  max-width: 980px; margin: 0 auto;
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 660px; margin: 28px auto 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
}
.hero__actions { margin-top: 40px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Hero visual (photo + floating UI) */
.hero-visual { position: relative; margin: 72px auto 0; max-width: 1080px; }
.hero-visual__frame {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e8ed;
  box-shadow: 0 40px 100px -40px rgba(30, 30, 80, .45);
  transform: scale(var(--hs, .92));
  opacity: 0;
  transition: opacity 1.2s var(--ease) .35s;
  will-change: transform;
}
.hero-visual.is-visible .hero-visual__frame { opacity: 1; }
.hero-visual__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--hi, 1.12)); }
.hero-visual__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); }

.float-card {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
  text-align: left;
  opacity: 0;
  transition: opacity 1s var(--ease);
  will-change: transform;
}
.hero-visual.is-visible .float-card { opacity: 1; }
.hero-visual.is-visible .float-card--kpi { transition-delay: .9s; }
.hero-visual.is-visible .float-card--notif { transition-delay: 1.15s; }
.hero-visual.is-visible .float-card--team { transition-delay: 1.4s; }

.float-card--kpi { left: -40px; top: 14%; width: 200px; padding: 18px 20px; }
.fc-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.fc-value { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.fc-spark { width: 100%; height: 34px; margin-top: 8px; }
.fc-spark path { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s var(--ease) 1.3s; }
.hero-visual.is-visible .fc-spark path { stroke-dashoffset: 0; }

.float-card--notif { right: -40px; top: 36%; width: 320px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.fc-app { flex: none; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--purple)); display: grid; place-items: center; }
.fc-app svg { width: 36px; height: 36px; }
.fc-head { display: flex; justify-content: space-between; font-size: 14px; }
.fc-head span { color: var(--muted); font-size: 13px; }
.float-card--notif p { font-size: 14px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }

.float-card--team { left: 6%; bottom: -34px; padding: 12px 22px 12px 12px; display: flex; align-items: center; gap: 14px; border-radius: 999px; }
.float-card--team strong { display: block; font-size: 15px; line-height: 1.3; }
.fc-online { font-size: 13px; color: var(--ink-2); }
.fc-online::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(48,209,88,.2);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.avatars { display: flex; flex: none; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; }
.avatars img + img { margin-left: -12px; }
.avatars--dark img { border-color: #000; width: 44px; height: 44px; }

/* ---------- Marquee ---------- */
.marquee {
  padding: 40px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 22px; font-weight: 600; color: #b0b0b5; letter-spacing: -0.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Statement ---------- */
.statement { padding: 120px 0 100px; }
.statement__text {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 1000px;
}
.statement__text .w { color: #d2d2d7; transition: color .4s; }
.statement__text .w.on { color: var(--ink); }

/* ---------- Team ---------- */
.team { padding: 40px 0 140px; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 20px;
}
.mosaic__item { position: relative; border-radius: var(--radius); overflow: hidden; background: #e8e8ed; }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__item figcaption { position: absolute; left: 16px; bottom: 16px; }
.chip {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 7px 14px; border-radius: 999px;
}
.team__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.point { border-top: 1px solid var(--line); padding-top: 24px; }
.point h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.point p { color: var(--ink-2); }

/* ---------- Services / Bento ---------- */
.services { padding: 120px 0; background: var(--bg-alt); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 20px; }
.tile {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.tile h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 22px 0 10px; }
.tile p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.tile--xl, .tile--tall { grid-column: span 2; grid-row: span 2; }
.tile--wide2 { grid-column: span 2; }
.tile--wide3 { grid-column: span 3; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
.tile--wide3 > div:first-child { max-width: 480px; }
.tile--dark { background: var(--dark-2); color: #f5f5f7; }
.tile--dark p { color: #a1a1a6; }
.tile--gradient { background: linear-gradient(120deg, #0a84ff, #5e5ce6 45%, #bf5af2); color: #fff; }
.tile--gradient p { color: rgba(255,255,255,.85); }

.tile--media { padding: 0; }
.tile--media .tile__body { padding: 34px 34px 0; }
.tile__media { margin-top: 28px; flex: 1; min-height: 240px; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--media:hover .tile__media img { transform: scale(1.05); }

.tile--photo { padding: 0; color: #fff; min-height: 300px; background: #111; }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover .tile__bg { transform: scale(1.05); }
.tile__overlay { position: relative; margin-top: auto; padding: 90px 34px 34px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78) 60%); }
.tile--photo p { color: rgba(255,255,255,.85); max-width: 420px; }

.tile__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; }
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__icon--blue { background: rgba(10,132,255,.16); color: #409cff; }
.tile__icon--purple { background: rgba(191,90,242,.12); color: var(--purple); }
.tile__icon--orange { background: rgba(255,159,10,.14); color: #e08a00; }
.tile__icon--pink { background: rgba(255,55,95,.12); color: var(--pink); }
.tile__icon--teal { background: rgba(64,200,224,.15); color: #1aa3bd; }
.tile__icon--white { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.code-snippet {
  margin-top: auto;
  padding: 22px 24px;
  border-radius: 18px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,.06);
  font: 500 15px/1.75 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: #e5e5ea;
}
.c-k { color: #ff7ab2; } .c-v { color: #6bdfff; } .c-f { color: #b281eb; } .c-b { color: #ffa14f; } .c-s { color: #ff8170; }

.swatches { display: flex; flex-shrink: 0; }
.swatches i {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c);
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.35);
  transition: transform .4s var(--ease);
}
.swatches i:nth-child(n+2) { margin-left: -22px; }
.tile--gradient:hover .swatches i { transform: translateY(-6px); }
.tile--gradient:hover .swatches i:nth-child(2) { transition-delay: .04s; }
.tile--gradient:hover .swatches i:nth-child(3) { transition-delay: .08s; }
.tile--gradient:hover .swatches i:nth-child(4) { transition-delay: .12s; }
.tile--gradient:hover .swatches i:nth-child(5) { transition-delay: .16s; }

/* ---------- Sectors carousel ---------- */
.sectors { padding: 140px 0; overflow: hidden; }
.sectors__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sectors .section-head { margin-bottom: 48px; }
.carousel-nav { display: flex; gap: 12px; margin-bottom: 56px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #e8e8ed; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, opacity .2s;
}
.round-btn:hover { background: #dcdce1; }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--gutter) 20px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  position: relative; flex: 0 0 auto;
  width: 360px; height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: #222; color: #fff;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent 50%); }
.card__text { position: relative; z-index: 1; padding: 30px; }
.card__kicker { font-size: 14px; font-weight: 600; opacity: .85; }
.card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-top: 6px; }

/* ---------- Brand / rebrand ---------- */
.brand { background: var(--dark); color: #f5f5f7; padding: 140px 0; text-align: center; overflow: hidden; }
.morph {
  margin: 90px auto 100px;
  font-size: clamp(30px, 6.4vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
  min-height: 1.2em;
}
.morph .ch {
  display: inline-block;
  max-width: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  color: #48484a;
  transition: max-width 1.1s var(--ease), opacity .7s var(--ease), color .8s var(--ease), transform 1.1s var(--ease);
}
.morph .ch.sp { width: .28em; }
.morph .ch.keep { color: #f5f5f7; }
.morph.is-done .ch:not(.keep) { max-width: 0; opacity: 0; transform: translateY(.2em); }
.morph.is-done .ch.keep {
  background: var(--grad);
  background-size: 600% 100%;
  background-position: var(--bp, 0) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.morph.is-lower .ch.keep { text-transform: lowercase; }

.brand__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; max-width: 900px; margin: 0 auto; }
.brand__col { padding: 36px; border-radius: var(--radius); background: var(--dark-3); border: 1px solid rgba(255,255,255,.06); }
.brand__col h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.brand__col p { color: #a1a1a6; }
.brand__col strong { color: #f5f5f7; font-weight: 600; }

/* ---------- Numbers ---------- */
.numbers { padding: 120px 0; border-bottom: 1px solid var(--line); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.num strong {
  display: block;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.num span { color: var(--ink-2); font-size: 17px; }

/* ---------- Process ---------- */
.process { padding: 140px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 32px 28px 36px; border-radius: var(--radius); background: var(--bg-alt); transition: background .4s, transform .5s var(--ease); }
.step:hover { background: #ececf0; transform: translateY(-4px); }
.step__n { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 56px; }
.step h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step::after { content: ""; position: absolute; top: 44px; left: 72px; right: 28px; height: 1px; background: linear-gradient(90deg, rgba(10,132,255,.4), transparent); }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--dark); color: #f5f5f7; padding: 140px 0; overflow: hidden; }
.cta__glow {
  position: absolute; inset: auto -20% -40% -20%; height: 700px;
  background:
    radial-gradient(closest-side at 30% 50%, rgba(10,132,255,.35), transparent),
    radial-gradient(closest-side at 70% 50%, rgba(191,90,242,.3), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.cta__title { font-size: clamp(42px, 6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.03; }
.cta__lead { margin-top: 24px; font-size: 21px; color: #a1a1a6; max-width: 440px; }
.cta__people { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: #a1a1a6; font-size: 15px; }
.cta__mail { display: inline-block; margin-top: 28px; font-size: 21px; font-weight: 600; color: #64d2ff; border-bottom: 1px solid rgba(100,210,255,.35); padding-bottom: 2px; transition: border-color .3s; }
.cta__mail:hover { border-color: #64d2ff; }

.form {
  padding: 36px;
  border-radius: var(--radius);
  background: rgba(28, 28, 30, 0.7);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 14px;
}
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 17px/1.4 var(--font);
  color: #f5f5f7;
  background-color: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 26px 16px 10px;
  outline: none;
  resize: vertical;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field select option { color: #1d1d1f; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background-color: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(10,132,255,.2); }
.field label {
  position: absolute; left: 17px; top: 18px;
  font-size: 17px; color: #86868b;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label { transform: translateY(-10px) scale(.72); }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: #64d2ff; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--pink); }
.form .btn { margin-top: 6px; height: 54px; }
.form__note { min-height: 1.4em; font-size: 14px; color: #a1a1a6; text-align: center; }
.form__note.ok { color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); padding: 48px 0 32px; font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.logo--footer { color: var(--ink); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; flex-wrap: wrap; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2), .numbers__grid .reveal:nth-child(2), .mosaic .reveal:nth-child(2), .team__points .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3), .numbers__grid .reveal:nth-child(3), .mosaic .reveal:nth-child(3), .team__points .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .steps .reveal:nth-child(4), .numbers__grid .reveal:nth-child(4), .mosaic .reveal:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5) { transition-delay: .08s; }
.bento .reveal:nth-child(6) { transition-delay: .16s; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.hero .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--xl, .tile--tall { grid-row: auto; }
  .tile--wide3 { grid-column: span 2; }
  .float-card--kpi { left: -12px; }
  .float-card--notif { right: -12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
  .cta__inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .container, .nav__inner { padding: 0 16px; }
  .nav__inner { gap: 12px; }
  .nav__links {
    position: fixed; inset: 56px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(251,251,253,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav__links a { font-size: 22px; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__cta { margin-left: auto; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 32px; height: 32px; background: none; border: 0; padding: 0; cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform .3s var(--ease); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { padding: 116px 0 70px; }
  .hero-visual { margin-top: 48px; }
  .hero-visual__frame { aspect-ratio: 4 / 5; border-radius: 24px; }
  .hero-visual__frame img { object-position: 40% center; }
  .float-card--kpi { left: 10px; top: 12px; width: 150px; padding: 12px 14px; border-radius: 16px; }
  .fc-value { font-size: 24px; }
  .fc-spark { height: 24px; }
  .float-card--notif { right: 10px; left: 10px; top: auto; bottom: 64px; width: auto; border-radius: 18px; }
  .float-card--team { left: 0; right: 0; margin: 0 auto; width: max-content; bottom: -26px; }
  .avatars img { width: 34px; height: 34px; }

  .statement, .services, .brand, .numbers, .process, .cta, .sectors { padding: 96px 0; }
  .statement { padding-bottom: 72px; }
  .section-head { margin-bottom: 44px; }

  .team { padding: 24px 0 96px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 170px 170px; gap: 12px; }
  .mosaic__item--big, .mosaic__item--wide { grid-column: span 2; grid-row: auto; }
  .team__points { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }

  .bento { grid-template-columns: 1fr; gap: 16px; grid-auto-rows: auto; }
  .tile--xl, .tile--tall, .tile--wide2, .tile--wide3 { grid-column: auto; }
  .tile { padding: 28px; min-height: 240px; }
  .tile--media, .tile--photo { padding: 0; }
  .tile--media .tile__body { padding: 28px 28px 0; }
  .tile__overlay { padding: 90px 28px 28px; }
  .tile--wide3 { flex-direction: column; align-items: flex-start; }
  .tile__media { min-height: 220px; }
  .code-snippet { margin-top: 28px; font-size: 13px; }

  .sectors .section-head { margin-bottom: 36px; }
  .carousel-nav { display: none; }
  .carousel { gap: 14px; }
  .card { width: 78vw; height: 440px; }
  .card h3 { font-size: 23px; }

  .morph { margin: 56px auto 64px; font-size: 5.6vw; }
  .brand__grid { grid-template-columns: 1fr; }
  .brand__col { padding: 28px; }
  .numbers__grid { gap: 44px 20px; }
  .steps { grid-template-columns: 1fr; }
  .step__n { margin-bottom: 28px; }
  .form { padding: 24px; }
  .footer__inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
