/* ============================================================
   Sendbat SMS Opt-in Landing — styled to match sendbat.com
   Brand: navy #18537c · blue #0087e2 · text #2b3a47 · Inter
   ============================================================ */

:root {
  --sb-navy: #18537c;
  --sb-blue: #0087e2;
  --sb-blue-dark: #006bb5;
  --sb-text: #2b3a47;
  --sb-muted: #9aa6b3;
  --sb-bg-soft: #f3f7fa;
  --sb-border: #eaeff4;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
}

/* anchor targets land below the fixed navbar, with breathing room */
#optin {
  scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--sb-text);
  background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--sb-navy);
}

.text-accent {
  color: var(--sb-blue);
}

/* --- Bootstrap primary remap to Sendbat navy/blue --- */
.btn-primary {
  --bs-btn-bg: var(--sb-blue);
  --bs-btn-border-color: var(--sb-blue);
  --bs-btn-hover-bg: var(--sb-blue-dark);
  --bs-btn-hover-border-color: var(--sb-blue-dark);
  --bs-btn-active-bg: var(--sb-navy);
  --bs-btn-active-border-color: var(--sb-navy);
  font-weight: 600;
  border-radius: 8px;
}

/* ================= NAV ================= */
.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sb-border);
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--sb-border);
}

/* ================= HERO ================= */
.hero {
  padding: 9rem 0 5rem;
  background:
    radial-gradient(
      900px 420px at 85% -10%,
      rgba(0, 135, 226, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 380px at -10% 30%,
      rgba(24, 83, 124, 0.08),
      transparent 55%
    ),
    var(--sb-bg-soft);
}

.hero-badge {
  background: rgba(0, 135, 226, 0.1);
  color: var(--sb-blue);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
}

.hero-title {
  color: var(--sb-navy);
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--sb-text);
  max-width: 560px;
}

/* --- Opt-in card --- */
.optin-card {
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(24, 83, 124, 0.1);
  border: 1px solid var(--sb-border) !important;
}

.optin-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sb-navy);
  margin-bottom: 0.3rem;
}

.optin-card .input-group-text {
  background: var(--sb-bg-soft);
  border-color: #dde6ee;
  color: var(--sb-muted);
}

.optin-card .form-control {
  border-color: #dde6ee;
  padding: 0.6rem 0.85rem;
}

.optin-card .form-control:focus {
  border-color: var(--sb-blue);
  box-shadow: none;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
  box-shadow: none;
}

.optin-card .form-check-input:checked {
  background-color: var(--sb-blue);
  border-color: var(--sb-blue);
}

.optin-card #submitBtn {
  font-size: 16px;
}

/* --- Success state (replaces the form after opt-in) --- */
#optinForm {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#optinForm.form-leaving {
  opacity: 0;
  transform: scale(0.97);
}

