/* FaraPay home — scoped responsive glass design with light and dark themes. */

html[data-theme="light"] {
  --bg: #f7f6fd;
  --surface-1: #ffffff;
  --surface-2: #f1effb;
  --text: #15172b;
  --text-muted: #6f7185;
  --border: rgb(89 76 168 / 0.10);
  --border-strong: rgb(89 76 168 / 0.18);
  --accent-200: #a79cff;
  --accent-300: #8372ff;
  --accent-400: #6e5cf5;
  --accent-500: #5745ec;
  --accent: #6e5cf5;
  --accent-fg: #ffffff;
  --hairline: inset 0 1px 0 rgb(255 255 255 / 0.85);
  --home-glass: rgb(255 255 255 / 0.62);
  --home-glass-strong: rgb(255 255 255 / 0.82);
  --home-glass-solid: #ffffff;
  --home-card: rgb(255 255 255 / 0.72);
  --home-shadow: 0 22px 70px rgb(72 53 155 / 0.10);
  --home-shadow-soft: 0 12px 36px rgb(72 53 155 / 0.08);
  --home-nav: rgb(248 247 253 / 0.72);
  --home-blob-a: rgb(116 88 249 / 0.18);
  --home-blob-b: rgb(77 195 255 / 0.16);
  --home-blob-c: rgb(255 117 190 / 0.10);
}

html[data-theme="dark"] {
  --bg: #090b18;
  --surface-1: #111427;
  --surface-2: #191d35;
  --text: #f7f8ff;
  --text-muted: #aeb3cb;
  --border: rgb(255 255 255 / 0.09);
  --border-strong: rgb(255 255 255 / 0.16);
  --accent-200: #b1a7ff;
  --accent-300: #9485ff;
  --accent-400: #7864fb;
  --accent-500: #604cff;
  --accent: #8a78ff;
  --accent-fg: #ffffff;
  --hairline: inset 0 1px 0 rgb(255 255 255 / 0.07);
  --home-glass: rgb(24 27 51 / 0.58);
  --home-glass-strong: rgb(25 29 54 / 0.80);
  --home-glass-solid: #171a30;
  --home-card: rgb(24 28 53 / 0.66);
  --home-shadow: 0 24px 80px rgb(0 0 0 / 0.34);
  --home-shadow-soft: 0 12px 38px rgb(0 0 0 / 0.26);
  --home-nav: rgb(9 11 24 / 0.68);
  --home-blob-a: rgb(113 82 255 / 0.24);
  --home-blob-b: rgb(51 149 255 / 0.16);
  --home-blob-c: rgb(240 73 164 / 0.12);
}

.home-page {
  --container: 1220px;
  min-block-size: 100svh;
  padding-block-end: 0;
  background:
    radial-gradient(circle at 84% 9%, var(--home-blob-a), transparent 23rem),
    radial-gradient(circle at 10% 28%, var(--home-blob-b), transparent 28rem),
    radial-gradient(circle at 82% 67%, var(--home-blob-c), transparent 25rem),
    var(--bg);
  color: var(--text);
  transition: background-color 250ms ease, color 250ms ease;
}

