/* ==========================================================================
   DIGITRAPAY GATEWAYS PRIVATE LIMITED — Corporate Website
   Stylesheet
   --------------------------------------------------------------------------
   Approach : Mobile-first, Flexbox + CSS Grid, token-driven theming
   Palette  : Midnight ink / Electric blue / Settlement mint / Cloud / Slate
   Identity : Regulated-payments credibility — dense data surfaces, generous
              whitespace, restrained motion, high-contrast type
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
     01. Custom properties (design tokens)
     02. Reset & base
     03. Typography
     04. Layout primitives (container, section, grid)
     05. Buttons, links & chips
     06. Header / navigation
     07. Hero / checkout plate
     08. About & statistics
     09. Products & payment rails
     10. Deployments / case studies
     11. Platform & infrastructure
     12. Merchant dashboard & settlements
     13. Why choose us (USPs)
     14. Testimonials carousel
     15. Onboarding process
     16. Insights
     16b. Frequently asked questions
     17. Contact & inquiry form
     18. Footer
     19. Back-to-top
     20. Scroll reveal animations
     21. Responsive breakpoints
     22. Reduced motion & print
   ========================================================================== */


/* ==========================================================================
   01. CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
  /* Core palette --------------------------------------------------------- */
  --primary-dark: #070E1C;   /* Midnight ink — dark sections & hero        */
  --primary-mid:  #0D1730;   /* Raised ink surface                         */
  --primary-soft: #16223F;   /* Card surface on dark sections              */
  --brand:        #2158E8;   /* Electric blue — main brand colour          */
  --brand-light:  #4A7BFF;   /* Lighter blue for hover states              */
  --brand-deep:   #1740B0;   /* Darker blue for pressed states             */
  --accent:       #00C08B;   /* Settlement mint — success, money, uptime   */
  --accent-light: #2BD9A6;   /* Lighter mint for hover                     */
  --bg-pearl:     #F5F8FD;   /* Cool off-white background                  */
  --bg-pearl-2:   #EDF2FA;   /* Second cloud tone                          */
  --bg-white:     #FFFFFF;
  --text-dark:    #0B1426;
  --text-muted:   #55627A;
  --text-light:   #D5DEEE;
  --text-dim:     #8D9BB5;   /* Muted text on dark surfaces                */
  --border-soft:  #DCE4F2;
  --border-dark:  #22304F;   /* Divider on ink surfaces                    */
  --muted-accent: #7FA2FF;   /* Soft periwinkle — safe secondary accent    */
  --muted-accent-soft: #E4ECFF;

  /* Translucent brand washes -------------------------------------------- */
  --ring-brand:   rgba(33, 88, 232, 0.16);
  --ring-accent:  rgba(0, 192, 139, 0.18);
  --wash-brand:   rgba(33, 88, 232, 0.08);
  --wash-accent:  rgba(0, 192, 139, 0.10);
  --glass:        rgba(255, 255, 255, 0.05);
  --glass-line:   rgba(255, 255, 255, 0.10);

  /* Elevation ------------------------------------------------------------ */
  --shadow:      0 4px 24px rgba(9, 20, 44, 0.08);
  --shadow-sm:   0 2px 10px rgba(9, 20, 44, 0.06);
  --shadow-md:   0 12px 32px rgba(9, 20, 44, 0.10);
  --shadow-lg:   0 24px 60px rgba(7, 14, 28, 0.28);
  --shadow-head: 0 1px 0 var(--border-soft), 0 6px 24px rgba(9, 20, 44, 0.06);

  /* Geometry ------------------------------------------------------------- */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Typography ----------------------------------------------------------- */
  --font-head: "Plus Jakarta Sans", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm --------------------------------------------------------------- */
  --container: 1240px;
  --container-wide: 1520px;   /* header bar — wider than the content column */
  --gutter: 20px;
  --section-y: 68px;
  --header-h: 68px;

  /* Motion --------------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s;
  --t-med:  0.3s;
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --section-y: 88px; --header-h: 76px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 32px; --section-y: 108px; --header-h: 80px; }
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* `clip` rather than `hidden`: it contains the off-canvas nav panel and the
     hero's decorative shapes without creating a scroll container, which would
     break the sticky header. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;   /* fallback for browsers without `clip` */
  overflow-x: clip;
}

/* Prevent background scroll while the mobile menu is open */
body.is-locked { overflow: hidden; }

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

ul, ol { list-style: none; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--brand-light); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

