/* ==========================================================================
   Titan Pay — shared stylesheet
   1 tokens · 2 base · 3 motion · 4 topbar · 5 buttons · 6 hero · 7 device
   8 sections · 9 modules · 10 showcase · 11 steps · 12 cta · 13 footer
   14 floating contact · 15 responsive
   ========================================================================== */

/* ---------- 1. tokens ---------- */

:root {
  color-scheme: light;
  --ink: #15211c;
  --muted: #66736c;
  --line: #e3e8e1;
  --bg: #f8faf4;
  --green: #0b6f57;
  --green-dark: #054535;
  --mint: #d9f2e6;
  --gold: #d9821f;
  --dark: #0e201a;
  --radius-sm: 8px;
  --radius: 10px;
  --pill: 999px;
  --shadow-card: 0 12px 28px rgba(22, 33, 27, .05);
  --shadow-float: 0 20px 50px rgba(21, 33, 28, .12);
  --shadow-lift: 0 22px 44px rgba(21, 33, 28, .14);
  --ease: cubic-bezier(.22, .7, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .18s;
  --dur: .32s;
  --dur-slow: .72s;
}

/* ---------- 2. base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Devanagari", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: 0 0 auto;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

section {
  padding: 82px 0;
}

section[id] {
  scroll-margin-top: 84px;
}

/* ---------- 3. motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.965);
  }
}

@keyframes drift {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bob {
  50% {
    translate: 0 -9px;
  }
}

@keyframes ring-pulse {
  50% {
    border-color: rgba(217, 130, 31, .55);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .07), 0 14px 26px rgba(0, 0, 0, .26), 0 0 0 9px rgba(217, 130, 31, .13);
  }
}

@keyframes dot-glow {
  50% {
    box-shadow: 0 0 0 7px rgba(217, 130, 31, .07);
  }
}

@keyframes bar-fill {
  from {
    transform: scaleX(0);
  }
}

@keyframes aura {
  to {
    background-position: 0 0, 58% 34%, 44% 64%;
  }
}

@keyframes halo {
  50% {
    transform: scale(1.07);
    opacity: .68;
  }
}

@keyframes ping {
  70%,
  100% {
    box-shadow: 0 0 0 14px rgba(34, 158, 217, 0);
  }
}

@keyframes nav-lift {
  to {
    box-shadow: 0 12px 28px rgba(21, 33, 28, .08);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 26px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Scroll-driven reveal: browsers without view() timelines simply show content. */
.reveal {
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 4% cover 30%;
}

.module:nth-child(2),
.step:nth-child(2) {
  animation-range: entry 10% cover 36%;
}

.module:nth-child(3),
.step:nth-child(3) {
  animation-range: entry 16% cover 42%;
}

.module:nth-child(4),
.step:nth-child(4) {
  animation-range: entry 22% cover 48%;
}

/* ---------- 4. topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 244, .88);
  border-bottom: 1px solid rgba(227, 232, 225, .8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@supports (animation-timeline: scroll()) {
  .topbar {
    animation: nav-lift linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 180px;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.05);
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: #425047;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: var(--pill);
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .78);
}

.lang-switch a {
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #647269;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.lang-switch a:hover {
  color: var(--green-dark);
  background: rgba(217, 242, 230, .7);
}

.lang-switch a[aria-current="page"] {
  color: #fff;
  background: var(--green);
}

.lang-switch a[aria-current="page"]:hover {
  color: #fff;
  background: var(--green-dark);
}

/* ---------- 5. buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(11, 111, 87, .22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: translateX(-260%) skewX(-18deg);
  transition: transform .65s var(--ease);
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 16px 30px rgba(11, 111, 87, .3);
}

.btn-primary:hover::after {
  transform: translateX(320%) skewX(-18deg);
}

.btn-ghost {
  color: var(--green-dark);
  background: #fff;
  border-color: #cfe3d6;
}

.btn-ghost:hover {
  background: #f2fbf5;
  border-color: #a9d2bd;
}

/* ---------- 6. hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 62px;
  background:
    linear-gradient(118deg, rgba(248, 250, 244, .94) 0%, rgba(248, 250, 244, .8) 44%, rgba(217, 242, 230, .86) 100%),
    radial-gradient(circle at 78% 24%, rgba(217, 130, 31, .24), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(11, 111, 87, .2), transparent 30%);
  background-size: 100% 100%, 130% 130%, 130% 130%;
  animation: aura 26s var(--ease) infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 111, 87, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 111, 87, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 84%);
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr);
  align-items: center;
  gap: 48px;
}

.hero-copy > * {
  animation: rise var(--dur-slow) var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: .07s;
}

.hero-copy > :nth-child(3) {
  animation-delay: .14s;
}

.hero-copy > :nth-child(4) {
  animation-delay: .21s;
}

.hero-copy > :nth-child(5) {
  animation-delay: .28s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid #c5e6d1;
  border-radius: var(--radius-sm);
  background: rgba(217, 242, 230, .9);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--pill);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 130, 31, .18);
  animation: dot-glow 3.4s ease-in-out infinite;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  max-width: 600px;
  margin-bottom: 26px;
  color: #39463e;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
}

.trust-item {
  padding: 14px;
  border: 1px solid rgba(207, 227, 214, .9);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .72);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.trust-item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #b9dfc8;
}

.trust-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: var(--green-dark);
}

.trust-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 7. device mock ---------- */

.device-wrap {
  position: relative;
  min-height: 546px;
  animation: settle .9s var(--ease-out) both .16s;
}

.device-stage {
  position: relative;
  min-height: inherit;
  animation: drift 9s ease-in-out 1.6s infinite;
}

.phone {
  position: absolute;
  top: 12px;
  right: 66px;
  width: 268px;
  height: 512px;
  padding: 13px;
  border-radius: 34px;
  background: #111b16;
  box-shadow: 0 30px 70px rgba(7, 28, 18, .34);
  transform: rotate(2deg);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #0a5f4a, #073026 68%, #061713);
  color: #fff;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
}

.app-title {
  padding: 0 16px;
}

.app-title b {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.app-title span {
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
}

.phone-ring {
  width: 168px;
  height: 168px;
  margin: 22px auto 18px;
  border-radius: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .14), transparent 52%),
    linear-gradient(135deg, #0a6047, #04382a);
  border: 7px solid rgba(217, 130, 31, .84);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .07), 0 14px 26px rgba(0, 0, 0, .26);
  animation: ring-pulse 4.5s ease-in-out infinite;
}