.home-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgb(120 105 205 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(120 105 205 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.home-page .glass {
  background: var(--home-glass-solid);
  border: 1px solid var(--border);
  box-shadow: var(--home-shadow-soft), var(--hairline);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .home-page .glass {
    background: var(--home-glass);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
  }
}

.home-page .container { inline-size: min(100% - 40px, var(--container)); }
.home-page .container-narrow { max-inline-size: 820px; }
.home-page section { scroll-margin-block-start: 94px; }

/* Header */
.home-page .home-nav {
  background: var(--home-nav);
  border: 0;
  border-block-end: 1px solid var(--border);
  box-shadow: 0 8px 35px rgb(28 20 85 / 0.05);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.home-page .nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  min-block-size: 78px;
  padding-block: 10px;
}

.home-page .nav.scrolled .nav-inner { padding-block: 7px; }
.home-page .home-brand { gap: 10px; margin-inline-end: 0; }

.home-page .brand-mark {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 15px;
  box-shadow: 0 9px 24px rgb(91 64 225 / 0.22);
}

.home-page .brand-mark img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.home-page .brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.08;
}

.home-page .brand-copy strong { font-size: 1.12rem; font-weight: 900; }
.home-page .brand-copy small { color: var(--text-muted); font-size: 0.69rem; font-weight: 700; }

.home-page .nav-links {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 3px;
}

.home-page .nav-links a { color: var(--text-muted); font-weight: 700; }
.home-page .nav-links a:hover { color: var(--text); background: var(--home-card); }
.home-page .nav-links a.active { color: var(--accent-400); background: rgb(111 92 247 / 0.09); }

.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.home-page .nav-iconbtn {
  inline-size: 44px;
  block-size: 44px;
  border-color: var(--border-strong);
  background: var(--home-card);
  color: var(--text);
}

.home-page .nav-iconbtn:hover { border-color: rgb(111 92 247 / 0.35); background: var(--home-glass-strong); }
.home-page .cart-badge { background: #ff4f87; color: #fff; }

.home-page .nav-login {
  min-block-size: 44px;
  padding: 9px 17px;
  color: #fff;
  box-shadow: 0 10px 26px rgb(101 78 239 / 0.28);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 44px;
  padding: 5px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--home-card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: block;
  inline-size: 44px;
  block-size: 24px;
  direction: ltr;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd36c, #fff0b5);
  box-shadow: inset 0 0 0 1px rgb(46 36 100 / 0.08);
  transition: background 220ms ease;
}

.theme-toggle-track::before,
.theme-toggle-track::after {
  position: absolute;
  inset-block-start: 50%;
  z-index: 1;
  translate: 0 -50%;
  font-size: 10px;
  line-height: 1;
}

.theme-toggle-track::before { inset-inline-start: 6px; content: "☀"; color: #9b6a00; }
.theme-toggle-track::after { inset-inline-end: 6px; content: "☾"; color: #d8d4ff; }

.theme-toggle-thumb {
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  z-index: 2;
  inline-size: 18px;
  block-size: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(29 21 74 / 0.28);
  transition: transform 220ms var(--ease-out), background 220ms ease;
}

html[data-theme="dark"] .theme-toggle-track { background: linear-gradient(135deg, #242849, #11152e); }
html[data-theme="dark"] .theme-toggle-thumb { transform: translateX(20px); background: #9584ff; }

/* Hero */
.home-page .hero {
  position: relative;
  isolation: isolate;
  min-block-size: auto;
  padding-block: 144px 76px;
  overflow: hidden;
  background: transparent;
}

.home-page .hero::before {
  position: absolute;
  inset: 10% 0 auto;
  z-index: -2;
  content: "";
  block-size: 70%;
  background: radial-gradient(ellipse at center, rgb(116 91 247 / 0.09), transparent 68%);
  pointer-events: none;
}

.home-page .hero::after { content: none; }

@media (min-width: 1000px) {
  html[data-theme="dark"] .home-page .hero::after {
    position: absolute;
    inset: 86px 0 0;
    z-index: -3;
    content: "";
    opacity: 0.16;
    background: url("/images/farapay-hero-glass-bg.webp") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
    pointer-events: none;
  }
}

.hero-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-atmosphere span { position: absolute; border-radius: 50%; filter: blur(5px); }
.hero-atmosphere span:nth-child(1) { inline-size: 280px; block-size: 280px; inset-block-start: 20%; inset-inline-end: -100px; background: var(--home-blob-a); }
.hero-atmosphere span:nth-child(2) { inline-size: 360px; block-size: 360px; inset-block-end: -100px; inset-inline-start: -90px; background: var(--home-blob-b); }
.hero-atmosphere span:nth-child(3) { inline-size: 190px; block-size: 190px; inset-block-start: 22%; inset-inline-start: 45%; background: var(--home-blob-c); }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.hero-copy { position: relative; z-index: 2; max-inline-size: 680px; }

.home-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 18px;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--accent-400);
  font-size: 0.87rem;
  font-weight: 800;
}

.badge-spark { display: grid; place-items: center; inline-size: 22px; block-size: 22px; color: #fff; border-radius: 8px; background: linear-gradient(135deg, #8c78ff, #5745ec); }

.home-page .hero-title {
  max-inline-size: 15ch;
  font-size: clamp(2.8rem, 5.2vw, 5.25rem);
  line-height: 1.2;
  font-weight: 950;
  color: var(--text);
}

.home-page .grad-text {
  background: linear-gradient(110deg, #8e78ff 3%, #5e4cf2 52%, #7a6cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-page .hero-sub {
  max-inline-size: 58ch;
  margin-block-start: 22px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 2;
}

.home-page .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.home-page .btn { border: 1px solid transparent; }
.home-page .btn-primary { background: linear-gradient(135deg, #7b65ff, #5745ec); color: #fff; box-shadow: 0 14px 34px rgb(97 73 238 / 0.32), var(--hairline); }
.home-page .btn-primary:hover { box-shadow: 0 17px 42px rgb(97 73 238 / 0.42), var(--hairline); }
.home-page .btn-ghost { border-color: var(--border-strong); background: var(--home-card); color: var(--text); }
.home-page .btn-ghost:hover { background: var(--home-glass-strong); }
.grid-icon { font-size: 1.05rem; color: var(--accent-400); }

/* CSS-built phone, card and service orbit */
.hero-visual {
  position: relative;
  min-inline-size: 0;
  inline-size: min(100%, 560px);
  block-size: 530px;
  justify-self: center;
  perspective: 1100px;
}

.visual-globe {
  position: absolute;
  inset-block-start: 48%;
  left: 50%;
  right: auto;
  inline-size: 390px;
  block-size: 390px;
  translate: -50% -50%;
  border: 1px solid rgb(117 93 247 / 0.20);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgb(120 104 239 / 0.12) 49%, rgb(120 104 239 / 0.12) 51%, transparent 52%),
    linear-gradient(transparent 48%, rgb(120 104 239 / 0.12) 49%, rgb(120 104 239 / 0.12) 51%, transparent 52%),
    radial-gradient(circle at 35% 28%, rgb(255 255 255 / 0.76), rgb(177 199 255 / 0.28) 28%, rgb(110 89 245 / 0.17) 59%, transparent 72%);
  box-shadow: inset 0 0 70px rgb(111 92 247 / 0.13), 0 30px 80px rgb(70 46 180 / 0.14);
}

html[data-theme="dark"] .visual-globe {
  background:
    linear-gradient(90deg, transparent 48%, rgb(166 155 255 / 0.10) 49%, rgb(166 155 255 / 0.10) 51%, transparent 52%),
    linear-gradient(transparent 48%, rgb(166 155 255 / 0.10) 49%, rgb(166 155 255 / 0.10) 51%, transparent 52%),
    radial-gradient(circle at 35% 28%, rgb(129 111 255 / 0.26), rgb(52 64 135 / 0.14) 45%, transparent 72%);
}

.visual-globe::before,
.visual-globe::after {
  position: absolute;
  inset: 16% -2%;
  content: "";
  border: 1px solid rgb(118 95 244 / 0.16);
  border-radius: 50%;
}

.visual-globe::after { inset: -2% 27%; }

.orbit {
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  right: auto;
  border: 2px solid rgb(118 96 245 / 0.20);
  border-inline-start-color: transparent;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one { inline-size: 510px; block-size: 240px; transform: translate(-50%, -50%) rotate(-17deg); }
.orbit-two { inline-size: 460px; block-size: 170px; transform: translate(-50%, -50%) rotate(50deg); opacity: 0.7; }

.glass-phone {
  position: absolute;
  inset-block-start: 44px;
  left: 50%;
  right: auto;
  z-index: 4;
  inline-size: 226px;
  block-size: 426px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 38px;
  background: linear-gradient(155deg, rgb(255 255 255 / 0.84), rgb(225 225 255 / 0.46));
  box-shadow: -22px 32px 60px rgb(67 46 175 / 0.25), inset 0 1px 1px rgb(255 255 255 / 0.9);
  transform: translateX(-50%) rotate(-7deg);
}

html[data-theme="dark"] .glass-phone { border-color: rgb(255 255 255 / 0.18); background: linear-gradient(155deg, rgb(45 49 86 / 0.86), rgb(20 23 45 / 0.72)); box-shadow: -20px 32px 65px rgb(0 0 0 / 0.38), inset 0 1px 1px rgb(255 255 255 / 0.12); }

.glass-phone::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 20% 10%, rgb(255 255 255 / 0.82), transparent 26%), linear-gradient(145deg, transparent 35%, rgb(112 89 247 / 0.13)); pointer-events: none; }
.phone-speaker { position: relative; z-index: 2; display: block; inline-size: 48px; block-size: 6px; margin-inline: auto; border-radius: 99px; background: rgb(28 29 50 / 0.22); }

.phone-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block-start: 54px;
  color: var(--text);
  font-size: 1.1rem;
}

.phone-brand img { inline-size: 58px; block-size: 58px; border-radius: 18px; box-shadow: 0 12px 25px rgb(81 57 210 / 0.25); }

.phone-card {
  position: absolute;
  inset-inline: 17px;
  inset-block-end: 20px;
  z-index: 2;
  min-block-size: 142px;
  padding: 17px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 19px;
  background: linear-gradient(135deg, #8c77ff 0%, #6753ed 48%, #4836cf 100%);
  color: #fff;
  box-shadow: 0 18px 38px rgb(72 49 192 / 0.34), inset 0 1px 1px rgb(255 255 255 / 0.28);
  direction: ltr;
}

.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; font-weight: 800; opacity: 0.9; }
.card-chip { inline-size: 28px; block-size: 21px; border-radius: 6px; background: linear-gradient(135deg, #fff1a7, #c9a652); box-shadow: inset 0 0 0 1px rgb(86 64 20 / 0.18); }
.card-number { display: block; margin-block: 19px 14px; font-size: 0.77rem; font-weight: 700; letter-spacing: 0.05em; }
.card-bottom strong { display: grid; place-items: center; inline-size: 24px; block-size: 18px; border-radius: 7px; background: rgb(255 255 255 / 0.16); font-style: italic; }

.float-app {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  inline-size: 66px;
  block-size: 66px;
  padding: 15px;
  border: 1px solid rgb(255 255 255 / 0.68);
  border-radius: 20px;
  background: var(--home-glass-strong);
  box-shadow: 0 17px 35px rgb(50 35 129 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.75);
  animation: app-float 5s ease-in-out infinite;
}

.float-app img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.float-chat { inset-block-start: 91px; inset-inline-end: 42px; background: #10a37f; border-color: rgb(255 255 255 / 0.48); }
.float-chat img { filter: brightness(0) invert(1); }
.float-netflix { inset-block-start: 209px; inset-inline-end: 4px; background: #141414; animation-delay: -1.1s; }
.float-spotify { inset-block-end: 58px; inset-inline-end: 54px; background: #111; animation-delay: -2.1s; }
.float-youtube { inset-block-end: 16px; inset-inline-start: 80px; background: #fff; animation-delay: -3.3s; }

@keyframes app-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 10px;
  overflow: hidden;
  border-radius: 25px;
  list-style: none;
}

.trust-strip li { display: flex; align-items: center; justify-content: center; gap: 12px; min-block-size: 76px; padding: 10px 18px; }
.trust-strip li + li { border-inline-start: 1px solid var(--border); }
.trust-strip li > span:last-child { display: grid; line-height: 1.5; }
.trust-strip strong { font-size: 0.98rem; }
.trust-strip small { color: var(--text-muted); font-size: 0.74rem; }
.trust-icon { display: grid; place-items: center; inline-size: 38px; block-size: 38px; border-radius: 14px; background: rgb(111 92 247 / 0.10); color: var(--accent-400); font-size: 1.35rem; font-weight: 900; }

/* Shared sections */
.home-section { padding-block: clamp(70px, 8vw, 108px); }
.section-heading { max-inline-size: 720px; margin-inline: auto; margin-block-end: 34px; text-align: center; }
.section-heading .eyebrow { margin-block-end: 5px; color: var(--accent-400); }
.section-heading .section-title { margin-block-end: 10px; font-size: clamp(1.8rem, 3vw, 2.75rem); }
.section-heading .section-sub { margin-inline: auto; color: var(--text-muted); line-height: 1.9; }
.section-symbol { display: grid; place-items: center; inline-size: 34px; block-size: 34px; margin-inline: auto; margin-block-end: 8px; border-radius: 12px; background: rgb(111 92 247 / 0.10); color: var(--accent-400); font-size: 1.3rem; font-weight: 900; }

/* Services */
.services-shell { padding: clamp(24px, 4vw, 48px); border-radius: 34px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-block-size: 330px;
  padding: 30px 25px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--home-card);
  box-shadow: 0 14px 40px rgb(58 43 127 / 0.055), inset 0 1px 0 rgb(255 255 255 / 0.45);
  text-align: center;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease, translate 180ms ease;
}

.service-card::before { position: absolute; inset: -35% 15% auto; content: ""; block-size: 170px; border-radius: 50%; background: color-mix(in srgb, var(--service) 18%, transparent); filter: blur(30px); opacity: 0.55; }
.service-card:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--service) 38%, transparent); box-shadow: 0 22px 55px rgb(58 43 127 / 0.11); }

.service-icon { position: relative; display: grid; place-items: center; inline-size: 72px; block-size: 72px; margin-block-end: 19px; border-radius: 24px; background: color-mix(in srgb, var(--service) 14%, var(--home-card)); color: var(--service); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5); }
.service-icon svg { inline-size: 39px; block-size: 39px; }
.service-card h3 { position: relative; margin-block-end: 10px; font-size: 1.15rem; }
.service-card p { position: relative; flex: 1; color: var(--text-muted); font-size: 0.86rem; line-height: 1.95; }
.service-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-block-start: 18px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent-400); font-size: 0.78rem; font-weight: 800; }

.popular-services { margin-block-start: 28px; }
.popular-title { display: flex; align-items: center; gap: 8px; margin-block-end: 13px; color: var(--accent-400); }
.popular-title span { display: grid; place-items: center; inline-size: 29px; block-size: 29px; border-radius: 10px; background: rgb(111 92 247 / 0.09); }
.service-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-block-size: 48px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--home-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, translate 160ms ease;
}

.service-chip:hover { translate: 0 -2px; border-color: rgb(111 92 247 / 0.30); color: var(--text); }
.chip-logo { display: grid; place-items: center; inline-size: 30px; block-size: 30px; padding: 6px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, var(--surface-1)); }
.chip-logo .p-logo { inline-size: 100%; block-size: 100%; }
.service-chip-more { color: var(--accent-400); }

/* Product rail */
.products-section { padding-block-start: 12px; }
.section-heading-inline { display: flex; align-items: end; justify-content: space-between; max-inline-size: none; gap: 24px; text-align: start; }
.section-heading-inline .section-sub { margin-inline: 0; }
.products-help { flex: none; }
.home-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.home-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-block-size: 286px;
  padding: 23px;
  overflow: hidden;
  border-radius: 25px;
  transition: translate 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-product-card::after { position: absolute; inset: auto -35px -60px auto; content: ""; inline-size: 150px; block-size: 150px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 15%, transparent); filter: blur(18px); pointer-events: none; }
.home-product-card:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--brand) 28%, transparent); box-shadow: var(--home-shadow); }
.product-card-top { position: relative; z-index: 1; display: flex; align-items: start; justify-content: space-between; }
.product-logo { display: grid; place-items: center; inline-size: 55px; block-size: 55px; padding: 13px; border: 1px solid color-mix(in srgb, var(--brand) 17%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--brand) 11%, var(--surface-1)); }
.product-logo .p-logo { inline-size: 100%; block-size: 100%; }
.product-badge { padding: 5px 9px; border-radius: 999px; background: rgb(111 92 247 / 0.10); color: var(--accent-400); font-size: 0.68rem; font-weight: 850; }
.home-product-card h3 { position: relative; z-index: 1; margin-block: 17px 3px; font-size: 1.08rem; }
.home-product-card > p { position: relative; z-index: 1; color: var(--text-muted); font-size: 0.8rem; }
.product-price { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 5px; margin-block: 16px; }
.product-price small, .product-price span { color: var(--text-muted); font-size: 0.71rem; }
.product-price strong { color: var(--accent-400); font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.product-action { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-block-start: auto; padding-block-start: 14px; border-block-start: 1px solid var(--border); color: var(--text); font-size: 0.8rem; font-weight: 800; }
.product-action span { color: var(--accent-400); font-size: 1.1rem; }

/* Security and stats */
.security-section { padding-block-start: 14px; }
.security-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: center;
  min-block-size: 230px;
  padding: clamp(28px, 5vw, 55px);
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(115deg, rgb(205 190 255 / 0.68), rgb(190 223 255 / 0.62));
}