/* Never allow the user-agent blue for selection or focus ------------------ */
::selection { background: var(--brand); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible { outline-color: var(--accent); }

/* Form controls use the brand purple rather than the UA accent ------------ */
input, select, textarea, progress { accent-color: var(--brand); }

/* Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--brand);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--accent);
}


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 6.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); }
h3 { font-size: clamp(1.06rem, 2.4vw, 1.25rem); }

p { color: var(--text-muted); }

strong { color: var(--text-dark); font-weight: 600; }

.muted { color: var(--text-muted); }

/* Eyebrow / kicker above section titles ---------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow--light { color: var(--accent); }

.eyebrow-rule {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

.eyebrow--light .eyebrow-rule { background: var(--accent); }

.section-title {
  max-width: 22ch;
  margin-bottom: 0;
}

.section-title--light { color: var(--bg-pearl); }

.section-lede {
  margin-top: 16px;
  font-size: 1.02rem;
  max-width: 62ch;
  color: var(--text-muted);
}

.section--dark .section-lede { color: var(--text-light); }


/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--pearl { background: var(--bg-pearl); }

.section--dark {
  background: var(--primary-dark);
  color: var(--text-light);
}

.section--dark p { color: var(--text-light); }
.section--dark h3 { color: var(--bg-pearl); }

/* Section headings ------------------------------------------------------- */
.section-head {
  margin-bottom: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head .section-title { text-align: center; }

.section-lede--center { margin-inline: auto; text-align: center; }

/* Left-aligned split heading (title left, lede/link right) ---------------- */
.section-head--split {
  text-align: left;
  align-items: flex-start;
  gap: 18px;
}

.section-head--split .section-title { text-align: left; }
.section-head--split .section-lede { margin-top: 0; }

/* Section footer call-out ------------------------------------------------ */
.section-foot {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.section-foot p { font-weight: 500; color: var(--text-muted); }

/* Generic grids ---------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }


/* ==========================================================================
   05. BUTTONS, LINKS & CHIPS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;                 /* touch-friendly target */
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.btn i { font-size: 0.9em; }

.btn:active { transform: translateY(1px); }

/* Solid brand — the primary commercial action */
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(33, 88, 232, 0.24);
}
.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(33, 88, 232, 0.32);
}

/* Settlement mint — the "go live" action */
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0, 192, 139, 0.24);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(0, 192, 139, 0.30);
}

/* Outlined, for light surfaces */
.btn-outline {
  background: var(--bg-white);
  border-color: var(--border-soft);
  color: var(--brand);
}
.btn-outline:hover {
  background: var(--bg-white);
  border-color: var(--brand);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

/* Ghost, for ink surfaces */
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
  color: #FFFFFF;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--muted-accent);
  color: #FFFFFF;
}

.btn-block { width: 100%; }

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Inline arrow link ------------------------------------------------------ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.link-arrow i { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { color: var(--brand-light); }
.link-arrow:hover i { transform: translateX(5px); }

.section--dark .link-arrow { color: var(--accent); }
.section--dark .link-arrow:hover { color: var(--accent-light); }

.link-arrow--head { align-self: flex-start; }

/* Chips ------------------------------------------------------------------ */
.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip--soon {
  background: var(--muted-accent-soft);
  color: var(--brand);
}


/* ==========================================================================
   06. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  /* Above the off-canvas panel (1200) and its backdrop (1100): the header
     creates a stacking context, so anything inside it — the hamburger most
     of all — is trapped below whatever outranks the header itself. The panel
     slides out from underneath, and the toggle stays clickable to close it. */
  z-index: 1300;
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow var(--t-med) var(--ease),
              background-color var(--t-med) var(--ease);
}

/* Applied by JS once the page is scrolled */
.site-header.is-stuck {
  background: var(--primary-dark);
  box-shadow: var(--shadow-head);
  border-bottom-color: var(--brand);
}

.header-inner {
  max-width: var(--container-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* Brand ------------------------------------------------------------------ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--bg-pearl);
}

.brand:hover { color: var(--bg-pearl); }

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  transition: transform var(--t-med) var(--ease);
}

.brand:hover .brand-logo { transform: translateY(-2px) rotate(-4deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg-pearl);
}

.brand-tagline {
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Periwinkle, not mint: the tile already carries the accent, and a second
     saturated colour beside it makes the lockup shout. */
  color: var(--muted-accent);
}

/* Off-canvas navigation (mobile + tablet default) ------------------------- */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: min(340px, 86vw);
  padding: 92px 26px 40px;
  background: var(--primary-mid);
  border-left: 3px solid var(--brand);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease),
              visibility var(--t-med) var(--ease);
}

.main-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;                 /* touch target */
  padding: 6px 12px;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-cta { margin-top: 6px; }

/* Dropdown ("Company") ----------------------------------------------------
   Off-canvas it is a plain nested list that expands in place; on desktop it
   becomes an absolutely-positioned panel (see the 1200px breakpoint). */
