/* ============================================================
   ServiBrain Solutions Pvt. Ltd. — treatment A + C
   White header · brand-gradient body · white service tiles.
   Blues sampled from the supplied logo:
   #032A87 → #0047A3 → #007CCA
   ============================================================ */

:root {
  --navy:     #051639;
  --navy-2:   #0A2A63;
  --blue-800: #032A87;
  --blue-700: #0B3FA8;
  --blue-600: #0B5FD0;
  --blue-500: #007CCA;
  --blue-400: #37A2E8;
  --sky:      #86BDDC;
  --sky-pale: #CDEBFF;

  --tint:     #E8F1FD;
  --tint-2:   #F4F8FE;
  --paper:    #FFFFFF;
  --off:      #F7FAFD;

  --ink:      #0C1220;
  --ink-2:    #4A5568;
  --ink-3:    #6B7688;
  --rule:     #E2E8F2;
  --rule-2:   #CBD6E6;

  --grad:      linear-gradient(118deg, #032A87 0%, #0047A3 48%, #007CCA 100%);
  --grad-flat: linear-gradient(100deg, #032A87, #007CCA);

  --shadow-m: 0 2px 4px rgba(12,18,32,.04), 0 14px 30px -20px rgba(5,22,57,.35);
  --shadow-l: 0 4px 10px rgba(12,18,32,.06), 0 30px 60px -30px rgba(5,22,57,.45);
  --shadow-blue: 0 6px 14px rgba(2,18,58,.16), 0 26px 56px -26px rgba(2,16,52,.6);

  --display: "Montserrat", "Poppins", "Century Gothic", Futura,
             "Segoe UI Variable Display", "Segoe UI", "Avenir Next", Arial, sans-serif;
  --body:    "Segoe UI Variable Text", "Segoe UI", "Avenir Next",
             "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "Consolas", "SF Mono", Menlo, "DejaVu Sans Mono", monospace;

  --wrap: 1220px;

  --logo-mark: url('/img/servibrain-mark.png');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 2px; }
:where(.hero, .cta) :focus-visible { outline-color: #fff; }

.wrap { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }
.sec { padding: 92px 0; }
.center { text-align: center; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-600); margin: 0; }
.eyebrow--on { color: var(--sky-pale); }
.h-sec { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin-top: 14px; }
.lede { color: var(--ink-2); font-size: 1.0625rem; max-width: 62ch; }
.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(11,95,208,.75); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn--ghost { border-color: var(--rule-2); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--blue-700); box-shadow: 0 10px 24px -12px rgba(0,20,60,.55); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(0,20,60,.7); }
.btn--onBlue { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.1); }
.btn--onBlue:hover { background: rgba(255,255,255,.2); border-color: #fff; transform: translateY(-2px); }

.arrow-link {
  font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 7px; transition: gap .2s ease;
}
.arrow-link:hover { gap: 12px; }

/* ---------- logo ---------- */

.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark { width: 56px; height: 43px; flex: none; background: var(--logo-mark) center / contain no-repeat; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .015em; line-height: 1; display: block; color: var(--ink); }
.logo__sub { font-size: 9.5px; letter-spacing: .055em; color: var(--ink-3); margin-top: 3px; line-height: 1; display: block; }
.logo--onDark .logo__name { color: #fff; }
.logo--onDark .logo__sub { color: rgba(255,255,255,.62); }

/* ============================================================
   WHITE HEADER
   ============================================================ */

.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.hdr__in { display: flex; align-items: center; gap: 30px; height: 76px; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .18s ease; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue-600); border-radius: 2px;
  transform: scaleX(0); transition: transform .24s cubic-bezier(.2,.7,.3,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--blue-600); font-weight: 600; }
.hdr .btn { padding: 11px 20px; font-size: 13.5px; }

/* The CTA inside .nav exists only for the mobile drawer; the header already
   carries one outside the nav. Without this both render side by side on desktop. */
.nav > .btn { display: none; }

.burger {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper);
  cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink); }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }

@media (max-width: 1080px) { .nav { gap: 18px; } .nav a { font-size: 13.5px; } }
@media (max-width: 940px) {
  .nav, .hdr > .wrap > .btn { display: none; }
  .burger { display: flex; }
  .hdr.is-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    position: absolute; left: 0; right: 0; top: 76px; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 14px 22px 20px; box-shadow: var(--shadow-m);
  }
  .hdr.is-open .nav a { padding: 10px 0; width: 100%; font-size: 15px; }
  .hdr.is-open .nav .btn { display: inline-flex; margin-top: 10px; }
}

/* ============================================================
   BLUE BODY — gradient hero + white service tiles
   ============================================================ */

.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 74px 0 96px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .5; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 58% at 82% 8%, rgba(255,255,255,.26), transparent 62%),
    radial-gradient(46% 52% at 8% 92%, rgba(3,24,90,.5), transparent 68%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(92% 72% at 50% 24%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(92% 72% at 50% 24%, #000, transparent 78%);
}

.hero__top { position: relative; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(8px);
  border-radius: 100px; padding: 7px 17px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #EAF4FF;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px rgba(255,255,255,.9); flex: none; }

.hero h1 {
  margin: 24px auto 0;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  line-height: 1.05; letter-spacing: -0.04em;
  max-width: 18ch;
}
.hero h1 span { color: var(--sky-pale); }

/* Company tagline, sitting between the headline and the supporting copy.
   Weighted above the lede but well below the h1 so the two do not compete. */
.hero__tagline {
  margin: 15px auto 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  letter-spacing: .005em;
  color: var(--sky-pale);
}

.hero__lede {
  margin: 20px auto 0; color: rgba(235,245,255,.88);
  font-size: 1.0625rem; max-width: 54ch; line-height: 1.62;
}
.hero__cta { display: flex; gap: 13px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.hero__lab { margin-top: 74px; text-align: center; }
.hero__lab h2 { margin-top: 12px; font-size: clamp(1.6rem, 3vw, 2.15rem); color: #fff; }

/* --- white tiles on the blue --- */

.tiles {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px;
}
.tile {
  background: #fff; border-radius: 16px;
  padding: 28px 26px 26px;
  display: grid; gap: 13px; align-content: start;
  box-shadow: var(--shadow-blue);
  position: relative; overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-flat);
  transform: scaleX(0); transform-origin: left;
  transition: transform .34s cubic-bezier(.2,.7,.3,1);
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(2,18,58,.2), 0 36px 70px -28px rgba(2,16,52,.7); }
.tile:hover::before { transform: scaleX(1); }
.tile__ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint); color: var(--blue-600);
  display: grid; place-items: center;
}
.tile h3 { font-size: 1.25rem; color: var(--ink); }
.tile ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 9px; }
.tile li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.tile li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); flex: none; margin-top: 7px; }
.tile .arrow-link { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule); }

@media (max-width: 940px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } .hero { padding-bottom: 70px; } }

/* ============================================================
   TRUST STRIP
   ============================================================ */

.trust { background: var(--off); border-bottom: 1px solid var(--rule); padding: 42px 0 50px; }