html[data-theme="dark"] .security-banner { background: linear-gradient(115deg, rgb(82 62 167 / 0.55), rgb(42 81 130 / 0.42)); }
.security-banner::before { position: absolute; inset: -110px auto auto -90px; content: ""; inline-size: 270px; block-size: 270px; border-radius: 50%; background: rgb(255 255 255 / 0.24); filter: blur(12px); }
.security-copy { position: relative; z-index: 2; max-inline-size: 660px; }
.security-kicker { display: inline-block; margin-block-end: 8px; color: #6550e3; font-size: 0.79rem; font-weight: 900; }
html[data-theme="dark"] .security-kicker { color: #c2b9ff; }
.security-copy h2 { margin-block-end: 8px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.security-copy p { color: color-mix(in srgb, var(--text) 65%, transparent); line-height: 1.95; }
.security-art { position: relative; z-index: 2; display: grid; place-items: center; }
.shield-ring { display: grid; place-items: center; inline-size: 148px; block-size: 148px; border: 1px solid rgb(255 255 255 / 0.62); border-radius: 50%; background: rgb(255 255 255 / 0.26); box-shadow: 0 20px 45px rgb(69 50 162 / 0.20), inset 0 0 0 14px rgb(255 255 255 / 0.12); }
.shield { display: grid; place-items: center; inline-size: 88px; block-size: 101px; padding-block-end: 10px; border: 1px solid rgb(255 255 255 / 0.7); border-radius: 42px 42px 50px 50px / 34px 34px 62px 62px; background: linear-gradient(155deg, #8d77ff, #4f39dd); color: #fff; box-shadow: 0 14px 30px rgb(68 45 183 / 0.35), inset 0 1px 2px rgb(255 255 255 / 0.45); font-size: 2rem; font-weight: 900; transform: perspective(300px) rotateY(-10deg); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-block-start: 18px; list-style: none; }
.stat-card { display: flex; align-items: center; gap: 12px; min-block-size: 103px; padding: 19px; border-radius: 22px; }
.stat-card > div { display: grid; line-height: 1.45; }
.stat-card strong { color: var(--accent-400); font-size: 1.08rem; }
.stat-card small { color: var(--text-muted); font-size: 0.73rem; }
.stat-icon { display: grid; place-items: center; flex: none; inline-size: 42px; block-size: 42px; border-radius: 15px; font-size: 1.2rem; font-weight: 900; }
.stat-icon.purple { background: rgb(111 92 247 / 0.11); color: #705cf7; }
.stat-icon.orange { background: rgb(255 167 61 / 0.13); color: #f49a2f; }
.stat-icon.green { background: rgb(35 201 154 / 0.13); color: #1ebc8d; }
.stat-icon.violet { background: rgb(140 92 247 / 0.12); color: #8c5cf7; }

/* Steps */
.how-section { padding-block-start: 14px; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.home-step { position: relative; min-block-size: 230px; padding: 28px; overflow: hidden; border-radius: 26px; }
.home-step::after { position: absolute; inset-block-start: -34px; inset-inline-start: -25px; content: attr(data-step); inline-size: 120px; block-size: 120px; border-radius: 50%; background: rgb(111 92 247 / 0.07); }
.home-step > span { display: grid; place-items: center; inline-size: 47px; block-size: 47px; margin-block-end: 22px; border-radius: 17px; background: linear-gradient(135deg, #846fff, #5d49ec); color: #fff; box-shadow: 0 10px 25px rgb(95 73 235 / 0.28); font-weight: 900; }
.home-step h3 { margin-block-end: 8px; font-size: 1.08rem; }
.home-step p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.95; }

/* FAQ */
.faq-section { padding-block-start: 12px; }
.home-page .faq-list { padding: 9px 23px; border-radius: 28px; }
.home-page .faq-item { border-block-end-color: var(--border); }
.home-page .faq-item:last-child { border-block-end: 0; }
.home-page .faq-item summary { padding-block: 20px; color: var(--text); font-size: 0.97rem; }
.faq-plus { display: grid; place-items: center; flex: none; inline-size: 29px; block-size: 29px; border-radius: 11px; background: rgb(111 92 247 / 0.09); color: var(--accent-400); font-size: 1.15rem; transition: rotate 220ms ease; }
.faq-item[open] .faq-plus { rotate: 45deg; }
.home-page .faq-body p { color: var(--text-muted); }

/* Final CTA and footer */
.final-section { padding-block-start: 20px; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 52px); overflow: hidden; border-radius: 32px; background: linear-gradient(120deg, rgb(114 91 248 / 0.12), var(--home-glass)); }
.final-cta > div:first-child { max-inline-size: 620px; }
.final-cta > div:first-child > span { color: var(--accent-400); font-size: 0.8rem; font-weight: 900; }
.final-cta h2 { margin-block: 7px; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.final-cta p { color: var(--text-muted); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.home-page .home-footer { padding-block: 55px 36px; border-block-start: 1px solid var(--border); background: rgb(111 92 247 / 0.025); }
.footer-wordmark { display: flex; align-items: center; gap: 10px; }
.footer-wordmark img { inline-size: 40px; block-size: 40px; border-radius: 13px; }
.footer-wordmark span { display: grid; line-height: 1.1; }
.footer-wordmark strong { font-size: 1.02rem; }
.footer-wordmark small { color: var(--text-muted); font-size: 0.64rem; }
.home-page .footer-brand p, .home-page .footer-meta, .home-page .footer-links a { color: var(--text-muted); }
.home-page .footer-links a:hover { color: var(--accent-400); }

/* Mobile dock overrides the legacy shared rules and is hidden on desktop. */
.home-page .fp-bottom-nav { display: none; }

@media (max-width: 1050px) {
  .home-page .nav-links { display: none; }
  .home-page .nav-inner { grid-template-columns: auto 1fr; }
  .home-page .nav-actions { justify-self: end; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr); gap: 28px; }
  .hero-visual { inline-size: 480px; transform: scale(0.92); transform-origin: center; }
  .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .home-page { padding-block-end: calc(7rem + env(safe-area-inset-bottom)); }
  .home-page .hero { padding-block: 124px 46px; }
  .hero-layout { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { max-inline-size: 660px; margin-inline: auto; text-align: center; }
  .home-page .hero-title { max-inline-size: none; font-size: clamp(2.55rem, 9vw, 4.4rem); }
  .home-page .hero-sub { margin-inline: auto; }
  .home-page .hero-ctas { justify-content: center; }
  .hero-visual { inline-size: min(100%, 520px); block-size: 480px; transform: scale(0.94); }
  .service-grid { display: flex; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; }
  .security-banner { grid-template-columns: 1fr 190px; }
  .home-steps { grid-template-columns: 1fr; }
  .home-step { min-block-size: 0; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .final-actions { justify-content: flex-start; }

  .home-page .fp-bottom-nav {
    position: fixed;
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: 50%;
    right: auto;
    inset-block-end: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    inline-size: min(calc(100% - 22px), 520px);
    min-block-size: 72px;
    padding: 7px 8px;
    border-radius: 27px;
    transform: translateX(-50%);
  }

  .home-page .fp-nav-item,
  .home-page .fp-nav-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    inline-size: auto;
    margin: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .fp-nav-item { block-size: 55px; padding: 4px; color: var(--text-muted); font-size: 0.61rem; }
  .home-page .fp-nav-item:hover { color: var(--accent-400); background: rgb(111 92 247 / 0.08); }
  .home-page .fp-nav-home { justify-self: center; inline-size: 72px; block-size: 72px; margin-block-start: -28px; border: 6px solid var(--bg); border-radius: 26px; background: linear-gradient(145deg, #8b75ff, #5946e9); color: #fff; box-shadow: 0 13px 32px rgb(94 70 232 / 0.40); font-size: 0.67rem; }
  .home-page .fp-nav-item svg { inline-size: 21px; block-size: 21px; }
  .home-page .fp-nav-home svg { inline-size: 26px; block-size: 26px; }
}

@media (max-width: 640px) {
  .home-page .container { inline-size: min(100% - 28px, var(--container)); }
  .home-page .nav-inner { min-block-size: 70px; gap: 8px; }
  .home-page .brand-mark { inline-size: 42px; block-size: 42px; border-radius: 13px; }
  .home-page .brand-copy strong { font-size: 1rem; }
  .home-page .brand-copy small { font-size: 0.6rem; }
  .theme-toggle { padding: 4px; border: 0; background: transparent; }
  .theme-toggle-text { display: none; }
  .home-page .nav-iconbtn { inline-size: 40px; block-size: 40px; }
  .home-page .nav-login { min-block-size: 40px; padding: 8px 11px; }
  .home-page .nav-login svg { inline-size: 16px; }
  .home-page .hero { padding-block: 108px 34px; }
  .home-page .hero-badge { margin-block-end: 14px; font-size: 0.78rem; }
  .home-page .hero-title { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: 1.24; }
  .home-page .hero-sub { margin-block-start: 16px; font-size: 0.93rem; line-height: 1.9; }
  .home-page .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block-start: 23px; }
  .home-page .hero-ctas .btn { inline-size: 100%; padding: 12px 13px; font-size: 0.88rem; }
  .hero-visual { block-size: 410px; transform: scale(0.79); transform-origin: center top; margin-block-end: -78px; }
  .trust-strip { gap: 0; padding: 6px; border-radius: 21px; }
  .trust-strip li { flex-direction: column; gap: 4px; min-block-size: 91px; padding: 8px 4px; text-align: center; }
  .trust-strip li > span:last-child { display: block; }
  .trust-strip strong { font-size: 0.73rem; }
  .trust-strip small { display: none; }
  .trust-icon { inline-size: 32px; block-size: 32px; border-radius: 11px; font-size: 1rem; }
  .home-section { padding-block: 62px; }
  .services-shell { margin-inline: -2px; padding: 20px 16px; border-radius: 27px; }
  .section-heading { margin-block-end: 24px; }
  .section-heading .section-title { font-size: 1.65rem; }
  .section-heading .section-sub { font-size: 0.85rem; }
  .service-card { flex-basis: min(82vw, 310px); min-block-size: 310px; padding: 25px 20px 21px; }
  .service-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: inline mandatory; }
  .service-chips::-webkit-scrollbar { display: none; }
  .service-chip { flex: none; scroll-snap-align: start; }
  .products-section { padding-block-start: 0; }
  .section-heading-inline { align-items: flex-start; flex-direction: column; }
  .products-help { display: none; }
  .home-products { display: flex; gap: 13px; margin-inline: -14px; padding: 4px 14px 17px; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; }
  .home-products::-webkit-scrollbar { display: none; }
  .home-product-card { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
  .security-section { padding-block-start: 0; }
  .security-banner { grid-template-columns: 1fr; min-block-size: 390px; padding: 27px 23px; text-align: center; }
  .security-art { order: -1; margin-block-end: 18px; }
  .shield-ring { inline-size: 118px; block-size: 118px; }
  .shield { inline-size: 70px; block-size: 82px; font-size: 1.55rem; }
  .security-copy p { font-size: 0.85rem; }
  .stats-grid { gap: 10px; }
  .stat-card { min-block-size: 118px; align-items: center; flex-direction: column; justify-content: center; padding: 14px 8px; text-align: center; }
  .stat-card > div { justify-items: center; }
  .stat-card strong { font-size: 0.88rem; }
  .stat-card small { font-size: 0.66rem; }
  .home-step { padding: 24px; }
  .home-page .faq-list { padding-inline: 17px; }
  .home-page .faq-item summary { gap: 10px; font-size: 0.88rem; }
  .final-actions { inline-size: 100%; }
  .final-actions .btn { flex: 1 1 180px; }
  .home-page .footer-inner { gap: 23px; }
}

@media (max-width: 440px) {
  .home-page .brand-copy small { display: none; }
  .theme-toggle-track { inline-size: 40px; }
  html[data-theme="dark"] .theme-toggle-thumb { transform: translateX(16px); }
  .home-page .nav-login span { display: none; }
  .home-page .nav-login { inline-size: 40px; padding: 0; border-radius: 14px; }
  .home-page .hero-ctas { grid-template-columns: 1fr; }
  .hero-visual { block-size: 390px; transform: scale(0.72); margin-block-end: -105px; }
  .home-page .fp-bottom-nav { inline-size: calc(100% - 14px); padding-inline: 4px; }
  .home-page .fp-nav-item { font-size: 0.55rem; }
  .home-page .fp-nav-home { inline-size: 68px; block-size: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .float-app { animation: none; }
  .theme-toggle-thumb,
  .faq-plus,
  .service-card,
  .home-product-card { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .home-page .glass,
  .home-page .home-nav { background: var(--home-glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