.nav-toggle-sub {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-head);
  cursor: pointer;
}

.nav-caret {
  font-size: 0.66rem;
  margin-left: 8px;
  transition: transform var(--t-med) var(--ease);
}

.nav-toggle-sub[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  display: grid;
  gap: 2px;
  overflow: hidden;
  max-height: 0;
  margin-left: 12px;
  border-left: 1px solid var(--border-dark);
  transition: max-height var(--t-med) var(--ease);
}

.nav-dropdown.is-open { max-height: 340px; }

.nav-sublink {
  gap: 11px;
  min-height: 42px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-sublink i {
  width: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Backdrop behind the off-canvas panel ----------------------------------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.nav-backdrop.is-visible { opacity: 1; }

/* Hamburger -------------------------------------------------------------- */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--primary-mid);
  /* The off-canvas panel is a sibling inside the header, so the toggle has
     to outrank it here; the header itself carries the order against the
     backdrop outside. */
  position: relative;
  z-index: 1400;
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.nav-toggle:hover { border-color: var(--accent); }

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease),
              opacity var(--t-fast) var(--ease);
  transform-origin: center;
}

/* Hamburger → close cross */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ==========================================================================
   07. HERO / CHECKOUT PLATE
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* One full screen below the sticky header: the copy and console centre in
     the space that is left, and the rails strip lands on the fold. Taller
     content (narrow phones) simply pushes past it. */
  min-height: calc(100vh - var(--header-h));
  background: var(--primary-dark);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}

/* Small-viewport unit where supported, so a mobile URL bar cannot clip the
   strip off the bottom of the fold. */
@supports (min-height: 100svh) {
  .hero { min-height: calc(100svh - var(--header-h)); }
}

/* Decorative geometry — pure CSS, no imagery ----------------------------- */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-shape { position: absolute; display: block; }

/* Soft brand aurora behind the console — the only large light source */
.hero-shape--poly {
  top: -70px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              rgba(33, 88, 232, 0.55) 0%,
              rgba(33, 88, 232, 0.18) 45%,
              rgba(33, 88, 232, 0) 72%);
  filter: blur(4px);
}

/* Concentric settlement ring, mint hairline */
.hero-shape--ring {
  bottom: -200px;
  left: -150px;
  width: 460px;
  height: 460px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.24;
  box-shadow: inset 0 0 0 60px rgba(0, 192, 139, 0.03),
              0 0 0 90px rgba(0, 192, 139, 0.02);
}

/* Rotated periwinkle chip outline — desktop only */
.hero-shape--square {
  display: none;
  top: 24%;
  left: 3%;
  width: 120px;
  height: 120px;
  border: 1px solid var(--muted-accent);
  border-radius: 22px;
  opacity: 0.2;
  transform: rotate(18deg);
}

/* Top rule — brand to mint, the two ends of a payment */
.hero-shape--bar {
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
              var(--brand) 0%, var(--brand-light) 42%, var(--accent) 100%);
}

/* Faint ledger grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='%23FFFFFF' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.hero-inner {
  flex: 1 1 auto;
  display: grid;
  gap: 48px;
  padding-block: 64px 60px;
  align-items: center;
  align-content: center;
}

.hero-title {
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.hero-title em {
  display: block;
  font-style: normal;
  background: linear-gradient(94deg, var(--brand-light) 0%, var(--accent-light) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--text-light);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.hero-meta i { color: var(--accent); font-size: 0.85rem; }

/* Checkout plate --------------------------------------------------------
   A screenshot of the product itself, cropped to the browser window so the
   light page behind it cannot read as a white slab in the ink hero. ------ */
.hero-console { position: relative; }

/* A thin glass frame around the screenshot: the plate is dark on a dark
   hero, and without it the bottom corners dissolve into the background. */
.hero-console picture {
  display: block;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-lg);
}

.hero-console img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}

/* Floating credential badges */
.console-badge {
  position: absolute;
  left: -12px;
  bottom: -20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
}

.console-badge--alt {
  left: auto;
  right: -10px;
  bottom: auto;
  top: -20px;
  background: var(--primary-soft);
  border: 1px solid var(--border-dark);
  color: var(--accent);
}

/* Rails strip ------------------------------------------------------------ */
.hero-strip {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-dark);
}

.hero-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  padding-block: 20px;
}

.strip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}

.strip-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-light);
}

.strip-list i { color: var(--muted-accent); }


/* ==========================================================================
   08. ABOUT & STATISTICS
   ========================================================================== */

.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.about-copy p + p { margin-top: 16px; }