.success-state {
  animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-state.leaving {
  animation: successOut 0.3s ease both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes successOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* animated checkmark: ring draws, fill pops, tick draws */
.success-check {
  width: 92px;
  height: 92px;
  display: block;
}

.success-check circle,
.success-check path {
  fill: none;
}

.success-check .sc-ring {
  stroke: var(--sb-blue);
  stroke-width: 3;
  stroke-dasharray: 175.93; /* 2 * PI * 28 */
  stroke-dashoffset: 175.93;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: scDraw 0.6s ease-out forwards;
}

.success-check .sc-fill {
  fill: rgba(0, 135, 226, 0.1);
  stroke: none;
  transform-origin: center;
  transform: scale(0);
  animation: scFillPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}

.success-check .sc-tick {
  stroke: var(--sb-blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: scDraw 0.35s ease-out 0.65s forwards;
}

@keyframes scDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scFillPop {
  to {
    transform: scale(1);
  }
}

/* countdown bar: drains over 8s, then the form returns */
.success-timer {
  width: 180px;
  height: 5px;
  border-radius: 50rem;
  background: rgba(0, 135, 226, 0.15);
  overflow: hidden;
}

.success-timer span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 50rem;
  background: linear-gradient(90deg, var(--sb-blue), var(--sb-navy));
  animation: timerDrain 8s linear forwards;
  transform-origin: left;
}

@keyframes timerDrain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-state,
  .success-check .sc-ring,
  .success-check .sc-fill,
  .success-check .sc-tick {
    animation: none;
  }

  .success-check .sc-ring,
  .success-check .sc-tick {
    stroke-dashoffset: 0;
  }

  .success-check .sc-fill {
    transform: scale(1);
  }
}

/* --- intl-tel-input: match Bootstrap / Sendbat form styling --- */
.iti {
  width: 100%;
  --iti-path-flags-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@24.6.0/build/img/flags.webp");
  --iti-path-flags-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@24.6.0/build/img/flags@2x.webp");
  --iti-path-globe-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@24.6.0/build/img/globe.webp");
  --iti-path-globe-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@24.6.0/build/img/globe@2x.webp");
}

.iti--separate-dial-code .iti__selected-country-primary {
  border-radius: 5px 0 0 5px;
}

.iti--separate-dial-code .iti__selected-country {
  background: var(--sb-bg-soft);
  border-right: 1px solid #dde6ee;
  border-radius: 5px 0 0 5px;
  color: var(--sb-text);
}

.iti--separate-dial-code .iti__selected-dial-code {
  font-size: 0.9rem;
}

.iti__dropdown-content {
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 83, 124, 0.14);
}

.iti__search-input {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
}

.iti__country-list .iti__country {
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
}
.iti__country-list .iti__country:hover {
  background: var(--sb-bg-soft);
}

/* keep Bootstrap's red border visible inside the iti wrapper */
.was-validated .iti .form-control:invalid,
.iti .form-control.is-invalid {
  border-color: var(--bs-form-invalid-border-color);
}

/* ================= PHONE MOCKUP ================= */
.phone-wrap {
  max-width: 360px;
  filter: drop-shadow(0 24px 48px rgba(24, 83, 124, 0.22));
}

.phone {
  background: #0e1620;
  border-radius: 38px;
  padding: 12px;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #0e1620;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-header {
  background: #f7f9fb;
  border-radius: 26px 26px 0 0;
  padding: 2rem 1.1rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--sb-border);
}

.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sb-blue), var(--sb-navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phone-contact {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sb-navy);
}
.phone-status {
  font-size: 0.72rem;
  color: var(--sb-muted);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  margin-right: 4px;
}

.phone-screen {
  background: #fff;
  height: 430px;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
  /* slim overlay-style scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 83, 124, 0.16) transparent;
}

/* slim overlay-style scrollbar (Chrome / Edge / Safari) */
.phone-screen::-webkit-scrollbar {
  width: 4px;
}

.phone-screen::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.phone-screen::-webkit-scrollbar-track {
  background: transparent;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 135, 226, 0.25), rgba(24, 83, 124, 0.3));
  border-radius: 50rem;
}

.phone-screen:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sb-blue), var(--sb-navy));
}

/* same treatment for the country dropdown list */
.iti__country-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 83, 124, 0.16) transparent;
}

.iti__country-list::-webkit-scrollbar {
  width: 4px;
}

.iti__country-list::-webkit-scrollbar-button {
  display: none;
}

.iti__country-list::-webkit-scrollbar-track {
  background: transparent;
}

.iti__country-list::-webkit-scrollbar-thumb {
  background: rgba(24, 83, 124, 0.25);
  border-radius: 50rem;
}

.phone-hint {
  margin: auto;
  color: var(--sb-muted);
  font-size: 0.85rem;
}

.phone-hint i {
  color: var(--sb-blue);
  display: block;
}

.phone-inputbar {
  background: #f7f9fb;
  border-radius: 0 0 26px 26px;
  border-top: 1px solid var(--sb-border);
  padding: 0.7rem 1.1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sb-muted);
  font-size: 0.85rem;
}

.phone-inputbar i {
  color: var(--sb-blue);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* the guest "typing" a reply into the input bar */
.phone-inputbar span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.phone-inputbar span.typing {
  color: var(--sb-text);
}

.phone-inputbar span.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--sb-blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: caretBlink 0.9s steps(1) infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.phone-inputbar i.send-pop {
  animation: sendPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sendPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(8deg); }
  100% { transform: scale(1); }
}