.phone-ring b {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.01em;
}

.phone-ring em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, .68);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-rows {
  display: grid;
  gap: 9px;
  padding: 0 16px 18px;
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
}

.app-row em {
  font-style: normal;
  font-weight: 700;
  color: #f6c065;
}

.float-card {
  position: absolute;
  padding: 12px 14px;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(27, 43, 34, .16);
}

.float-card b {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--green-dark);
}

.float-card span {
  font-size: 11px;
  color: var(--muted);
}

.float-card--orders {
  top: 58px;
  left: 4px;
  transform: rotate(-6deg);
  animation: bob 6s ease-in-out 1.4s infinite;
}

.float-card--latency {
  bottom: 118px;
  left: 22px;
  transform: rotate(4deg);
  animation: bob 6.8s ease-in-out 2s infinite reverse;
}

.admin-panel {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: 322px;
  padding: 18px;
  border: 1px solid #dfe7dd;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-head strong {
  font-size: 14px;
}

.status {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  height: 10px;
  border-radius: var(--pill);
  background: #e9eee8;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform-origin: left center;
  animation: bar-fill 1.1s var(--ease-out) both .3s;
}

.bar-fill--gateway {
  width: 84%;
}

.bar-fill--collect {
  width: 67%;
  animation-delay: .45s;
}