/* Opening statement, set larger than the body copy */
.about-lead {
  font-size: 1.14rem;
  line-height: 1.62;
  color: var(--text-dark);
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.about-lead strong { font-weight: 700; }

/* Credential pills ------------------------------------------------------- */
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.about-chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.about-chips li:hover {
  border-color: var(--accent);
  background: var(--bg-white);
}

.about-chips i { color: var(--brand); font-size: 0.86rem; }

/* Operating principle ----------------------------------------------------------- */
.credo {
  position: relative;
  margin-bottom: 24px;
  padding: 22px 24px 20px 54px;
  background: var(--muted-accent-soft);
  border-radius: var(--radius);
}

.credo > i {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 1.1rem;
  color: var(--brand);
  opacity: 0.55;
}

.credo p {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--brand);
}

.credo cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Schematic visual ---------------------------------------------------------- */
.about-side { display: grid; gap: 20px; }

.about-visual {
  background: var(--primary-dark);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid var(--accent);
}

.about-visual figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.83rem;
  color: var(--text-light);
}

.about-visual figcaption i { color: var(--accent); }

/* At-a-glance facts ------------------------------------------------------ */
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact { padding: 16px 18px; background: var(--bg-white); }

.fact dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fact dt i { color: var(--accent); font-size: 0.76rem; }

.fact dd {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand);
}

/* The four pillars ------------------------------------------------------- */
.pillars { margin-top: 52px; }

.pillars-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.1rem;
}

.pillars-title i { color: var(--accent); }

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pillar {
  padding: 22px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--muted-accent);
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease),
              border-top-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.pillar:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent);
  box-shadow: var(--shadow);
}

.pillar-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--brand);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.1rem;
  transition: background-color var(--t-med) var(--ease);
}

.pillar:hover .pillar-icon { background: var(--brand-light); }

.pillar-head h4 {
  flex: 1;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.pillar-num {
  flex: 0 0 auto;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted-accent);
}

.pillar p { font-size: 0.89rem; }

/* Statistics band -------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 26px 18px;
  text-align: center;
  background: var(--primary-dark);
  transition: background-color var(--t-med) var(--ease);
}

.stat:hover { background: var(--primary-mid); }

/* Icon sits beside the figure, not above it */
.stat-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 10px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 1.02rem;
  transition: background-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.stat:hover .stat-icon { background: var(--brand); color: #FFFFFF; }

.stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--bg-pearl);
  letter-spacing: -0.02em;
}

.stat-suffix { color: var(--accent); }

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ==========================================================================
   09. PRODUCTS & PAYMENT RAILS
   ========================================================================== */

.card {
  position: relative;
  padding: 30px 26px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

/* Gold rule that draws in on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

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

/* Icon and heading share one line across every card type in the page. */
.card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  background: var(--muted-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 1.22rem;
  transition: background-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.card:hover .card-icon {
  background: var(--brand);
  color: #FFFFFF;
}

.card-title { margin-bottom: 0; flex: 1; }

.card-text { font-size: 0.94rem; }

.card-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
  display: grid;
  gap: 8px;
}

.card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 2px;
  background: var(--accent);
}

/* Index numeral, right-aligned on the icon/heading row */
.card-index {
  flex: 0 0 auto;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border-soft);
  line-height: 1;
  transition: color var(--t-med) var(--ease);
}

.card:hover .card-index { color: var(--muted-accent); }


/* ==========================================================================
   10. DEPLOYMENTS / CASE STUDIES
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* Deployment posters — photography, cropped to 16:9 at build time so the
   browser is never handed pixels that object-fit would discard. ---------- */
.work-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--primary-dark);
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.work-art picture {
  position: absolute;
  inset: 0;
}

.work-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-art img { transform: scale(1.05); }

/* Ink scrim — settles the photography into the palette and keeps the top and
   bottom edges from competing with the card body. */
.work-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(7, 14, 28, 0.30) 0%,
              rgba(7, 14, 28, 0) 40%,
              rgba(7, 14, 28, 0.38) 100%);
  pointer-events: none;
}

.work-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 22px 26px;
  flex: 1;
}

.work-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}

.work-cat i { color: var(--accent); }

.work-title { font-size: 1.12rem; }

.work-text { font-size: 0.92rem; flex: 1; }


/* ==========================================================================
   10b. INSIDE THE PLATFORM — SCREEN GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.shot {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.shot:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.shot-media {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
  background: var(--primary-dark);
}

.shot-media picture { display: block; }

.shot-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.shot:hover .shot-media img { transform: scale(1.05); }

.shot-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.shot-caption { padding: 20px 20px 22px; }

/* Icon and heading on one line */
.shot-caption h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.shot-caption h3 i {
  font-size: 0.94rem;
  color: var(--brand);
  transition: color var(--t-med) var(--ease);
}

.shot:hover .shot-caption h3 i { color: var(--accent); }

