/* ==========================================================================
   Buzz IT Company Limited — website stylesheet
   Palette derived from the Buzz IT logo (#b12023) + supporting accents.
   ========================================================================== */

:root {
  --brand: #b12023;
  --brand-600: #9a1b1e;
  --brand-400: #d94a4d;
  --brand-tint: #fdf0f0;

  --ink: #0f1222;
  --ink-2: #171b2e;
  --body: #555b70;
  --muted: #8a90a6;
  --line: #e7e9f2;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --soft-2: #eef1f8;

  --gold: #f5c518;
  --lime: #8cc63f;
  --mint: #4ec58c;
  --blue: #29abe2;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(15, 18, 34, .06);
  --shadow: 0 18px 50px -18px rgba(15, 18, 34, .22);
  --shadow-lg: 0 34px 80px -30px rgba(15, 18, 34, .35);
  --container: 1180px;
  --header-h: 82px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

section[id] { position: relative; }

/* ------------------------------------------------------------ a11y bits */
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #ff7a45, var(--gold));
  transition: width .1s linear;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 18, 34, .07), 0 10px 30px -20px rgba(15, 18, 34, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-logo { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-text small {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

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

/* language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(15, 18, 34, .10);
}
.nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:not(.nav-cta):hover { background: var(--soft-2); color: var(--brand); }
.nav a:not(.nav-cta).is-current { color: var(--brand); background: var(--brand-tint); }
.nav-cta { margin-left: 10px; }
.nav-cta:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 58px) 0 0;
  background:
    radial-gradient(1100px 620px at 82% -10%, #fff2ea 0%, transparent 60%),
    radial-gradient(900px 520px at 8% 0%, #f4f6ff 0%, transparent 55%),
    #fff;
  overflow: hidden;
  isolation: isolate;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-a {
  width: 520px; height: 520px;
  right: -80px; top: 40px;
  background: radial-gradient(circle, rgba(177, 32, 35, .16), transparent 70%);
}
.hero-glow-b {
  width: 420px; height: 420px;
  left: -140px; bottom: -60px;
  background: radial-gradient(circle, rgba(41, 171, 226, .14), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(177, 32, 35, .14);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(177, 32, 35, .14);
}
.eyebrow-dark {
  color: #6b4ef7;
  background: #f3f0ff;
  border-color: rgba(107, 78, 247, .15);
}
.eyebrow-light {
  color: #ffb3b4;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}

.hero h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.05rem);
  letter-spacing: -.035em;
  line-height: 1.03;
  margin-bottom: 22px;
}

.grad-text {
  background: linear-gradient(100deg, var(--brand) 10%, #e2452f 55%, #f0922b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-light {
  background: linear-gradient(100deg, #ff9d9e 0%, #ffc46b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: #4d5369;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 28px;
}

.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn span { transition: transform .22s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #cf3a2e);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(177, 32, 35, .65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(177, 32, 35, .7);
}
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: #5b6178;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: rgba(78, 197, 140, .14);
  border-radius: 50%;
  padding: 2.5px;
}

/* hero visual */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
  padding: 26px;
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  background:
    radial-gradient(120% 120% at 20% 15%, #ffffff 0%, #fff7f1 42%, #ffe8d6 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .9);
  animation: blob 16s ease-in-out infinite;
}
.hero-card img {
  width: 88%;
  filter: drop-shadow(0 20px 28px rgba(177, 32, 35, .10));
}
@keyframes blob {
  0%, 100% { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; }
  50%      { border-radius: 55% 45% 40% 60% / 55% 58% 42% 45%; }
}

.orbit-badge {
  position: absolute;
  z-index: 3;
  top: 4px; right: 6px;
  width: 118px; height: 118px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.orbit-badge svg {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: spin 22s linear infinite;
}
.orbit-badge text {
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 1.9px;
  fill: var(--brand);
  font-family: 'Inter', sans-serif;
}
.orbit-badge img { width: 46px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 15px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.float-card small { font-size: 11.5px; color: var(--muted); }
.float-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 17px;
}
.float-card-1 { top: 18%; left: -6%; animation-delay: 0s; }
.float-card-2 { bottom: 15%; right: -4%; animation-delay: 1.6s; }
.float-card-3 { bottom: 2%; left: 2%; animation-delay: 3.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* hero stats */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 0 54px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* --------------------------------------------------------------- clients */
.clients {
  padding: 30px 0 46px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.clients-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 26px;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-inline: 11px;
}
.logo-tile {
  display: grid;
  place-items: center;
  width: 186px;
  height: 92px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.logo-tile:hover { border-color: #d5d9e8; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-tile img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s, opacity .3s;
}
.logo-tile:hover img { filter: none; opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- section */
.section { padding: 112px 0; }
.section-soft { background: var(--soft); }
.section-dark {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(177, 32, 35, .18), transparent 60%),
    radial-gradient(700px 480px at 5% 90%, rgba(41, 171, 226, .12), transparent 60%),
    var(--ink);
  color: #b9bdd0;
}
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  letter-spacing: -.03em;
}
.section-head-light h2 { color: #fff; }
.section-sub { font-size: 1.06rem; color: var(--body); max-width: 64ch; margin-bottom: 0; }
.section-head-light .section-sub { color: #a2a8c0; }

/* ----------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 72px;
  align-items: center;
}
.about-media { position: relative; }
.media-frame {
  position: relative;
  z-index: 2;
  border-radius: 26px 26px 90px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(15, 18, 34, .45));
}
.media-badge {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 46px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.media-badge strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  color: var(--brand);
  letter-spacing: -.03em;
}
.media-badge span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.media-dots {
  position: absolute;
  z-index: 1;
  left: -34px;
  bottom: -34px;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(rgba(177, 32, 35, .28) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  border-radius: 20px;
}
.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); letter-spacing: -.03em; }

.pillars { display: grid; gap: 18px; margin-top: 30px; }
.pillar {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateX(4px); border-color: #d9dde9; box-shadow: var(--shadow-sm); }
.pillar-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.pillar-icon svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grad-red { background: linear-gradient(135deg, #d94a4d, var(--brand)); }
.grad-blue { background: linear-gradient(135deg, #57c9f0, var(--blue)); }
.grad-green { background: linear-gradient(135deg, #7fd6a8, #2f9e6a); }
.pillar h3 { font-size: 16.5px; margin-bottom: 3px; }
.pillar p { font-size: 14px; margin: 0; color: var(--body); line-height: 1.55; }

.expertise-strip {
  margin-top: 66px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #fff, #fdf8f8);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.expertise-strip > span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--brand);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #3f465c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--brand-400); color: var(--brand); transform: translateY(-1px); }

/* -------------------------------------------------------------- services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent, var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card[data-accent="gold"] { --accent: var(--gold); }
.service-card[data-accent="lime"] { --accent: var(--lime); }
.service-card[data-accent="mint"] { --accent: var(--mint); }
.service-card[data-accent="blue"] { --accent: var(--blue); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.service-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.service-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  color: var(--brand);
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  color: color-mix(in srgb, var(--accent) 70%, #442);
}
.service-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 19px; line-height: 1.22; margin-bottom: 10px; }
.service-card > p { font-size: 14.3px; color: var(--body); line-height: 1.55; margin-bottom: 16px; }
.service-card ul { display: grid; gap: 7px; margin-bottom: 22px; }
.service-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 13.2px;
  color: #5b6178;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s, gap .2s;
}
.card-link:hover { color: var(--brand); gap: 11px; }

/* ------------------------------------------------------------------ tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 34px;
}
.tab {
  border: 0;
  background: transparent;
  color: #5b6178;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(15, 18, 34, .08);
}
.tab-panels { position: relative; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mini-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.mini-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 20px;
  margin-bottom: 15px;
}
.mini-card h4 { font-size: 17px; margin-bottom: 6px; }
.mini-card p { font-size: 14px; color: var(--body); margin: 0; }
.mini-card-cta {
  background: linear-gradient(140deg, #fff6f6, #fff);
  border-color: rgba(177, 32, 35, .18);
}
.mini-card-cta .card-link { margin-top: 14px; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.tech-col {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.tech-col h4 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.tech-col .chip-row { gap: 6px; }
.tech-col .chip { font-size: 12.3px; padding: 6px 11px; background: var(--soft); border-color: transparent; }

.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  counter-reset: step;
}
.process-list li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.step-no {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 8px;
  height: 32px;
  min-width: 38px;
  display: grid;
  place-items: center;
}
.process-list h4 { font-size: 15.5px; margin-bottom: 4px; }
.process-list p { font-size: 13.6px; color: var(--body); margin: 0; line-height: 1.55; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  padding: 26px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff, #fafbff);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-card span { font-size: 24px; display: block; margin-bottom: 12px; }
.why-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.why-card p { font-size: 13.6px; color: var(--body); margin: 0; }

/* ---------------------------------------------------------------- agents */
.agents { overflow: hidden; }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.agent-col {
  position: relative;
  padding: 26px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.agent-col:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
}
.agent-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.agent-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffb3b4;
}
.agent-head h3 { font-size: 18px; color: #fff; margin: 0; }
.tick-list { display: grid; gap: 11px; }
.tick-list li {
  position: relative;
  padding-left: 25px;
  font-size: 14.2px;
  color: #b9bdd0;
  line-height: 1.45;
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #7fe0b0;
  background: rgba(78, 197, 140, .14);
}
.agent-banner {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(177, 32, 35, .25), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .12);
}
.agent-banner-copy { display: flex; flex-direction: column; gap: 3px; }
.agent-banner-copy strong { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 19px; }
.agent-banner-copy span { color: #b9bdd0; font-size: 14px; }

/* ---------------------------------------------------------------- mockup */
.mockup-grid { display: grid; gap: 54px; }
.h-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.h-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--lime), var(--gold));
  opacity: .45;
}
.h-steps li { position: relative; padding-top: 42px; }
.h-steps li > span {
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  z-index: 1;
}
.h-steps li:nth-child(1) > span { border-color: var(--blue); }
.h-steps li:nth-child(2) > span { border-color: #5bc7b5; }
.h-steps li:nth-child(3) > span { border-color: var(--mint); }
.h-steps li:nth-child(4) > span { border-color: var(--lime); }
.h-steps li:nth-child(5) > span { border-color: var(--gold); }
.h-steps h4 { font-size: 15px; margin-bottom: 5px; line-height: 1.3; }
.h-steps p { font-size: 13.4px; color: var(--body); margin: 0; line-height: 1.5; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  background: var(--soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.compare-visual {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.compare-visual img { width: 100%; height: auto; }
.compare-cards { display: grid; gap: 16px; }
.compare-card {
  padding: 22px 24px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
}
.compare-old { border-left: 4px solid #dfe3ee; }
.compare-new { border-left: 4px solid var(--brand); }
.compare-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.compare-old .compare-tag { color: var(--muted); }
.compare-new .compare-tag { color: var(--brand); }
.compare-card p { font-size: 14.2px; margin-bottom: 12px; }
.compare-card ul { display: grid; gap: 6px; }
.compare-card li {
  position: relative;
  padding-left: 16px;
  font-size: 13.2px;
  color: #5b6178;
}
.compare-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: currentColor;
  opacity: .45;
}

/* --------------------------------------------------------------- testing */
.testing-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.testing-flow {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.flow-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.flow-step h4 { font-size: 16px; margin-bottom: 3px; }
.flow-step p { font-size: 13.8px; color: var(--body); margin: 0; }
.flow-num {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.testing-image { margin-top: 22px; }
.testing-image img { width: 100%; max-width: 400px; margin-inline: auto; }

.benefits {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.benefits > h3 { font-size: 20px; margin-bottom: 20px; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit {
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--soft);
  transition: transform .25s var(--ease), background .25s;
}
.benefit:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.b-ico {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  margin-bottom: 10px;
}
.b-yellow { background: #fff4cc; }
.b-orange { background: #ffe3cc; }
.b-red { background: #ffdcdc; }
.b-pink { background: #ffe0ee; }
.b-purple { background: #ece0ff; }
.b-green { background: #d9f7e6; }
.benefit h4 { font-size: 14.5px; margin-bottom: 4px; }
.benefit p { font-size: 12.9px; color: var(--body); margin: 0; line-height: 1.45; }
.benefit-foot { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.benefit-foot img { width: 100%; max-width: 500px; margin-inline: auto; }

/* ----------------------------------------------------------- insight xp */
.insight-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}
.insight-copy, .insight-visual { min-width: 0; }
.insight-copy h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.85rem); letter-spacing: -.03em; }
.insight-copy .lead { color: #a8aec6; }
.insight-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 32px;
}
.insight-features article { display: flex; gap: 12px; }
.ix-ico {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 17px;
}
.insight-features h4 { font-size: 14.6px; color: #fff; margin-bottom: 3px; }
.insight-features p { font-size: 12.9px; color: #9aa0b8; margin: 0; line-height: 1.5; }

.insight-visual { position: relative; }
.dash-frame {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65);
  border: 1px solid rgba(255, 255, 255, .2);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #f4f5f9;
  border-bottom: 1px solid var(--line);
}
.dash-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe2ec; }
.dash-bar span:nth-child(1) { background: #ff6b6b; }
.dash-bar span:nth-child(2) { background: #ffc94d; }
.dash-bar span:nth-child(3) { background: #4cd07d; }
.dash-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
.dash-frame img { width: 100%; height: auto; }

/* CSS product mock — crisp at any resolution */
.dash-ui {
  background: #f6f7fb;
  padding: 16px;
  font-family: 'Inter', sans-serif;
}
.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eaf3;
}
.dash-logo {
  width: 25px; height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #e2452f);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
}
.dash-top strong { font-size: 11.5px; color: var(--ink); letter-spacing: -.01em; }
.dash-search {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #e8eaf3;
  border-radius: 999px;
  padding: 4px 11px;
}
.dash-avatar {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #29abe2, #4ec58c);
  border: 2px solid #fff;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.kpi {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eceef6;
  border-radius: 10px;
  padding: 8px 9px;
}
.kpi span {
  display: block;
  font-size: 7.4px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
  min-height: 18px;
}
.kpi strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 3px;
}
.kpi em {
  font-style: normal;
  font-size: 7.4px;
  font-weight: 700;
  color: #218a5b;
  background: #e6f8ef;
  border-radius: 4px;
  padding: 1px 4px;
}
.kpi em.down { color: #b12023; background: #fdecec; }
.dash-chart {
  background: #fff;
  border: 1px solid #eceef6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chart-head strong { font-size: 9.5px; color: var(--ink); }
.chart-head span { font-size: 8px; color: var(--muted); }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 74px;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #f3b64c, #f5c518);
}
.bars i:nth-child(even) { background: linear-gradient(180deg, #7fd3ef, #29abe2); }
.dash-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #eceef6;
  border-radius: 12px;
  padding: 10px 12px;
}
.donut {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: conic-gradient(#b12023 0 38%, #f5c518 38% 62%, #4ec58c 62% 84%, #29abe2 84% 100%);
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}
.legend {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  font-size: 7.8px;
  color: var(--muted);
}
.legend b {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 2px;
  margin-right: 4px;
}
.legend strong { color: var(--ink); font-size: 8.4px; margin-left: 2px; }

.case-product .dash-ui {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(23, 27, 46, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
.dash-float strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 25px;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.dash-float span { font-size: 11.5px; color: #b9bdd0; margin-top: 3px; }
.dash-float-1 { top: -22px; left: -24px; }
.dash-float-2 { bottom: -20px; right: -18px; animation-delay: 2.2s; }

/* ----------------------------------------------------------------- cases */
.case-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.case-card + .case-card { margin-top: 34px; }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-card-reverse { grid-template-columns: 1.15fr .85fr; }
.case-card-reverse .case-media { order: 2; }

.case-media {
  position: relative;
  min-height: 380px;
  background: linear-gradient(160deg, #1d2237, #0f1222);
  overflow: hidden;
}
.case-media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
}
.case-product {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 44px;
  background: radial-gradient(circle at 30% 20%, #2b3350, #0f1222 70%);
}
.case-product img { width: 100%; max-width: 380px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.case-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(177, 32, 35, .92);
  border-radius: 999px;
  padding: 7px 14px;
}
.case-body { padding: 40px 40px 34px; }
.case-body h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; margin-bottom: 8px; }
.case-sub { font-size: 14.6px; color: var(--body); margin-bottom: 22px; }
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-metrics strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--brand);
  line-height: 1.2;
}
.case-metrics span { font-size: 12.6px; color: var(--muted); }

.case-details { margin-top: 18px; }
.case-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 16px;
  transition: transform .25s;
}
.case-details[open] summary::after { transform: rotate(45deg); }
.case-details summary:hover { color: var(--brand); }
.case-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding: 18px 0 6px;
  animation: fadeUp .35s var(--ease) both;
}
.case-columns h4 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.case-columns p { font-size: 13.6px; margin: 0; }
.bullet { display: grid; gap: 6px; }
.bullet li {
  position: relative;
  padding-left: 15px;
  font-size: 13.4px;
  color: var(--body);
  line-height: 1.5;
}
.bullet li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
}

/* --------------------------------------------------------------- contact */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -120px;
  background: radial-gradient(circle, rgba(177, 32, 35, .07), transparent 70%);
  border-radius: 50%;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; }
.contact-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.c-ico {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 17px;
  box-shadow: var(--shadow-sm);
}
.contact-list strong { display: block; font-size: 14.5px; color: var(--ink); }
.contact-list span, .contact-list a { font-size: 14px; color: var(--body); }
.contact-list a:hover { color: var(--brand); }
.contact-note {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.contact-note strong { display: block; font-size: 14px; color: var(--ink); }
.contact-note span { font-size: 13.4px; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a9aec1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(177, 32, 35, .10);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error textarea { border-color: #e04545; background: #fff6f6; }
.error { min-height: 0; font-size: 12px; color: #d63a3a; display: none; }
.field.has-error .error { display: block; }
.contact-form .btn { margin-top: 6px; }
.form-hint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: #0b0e1c;
  color: #9aa0b8;
  padding: 70px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-brand p { font-size: 14px; max-width: 36ch; margin: 18px 0; color: #8f95ad; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #7b819a; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #b9bdd0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 5px 12px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 13.8px;
  color: #8f95ad;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-col span { font-size: 13.8px; color: #8f95ad; }
.footer-contact .btn { align-self: flex-start; margin-top: 8px; color: #fff; border-color: rgba(255, 255, 255, .2); background: transparent; }
.footer-contact .btn:hover { border-color: #fff; color: #fff; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.6px;
  color: #767c94;
}
.footer-legal a { color: #9aa0b8; }
.footer-legal a:hover { color: #fff; }

/* --------------------------------------------------------------- to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 300;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.is-error { background: #b3261e; }

/* --------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav { gap: 0; }
  .nav a { font-size: 13.5px; padding: 9px 9px; }
  .brand-text small { display: none; }
  .brand-logo { width: 50px; }
  .lang-btn { min-width: 36px; padding: 6px 9px; font-size: 12px; }

  .hero-grid { gap: 28px; }
  .float-card-1 { left: -2%; }
  .float-card-2 { right: -1%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .footer-contact h4 { width: 100%; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-logo { width: 50px; }
  .nav {
    position: fixed;
    inset: 76px 14px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.99);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 14px; font-size: 15.5px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .burger { display: flex; }
  .header-actions { gap: 8px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 400px; order: 2; }
  .float-card-1 { left: 8%; top: 20%; }
  .float-card-2 { right: 8%; bottom: 6%; }
  .hero-card { width: min(88%, 400px); }
  .orbit-badge { width: 100px; height: 100px; top: -6px; right: 2%; }
  .float-card-3 { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 480px; }
  .media-badge { right: 8px; }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: 1fr; }
  .mockup-grid { gap: 40px; }
  .h-steps { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .h-steps::before { display: none; }
  .compare { grid-template-columns: 1fr; gap: 24px; }
  .testing-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; gap: 54px; }
  .insight-grid > *, .about-grid > *, .hero-grid > *, .contact-grid > * { min-width: 0; }
  .insight-visual { max-width: 560px; }
  .case-card, .case-card-reverse { grid-template-columns: 1fr; }
  .case-card-reverse .case-media { order: 0; }
  .case-media { min-height: 260px; }
  .case-product { padding: 58px 28px 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 38px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-points { gap: 8px 18px; font-size: 13px; }
  .hero-visual { min-height: 330px; }
  .hero-card { padding: 16px; }
  .orbit-badge { width: 84px; height: 84px; }
  .orbit-badge img { width: 34px; }
  .orbit-badge text { font-size: 10.5px; letter-spacing: 2.4px; }
  .float-card { padding: 9px 12px; }
  .float-card strong { font-size: 12px; }
  .float-card small { display: none; }
  .float-icon { width: 30px; height: 30px; font-size: 14px; }
  .hero-stats { padding-bottom: 40px; }

  .service-grid, .expertise-grid, .why-grid, .agent-grid, .tech-grid, .benefit-grid { grid-template-columns: 1fr; }
  .insight-features { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .case-body { padding: 26px 22px; }
  .case-metrics { gap: 14px; }
  .case-columns { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .to-top { right: 16px; bottom: 16px; }
  .lang-btn { min-width: 34px; padding: 6px 8px; font-size: 11.5px; }
  .dash-float-1 { left: 8px; top: -18px; }
  .dash-float-2 { display: none; }
  .insight-visual, .dash-frame { max-width: 100%; }
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