.bar-fill--intent {
  width: 75%;
  animation-delay: .6s;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.mini {
  min-height: 62px;
  padding: 10px;
  border: 1px solid #e3eadf;
  border-radius: var(--radius-sm);
  background: #f5f8f1;
  font-size: 11px;
  color: var(--muted);
}

.mini b {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- 8. section furniture ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}

.section-note {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 8b. UPI apps band ---------- */

.app-band {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.app-band-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.app-band-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-logos li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.app-logos li:hover {
  transform: translateY(-1px);
  border-color: #b9dfc8;
}

.app-logos img {
  display: block;
  width: auto;
  height: 22px;
  max-width: none;
}

.app-band-note {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 9. modules ---------- */

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

.module {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.module:hover {
  transform: translateY(-4px);
  border-color: #c9e4d6;
  box-shadow: var(--shadow-lift);
}

.icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--mint);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.module:hover .icon-box {
  transform: rotate(-8deg) scale(1.04);
  background: var(--green);
  color: #fff;
}

.module h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.module p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 10. showcase ---------- */

.showcase-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 36px;
}

.showcase-grid .section-note {
  margin: 14px 0 26px;
  max-width: 520px;
}

.showcase {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(11, 111, 87, .92), rgba(5, 69, 53, .96)),
    radial-gradient(circle at 62% 18%, rgba(217, 130, 31, .66), transparent 34%);
  box-shadow: var(--shadow-float);
}

.showcase::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 30px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  animation: halo 12s ease-in-out infinite;
}

.screen {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.screen-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
}

.screen-dots span {
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .72);
}

.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screen-title b {
  font-size: 19px;
}

.screen-title span {
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .16);
  font-size: 11px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 15px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .93);
  color: var(--ink);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  background: #fff;
}

.tile b {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.tile span {
  font-size: 12px;
  color: var(--muted);
}

.tile-mark {
  position: absolute;
  right: 12px;
  bottom: -8px;
  font-size: 66px;
  font-weight: 900;
  line-height: 1;
  color: rgba(11, 111, 87, .1);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tile:hover .tile-mark {
  transform: translateY(-6px) scale(1.06);
  color: rgba(11, 111, 87, .18);
}

.checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #33443a;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.checks li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.checks li:hover {
  transform: translateX(4px);
  color: var(--ink);
}

.checks svg {
  margin-top: 4px;
  color: var(--green);
  transition: transform var(--dur) var(--ease);
}

.checks li:hover svg {
  transform: scale(1.15);
}

/* ---------- 11. steps ---------- */

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

.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: step;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: #c9e4d6;
  box-shadow: var(--shadow-lift);
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  transition: color var(--dur) var(--ease);
}

.step:hover::before {
  color: var(--green);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 11b. insights & news ---------- */

.insights-section {
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: #c9e4d6;
  box-shadow: var(--shadow-card);
}

.insight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.insight-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #9aa69f;
}

.insight-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.insight-card h3 a {
  transition: color var(--dur-fast) var(--ease);
}

.insight-card h3 a:hover {
  color: var(--green-dark);
}

.insight-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.insight-link .icon {
  transition: transform var(--dur-fast) var(--ease);
}

.insight-link:hover .icon {
  transform: translateX(3px);
}

.insights-more {
  margin-top: 22px;
}

.page-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg));
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
}

.page-hero .lead {
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--green-dark);
}

.breadcrumb span:last-child {
  color: var(--ink);
}

.news-list-section {
  padding: 48px 0 82px;
}

.news-list-section .insight-card {
  background: #fff;
}

.article {
  padding: 54px 0 82px;
}

.article-container {
  max-width: 780px;
}

.article-head {
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  max-width: 100%;
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.article-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: #9aa69f;
}

.article-head .lead {
  margin-bottom: 0;
}

.article-takeaways {
  margin: 0 0 34px;
  padding: 22px 24px;
  border: 1px solid #cfe5d8;
  border-radius: var(--radius);
  background: #f3faf5;
}

.article-takeaways h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.article-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.article-takeaways li {
  margin-bottom: 6px;
  color: #2e3b33;
  font-size: 15px;
}

.article-takeaways li:last-child {
  margin-bottom: 0;
}

.article-body {
  color: #2e3b33;
  font-size: 16px;
  line-height: 1.8;
}

.article-body h2 {
  margin: 38px 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
}

.article-body h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body li::marker {
  color: var(--green);
}