.shot-caption p { font-size: 0.9rem; }


/* ==========================================================================
   11. PLATFORM & INFRASTRUCTURE
   ========================================================================== */

.tech-layout {
  display: grid;
  gap: 44px;
  align-items: start;
}

.tech-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.tech-lede {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--text-light);
  max-width: 58ch;
}

.tech-points {
  margin: 30px 0;
  display: grid;
  gap: 22px;
}

.tech-point-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}

.tech-point-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 1.05rem;
}

.tech-points h3 {
  font-size: 1.02rem;
  margin-bottom: 0;
  color: var(--bg-pearl);
}

.tech-points p { font-size: 0.92rem; color: var(--text-dim); }

/* Badge grid ------------------------------------------------------------- */
.tech-badges {
  padding: 26px 22px;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}

.tech-badges-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

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

.badge {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--primary-dark);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.badge i {
  color: var(--accent);
  font-size: 1rem;
  width: 18px;
  text-align: center;
  transition: color var(--t-fast) var(--ease);
}

.badge:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: var(--primary-dark);
}

.badge:hover i { color: var(--primary-dark); }

.badge--brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.badge--brand i { color: var(--accent); }

.badge--brand:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--accent-light);
}

.badge--brand:hover i { color: var(--accent-light); }

.tech-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
}

.tech-note i { color: var(--muted-accent); margin-top: 4px; }
.tech-note p { font-size: 0.85rem; color: var(--text-dim); }


/* ==========================================================================
   12. MERCHANT DASHBOARD & SETTLEMENTS
   ========================================================================== */

.ops-layout {
  display: grid;
  gap: 30px;
  align-items: start;
}

.ops-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ops-feature {
  padding: 24px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--muted-accent);
  border-radius: var(--radius);
  transition: border-left-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.ops-feature:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--bg-pearl);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 1.1rem;
  transition: background-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.ops-feature:hover .feature-icon { background: var(--brand); color: #FFFFFF; }

.ops-feature h3 { font-size: 1rem; margin-bottom: 0; }
.ops-feature p  { font-size: 0.89rem; }

/* Mock event card -------------------------------------------------------- */
.snapshot-card {
  padding: 26px 24px 24px;
  background: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

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

.snapshot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--ring-accent);
}

.snapshot-type {
  padding: 3px 10px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.snapshot-name {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: var(--bg-pearl);
}

.snapshot-tagline {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted-accent) !important;
}

.snapshot-meta {
  margin-top: 20px;
  display: grid;
  gap: 11px;
}

.snapshot-meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.89rem;
  color: var(--text-light);
}

.snapshot-meta i {
  color: var(--accent);
  width: 17px;
  text-align: center;
  flex: 0 0 auto;
}

.snapshot-divider {
  height: 1px;
  margin: 22px 0 18px;
  background: var(--border-dark);
}

.snapshot-secondary-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
}

.snapshot-secondary-name {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bg-pearl) !important;
}

.snapshot-secondary-date {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  font-size: 0.84rem;
  color: var(--text-dim) !important;
}

.snapshot-secondary-date i { color: var(--accent); }

.snapshot-card .btn { margin-top: 24px; }


/* ==========================================================================
   13. WHY CHOOSE US (USPs)
   ========================================================================== */

.usp-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.usp-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.usp-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.usp-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: var(--brand);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.16rem;
  transition: background-color var(--t-med) var(--ease);
}

.usp-card:hover .usp-icon { background: var(--brand-light); }

.usp-card h3 { margin-bottom: 0; font-size: 1.02rem; }
.usp-card p  { font-size: 0.91rem; }


/* ==========================================================================
   14. TESTIMONIALS CAROUSEL
   ========================================================================== */

.carousel { position: relative; }

.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.testimonial {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  transition: border-color var(--t-med) var(--ease);
}

.testimonial:hover { border-color: var(--accent); }

/* Quote mark and rating share the top line of the card */
.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.quote-mark {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.55;
  line-height: 1;
}

.rating {
  display: flex;
  gap: 4px;
  color: var(--accent);
  font-size: 0.86rem;
}

.testimonial blockquote {
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.testimonial-by {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
}

.by-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--brand);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.testimonial-by strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--bg-pearl);
}

.testimonial-by em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.81rem;
  color: var(--text-dim);
}

/* Controls --------------------------------------------------------------- */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--primary-mid);
  color: var(--accent);
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 34px;
  height: 34px;                      /* keeps the tap target generous */
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}

.dot::before {
  content: "";
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-dark);
  transition: background-color var(--t-fast) var(--ease),
              width var(--t-fast) var(--ease);
}

.dot:hover::before { background: var(--muted-accent); }

