/* =====================================================
   home.css — HTML/CSS glass stack hero + sparse below-fold
   ===================================================== */

.page-home {
  background: #F4F6FA;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Hero (glass stack) — tokens scoped to section.hero ---------- */
section.hero {
  --bg-1: #F5F7FB;
  --bg-2: #E6EAF3;
  --ink: #0F1A3D;
  --ink-soft: #3B4460;
  --line: #7C8BB5;
  --brand: #1F2F72;
  --brand-hover: #182458;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-btn: 10px;

  position: relative;
  isolation: isolate;
  /* Prefer visible over clip so the 3D stack isn't chopped; mesh still paints behind */
  overflow: visible;
  min-height: calc(100svh - 72px);
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 48% at 0% 0%, rgba(176, 190, 220, .38) 0%, transparent 68%),
    radial-gradient(ellipse 50% 46% at 100% 100%, rgba(160, 190, 230, .34) 0%, transparent 70%),
    radial-gradient(120% 90% at 20% 10%, #FFFFFF 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  box-sizing: border-box;
}

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

section.hero .hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .42;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 35%, #000 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 35%, #000 75%);
}
section.hero .hero__mesh line {
  stroke: var(--line);
  stroke-width: 1;
  opacity: .28;
}
section.hero .hero__mesh circle {
  fill: var(--line);
  opacity: .45;
}

section.hero .hero__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 56px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  column-gap: 48px;
  align-items: center;
  min-height: calc(100svh - 72px);
}

section.hero .copy {
  align-self: center;
  padding-top: 24px;
  max-width: 600px;
}
section.hero .copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.9vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink);
  font-family: var(--font);
}
section.hero .copy p {
  margin: 26px 0 0;
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--ink-soft);
  letter-spacing: -.01em;
  font-family: var(--font);
}
section.hero .actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero CTAs — scoped so they do not override site-wide .btn */
section.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 60px;
  padding: 0 34px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
  box-shadow: none;
  width: auto;
}
section.hero .btn:focus-visible {
  outline: 3px solid #3E62C6;
  outline-offset: 3px;
}
section.hero .btn--primary {
  background: var(--brand);
  color: #fff;
  border: 1.5px solid var(--brand);
}
section.hero .btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}
section.hero .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #7E88A6;
}
section.hero .btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(15, 26, 61, .04);
  color: var(--ink);
}

/* ---------- Glass card stack ---------- */
/* Single .slab: thickness = stacked box-shadow; face sheen via .face::after.
   Restored from user glass craft / ffa3b94 (single slab, no dual-layer). */
section.hero .stage {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  height: 520px;
  --scale: .80;
  overflow: visible;
}
section.hero .stack {
  --tilt-x: 42deg;
  --tilt-z: -16deg;
  --gap-x: 54px;
  --gap-y: 170px;
  --gap-z: 48px;
  --w: 396px;
  --h: 220px;
  --r: 26px;
  --face-top: #3E62C6;
  --face-mid: #1F3583;
  --face-deep: #101D4E;
  --rim: rgba(255, 255, 255, .65);

  position: absolute;
  left: 4px;
  top: 56px;
  width: var(--w);
  height: var(--h);
  perspective: 1500px;
  perspective-origin: 50% 40%;
  transform: scale(var(--scale));
  transform-origin: 0 0;
  overflow: visible;
}
section.hero .slab {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 26px 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(165deg, var(--face-top) 0%, var(--face-mid) 50%, var(--face-deep) 100%);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow:
    inset 0 1.5px 0 var(--rim),
    inset 0 0 0 1px rgba(47, 201, 212, .28),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 1px 0 rgba(215, 228, 255, .85),
    0 2px 0 rgba(118, 158, 238, .6),
    0 3px 0 rgba(118, 158, 238, .6),
    0 4px 0 rgba(118, 158, 238, .6),
    0 5px 0 rgba(118, 158, 238, .6),
    0 6px 0 rgba(118, 158, 238, .6),
    0 7px 0 rgba(118, 158, 238, .6),
    0 8px 0 rgba(118, 158, 238, .6),
    0 9px 0 rgba(90, 120, 200, .9),
    0 10px 0 #152459,
    0 11px 0 #152459,
    0 12px 0 #152459,
    0 13px 0 #152459,
    0 14px 0 #152459,
    0 15px 0 #152459,
    0 16px 0 #152459,
    0 17px 0 #152459,
    0 18px 0 #152459,
    0 19px 0 #152459,
    0 20px 0 #152459,
    0 21px 0 #152459,
    0 22px 0 #152459,
    0 23px 0 #152459,
    0 24px 0 #152459,
    0 25px 0 #152459,
    0 26px 0 #152459,
    0 27px 0 #152459,
    0 28px 0 #152459,
    0 29px 0 #152459,
    0 30px 0 #152459,
    0 31px 0 #152459,
    0 32px 0 #152459,
    0 33px 0 #152459,
    0 34px 0 #152459,
    0 35px 0 #152459,
    0 36px 0 #152459,
    0 37px 0 #0E1A48,
    0 50px 30px rgba(15, 26, 61, .28),
    0 76px 70px rgba(15, 26, 61, .32);
  overflow: visible;
  transform: rotateX(var(--tilt-x)) rotateZ(var(--tilt-z))
            translate3d(calc(var(--i) * var(--gap-x)), calc(var(--i) * var(--gap-y)), calc(var(--i) * var(--gap-z)));
  backface-visibility: hidden;
}
section.hero .slab--vps { --i: 0; }
section.hero .slab--ia { --i: 1; --face-top: #5578DB; --face-mid: #2A47A6; }
section.hero .slab--wp { --i: 2; --face-top: #6C8DEC; --face-mid: #3454BE; }

section.hero .face {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  overflow: hidden;
  pointer-events: none;
}
section.hero .face::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -15%;
  width: 60%;
  height: 180%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(8deg);
}
section.hero .face__title {
  position: relative;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--font);
}
section.hero .face__desc {
  position: relative;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #D6DEF5;
  max-width: 250px;
  font-family: var(--font);
}
section.hero .face__icon {
  position: absolute;
  right: 32px;
  top: 26px;
  width: 72px;
  height: 72px;
}
section.hero .face__icon--wp {
  width: 58px;
  height: 58px;
  top: 34px;
  right: 34px;
}
section.hero .slab--vps .face__icon {
  width: 56px;
  height: 56px;
  left: 32px;
  top: 58px;
  right: auto;
}
section.hero .slab--vps .face__title,
section.hero .slab--vps .face__desc {
  padding-left: 80px;
}
section.hero .slab--vps .face__desc {
  max-width: 330px;
}
section.hero .slab--ia .face__title {
  font-size: 30px;
  max-width: 240px;
}
section.hero .slab--ia .face__desc {
  max-width: 230px;
}

