/* Homepage finishing layer: one icon system, quieter textures and precise surfaces. Home pages only. */
.home-refined {
  --rf-blue: #335cff;
  --rf-badge: linear-gradient(150deg, #f8faff 0%, #ecf1ff 100%);
  --rf-badge-line: #e0e7fb;
  --rf-ink: #0b163f;
}

/* Hero texture: a faint measured grid that fades out around the statement. */
.home-refined .hero-global::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 84px 0 auto;
  height: 560px;
  background-image:
    linear-gradient(#e8edfa 1px, transparent 1px),
    linear-gradient(90deg, #e8edfa 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 46% 64% at 50% 30%, #000 0%, #0009 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 64% at 50% 30%, #000 0%, #0009 45%, transparent 100%);
  opacity: .7;
  pointer-events: none;
}
.home-refined .hg-eyebrow {
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffffeb, #ffffffeb) padding-box,
    linear-gradient(120deg, #c9d5ff, #eef2ff 55%, #c9d5ff) border-box;
  color: #2f4596;
}

/* Buttons: a soft vertical light, an inner highlight and a moving arrow. */
.home-refined .hero-global .button {
  gap: 10px;
  background: linear-gradient(180deg, #4b6eff 0%, #335cff 55%, #2c53f2 100%);
  border-color: #2f57f6;
  box-shadow: 0 12px 26px -10px #335cff80, inset 0 1px 0 #ffffff40;
}
.home-refined .hero-global .button:hover { background: linear-gradient(180deg, #4265fb 0%, #2b52f0 60%, #2449e0 100%); }
.home-refined .hero-global .button.secondary {
  background: #fff;
  border-color: #d9e1fb;
  color: #2f4fd8;
  box-shadow: 0 1px 2px #2536580d;
}
.home-refined .hero-global .button.secondary:hover { background: #f7f9ff; border-color: #b9c8fb; }
.home-refined .rf-arrow { display: block; width: 16px; height: 16px; transition: transform .2s ease; }
.home-refined .hero-global .button:hover .rf-arrow { transform: translateX(3px); }

/* Network: nodes glow, chips gain lit colour squares and a hairline highlight. */
.home-refined .hg-node { filter: drop-shadow(0 0 2.5px #335cffa6); }
.home-refined .hg-chip {
  border-color: #e9edf7;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 18px 38px -22px #2536587a, 0 1px 3px #2536580f, inset 0 1px 0 #fff;
  letter-spacing: -.01em;
}
.home-refined .hg-chip small { margin-bottom: 1px; color: #959caa; font-size: 11px; letter-spacing: .2px; }
.home-refined .hg-chip-icon { border-radius: 9px; box-shadow: inset 0 1px 0 #ffffff59, 0 4px 10px -4px currentColor; }
.home-refined .hg-chip-sms .hg-chip-icon { background: linear-gradient(160deg, #66d892, #2fb463); color: #2fb46333; }
.home-refined .hg-chip-voice .hg-chip-icon { background: linear-gradient(160deg, #7a94ff, #335cff); color: #335cff40; }
.home-refined .hg-chip-login .hg-chip-icon { background: linear-gradient(160deg, #a497f7, #6557dc); color: #6557dc40; }
.home-refined .hg-chip-icon svg { color: #fff; }

/* Side tiles: crisp gradient border, the new glyphs at optical size. */
.home-refined .hg-tile {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #fff 35%, #f6f8ff) padding-box,
    linear-gradient(150deg, #fff, #d9e2fb) border-box;
}
.home-refined .hg-tile-big img { width: 42px; height: 42px; }
.home-refined .hg-tile-small img { width: 30px; height: 30px; }

/* One badge recipe for every homepage icon that sits on its own. */
.home-refined .hg-products img,
.home-refined .story-copy .product-business-icon,
.home-refined .use-case-grid .use-case-icon {
  border: 1px solid var(--rf-badge-line);
  background: var(--rf-badge);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px #335cff59;
}
.home-refined .hg-products img { flex: 0 0 46px; width: 46px; height: 46px; padding: 10px; border-radius: 14px; }
.home-refined .story-copy .product-business-icon { width: 36px; height: 36px; padding: 7px; border-radius: 11px; opacity: 1; }
.home-refined .use-case-grid .use-case-icon { width: 50px; height: 50px; border-radius: 15px; }
.home-refined .use-case-grid .use-case-icon img { width: 28px; height: 28px; }

/* Product entry strip: calmer dividers, a lit hover and an arrow in a ring. */
.home-refined .hg-products { border-color: #e4e9f6; box-shadow: 0 30px 70px -46px #2536588c, 0 1px 3px #2536580a, inset 0 1px 0 #fff; }
.home-refined .hg-products a { align-items: center; padding: 24px 22px; }
.home-refined .hg-products strong { margin-bottom: 3px; letter-spacing: -.01em; transition: color .2s ease; }
.home-refined .hg-products small { color: #6a7182; }
.home-refined .hg-products a:hover { background: linear-gradient(180deg, #fafbff, #f4f7ff); }
.home-refined .hg-products a:hover strong { color: var(--rf-blue); }
.home-refined .hg-products i {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid #e3e8f6;
  border-radius: 50%;
  color: #9aa6c6;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.home-refined .hg-products i svg { width: 14px; height: 14px; }
.home-refined .hg-products a:hover i { color: #fff; border-color: var(--rf-blue); background: var(--rf-blue); transform: translateX(2px); }

/* Product stories and use cases pick up the same surfaces. */
.home-refined .story-copy .eyebrow { gap: 12px; }
.home-refined .use-case-grid article { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-refined .use-case-grid article:hover { transform: translateY(-3px); border-color: #d9e2fb; box-shadow: 0 22px 46px -30px #2536587a; }
.home-refined .onboarding-steps .step-number {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rf-badge-line);
  border-radius: 12px;
  background: var(--rf-badge);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px #335cff59;
  color: var(--rf-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.home-refined .onboarding-steps > li:not(:last-child)::after { top: 20px; left: 60px; border-top-color: #d5dffa; }

/* Entry strip arrow sits in the corner so names keep their full width. */
.home-refined .hg-products a { gap: 12px; padding-left: 20px; padding-right: 44px; }
.home-refined .hg-products i { position: absolute; right: 14px; top: 50%; margin-top: -14px; }
.home-refined .hg-products small { font-size: 13px; text-wrap: pretty; }

/* Highlight ticks: small lit discs instead of hairline rings. */
.home-refined .product-highlights li { align-items: center; }
.home-refined .product-highlights li::before {
  content: "";
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  top: 0;
  border: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(160deg, #7a94ff, #335cff);
  box-shadow: 0 3px 7px -3px #335cffb3, inset 0 1px 0 #ffffff4d;
}

/* Use cases: the hero's dot language at the edges, a clear centre for the cards. */
.home-refined .home-use-cases {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #e9efff 0%, #f6f8ff00 72%), #f7f9ff;
}
.home-refined .home-use-cases::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#c2cff2 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, transparent 35%, #000 100%);
  opacity: .75;
  pointer-events: none;
}

/* Contact: a quiet panel carrying the world map, with the hero's buttons. */
.home-refined .home-contact-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, #e8eeff 0%, #f3f6ff00 70%) padding-box,
    linear-gradient(180deg, #fbfcff, #f2f5ff) padding-box,
    linear-gradient(150deg, #d6e0fd, #f1f4ff 50%, #d2ddfc) border-box;
  box-shadow: 0 30px 70px -52px #25365880;
}
.home-refined .home-contact-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6% -3% -24%;
  background: url('home-hero-global/world-dots.svg') center / 100% auto no-repeat;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 46% 58% at 50% 42%, transparent 0%, #0006 55%, #000 85%);
  mask-image: radial-gradient(ellipse 46% 58% at 50% 42%, transparent 0%, #0006 55%, #000 85%);
  pointer-events: none;
}
.home-refined .home-contact h2 { color: var(--rf-ink); }
.home-refined .home-contact .eyebrow { color: #2f4596; }
.home-refined .home-contact .button {
  background: linear-gradient(180deg, #4b6eff 0%, #335cff 55%, #2c53f2 100%);
  border-color: #2f57f6;
  box-shadow: 0 12px 26px -10px #335cff80, inset 0 1px 0 #ffffff40;
}
.home-refined .home-contact .button.secondary { background: #fff; border-color: #d9e1fb; color: #2f4fd8; box-shadow: 0 1px 2px #2536580d; }

@media (max-width: 760px) {
  .home-refined .hero-global::before { height: 520px; background-size: 40px 40px; }
  .home-refined .hg-products a { align-items: flex-start; padding: 18px 16px; }
  .home-refined .hg-products img { width: 42px; height: 42px; padding: 9px; }
  .home-refined .hg-products i { display: none; }
  .home-refined .hg-products a { padding-right: 16px; }
  .home-refined .onboarding-steps > li:not(:last-child)::after { top: 48px; left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-refined .use-case-grid article, .home-refined .rf-arrow, .home-refined .hg-products i { transition: none; }
  .home-refined .use-case-grid article:hover { transform: none; }
}