.dot.is-active::before {
  background: var(--accent);
  width: 30px;
}


/* ==========================================================================
   15. ONBOARDING PROCESS
   ========================================================================== */

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Vertical connector (mobile / tablet) */
.process-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 19px;
  width: 2px;
  background: var(--accent);
}

.process-step {
  position: relative;
  padding-left: 60px;
}

/* Numbered node riding the connector line */
.step-node {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: background-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.process-step:hover .step-node {
  background: var(--brand);
  color: #FFFFFF;
}

.step-card {
  padding: 22px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              transform var(--t-med) var(--ease);
}

.process-step:hover .step-card {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

/* Icon and heading on one line */
.step-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--brand);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.14rem;
  transition: background-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.process-step:hover .step-icon {
  background: var(--accent);
  color: var(--primary-dark);
}

.step-head h3 { margin-bottom: 0; font-size: 1.02rem; }
.process-step p { font-size: 0.91rem; }


/* ==========================================================================
   16. INSIGHTS
   ========================================================================== */

.post-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.post-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--muted-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 1.1rem;
  transition: background-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.post-card:hover .post-icon {
  background: var(--brand);
  color: #FFFFFF;
}

.post-tag {
  padding: 4px 11px;
  background: var(--bg-pearl-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand);
}

.post-title { font-size: 1.05rem; margin-bottom: 0; flex: 1; }

.post-title a { color: var(--text-dark); }
.post-title a:hover { color: var(--brand); }

.post-excerpt { font-size: 0.91rem; flex: 1; }

.post-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.post-foot .link-arrow { margin-left: auto; }

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-meta i { color: var(--accent); }

/* ==========================================================================
   16b. FREQUENTLY ASKED QUESTIONS
   Native <details> disclosure — the answers stay readable, and stay
   reachable, with JavaScript switched off.
   ========================================================================== */

.faq-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.faq {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.faq:hover { border-color: var(--muted-accent); }

.faq[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dark);
}

/* Suppress the platform disclosure triangle — the icon below replaces it. */
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }

.faq summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--muted-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 0.8rem;
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.faq[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: #FFFFFF;
}

/* The panel itself carries no padding: it is the element whose height is
   animated open, and under border-box sizing padding would stop it
   collapsing past 20px and leave a step at the end of the close. The inset
   lives on the content instead. */
.faq-body { padding: 0; }

.faq-body p {
  padding: 0 20px 0 66px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.faq-body p:last-child { padding-bottom: 20px; }

.faq-body p + p { margin-top: 10px; }

.faq-body strong { color: var(--text-dark); }

/* The answer lifts in behind the opening panel — the height animation is
   driven from main.js, this is the layer on top of it. */
@keyframes faq-rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.faq[open] .faq-body p {
  animation: faq-rise 0.34s var(--ease) both;
}

.faq[open] .faq-body p + p { animation-delay: 0.07s; }

@media (min-width: 900px) {
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}


/* ==========================================================================
   17. CONTACT & INQUIRY FORM
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.form-panel {
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; gap: 18px; }

.inquiry-form { display: grid; gap: 18px; }

.field { display: flex; flex-direction: column; }

.field label {
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: #97A2B5; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted-accent); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring-brand);
}

/* Neutralise the browser autofill tint (often blue/yellow) */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-text-fill-color: var(--text-dark);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-pearl) inset;
  box-shadow: 0 0 0 1000px var(--bg-pearl) inset;
  caret-color: var(--text-dark);
}

/* Custom select ---------------------------------------------------------- */
.select-wrap { position: relative; }

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.select-caret {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.76rem;
  color: var(--brand);
}

/* Validation ------------------------------------------------------------- */
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--brand);
}

.field.has-error .field-error { display: flex; align-items: center; gap: 7px; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--brand);
  background: var(--muted-accent-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.is-visible { display: flex; align-items: center; gap: 10px; }

.form-status.is-success {
  background: var(--muted-accent-soft);
  border: 1px solid var(--muted-accent);
  color: var(--brand);
}

.form-status.is-error {
  background: var(--bg-pearl-2);
  border: 1px solid var(--accent);
  color: var(--text-dark);
}

.form-status.is-error i { color: var(--accent); }
.form-status.is-success i { color: var(--brand); }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.81rem;
  color: var(--text-muted);
}

.form-note i { color: var(--accent); margin-top: 4px; }

/* Contact details panel -------------------------------------------------- */
.contact-panel {
  padding: 28px 24px;
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.contact-panel-title {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  font-size: 1.1rem;
}

.contact-list { display: grid; gap: 20px; }

.contact-list li { display: flex; gap: 15px; align-items: flex-start; }

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 1rem;
}

.contact-list strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-head);
  font-size: 0.83rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}