/* --- SMS bubbles --- */
.sms-bubble {
  background: #eef2f6;
  border-radius: 18px 18px 18px 5px;
  padding: 0.7rem 0.9rem;
  max-width: 88%;
  width: fit-content;
  align-self: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--sb-text);
  animation: bubbleIn 0.35s ease both;
  white-space: pre-line;
}

/* the guest's outgoing replies */
.sms-bubble.sms-out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--sb-blue), #006bb5);
  color: #fff;
  border-radius: 18px 18px 5px 18px;
  animation: bubbleInOut 0.35s ease both;
}

@keyframes bubbleInOut {
  from {
    opacity: 0;
    transform: translateY(12px) translateX(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sms-delivered {
  align-self: flex-end;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--sb-muted);
  margin-top: -0.35rem;
  padding-right: 0.35rem;
  animation: bubbleIn 0.3s ease both;
}

.sms-bubble .sms-sender {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--sb-blue);
  margin-bottom: 0.2rem;
}

.sms-bubble.sms-kore {
  background: rgba(0, 135, 226, 0.1);
}
.sms-bubble a {
  color: var(--sb-blue);
  font-weight: 600;
  word-break: break-all;
}

.sms-time {
  font-size: 0.65rem;
  color: var(--sb-muted);
  text-align: center;
  animation: bubbleIn 0.35s ease both;
}

/* typing indicator */
.sms-typing {
  display: inline-flex;
  gap: 4px;
  background: #eef2f6;
  border-radius: 18px 18px 18px 5px;
  padding: 0.8rem 0.95rem;
  width: fit-content;
  animation: bubbleIn 0.25s ease both;
}

.sms-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sb-muted);
  animation: typingDot 1.1s infinite ease-in-out;
}

.sms-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.sms-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingDot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================= TIMELINE / MESSAGE CARDS ================= */
.section-title {
  letter-spacing: -0.01em;
}

.msg-card {
  border-radius: 14px;
  border: 1px solid var(--sb-border) !important;
  box-shadow: 0 4px 18px rgba(24, 83, 124, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.msg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(24, 83, 124, 0.12);
}

.msg-card-kore {
  border-color: rgba(0, 135, 226, 0.35) !important;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sb-bg-soft);
  color: var(--sb-navy);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-num-kore {
  background: var(--sb-blue);
  color: #fff;
}

.timing-badge {
  background: rgba(0, 135, 226, 0.1);
  color: var(--sb-blue);
  font-weight: 600;
  font-size: 0.7rem;
}

/* align the SMS preview boxes on the same line across all four cards */
.msg-card .card-body {
  display: flex;
  flex-direction: column;
}

/* reserve two lines for every description so all preview boxes start level */
@media (min-width: 768px) {
  .msg-card .card-body > p {
    min-height: 3em;
  }
}

.msg-sample {
  background: var(--sb-bg-soft);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--sb-text);
  margin-top: auto;
  flex-grow: 1;
}

.msg-sample strong {
  color: var(--sb-navy);
}

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= STATS ================= */
.section-stats {
  background:
    radial-gradient(
      700px 300px at 15% 0%,
      rgba(0, 135, 226, 0.08),
      transparent 60%
    ),
    var(--sb-bg-soft);
  border-top: 1px solid var(--sb-border);
  border-bottom: 1px solid var(--sb-border);
}

.stat-value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--sb-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-value .counter {
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--sb-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

/* ================= HOW IT WORKS ================= */
.how-steps {
  position: relative;
}

.how-step {
  position: relative;
  padding-top: 0.5rem;
}

.how-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(0, 135, 226, 0.1),
    rgba(24, 83, 124, 0.08)
  );
  border: 1px solid rgba(0, 135, 226, 0.18);
  color: var(--sb-blue);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.how-step:hover .how-icon {
  transform: translateY(-6px) rotate(-3deg);
  box-shadow: 0 14px 28px rgba(0, 135, 226, 0.18);
}