@media (prefers-reduced-motion: no-preference) {
  section.hero .slab {
    animation: hero-slab-settle .9s cubic-bezier(.2, .7, .2, 1) both;
  }
  section.hero .slab--vps { animation-delay: .05s; }
  section.hero .slab--ia { animation-delay: .2s; }
  section.hero .slab--wp { animation-delay: .35s; }
  @keyframes hero-slab-settle {
    from {
      opacity: 0;
      transform: rotateX(var(--tilt-x)) rotateZ(var(--tilt-z))
        translate3d(calc(var(--i) * var(--gap-x)), calc(var(--i) * var(--gap-y)), calc(var(--i) * var(--gap-z) + 120px));
    }
    to { opacity: 1; }
  }
}

@media (max-width: 1180px) {
  section.hero .hero__inner {
    padding: 32px 40px 56px;
    column-gap: 24px;
  }
  section.hero .stage {
    max-width: 560px;
    height: 460px;
    --scale: .70;
  }
  section.hero .stack {
    left: 0;
    top: 40px;
  }
}

@media (max-width: 960px) {
  section.hero {
    min-height: 0;
  }
  section.hero .hero__inner {
    grid-template-columns: 1fr;
    row-gap: 8px;
    min-height: 0;
  }
  section.hero .copy {
    max-width: 640px;
    padding-top: 32px;
  }
  section.hero .stage {
    justify-self: center;
    max-width: 600px;
    height: 420px;
    margin-top: 16px;
    --scale: .62;
  }
  section.hero .stack {
    left: 24px;
    top: 32px;
  }
}

@media (max-width: 600px) {
  section.hero .hero__inner {
    padding: 24px 20px 40px;
  }
  section.hero .btn {
    width: 100%;
  }
  section.hero .stage {
    height: 300px;
    --scale: .44;
  }
  section.hero .stack {
    left: -15px;
    top: 0;
  }
}

@media (max-width: 400px) {
  section.hero .stage {
    height: 300px;
    --scale: .42;
  }
  section.hero .stack {
    left: -15px;
    top: 0;
  }
}

/* ---------- Brands ---------- */
.home-brands {
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 28px 0;
}

.home-brands-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.home-brands-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.home-brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
  width: 100%;
}

.home-brands-row img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: .72;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.home-brands-row img:hover {
  opacity: 1;
  filter: none;
}

/* ---------- Chooser ---------- */
.home-chooser {
  background: #F7F9FC;
  padding: clamp(56px, 8vw, 88px) 0;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.chooser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  min-height: 100%;
}
.chooser-card:hover {
  border-color: rgba(47, 201, 212, .55);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.chooser-card.is-primary {
  border-color: rgba(47, 201, 212, .45);
  box-shadow: 0 1px 2px rgba(11,27,51,.04), 0 10px 28px rgba(47,201,212,.12);
}

.chooser-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal-s);
  border-radius: 999px;
  padding: 4px 9px;
}
.chooser-tag--muted {
  background: #EEF2F7;
  color: var(--muted);
}

.chooser-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-s);
  color: var(--teal-d);
}
.chooser-ico svg { width: 22px; height: 22px; }

.chooser-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.chooser-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}
.chooser-go {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-d);
}
.chooser-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.chooser-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Final CTA ---------- */
.home-cta {
  background: #fff;
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 8vw, 96px);
}

.home-cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(47,201,212,.12), transparent 60%),
    linear-gradient(180deg, #F7FBFD 0%, #EEF4F8 100%);
  border: 1px solid var(--line);
}

.home-cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.025em;
}
.home-cta-box > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hide-mobile { display: inline-block; }

/* ---------- Responsive (below-fold) ---------- */
@media (max-width: 1100px) {
  .chooser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hide-mobile { display: none; }
  .home-brands-row {
    gap: 20px 24px;
  }
  .home-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