.contact-list p { font-size: 0.92rem; }
.contact-list a { color: var(--text-dark); }
.contact-list a:hover { color: var(--brand); }
.contact-list .muted { font-size: 0.84rem; }

/* Map -------------------------------------------------------------------- */
.map-frame {
  margin-top: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-white);
}

/* Desaturated so the embed cannot introduce off-palette colour */
.map-frame iframe {
  filter: grayscale(1) contrast(1.04);
  border: 0;
}

.map-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.map-note i { color: var(--accent); }


/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: var(--text-light);
  border-top: 3px solid var(--accent);
}

.footer-top {
  display: grid;
  gap: 38px;
  padding-block: 56px 46px;
}

.brand--footer { margin-bottom: 18px; }

.footer-about {
  font-size: 0.9rem;
  color: var(--text-dim) !important;
  max-width: 46ch;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.95rem;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.social-list a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--accent-light);
  transform: translateY(-3px);
}

.footer-heading {
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links { display: grid; gap: 2px; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color var(--t-fast) var(--ease),
              padding-left var(--t-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact { display: grid; gap: 13px; margin-bottom: 22px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.89rem;
  color: var(--text-light);
}

.footer-contact i {
  color: var(--accent);
  width: 17px;
  text-align: center;
  margin-top: 5px;
  flex: 0 0 auto;
}

.footer-contact a { color: var(--text-light); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  background: var(--primary-mid);
  border-top: 1px solid var(--border-dark);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.84rem;
  color: var(--text-dim) !important;
}

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }

.footer-legal a {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.footer-legal a:hover { color: var(--accent); }


/* ==========================================================================
   19. BACK-TO-TOP
   ========================================================================== */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: #FFFFFF;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              visibility var(--t-med) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
}


/* ==========================================================================
   20. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

[data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal-delay="3"] { transition-delay: 0.27s; }
[data-reveal-delay="4"] { transition-delay: 0.36s; }


/* ==========================================================================
   21. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- Small phones and up ------------------------------------------------ */
@media (min-width: 520px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .ops-features { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablet (768px+) ---------------------------------------------------- */
@media (min-width: 768px) {

  .grid { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .section-head { margin-bottom: 54px; }

  .section-head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .section-head--split .section-lede { max-width: 46ch; }
  .section-head--split .link-arrow--head { align-self: flex-end; margin-bottom: 4px; }

  .section-foot { flex-direction: row; justify-content: center; gap: 24px; }

  /* Hero */
  .hero-inner { padding-block: 84px 76px; }
  .hero-shape--poly { top: -12%; right: -16%; width: 520px; height: 520px; }

  /* About */
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(4, 1fr); }

  /* Portfolio: 2-up, wide tiles take the full row */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card--wide { grid-column: span 2; }
  .work-card--wide .work-art { aspect-ratio: 21 / 9; }

  /* Events */
  .ops-layout { grid-template-columns: 1fr; }

  /* Testimonials: two per view */
  .testimonial { flex: 0 0 calc((100% - 20px) / 2); }

  /* Gallery: two across */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process: two across, node above each card */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 26px;
  }
  .process-steps::before { display: none; }
  .process-step { padding-left: 0; padding-top: 58px; }
  .step-node { border-color: transparent; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .form-panel, .contact-panel { padding: 32px 30px; }

  /* Footer */
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .to-top { right: 26px; bottom: 26px; }
}

/* --- Small desktop (1000px+) -------------------------------------------- */
@media (min-width: 1000px) {

  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  /* About: narrative beside the schematic */
  .about-grid { grid-template-columns: 1.02fr 0.98fr; gap: 54px; }
  .pillar-grid { grid-template-columns: repeat(4, 1fr); }

  /* Portfolio: 4-column grid, wide tiles span two columns */
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .work-card--wide { grid-column: span 2; }
  .work-card--wide .work-art { aspect-ratio: 16 / 9; }

  /* Technology */
  .tech-layout { grid-template-columns: 1.08fr 0.92fr; gap: 56px; }
  .tech-badges { padding: 30px 26px; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }

  /* Events: features + mock card */
  .ops-layout { grid-template-columns: 1.35fr 0.65fr; gap: 34px; }
  .ops-features { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials: three per view */
  .testimonial { flex: 0 0 calc((100% - 40px) / 3); }

  /* Gallery: three across */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Process: four abreast. The numbered nodes are centred in their columns
     so the gold connector meets each one exactly; the node's own border
     masks the line where it passes behind. */
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }

  .process-steps::before {
    display: block;
    top: 19px;
    bottom: auto;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 2px;
    background: var(--accent);
  }

  .process-step { padding-top: 62px; }

  .step-node {
    left: 50%;
    transform: translateX(-50%);
    border-color: var(--bg-white);
  }

  /* Contact: form + details */
  .contact-layout { grid-template-columns: 1.15fr 0.85fr; gap: 34px; }

  /* Footer: brand block wider than the link columns */
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
}

/* --- Hero two-column layout --------------------------------------------- */
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero-shape--square { display: block; }
  .hero-shape--poly { width: 640px; height: 640px; }
}

@media (min-width: 1200px) {
  .hero-shape--poly { top: -14%; right: -18%; width: 720px; height: 720px; }
}

/* --- Desktop navigation (1200px+) --------------------------------------- */
@media (min-width: 1200px) {

  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }

  .main-nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav-item { position: relative; }

  .nav-link {
    min-height: 44px;
    padding: 6px 13px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .nav-link:hover { background: none; }

  .nav-link.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  .nav-cta {
    margin-top: 0;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* Dropdown panel ------------------------------------------------------- */
  .nav-toggle-sub { width: auto; }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1250;
    display: block;
    width: 232px;
    max-height: none;
    margin-left: 0;
    padding: 8px;
    background: var(--primary-mid);
    border: 1px solid var(--border-dark);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-fast) var(--ease),
                transform var(--t-fast) var(--ease),
                visibility var(--t-fast) var(--ease);
  }

  /* Bridges the 10px gap so the pointer can travel into the panel */
  .nav-dropdown::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 0;
    width: 100%;
    height: 13px;
  }

  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown,
  .nav-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-sublink {
    min-height: 40px;
    padding: 6px 10px;
    border-bottom: 0;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .nav-sublink:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
  }

  .nav-sublink.is-active { border-bottom-color: transparent; }
}

/* --- Large desktop (1440px+) -------------------------------------------- */
@media (min-width: 1440px) {
  .nav-list { gap: 6px; }
  .nav-link { padding: 6px 16px; }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ==========================================================================
   22. PAYMENTS COMPONENTS
   Rails table, API panel, compliance ribbon and settlement metrics — the
   surfaces that carry the regulated-payments detail.
   ========================================================================== */

/* Soft brand glow on every ink section ---------------------------------- */
.section--dark { position: relative; isolation: isolate; overflow: hidden; }

.section--dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(33, 88, 232, 0.22) 0%, rgba(33, 88, 232, 0) 68%);
  pointer-events: none;
}