/* Two labelled rows: AI first, then product & platform. */
.stack-group { margin-top: 30px; }
.stack-group__lab {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--blue-600);
  margin: 0 0 14px;
}
.stack-group__lab::before, .stack-group__lab::after {
  content: ""; height: 1px; flex: 1; max-width: 150px; background: var(--rule-2);
}
.trust__row { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; }
.trust__i {
  display: grid; justify-items: center; gap: 10px;
  padding: 20px 8px 18px;
  /* Fixed rows so tiles stay aligned even where the logo is a wordmark and the
     duplicate text name is hidden (.NET, AWS). */
  grid-template-rows: 32px 19px 13px;
  align-items: center;
  border: 1px solid transparent; border-radius: 12px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.trust__i:hover {
  background: var(--paper); border-color: var(--rule);
  transform: translateY(-3px); box-shadow: var(--shadow-m);
}
.trust__i svg { color: var(--blue-600); transition: color .2s ease, transform .2s ease; }
.trust__i:hover svg { color: var(--blue-800); transform: scale(1.06); }
.trust__i span { font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.3; letter-spacing: -0.01em; }
.trust__i .vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.trust__i em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) { .trust__row { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 480px) { .trust__row { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   ABOUT
   ============================================================ */

.about { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 64px; align-items: center; }
.about__body p { color: var(--ink-2); margin-top: 18px; max-width: 52ch; }
.about .btn { margin-top: 30px; }

.feat {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-m);
}
.feat__i { background: var(--paper); padding: 30px 20px 32px; display: grid; justify-items: center; gap: 13px; text-align: center; transition: background-color .2s ease; }
.feat__i:hover { background: var(--tint-2); }
.feat__ico { width: 48px; height: 48px; border-radius: 13px; background: var(--tint); display: grid; place-items: center; color: var(--blue-600); }
.feat__i b { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 980px) { .about { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   STATS
   ============================================================ */

.stats { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 120% at 20% 0%, rgba(0,124,202,.34), transparent 70%),
    radial-gradient(46% 120% at 82% 100%, rgba(3,42,135,.62), transparent 72%);
}
.stats__in { position: relative; display: grid; grid-template-columns: repeat(5,1fr); padding: 54px 0; gap: 10px; }
.stat { display: flex; align-items: center; gap: 15px; padding: 0 14px; border-right: 1px solid rgba(134,189,220,.16); }
.stat:last-child { border-right: 0; }
.stat__ico { width: 46px; height: 46px; border-radius: 12px; flex: none; background: rgba(55,162,232,.18); border: 1px solid rgba(134,189,220,.24); display: grid; place-items: center; color: var(--blue-400); }
.stat b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
/* Five parallel items have to read as one row. The base .stat centres its icon
   and text as a group, which is right for a single figure but wrong here: a
   one-line title and a two-line title then put their icons at different heights
   and no two titles share a baseline. Top-align instead, and reserve two lines
   for every title so the descriptions line up as well. */
/* Icon stays vertically centred against its text. The cross-column alignment is
   solved by giving every text block the same height instead (below), so
   centring and a shared baseline are no longer in conflict. */
.stats--how .stat { align-items: center; }
.stats--how .stat > span:last-child {
  display: block;
  /* Two title lines + up to three description lines. Reserving it means a short
     item and a long one centre identically, so all five icons sit level. */
  min-height: 104px;
}
.stats--how .stat b {
  font-size: 1.0625rem;
  letter-spacing: -0.022em;
  line-height: 1.2;
  min-height: 2.4em;      /* two lines at the line-height above */
  text-wrap: balance;
}
.stats--how .stat span { margin-top: 5px; }

/* Stacked two-up on narrow screens, where a reserved second line only adds a gap. */
@media (max-width: 980px) {
  .stats--how .stat b { min-height: 0; }
  .stats--how .stat > span:last-child { min-height: 0; }
}
/* :not(.stat__ico) matters. `.stat span` (0,1,1) outranks `.stat__ico` (0,1,0),
   so without the exclusion it forces display:block onto the icon box, killing its
   `place-items: center` and pinning the glyph to the top-left corner. */
.stat span:not(.stat__ico) { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(200,220,245,.74); }
@media (max-width: 980px) { .stats__in { grid-template-columns: repeat(2,1fr); gap: 26px; } .stat { border-right: 0; padding: 0; } }
@media (max-width: 460px) { .stats__in { grid-template-columns: 1fr; } }

/* ============================================================
   INDUSTRIES
   ============================================================ */

.ind { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; margin-top: 50px; }
.ind__i {
  display: grid; justify-items: center; gap: 12px; padding: 24px 10px 22px;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--paper);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ind__i:hover { transform: translateY(-4px); border-color: var(--blue-400); box-shadow: var(--shadow-m); }
.ind__i svg { color: var(--blue-600); }
.ind__i span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 1000px) { .ind { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px) { .ind { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   PROCESS
   ============================================================ */

.proc-wrap { background: var(--off); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proc { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 50px; position: relative; }
.proc::before {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500), var(--sky)); opacity: .4;
}
.step { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 14px; position: relative; }
.step__n {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  background: var(--paper); color: var(--blue-600); border: 2px solid var(--blue-400);
  box-shadow: 0 0 0 6px var(--off), 0 10px 22px -14px rgba(11,95,208,.9);
  transition: background-color .24s ease, color .24s ease, transform .24s ease;
}
.step:hover .step__n { background: var(--blue-600); color: #fff; transform: translateY(-3px); }
.step b { font-family: var(--display); font-size: 1.0625rem; letter-spacing: -0.02em; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 26ch; }
@media (max-width: 900px) { .proc { grid-template-columns: 1fr 1fr; row-gap: 38px; } .proc::before { display: none; } }
@media (max-width: 520px) { .proc { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.quote {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 16px;
  padding: 28px 26px 26px; display: grid; gap: 18px; align-content: start;
  transition: transform .22s ease, box-shadow .22s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.quote__mark { font-family: Georgia, serif; font-size: 44px; line-height: .6; color: var(--blue-400); height: 22px; }
.quote p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.quote__by { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--rule); padding-top: 18px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--grad-flat); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; }
.quote__who b { display: block; font-family: var(--display); font-size: 14px; letter-spacing: -0.015em; }
.quote__who span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 940px) { .quotes { grid-template-columns: 1fr; } }

/* ============================================================
   CTA
   ============================================================ */

.cta { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 20px; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 130% at 88% 30%, rgba(255,255,255,.2), transparent 62%);
}
.cta__in { position: relative; display: flex; align-items: center; gap: 34px; flex-wrap: wrap; padding: 46px 46px; }
.cta h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); }
.cta p { color: rgba(235,245,255,.88); margin-top: 10px; font-size: 15px; }
.cta__btns { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 860px) { .cta__in { padding: 34px 28px; } .cta__btns { margin-left: 0; } }

/* ============================================================
   FOOTER
   ============================================================ */

.foot { background: var(--navy); color: #fff; padding: 66px 0 0; }
.foot__top { display: grid; grid-template-columns: 1.6fr repeat(3,1fr) 1.25fr; gap: 42px; }
.foot__tagline {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .005em;
  color: var(--blue-400);
}
.foot__about { color: rgba(200,220,245,.7); font-size: 13.5px; margin-top: 20px; max-width: 32ch; line-height: 1.65; }
.foot__social { display: flex; gap: 9px; margin-top: 22px; }
.foot__social a {
  width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(134,189,220,.2); display: grid; place-items: center; color: #CFE2F8;
  transition: background-color .2s ease, transform .2s ease;
}
.foot__social a:hover { background: var(--blue-600); transform: translateY(-2px); }
.foot__col h4 { font-size: 14px; letter-spacing: -0.01em; margin-bottom: 18px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot__col a { font-size: 13.5px; color: rgba(200,220,245,.72); transition: color .18s ease, padding-left .18s ease; }
.foot__col a:hover { color: #fff; padding-left: 4px; }
.foot__contact { display: grid; gap: 15px; }
.foot__contact div { display: flex; gap: 11px; font-size: 13.5px; color: rgba(200,220,245,.72); line-height: 1.5; }
.foot__contact svg { flex: none; margin-top: 2px; color: var(--blue-400); }
.foot__contact a:hover { color: #fff; }
.foot__bot {
  margin-top: 56px; border-top: 1px solid rgba(134,189,220,.16); padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(200,220,245,.6);
}
.foot__bot nav { display: flex; gap: 22px; }
.foot__note { width: 100%; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(200,220,245,.42); }
@media (max-width: 1000px) { .foot__top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .foot__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 420px) { .foot__top { grid-template-columns: 1fr; } }

/* ---------- back to top ---------- */

.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(11,95,208,.9);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--blue-700); }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.75,.28,1), transform .65s cubic-bezier(.2,.75,.28,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .rv { opacity: 1; transform: none; }
}