.article-body strong {
  color: var(--ink);
}

.article-faq,
.article-related {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-faq > h2,
.article-related > h2 {
  margin-top: 0;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: #c9e4d6;
  box-shadow: var(--shadow-card);
}

.related-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.article-table-wrap {
  margin: 10px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th,
.article-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table th {
  background: #f3f7f2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.article-cta h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.article-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-cta .btn {
  flex: 0 0 auto;
}

/* ---------- 12. cta ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  background: var(--dark);
  color: #fff;
}

.cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 130, 31, .18), transparent 65%);
  animation: halo 14s ease-in-out infinite;
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.cta h2 {
  max-width: 720px;
  margin-bottom: 14px;
}

.cta p {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .74);
}

.cta .btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
}

.cta-actions {
  display: grid;
  gap: 10px;
}

/* ---------- 13. footer ---------- */

footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: var(--dark);
  color: #6c766f;
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a {
  transition: color var(--dur-fast) var(--ease);
}

footer a:hover {
  color: #fff;
}

/* ---------- 14. floating contact ---------- */

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.float-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(18, 37, 27, .22);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 42px rgba(18, 37, 27, .28);
}

.float-btn:active {
  transform: translateY(-1px) scale(.99);
}

.float-btn--telegram {
  background: #229ed9;
}

.float-btn--telegram::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(34, 158, 217, .45);
  animation: ping 3.4s ease-out infinite;
  pointer-events: none;
}

.float-btn--flow {
  background: var(--green-dark);
}

/* English copy runs longer than Chinese; keep the headline inside the column. */
:lang(en) h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

:lang(en) h2 {
  letter-spacing: -.01em;
}

/* Devanagari needs more vertical room than Inter for matras and conjuncts. */
:lang(hi) h1 {
  line-height: 1.3;
}

:lang(hi) h2,
:lang(hi) h3 {
  line-height: 1.35;
}

:lang(hi) .section-kicker {
  letter-spacing: .04em;
}

/* ---------- 15. responsive ---------- */

/* Six nav items are tight just above the mobile breakpoint. */
@media (max-width: 1020px) {
  .nav {
    gap: 16px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid,
  .showcase-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .device-wrap {
    min-height: 520px;
  }

  .phone {
    right: 50%;
    transform: translateX(50%) rotate(1deg);
  }

  .admin-panel {
    right: 50%;
    transform: translateX(50%);
    width: min(322px, 92vw);
  }

  .float-card {
    display: none;
  }

  .modules,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 14px;
  }

  .app-band-note {
    flex: 1 1 100%;
    margin-left: 0;
  }

  footer {
    padding-bottom: 104px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .app-band {
    padding: 14px 0;
  }

  .app-band-inner {
    gap: 10px;
  }

  .app-band-label {
    width: 100%;
  }

  .app-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .app-logos li {
    min-width: 0;
    height: 42px;
    padding: 0 8px;
  }

  .app-logos img {
    max-width: 100%;
    object-fit: contain;
  }

  .nav-contact {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  :lang(en) h1 {
    font-size: 29px;
  }

  .trust-strip,
  .modules,
  .steps,
  .tiles {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .device-wrap {
    min-height: 470px;
  }

  .phone {
    width: 232px;
    height: 452px;
  }

  .phone-ring {
    width: 148px;
    height: 148px;
  }

  .phone-ring b {
    font-size: 30px;
  }

  .admin-panel {
    bottom: 0;
  }

  section {
    padding: 56px 0;
  }

  .insights-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 42px 0 28px;
  }

  .news-list-section {
    padding: 32px 0 64px;
  }

  .article {
    padding: 38px 0 64px;
  }

  .article-cta {
    display: grid;
  }

  .article-takeaways {
    padding: 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-table {
    min-width: 0;
    font-size: 12px;
  }

  .article-table th,
  .article-table td {
    padding: 8px;
    overflow-wrap: break-word;
  }

  .footer-row {
    display: grid;
  }

  .float-actions {
    left: 14px;
    right: 14px;
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-timeline: auto !important;
    transition-duration: .01ms !important;
  }
}