/* Rails at a glance — settlement reference table ------------------------- */
.rails-table-wrap {
  position: relative;
  margin-top: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.rails-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rails-table caption {
  padding: 18px 22px 6px;
  position: sticky;
  left: 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.rails-table th,
.rails-table td {
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.rails-table thead th {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-pearl);
  white-space: nowrap;
}

.rails-table tbody tr:last-child th,
.rails-table tbody tr:last-child td { border-bottom: 0; }

.rails-table tbody tr { transition: background-color var(--t-fast) var(--ease); }
.rails-table tbody tr:hover { background: var(--bg-pearl); }

.rails-table tbody th {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.rails-table tbody th i {
  margin-right: 9px;
  color: var(--brand);
  width: 16px;
  text-align: center;
}

.rails-table td { color: var(--text-muted); }

.rail-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--wash-accent);
  border: 1px solid rgba(0, 192, 139, 0.28);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #05795A;
  white-space: nowrap;
}

.rail-tag--slow {
  background: var(--muted-accent-soft);
  border-color: rgba(33, 88, 232, 0.22);
  color: var(--brand-deep);
}

/* Developer panel — a real request, not decoration ----------------------- */
.code-panel {
  background: rgba(3, 8, 18, 0.72);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.code-head .verb {
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--wash-accent);
  border: 1px solid rgba(0, 192, 139, 0.32);
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.code-head .code-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.code-panel pre {
  margin: 0;
  padding: 18px 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-light);
  tab-size: 2;
}

.code-panel .k { color: var(--muted-accent); }
.code-panel .s { color: var(--accent-light); }
.code-panel .n { color: #FFB454; }
.code-panel .c { color: var(--text-dim); font-style: italic; }

/* Settlement metric strip ------------------------------------------------ */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.metric {
  padding: 16px 14px;
  background: var(--primary-mid);
  text-align: center;
}

.metric-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.2;
}

.metric-label {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-dim) !important;
  letter-spacing: 0.04em;
}

/* Compliance ribbon ------------------------------------------------------ */
.compliance-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.compliance-ribbon li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-pearl);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.compliance-ribbon i { color: var(--brand); }

@media (min-width: 620px) {
  .metric-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ==========================================================================
   23. REDUCED MOTION & PRINT
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .carousel-controls, .nav-backdrop, .map-frame { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 24px; page-break-inside: avoid; }
}