.how-num {
  position: absolute;
  top: -0.4rem;
  left: 50%;
  transform: translateX(28px);
  background: var(--sb-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 50rem;
  letter-spacing: 0.06em;
}

/* dotted connector between steps (desktop only) */
@media (min-width: 768px) {
  .how-step::after {
    content: "";
    position: absolute;
    top: 42px;
    left: calc(50% + 56px);
    width: calc(100% - 112px);
    border-top: 2px dashed rgba(0, 135, 226, 0.35);
  }

  .how-steps > div:last-child .how-step::after {
    display: none;
  }
}

/* ================= FEATURES ================= */
.section-features {
  background: #fff;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sb-blue), var(--sb-navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(24, 83, 124, 0.12);
  border-color: rgba(0, 135, 226, 0.35);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 135, 226, 0.1);
  color: var(--sb-blue);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--sb-blue);
  color: #fff;
  transform: scale(1.08) rotate(-5deg);
}

/* ================= TRUST MARQUEE ================= */
.section-marquee {
  background: var(--sb-bg-soft);
  border-top: 1px solid var(--sb-border);
  border-bottom: 1px solid var(--sb-border);
  overflow: hidden;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
}

.marquee-group img {
  height: 34px;
  width: auto;
  opacity: 0.75;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.marquee-group img:hover {
  opacity: 1;
  transform: scale(1.06);
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ================= FAQ ================= */
.section-faq {
  background: #fff;
}

.section-faq .accordion-item {
  border: 1px solid #dde6ee !important;
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.section-faq .accordion-button {
  font-weight: 600;
  color: var(--sb-navy);
  background: #fff;
  padding: 1.05rem 1.25rem;
  box-shadow: none;
}

.section-faq .accordion-button:not(.collapsed) {
  background: var(--sb-bg-soft);
  color: var(--sb-blue);
}

.section-faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 135, 226, 0.15);
}

.section-faq .accordion-body {
  color: var(--sb-text);
  font-size: 0.92rem;
}

/* ================= CTA ================= */
.section-cta {
  background: linear-gradient(
    135deg,
    var(--sb-navy) 0%,
    #0f3a59 55%,
    #0c2e47 100%
  );
}

.section-cta img {
  filter: brightness(0) invert(1);
}

.cta-sub {
  color: rgba(255, 255, 255, 0.8);
}

.section-cta .btn-light {
  color: var(--sb-navy);
  border-radius: 8px;
}
.section-cta .btn-outline-light {
  border-radius: 8px;
}
.section-cta .btn-lg {
  font-size: 16px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #102a3e;
  color: #b9c6d2;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: #b9c6d2;
  max-width: 420px;
}

.footer-fineprint {
  color: #6f8294;
  max-width: 420px;
}

.footer-heading {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #b9c6d2;
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.footer-links a:hover {
  color: #4fb3f0;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa1b3;
}

/* ================= SCROLL TO TOP ================= */
.scroll-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sb-blue);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1060;
  box-shadow: 0 8px 24px rgba(24, 83, 124, 0.22);
  opacity: 0;
  transform: translateY(18px) scale(0.6);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease,
    color 0.25s ease;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--sb-blue);
  color: #fff;
}

.scroll-top:hover .bi-arrow-up {
  animation: arrowNudge 0.8s ease infinite;
}

@keyframes arrowNudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.scroll-top .bi-arrow-up {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.scroll-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top-ring circle {
  fill: none;
  stroke-width: 3;
}

.scroll-top-ring .ring-bg {
  stroke: rgba(0, 135, 226, 0.15);
}

.scroll-top-ring .ring-progress {
  stroke: var(--sb-blue);
  stroke-linecap: round;
  stroke-dasharray: 131.95; /* 2 * PI * 21 */
  stroke-dashoffset: 131.95;
  transition: stroke 0.25s ease;
}

.scroll-top:hover .ring-progress {
  stroke: #fff;
}
.scroll-top:hover .ring-bg {
  stroke: rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .scroll-top:hover .bi-arrow-up {
    animation: none;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991.98px) {
  .hero {
    padding: 7.5rem 0 3.5rem;
  }
  .phone-screen {
    height: 380px;
  }
}
