/* ---------- Reset & base ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #111;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
  input, select, textarea { font: inherit; color: inherit; }

  :root {
    --bg-dark: #0a0a0a;
    --bg-dark-2: #111111;
    --bg-dark-3: #15181c;
    --fg-dark: #ffffff;
    --fg-dark-muted: #9aa0a6;
    --fg-dark-dim: #6b7280;
    --line-dark: rgba(255,255,255,0.09);

    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --bg-tint: #f1f4f7;
    --fg: #0b0c0f;
    --fg-muted: #515864;
    --line: #e5e8ec;

    --cyan: #0ea5e9;
    --cyan-2: #65ddec;
    --cyan-deep: #0a94c7;
    --green: #0d6e4f;
    --error: #c0392b;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;

    --container: 1180px;
    --pad: 24px;
  }

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

  section { position: relative; }
  .section-pad { padding-block: 96px; }
  @media (max-width: 720px) { .section-pad { padding-block: 64px; } }

  h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
  p { margin: 0; }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
  }
  .eyebrow::before {
    content: "";
    width: 22px; height: 1px;
    background: currentColor;
    opacity: 0.6;
  }

  .hero-eyebrow {
    color: var(--cyan-2);
    margin-bottom: 22px;
    justify-content: center;
  }
  .hero-eyebrow::before {
    background: linear-gradient(90deg, transparent, currentColor);
    opacity: 0.8;
    width: 28px;
  }

  /* ---------- Fade-in on scroll ---------- */
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* =====================================================
     NAV
  ===================================================== */
  .nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    color: var(--fg-dark);
    transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
  }
  .nav.scrolled {
    background: rgba(10,10,10,0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line-dark);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
  }
  .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; letter-spacing: -0.01em; font-size: 17px;
  }
  .brand .mark { width: 26px; height: 26px; }
  .brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--fg-dark-muted);
    margin-top: 1px;
  }
  .brand-text { line-height: 1.05; }

  .nav-links {
    display: flex; align-items: center; gap: 28px;
  }
  .nav-links a {
    font-size: 14px;
    color: var(--fg-dark-muted);
    transition: color .2s ease;
  }
  .nav-links a:hover { color: var(--fg-dark); }
  .nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--cyan);
    color: #00131a !important;
    font-weight: 600;
    font-size: 14px;
    transition: background-color .15s ease;
  }
  .nav-cta:hover { background: #0c91d4; }
  .nav-cta:active { background: #0a7eba; }
  .nav-cta:focus-visible { outline: 2px solid var(--cyan-2, #38bdf8); outline-offset: 2px; }

  /* Language switcher */
  .lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line-dark);
  }
  .lang-btn {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--fg-dark-muted);
    background: transparent;
    cursor: pointer;
    border: 0;
    transition: color 0.15s ease, background 0.2s ease;
    font-family: inherit;
    min-width: 30px;
  }
  .lang-btn:hover { color: var(--fg-dark); }
  .lang-btn.is-active {
    background: var(--fg-dark);
    color: #0a0a0a;
  }
  /* Header-anchored copy used on mobile; hidden on desktop where the
     in-drawer .lang-switch (inside .nav-links) is visible instead. */
  .lang-switch--header { display: none; }

  .hamburger {
    display: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line-dark);
  }
  .hamburger span {
    display: block; width: 18px; height: 1.5px;
    background: var(--fg-dark);
    position: relative;
  }
  .hamburger span::before, .hamburger span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
    background: var(--fg-dark);
    transition: transform .25s ease, top .25s ease;
  }
  .hamburger span::before { top: -6px; }
  .hamburger span::after  { top: 6px; }
  .nav.open .hamburger span { background: transparent; }
  .nav.open .hamburger span::before { top: 0; transform: rotate(45deg); }
  .nav.open .hamburger span::after  { top: 0; transform: rotate(-45deg); }

  @media (max-width: 820px) {
    .hamburger { display: inline-flex; }
    .nav-links {
      position: absolute; top: 68px; left: 0; right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 8px var(--pad) 16px;
      background: rgba(10,10,10,0.96);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line-dark);
      display: none;
    }
    .nav.open .nav-links { display: flex; }
    .nav-links a {
      padding: 14px 4px;
      border-bottom: 1px solid var(--line-dark);
      font-size: 15px;
    }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-cta { align-self: flex-start; margin-top: 6px; }
    /* On mobile, swap which .lang-switch is visible: hide the one inside
       the drawer, show the one anchored in the header. */
    .nav-links .lang-switch { display: none; }
    .lang-switch--header {
      display: inline-flex;
      margin-left: auto;
      margin-right: 10px;
    }
  }

  /* =====================================================
     HERO
  ===================================================== */
  .hero {
    background: var(--bg-dark);
    color: var(--fg-dark);
    padding: 0;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height — prevents URL-bar jumps on mobile */
    display: flex;
    flex-direction: column;
  }
  /* Hero main content — 2-column grid: animated phone left, text right */
  .hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    padding-top: 100px; /* accounts for 68px fixed nav + breathing */
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
  }
  .hero-text { text-align: left; max-width: 600px; }
  .hero-text > .eyebrow { display: inline-block; }
  .hero-text .hero-ctas { justify-content: flex-start; }
  @media (max-width: 980px) {
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 36px;
      text-align: center;
    }
    .hero-text { text-align: center; max-width: 880px; margin: 0 auto; }
    .hero-text .hero-ctas { justify-content: center; }
    .hero-phone { order: 2; margin: 0 auto; }
    .hero-text { order: 1; }
  }

  /* =====================================================
     ANIMATED LIQUID-GLASS PHONE (left of hero)
  ===================================================== */
  .hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
    z-index: 2;
    animation: phLevitate 9s ease-in-out infinite;
    /* Slightly compact the phone in the hero so the keypad + Continue + footer all fit
       comfortably within typical hero viewport height. */
    transform-origin: center center;
  }
  .hero-phone {
    /* Reserve a tighter footprint matching the scaled phone (290 * 0.92 ≈ 267) */
    width: 290px;
    height: 580px;
  }
  @keyframes phLevitate {
    0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-5deg); }
    50%      { transform: translateY(-10px) rotateX(3deg) rotateY(-3deg); }
  }
  .phone {
    position: relative;
    width: 290px;
    height: 580px;
    border-radius: 44px;
    padding: 7px;
    background:
      linear-gradient(155deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 40%, rgba(101,221,236,0.10) 100%);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
      0 60px 90px -30px rgba(0,0,0,0.7),
      0 0 0 1px rgba(101,221,236,0.15),
      inset 0 1px 0 rgba(255,255,255,0.5),
      inset 0 -1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transform-style: preserve-3d;
    /* Improve subpixel rendering of text/SVG inside the 3D-transformed phone */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    will-change: transform;
  }
  .phone::before {
    /* notch */
    content: "";
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 96px; height: 26px;
    background: #0a1014;
    border-radius: 14px;
    z-index: 5;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .phone-glow {
    position: absolute; inset: -30px;
    border-radius: 70px;
    background:
      radial-gradient(40% 30% at 30% 30%, rgba(101,221,236,0.35), transparent 70%),
      radial-gradient(45% 35% at 70% 70%, rgba(14,165,233,0.30), transparent 70%);
    filter: blur(30px);
    z-index: -1;
    opacity: 0.9;
    animation: phGlow 6s ease-in-out infinite alternate;
  }
  @keyframes phGlow {
    from { opacity: 0.55; }
    to   { opacity: 0.95; }
  }
  .phone-screen {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 42px;
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(180deg, rgba(248,250,252,0.94), rgba(241,245,249,0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    color: #0b171d;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  }
  /* Status bar */
  .ph-status {
    height: 44px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 22px 0 26px;
    font-size: 13px;
    font-weight: 600;
    color: #0b171d;
  }
  .ph-time { font-weight: 700; }
  .ph-bell { width: 12px; height: 12px; margin-left: 6px; opacity: 0.8; color: #0b171d; }
  .ph-icons { display: flex; align-items: center; gap: 5px; color: #0b171d; }
  .ph-icons svg { width: 16px; height: 12px; }
  .ph-batt {
    position: relative;
    width: 26px; height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(11,23,29,0.5);
    display: inline-flex; align-items: center;
    margin-left: 2px;
  }
  .ph-batt::after {
    content: ""; position: absolute; right: -3px; top: 3px;
    width: 2px; height: 5px; background: rgba(11,23,29,0.5); border-radius: 0 1px 1px 0;
  }
  .ph-batt-fill {
    position: absolute; left: 1px; top: 1px; bottom: 1px;
    width: 78%;
    background: #0b171d;
    border-radius: 1.5px;
  }
  .ph-batt-num {
    position: absolute; inset: 0;
    font-size: 8px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
  }

  /* Header */
  .ph-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 6px 22px 14px;
    border-bottom: 1px solid rgba(11,23,29,0.06);
  }
  .ph-merchant { font-size: 17px; font-weight: 800; color: #0b171d; letter-spacing: -0.01em; }
  .ph-user {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(11,23,29,0.6); margin-top: 1px;
  }
  .ph-user svg { width: 10px; height: 10px; }
  .ph-tools { display: flex; gap: 6px; align-items: center; }
  .ph-demo-badge {
    display: inline-flex; align-items: center;
    height: 22px; padding: 0 9px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff4d6 0%, #ffe5a3 100%);
    border: 1px solid #f0c870;
    color: #8a5a10;
    font-size: 9.5px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 1px 2px rgba(180,120,20,0.15);
  }
  .ph-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(11,23,29,0.06);
    font-size: 11px; font-weight: 600;
    color: rgba(11,23,29,0.7);
  }
  .ph-pill svg { width: 10px; height: 10px; }

  /* Step indicator */
  .ph-steps {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(11,23,29,0.06);
  }
  .ph-step {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    flex: 0 0 auto;
  }
  .ph-step-dot {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: rgba(11,23,29,0.08);
    color: rgba(11,23,29,0.5);
    transition: all 0.4s ease;
  }
  .ph-step.active .ph-step-dot {
    background: #0b171d; color: #fff;
  }
  .ph-step-label {
    font-size: 9px; font-weight: 600;
    color: rgba(11,23,29,0.55);
    letter-spacing: 0.02em;
  }
  .ph-step.active .ph-step-label { color: #0b171d; }
  .ph-step-line {
    flex: 1; height: 1px;
    background: rgba(11,23,29,0.15);
    border-top: 1px dashed rgba(11,23,29,0.18);
    background: transparent;
    margin-top: -16px;
  }

  /* Currency + amount */
  .ph-currency {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 18px;
    font-size: 12px;
    color: rgba(11,23,29,0.6);
    font-weight: 500;
  }
  .ph-flag {
    width: 16px; height: 16px; border-radius: 50%;
    overflow: hidden;
    display: inline-flex; flex-direction: column;
    border: 1px solid rgba(11,23,29,0.1);
  }
  .ph-flag-top, .ph-flag-bot { display: block; flex: 1; }
  .ph-flag-top { background: #fff; }
  .ph-flag-bot { background: #dc143c; }
  .ph-amount {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b171d;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    min-height: 48px;
  }
  .ph-amount-num {
    display: inline-block;
    transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), opacity 0.18s ease;
  }
  .ph-amount-num.bump { animation: phNumBump 0.36s ease; }
  @keyframes phNumBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    100% { transform: scale(1); }
  }
  .ph-amount-hint {
    text-align: center;
    font-size: 11px;
    color: rgba(11,23,29,0.45);
    margin-top: 2px;
  }

  /* Keypad */
  .ph-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 22px 0;
  }
  .ph-key {
    appearance: none;
    border: 1px solid rgba(11,23,29,0.08);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    height: 44px;
    font-size: 20px;
    font-weight: 600;
    color: #0b171d;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(11,23,29,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    cursor: default;
    transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    position: relative;
  }
  .ph-key.tapped {
    background: linear-gradient(180deg, rgba(101,221,236,0.4), rgba(14,165,233,0.3));
    border-color: rgba(14,165,233,0.5);
    color: #001018;
    transform: scale(0.94);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .ph-key-dot, .ph-key-back { color: rgba(11,23,29,0.5); font-size: 18px; }

  /* Footer */
  .ph-foot {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 22px 18px;
  }
  .ph-cont {
    flex: 1;
    appearance: none;
    border: none;
    background: #0b171d;
    color: #fff;
    border-radius: 14px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: default;
  }
  .ph-help {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #0b3a4a;
    color: #65ddec;
    font-weight: 700;
    cursor: default;
  }

  /* Animated hand pointer (position controlled by JS via CSS variables) */
  .ph-hand {
    position: absolute;
    pointer-events: none;
    top: 0; left: 0;
    width: 120px; height: 160px;
    z-index: 8;
    filter: drop-shadow(0 6px 12px rgba(14,165,233,0.45)) drop-shadow(0 12px 30px rgba(0,0,0,0.35));
    will-change: transform, opacity;
    transform: translate3d(var(--hx, 180px), var(--hy, 80px), 0) rotate(var(--hr, -6deg)) scale(var(--hs, 1));
    opacity: var(--ho, 0);
    transition:
      transform 0.55s cubic-bezier(.4,0,.2,1),
      opacity 0.35s ease;
  }
  .ph-hand.tapping {
    transition:
      transform 0.12s cubic-bezier(.4,0,.2,1),
      opacity 0.2s ease;
  }
  .ph-hand-shape { transform-origin: 60px 80px; }

  /* Fingertip glow pulse on tap moments */
  .ph-tip-glow {
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .ph-hand.tapping .ph-tip-glow { opacity: 1; }

  /* =====================================================
     STAGE & SLIDES (3 screens cross-fade)
  ===================================================== */
  .ph-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
  }
  .ph-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transform: translateX(20px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
  }
  .ph-slide.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .ph-slide.exit {
    opacity: 0;
    transform: translateX(-20px) scale(0.98);
  }

  /* Step indicator state per active step */
  .ph-steps[data-step="2"] .ph-step-1 .ph-step-dot,
  .ph-steps[data-step="3"] .ph-step-1 .ph-step-dot,
  .ph-steps[data-step="3"] .ph-step-2 .ph-step-dot {
    background: #0b171d;
    color: #fff;
    font-size: 0;
  }
  .ph-steps[data-step="2"] .ph-step-1 .ph-step-dot::before,
  .ph-steps[data-step="3"] .ph-step-1 .ph-step-dot::before,
  .ph-steps[data-step="3"] .ph-step-2 .ph-step-dot::before {
    content: "✓"; font-size: 13px; font-weight: 700;
  }
  .ph-steps[data-step="2"] .ph-step-1 .ph-step-label,
  .ph-steps[data-step="2"] .ph-step-2 .ph-step-label,
  .ph-steps[data-step="3"] .ph-step-1 .ph-step-label,
  .ph-steps[data-step="3"] .ph-step-2 .ph-step-label,
  .ph-steps[data-step="3"] .ph-step-3 .ph-step-label { color: #0b171d; }
  .ph-steps[data-step="2"] .ph-step-2 .ph-step-dot,
  .ph-steps[data-step="3"] .ph-step-3 .ph-step-dot { background: #0b171d; color: #fff; }

  /* Active step halo */
  .ph-step-dot { position: relative; }
  .ph-steps[data-step="1"] .ph-step-1 .ph-step-dot::after,
  .ph-steps[data-step="2"] .ph-step-2 .ph-step-dot::after,
  .ph-steps[data-step="3"] .ph-step-3 .ph-step-dot::after {
    content: ""; position: absolute; inset: -3px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(11,23,29,0.35);
    animation: phStepHalo 1.8s ease-out infinite;
    pointer-events: none;
  }
  @keyframes phStepHalo {
    0%   { box-shadow: 0 0 0 0 rgba(11,23,29,0.35); }
    70%  { box-shadow: 0 0 0 7px rgba(11,23,29,0); }
    100% { box-shadow: 0 0 0 0 rgba(11,23,29,0); }
  }
  /* Connector line fill */
  .ph-step-line { position: relative; overflow: hidden; }
  .ph-step-line::after {
    content: ""; position: absolute; inset: 0;
    background: #0b171d;
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.6s cubic-bezier(.45,.05,.2,1);
  }
  .ph-steps[data-step="2"] .ph-step-line:nth-of-type(1)::after,
  .ph-steps[data-step="3"] .ph-step-line:nth-of-type(1)::after,
  .ph-steps[data-step="3"] .ph-step-line:nth-of-type(2)::after {
    transform: scaleX(1);
  }

  /* SLIDE 2: NETWORK / TOKEN */
  .ph-section-label {
    font-size: 11px; color: rgba(11,23,29,0.55);
    padding: 12px 22px 6px; font-weight: 500;
  }
  .ph-card {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(11,23,29,0.08);
    border-radius: 12px;
    padding: 11px 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    color: #0b171d;
    transition: border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
  }
  .ph-card.active {
    border-color: #0b171d;
    box-shadow: 0 0 0 3px rgba(11,23,29,0.06);
  }
  .ph-net { margin: 0 22px; }
  .ph-token-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 22px;
  }
  .ph-token-grid .ph-card { padding: 10px 12px; font-size: 13px; }
  .ph-token-grid .ph-token-eth  { grid-column: 2; grid-row: 1; }
  .ph-token-grid .ph-token-usdc { grid-column: 1; grid-row: 1; }
  .ph-token-grid .ph-token-eurc { grid-column: 1; grid-row: 2; }
  .ph-native {
    display: inline-block; margin-left: 4px;
    padding: 1px 6px; border-radius: 8px;
    background: rgba(11,23,29,0.06);
    font-size: 9px; font-weight: 600;
    color: rgba(11,23,29,0.6);
  }
  .ph-coin {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .ph-coin svg { width: 100%; height: 100%; display: block; }
  .ph-coin-sm { width: 16px; height: 16px; }
  .ph-coin-md { width: 24px; height: 24px; }

  .ph-equals {
    margin: 14px 22px 0;
    background: rgba(11,23,29,0.04);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .ph-equals-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: rgba(11,23,29,0.6);
  }
  .ph-equals-row b {
    color: #0b171d; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .ph-equals-eqv .ph-equals-amt {
    color: rgba(11,23,29,0.35);
    font-weight: 600;
    transition: color 0.25s ease;
  }
  .ph-equals-eqv .ph-equals-coin {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.7,.3,1.4);
  }
  .ph-equals-eqv.revealed .ph-equals-coin {
    opacity: 1;
    transform: scale(1);
  }
  .ph-equals-eqv.revealed .ph-equals-amt {
    color: #0b171d;
    font-weight: 700;
    animation: phEqvBump 0.4s cubic-bezier(.2,.7,.3,1.4);
  }
  @keyframes phEqvBump {
    0% { transform: scale(0.85); opacity: 0.4; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
  }
  .ph-foot-2 { padding: 14px 22px 16px; gap: 8px; margin-top: auto; }
  .ph-back {
    flex: 1;
    appearance: none; border: 1.5px solid rgba(11,23,29,0.1);
    background: #fff; color: #0b171d;
    border-radius: 14px; height: 44px;
    font-size: 13px; font-weight: 600; font-family: inherit;
  }
  .ph-foot-2 .ph-cont { flex: 1.4; height: 44px; font-size: 13px; }

  /* SLIDE 3: QR PAYMENT */
  .ph-expires {
    margin: 12px 22px 0;
    background: #fff8e6;
    border: 1px solid #f4d99c;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #d18c3a;
  }
  .ph-expires-l { display: inline-flex; align-items: center; gap: 6px; }
  .ph-expires-r .ph-timer {
    background: #fde9c1; border: 1px solid #f4d99c;
    padding: 2px 8px; border-radius: 6px;
    font-weight: 700; color: #b97417;
    font-variant-numeric: tabular-nums;
  }
  /* Combined tabs + QR card */
  .ph-slide-3 > * { flex-shrink: 0; }
  .ph-qr-tabs {
    margin: 14px auto 0; width: 184px;
    flex: 0 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid rgba(11,23,29,0.08);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    font-size: 12px; font-weight: 600;
  }
  .ph-qr-tab {
    padding: 8px 6px; text-align: center;
    color: rgba(11,23,29,0.55);
    white-space: nowrap;
    font-size: 11px; line-height: 1.2;
  }
  .ph-qr-tab.active {
    background: #0b171d; color: #fff;
  }
  .ph-qr {
    margin: 0 auto;
    flex: 0 0 auto;
    width: 184px; height: 184px;
    background: #fff;
    border: 1px solid rgba(11,23,29,0.08);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(11,23,29,0.06);
    position: relative;
  }
  .ph-qr-img {
    width: 100%; height: 100%;
    display: block;
    image-rendering: pixelated;
  }
  .ph-qr-logo {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 32px; height: 32px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px #fff;
  }
  .ph-qr-logo svg { width: 22px; height: 22px; }
  .ph-qr-amount {
    text-align: center; margin-top: 12px;
    font-size: 18px; font-weight: 800; color: #0b171d;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-variant-numeric: tabular-nums;
  }
  .ph-qr {
    overflow: hidden;
  }
  .ph-qr-scan {
    position: absolute;
    inset: 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(54,123,255,0.45) 50%, transparent 55%, transparent 100%);
    background-size: 100% 220%;
    background-position: 0% 0%;
    mix-blend-mode: multiply;
    animation: phQrScan 2.4s ease-in-out infinite;
  }
  @keyframes phQrScan {
    0%   { background-position: 0% -10%; opacity: 0; }
    15%  { opacity: 0.9; }
    50%  { background-position: 0% 110%; opacity: 0.9; }
    65%  { opacity: 0; }
    100% { background-position: 0% 110%; opacity: 0; }
  }
  .ph-scanning {
    margin: 8px auto 0;
    display: flex; justify-content: center; align-items: center; gap: 6px;
    width: fit-content;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: rgba(54,123,255,0.08);
    border: 1px solid rgba(54,123,255,0.18);
    color: #1d52c4;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.01em;
  }
  .ph-scanning-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #367bff;
    box-shadow: 0 0 0 0 rgba(54,123,255,0.5);
    animation: phScanDot 1.4s ease-in-out infinite;
  }
  @keyframes phScanDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(54,123,255,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(54,123,255,0); }
  }
  .ph-qr-eqv {
    text-align: center;
    font-size: 11px; color: rgba(11,23,29,0.5);
    margin-top: 1px;
  }
  .ph-addr {
    margin: 10px 22px 0;
    background: rgba(11,23,29,0.05);
    border-radius: 10px; padding: 9px 12px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: #0b171d;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
  }
  .ph-addr-copy svg { width: 14px; height: 14px; color: rgba(11,23,29,0.5); }
  .ph-eth-chip {
    align-self: center;
    margin: 8px auto 0;
    background: rgba(98,126,234,0.08);
    color: #4a63c2;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
  }

  /* SLIDE 4: SETTLEMENT IN PROGRESS */
  .ph-slide-4 {
    background: linear-gradient(180deg, #eaf2fc 0%, #d9e7f6 100%);
    padding: 0;
    justify-content: flex-start;
  }
  .ph-settle-wrap {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    padding: 60px 22px 22px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .ph-settle-spinner {
    width: 56px; height: 56px;
    background: rgba(31,78,168,0.13);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }
  .ph-settle-spinner svg {
    width: 32px; height: 32px;
    animation: phSettleSpin 1.1s linear infinite;
    transform-origin: center;
  }
  @keyframes phSettleSpin {
    to { transform: rotate(360deg); }
  }
  .ph-settle-title {
    font-size: 18px; font-weight: 800;
    color: #0b171d;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
  }
  .ph-settle-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(11,23,29,0.05);
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 14px;
  }
  .ph-settle-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
  }
  .ph-settle-l { color: rgba(11,23,29,0.55); font-weight: 500; }
  .ph-settle-r {
    color: #0b171d; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
    font-variant-numeric: tabular-nums;
  }
  .ph-coin-xs { width: 13px; height: 13px; }
  .ph-settle-r-pln { font-weight: 700; }
  .ph-settle-note {
    font-size: 11px; line-height: 1.45;
    color: rgba(11,23,29,0.55);
    text-align: center;
  }
  /* SLIDE 5: PAYMENT COMPLETED */
  .ph-done-wrap {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 22px 22px;
  }
  .ph-done-check {
    width: 64px; height: 64px;
    margin-bottom: 14px;
    animation: phDoneIn 420ms cubic-bezier(.2,.7,.3,1.4) both;
  }
  .ph-done-check svg { width: 64px; height: 64px; display: block; }
  @keyframes phDoneIn {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
  .ph-done-title {
    font-size: 18px; font-weight: 800; color: #0b171d;
    margin-bottom: 4px;
  }
  .ph-done-sub {
    font-size: 11.5px; color: rgba(11,23,29,0.55);
    margin-bottom: 16px;
  }
  .ph-done-when { color: #0b171d; font-weight: 600; }
  .ph-done-card {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 1px 2px rgba(11,23,29,0.06);
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 14px;
  }
  .ph-done-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
  }
  .ph-done-l { color: rgba(11,23,29,0.55); font-weight: 500; }
  .ph-done-r {
    color: #0b171d; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
    font-variant-numeric: tabular-nums;
  }
  .ph-done-r-pln { font-weight: 700; }
  .ph-done-divider { height: 1px; background: rgba(11,23,29,0.07); margin: 2px 0; }
  .ph-done-row-tx .ph-done-r {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; font-weight: 600;
    color: rgba(11,23,29,0.7);
  }
  .ph-done-actions {
    width: 100%;
    display: flex; gap: 8px;
  }
  .ph-done-btn {
    flex: 1; height: 42px; border: none; cursor: pointer;
    border-radius: 12px; font-weight: 700; font-size: 13px;
    font-family: inherit;
  }
  .ph-done-btn-primary {
    background: #0b171d; color: #fff;
  }
  .ph-done-btn-ghost {
    background: rgba(11,23,29,0.06); color: #0b171d;
  }
  .ph-done-placeholder {
    visibility: hidden;
    max-width: 220px;
    margin-top: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-phone, .phone-glow, .ph-hand { animation: none; }
    .hero-phone { transform: rotateX(4deg) rotateY(-7deg); }
    .ph-settle-spinner svg { animation: none; }
  }

  @media (max-width: 980px) {
    .phone { width: 270px; height: 540px; }
    .phone-screen { border-radius: 36px; }
    .ph-amount { font-size: 30px; }
    .ph-key { height: 38px; font-size: 17px; }
    .ph-cont { height: 42px; }
  }
  @media (max-width: 560px) {
    /* Keep the animated phone on mobile, but scale it down so it fits
       gracefully and run the timeline once (see hero-phone JS one-shot mode). */
    .hero-phone {
      width: 240px;
      transform: scale(0.85);
      transform-origin: top center;
      margin-top: -8px;
      margin-bottom: -40px; /* compensate for the scale, avoid extra whitespace */
    }
    .phone { width: 260px; height: 520px; }
    .phone-screen { border-radius: 34px; }
  }
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(60% 50% at 50% 35%, rgba(14,165,233,0.22), rgba(14,165,233,0) 60%),
      radial-gradient(40% 40% at 80% 10%, rgba(101,221,236,0.12), transparent 70%);
    z-index: -1;
  }
  .hero::after {
    /* subtle grid */
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(closest-side at 50% 40%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(closest-side at 50% 40%, black 0%, transparent 80%);
    z-index: -1;
    opacity: .5;
  }

  /* Hero background — four gradient variants, switched via [data-bg] on .hero */
  .hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .bg-layer {
    position: absolute;
    display: block;
    border-radius: 50%;
    will-change: transform, opacity;
    transition: opacity .6s ease, background .6s ease;
  }
  .bg-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(closest-side at 50% 45%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(closest-side at 50% 45%, black 0%, transparent 75%);
    opacity: 0;
    transition: opacity .6s ease;
  }

  /* ---- Variant: AURORA — soft flowing blue/cyan blobs ---- */
  .hero[data-bg="aurora"] .l1 {
    width: 640px; height: 640px;
    top: -160px; left: -140px;
    background: radial-gradient(circle at 50% 50%, rgba(14,165,233,0.55), transparent 62%);
    filter: blur(60px);
    animation: auroraFlow 28s ease-in-out infinite;
  }
  .hero[data-bg="aurora"] .l2 {
    width: 520px; height: 520px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle at 50% 50%, rgba(101,221,236,0.42), transparent 65%);
    filter: blur(80px);
    animation: auroraFlow 34s ease-in-out infinite reverse;
  }
  .hero[data-bg="aurora"] .l3 {
    width: 420px; height: 420px;
    top: 35%; left: 40%;
    background: radial-gradient(circle at 50% 50%, rgba(10,148,199,0.35), transparent 60%);
    filter: blur(70px);
    animation: auroraFlow 22s ease-in-out infinite;
    animation-delay: -8s;
  }
  @keyframes auroraFlow {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(80px,-40px) scale(1.1); }
    66%     { transform: translate(-60px,30px) scale(0.95); }
  }

  /* ---- Variant: BEAM — single radial spotlight + grid ---- */
  .hero[data-bg="beam"] .bg-grid { opacity: 1; }
  .hero[data-bg="beam"] .l1,
  .hero[data-bg="beam"] .l2 { display: none; }
  .hero[data-bg="beam"] .l3 {
    width: 1000px; height: 700px;
    top: 10%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.55) 0%, rgba(14,165,233,0.22) 25%, transparent 55%);
    filter: blur(10px);
    border-radius: 0;
  }
  .hero[data-bg="beam"]::before {
    background:
      radial-gradient(50% 40% at 50% 100%, rgba(101,221,236,0.18), transparent 70%) !important;
  }

  /* ---- Variant: MESH — modern mesh gradient, subtle animation ---- */
  .hero[data-bg="mesh"] .l1 {
    inset: 0; width: 100%; height: 100%;
    border-radius: 0;
    background:
      radial-gradient(at 18% 22%, rgba(14,165,233,0.55), transparent 45%),
      radial-gradient(at 80% 18%, rgba(101,221,236,0.35), transparent 50%),
      radial-gradient(at 72% 78%, rgba(10,148,199,0.45), transparent 55%),
      radial-gradient(at 22% 82%, rgba(14,165,233,0.25), transparent 50%);
    filter: blur(30px) saturate(1.2);
    animation: meshShift 18s ease-in-out infinite;
  }
  .hero[data-bg="mesh"] .l2, .hero[data-bg="mesh"] .l3 { display: none; }
  @keyframes meshShift {
    0%,100% { filter: blur(30px) saturate(1.2) hue-rotate(0deg); }
    50%     { filter: blur(40px) saturate(1.4) hue-rotate(-12deg); }
  }

  /* ---- Variant: DEEP — minimal, single large glow ---- */
  .hero[data-bg="deep"] .l1 {
    width: 900px; height: 900px;
    top: 50%; left: 50%;
    transform: translate(-50%,-55%);
    background: radial-gradient(circle at 50% 50%, rgba(14,165,233,0.32) 0%, rgba(10,148,199,0.12) 35%, transparent 65%);
    filter: blur(20px);
    animation: deepBreath 10s ease-in-out infinite;
  }
  .hero[data-bg="deep"] .l2, .hero[data-bg="deep"] .l3 { display: none; }
  @keyframes deepBreath {
    0%,100% { opacity: 0.9; transform: translate(-50%,-55%) scale(1); }
    50%     { opacity: 1;   transform: translate(-50%,-55%) scale(1.06); }
  }

  /* ---- Variant: LINES — animated conic/stripes ---- */
  .hero[data-bg="lines"] .l1 {
    inset: 0; width: 100%; height: 100%;
    border-radius: 0;
    background:
      repeating-linear-gradient(
        115deg,
        rgba(14,165,233,0.08) 0 2px,
        transparent 2px 80px
      ),
      radial-gradient(at 30% 30%, rgba(14,165,233,0.35), transparent 55%),
      radial-gradient(at 75% 70%, rgba(101,221,236,0.25), transparent 55%);
    filter: blur(0px);
    animation: linesDrift 20s linear infinite;
  }
  .hero[data-bg="lines"] .l2, .hero[data-bg="lines"] .l3 { display: none; }
  @keyframes linesDrift {
    0%   { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 400px 0, 0 0, 0 0; }
  }

  /* ============================================================
     LIQUID GLASS variants
     ============================================================ */
  .glass {
    position: absolute;
    display: none;
    border-radius: 50%;
    will-change: transform;
    pointer-events: none;
  }

  /* -------- FROST — large glass plate over vivid gradient -------- */
  .hero[data-bg="frost"] .l1 {
    inset: 0; width: 100%; height: 100%; border-radius: 0;
    background:
      radial-gradient(at 12% 18%, #0ea5e9 0%, transparent 42%),
      radial-gradient(at 88% 22%, #65ddec 0%, transparent 42%),
      radial-gradient(at 78% 85%, #0a94c7 0%, transparent 45%),
      radial-gradient(at 22% 78%, #1e40af 0%, transparent 45%),
      #05080d;
    filter: saturate(1.25);
  }
  .hero[data-bg="frost"] .l2, .hero[data-bg="frost"] .l3 { display: none; }
  .hero[data-bg="frost"] .g1 {
    display: block;
    width: 92%; height: 62%;
    left: 4%; top: 20%;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.08));
    -webkit-backdrop-filter: blur(42px) saturate(1.3);
    backdrop-filter: blur(42px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.4),
      inset 0 -1px 0 rgba(255,255,255,0.08),
      0 40px 80px -20px rgba(0,0,0,0.6);
  }
  .hero[data-bg="frost"] .g1::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(60% 30% at 50% 0%, rgba(255,255,255,0.35), transparent 70%);
    pointer-events: none;
  }

  /* -------- BUBBLE — round glass orbs floating -------- */
  .hero[data-bg="bubble"] .l1 {
    inset: 0; width: 100%; height: 100%; border-radius: 0;
    background:
      radial-gradient(at 20% 30%, #0ea5e9 0%, transparent 40%),
      radial-gradient(at 80% 65%, #65ddec 0%, transparent 45%),
      radial-gradient(at 50% 110%, #6366f1 0%, transparent 40%),
      #05080d;
    filter: saturate(1.2);
  }
  .hero[data-bg="bubble"] .l2, .hero[data-bg="bubble"] .l3 { display: none; }
  .hero[data-bg="bubble"] .glass { display: block; }
  .hero[data-bg="bubble"] .glass {
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 35%, rgba(255,255,255,0.02) 70%);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,0.35),
      inset 0 -2px 12px rgba(255,255,255,0.08),
      0 20px 40px -10px rgba(0,0,0,0.4);
  }
  .hero[data-bg="bubble"] .g1 { width: 280px; height: 280px; top: -60px; left: -60px;   animation: bubbleFloat 22s ease-in-out infinite; }
  .hero[data-bg="bubble"] .g2 { width: 200px; height: 200px; top: 50%;  right: 8%;      animation: bubbleFloat 26s ease-in-out infinite reverse; }
  .hero[data-bg="bubble"] .g3 { width: 140px; height: 140px; top: 20%;  right: 28%;     animation: bubbleFloat 18s ease-in-out infinite; animation-delay: -4s; }
  .hero[data-bg="bubble"] .g4 { width: 160px; height: 160px; bottom: -40px; left: 35%;  animation: bubbleFloat 24s ease-in-out infinite reverse; animation-delay: -8s; }
  @keyframes bubbleFloat {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(40px,-30px); }
  }

  /* -------- REFRACT — chromatic glass lozenge over gradient -------- */
  .hero[data-bg="refract"] .l1 {
    inset: 0; width: 100%; height: 100%; border-radius: 0;
    background:
      radial-gradient(at 15% 25%, #0ea5e9 0%, transparent 45%),
      radial-gradient(at 85% 75%, #a855f7 0%, transparent 45%),
      radial-gradient(at 60% 15%, #ec4899 0%, transparent 40%),
      radial-gradient(at 30% 85%, #22d3ee 0%, transparent 45%),
      #05080d;
    filter: saturate(1.3);
  }
  .hero[data-bg="refract"] .l2, .hero[data-bg="refract"] .l3 { display: none; }
  .hero[data-bg="refract"] .g1 {
    display: block;
    width: 78%; height: 58%;
    left: 11%; top: 22%;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.12));
    -webkit-backdrop-filter: blur(28px) saturate(1.6) contrast(1.1);
    backdrop-filter: blur(28px) saturate(1.6) contrast(1.1);
    border: 1px solid transparent;
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.5),
      inset 0 -1.5px 0 rgba(255,255,255,0.1),
      0 30px 80px -15px rgba(0,0,0,0.5);
  }
  .hero[data-bg="refract"] .g1::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from 90deg, #22d3ee, #a855f7, #ec4899, #22d3ee);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    animation: refractSpin 14s linear infinite;
  }
  @keyframes refractSpin {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
  }

  /* -------- ICE — angular glass shards -------- */
  .hero[data-bg="ice"] .l1 {
    inset: 0; width: 100%; height: 100%; border-radius: 0;
    background:
      radial-gradient(at 25% 30%, #0ea5e9 0%, transparent 45%),
      radial-gradient(at 75% 70%, #06b6d4 0%, transparent 45%),
      linear-gradient(135deg, #0a1a2e, #05080d);
    filter: saturate(1.15);
  }
  .hero[data-bg="ice"] .l2, .hero[data-bg="ice"] .l3 { display: none; }
  .hero[data-bg="ice"] .glass { display: block; border-radius: 12px; }
  .hero[data-bg="ice"] .glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.08));
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.45),
      inset 0 -1px 0 rgba(255,255,255,0.08),
      0 20px 50px -15px rgba(0,0,0,0.5);
  }
  .hero[data-bg="ice"] .g1 { width: 340px; height: 180px; top: 10%;  left: -40px;   transform: rotate(-14deg); }
  .hero[data-bg="ice"] .g2 { width: 260px; height: 260px; top: 40%;  right: -40px;  transform: rotate(22deg);  border-radius: 28px; }
  .hero[data-bg="ice"] .g3 { width: 180px; height: 100px; bottom: 12%; left: 18%;   transform: rotate(-6deg); }
  .hero[data-bg="ice"] .g4 { width: 140px; height: 140px; top: 8%;   right: 22%;    transform: rotate(30deg); border-radius: 28px; }

  /* Background variant switcher (Tweaks panel) */
  .bg-switcher {
    position: fixed;
    top: 90px; right: 20px;
    z-index: 65;
    background: rgba(10,14,20,0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px;
    display: none;
    color: #fff;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
    width: 240px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  body.tweaks-on .bg-switcher { display: block; }
  .bg-switcher h4 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #9aa0a6;
    margin: 0 0 10px;
  }
  .bg-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .bg-opt {
    position: relative;
    height: 54px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    display: flex; align-items: flex-end; padding: 6px 8px;
  }
  .bg-opt:hover { border-color: rgba(14,165,233,0.6); transform: translateY(-1px); }
  .bg-opt.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(14,165,233,0.3); }
  .bg-opt .sw-preview {
    position: absolute; inset: 0;
    z-index: 0;
  }
  .bg-opt .sw-label { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.7); }
  .bg-opt[data-opt="aurora"] .sw-preview {
    background:
      radial-gradient(circle at 20% 30%, rgba(14,165,233,0.9), transparent 55%),
      radial-gradient(circle at 80% 70%, rgba(101,221,236,0.7), transparent 55%),
      #0a0a0a;
  }
  .bg-opt[data-opt="beam"] .sw-preview {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.9) 0%, transparent 60%),
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 10px 10px,
      #0a0a0a;
  }
  .bg-opt[data-opt="mesh"] .sw-preview {
    background:
      radial-gradient(at 15% 25%, rgba(14,165,233,0.9), transparent 50%),
      radial-gradient(at 80% 20%, rgba(101,221,236,0.7), transparent 50%),
      radial-gradient(at 75% 80%, rgba(10,148,199,0.8), transparent 50%),
      #0a0a0a;
  }
  .bg-opt[data-opt="deep"] .sw-preview {
    background:
      radial-gradient(circle at 50% 55%, rgba(14,165,233,0.55), transparent 65%),
      #0a0a0a;
  }
  .bg-opt[data-opt="lines"] .sw-preview {
    background:
      repeating-linear-gradient(115deg, rgba(14,165,233,0.4) 0 1px, transparent 1px 10px),
      radial-gradient(at 30% 40%, rgba(14,165,233,0.6), transparent 55%),
      #0a0a0a;
  }
  .bg-opt[data-opt="frost"] .sw-preview {
    background:
      linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06)),
      radial-gradient(at 20% 30%, #0ea5e9, transparent 55%),
      radial-gradient(at 80% 70%, #65ddec, transparent 55%),
      #0a0a0a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .bg-opt[data-opt="bubble"] .sw-preview {
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 18%, transparent 25%),
      radial-gradient(circle at 75% 65%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 14%, transparent 22%),
      radial-gradient(at 20% 40%, #0ea5e9, transparent 55%),
      radial-gradient(at 80% 60%, #6366f1, transparent 55%),
      #0a0a0a;
  }
  .bg-opt[data-opt="refract"] .sw-preview {
    background:
      linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04)),
      radial-gradient(at 20% 30%, #0ea5e9, transparent 55%),
      radial-gradient(at 80% 20%, #ec4899, transparent 55%),
      radial-gradient(at 70% 80%, #a855f7, transparent 55%),
      #0a0a0a;
  }
  .bg-opt[data-opt="ice"] .sw-preview {
    background:
      linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 30%, transparent 50%, rgba(255,255,255,0.12) 70%),
      radial-gradient(at 25% 30%, #0ea5e9, transparent 55%),
      radial-gradient(at 75% 70%, #06b6d4, transparent 55%),
      #0a0a0a;
  }

  /* Button style option previews (inside the switcher panel) */
  .btn-options { grid-template-columns: repeat(2, 1fr); }
  .btn-opt {
    position: relative;
    height: 54px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #12161c;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 6px;
  }
  .btn-opt:hover { border-color: rgba(14,165,233,0.6); transform: translateY(-1px); }
  .btn-opt.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(14,165,233,0.3); }
  .btn-opt .bp {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 600; letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 6px;
    color: #001018;
    position: relative;
    overflow: hidden;
  }
  .btn-opt .bp-label {
    font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #9aa0a6; font-weight: 600;
  }
  .bp-classic { background: var(--cyan); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
  .bp-frost {
    background: linear-gradient(140deg, rgba(255,255,255,0.35), rgba(255,255,255,0.12));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  }
  .bp-cyan {
    background: linear-gradient(140deg, rgba(101,221,236,0.55), rgba(14,165,233,0.75));
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  }
  .bp-orb {
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 50%, rgba(14,165,233,0.65) 100%);
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  }
  .bp-edge {
    background: rgba(255,255,255,0.1);
    color: #fff;
    position: relative;
  }
  .bp-edge::before {
    content: ""; position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg, #22d3ee, #a855f7, #ec4899, #22d3ee);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .bp-liquid {
    background:
      radial-gradient(80% 120% at 50% 110%, rgba(14,165,233,0.7), transparent 60%),
      radial-gradient(80% 80% at 50% -20%, rgba(255,255,255,0.55), transparent 60%),
      rgba(255,255,255,0.1);
    color: #001018;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: 13px;
    color: var(--fg-dark-muted);
    margin-bottom: 28px;
    background: rgba(255,255,255,0.02);
  }
  .hero-badge .pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(14,165,233,0.15);
    color: #7dd3fc;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .hero h1 {
    font-size: clamp(38px, 6.4vw, 78px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
  }
  .hero h1 .accent {
    background: linear-gradient(90deg, #65ddec 0%, #0ea5e9 60%, #0a94c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero p.lede {
    margin-top: 22px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--fg-dark-muted);
    max-width: 640px;
    margin-inline: auto;
  }
  .hero-ctas {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center;
    margin-top: 36px;
  }

  /* Sticker strip under hero CTAs */
  .sticker-strip {
    display: flex; align-items: center; gap: 18px;
    margin-top: 36px;
    max-width: 540px;
  }
  .hero-text .sticker-strip { margin-left: 0; margin-right: 0; }
  @media (max-width: 980px) {
    .sticker-strip { margin-left: auto; margin-right: auto; }
  }
  .sticker-strip-img {
    flex: 0 0 110px;
    width: 110px; height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(243,153,17,0.45)) drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .sticker-strip:hover .sticker-strip-img { transform: rotate(-4deg) scale(1.04); }
  .sticker-strip-copy { min-width: 0; }
  .sticker-strip-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: #f39911; margin-bottom: 6px;
  }
  .sticker-strip-line {
    font-size: 14px; line-height: 1.55;
    color: var(--fg-dark-muted);
    text-wrap: pretty;
    max-width: 360px;
  }
  @media (max-width: 520px) {
    .sticker-strip { gap: 14px; }
    .sticker-strip-img { flex-basis: 84px; width: 84px; height: 84px; }
    .sticker-strip-line { font-size: 13px; }
  }
  .filler-fix {
    display: none;
  }
  @media (max-width: 520px) {
    .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-ctas .btn { width: 100%; justify-content: center; padding: 16px 20px; }
    .hero-ctas .btn-link { justify-content: center; padding: 12px 8px; }
  }

  /* ---------- 3D coins ---------- */
  .hero-coins {
    position: absolute;
    left: 0; right: 0;
    bottom: 170px;
    height: 200px;
    pointer-events: none;
    z-index: 1;
    perspective: 1400px;
    perspective-origin: 50% 40%;
  }
  .coin-arrow {
    position: absolute;
    left: 12%; right: 12%;
    top: 50%;
    width: 76%;
    height: 160px;
    transform: translateY(-50%);
    opacity: 0.85;
  }
  .coin-arrow-path {
    stroke-dashoffset: 0;
    animation: coinArrowFlow 3.2s linear infinite;
  }
  @keyframes coinArrowFlow { to { stroke-dashoffset: -150; } }

  .coin3d {
    position: absolute;
    top: 50%;
    width: 150px;
    height: 150px;
    transform: translateY(-50%) rotateX(18deg);
    transform-style: preserve-3d;
    animation: coin3dFloat 7s ease-in-out infinite;
  }
  .coin3d.crypto { left: 4%; }
  .coin3d.euro   { right: 4%; animation-delay: -3.5s; }

  .coin3d-spin {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: coin3dSpin 10s linear infinite;
  }
  .coin3d.euro .coin3d-spin { animation-duration: 13s; animation-direction: reverse; }

  /* Edge layers stacked along Z form the coin's thickness */
  .coin3d-edge {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, #f7ecc7 0%, #c9a959 20%, #8a7437 45%, #5a4b23 75%, #2f2710 100%);
    box-shadow:
      inset 0 0 0 2px rgba(0,0,0,0.25),
      inset 0 0 30px rgba(0,0,0,0.3);
  }
  .coin3d.crypto .coin3d-edge {
    background:
      radial-gradient(circle at 30% 30%, #cfe4f7 0%, #7a97b5 25%, #3b5169 55%, #1c2a3a 80%, #0b151f 100%);
  }

  .coin3d-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background:
      radial-gradient(circle at 32% 28%, #fff8dc 0%, #e5c97d 18%, #b28b3f 42%, #705623 72%, #3d2c0e 100%);
    box-shadow:
      inset 0 0 0 3px rgba(0,0,0,0.25),
      inset 0 0 40px rgba(0,0,0,0.35),
      inset 4px 4px 12px rgba(255,255,255,0.25),
      inset -4px -4px 14px rgba(0,0,0,0.4);
  }
  .coin3d.crypto .coin3d-face {
    background:
      radial-gradient(circle at 32% 28%, #e8f4ff 0%, #9fbcd6 18%, #4e6f8c 42%, #253a52 72%, #0d1928 100%);
  }
  .coin3d-face.front { transform: translateZ(13px); }
  .coin3d-face.back  { transform: translateZ(-13px) rotateY(180deg); }

  /* Inset decorative rim on the face */
  .coin3d-rim {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.22);
    box-shadow:
      inset 0 0 0 3px rgba(255,255,255,0.14),
      inset 0 0 22px rgba(0,0,0,0.35);
    pointer-events: none;
  }
  .coin3d-sym {
    position: relative;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 74px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f0d48a;
    background: linear-gradient(160deg, #fff3c6 0%, #d4a84a 40%, #6e4f18 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
      0 1px 0 rgba(255,255,255,0.35),
      0 -1px 0 rgba(0,0,0,0.55);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.45));
  }
  .coin3d.crypto .coin3d-sym {
    color: #cfe4f7;
    background: linear-gradient(160deg, #eaf5ff 0%, #6c8fb0 45%, #20334a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Soft ground shadow under the coin */
  .coin3d-shadow {
    position: absolute;
    left: 50%;
    bottom: -24px;
    width: 120%;
    height: 22px;
    transform: translateX(-50%) rotateX(90deg) translateZ(-28px);
    background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
  }

  @keyframes coin3dSpin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
  }
  @keyframes coin3dFloat {
    0%, 100% { transform: translateY(-50%) rotateX(18deg) translateY(0); }
    50%      { transform: translateY(-50%) rotateX(18deg) translateY(-14px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .coin3d, .coin3d-spin, .coin-arrow-path { animation: none !important; }
  }
  @media (max-width: 900px) {
    .hero-coins { display: none; }
  }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color .15s ease, border-color .15s ease;
    position: relative;
  }
  .btn:focus-visible { outline: 2px solid var(--cyan-2, #38bdf8); outline-offset: 2px; }
  .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn:disabled:hover { background: var(--cyan); border-color: rgba(255,255,255,0.18); }
  .btn .chev { transition: transform .2s ease; }
  .btn-primary:hover .chev { transform: translateX(3px); }

  /* Text-link CTA — no border, arrow nudges on hover */
  .btn-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 8px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: color .15s ease;
  }
  .btn-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }
  .btn-link:hover { color: var(--cyan-2, #38bdf8); }
  .btn-link:hover .chev { transform: translateX(4px); }
  .btn-link:focus-visible { outline: 2px solid var(--cyan-2, #38bdf8); outline-offset: 4px; border-radius: 4px; }
  .btn-primary {
    background: var(--cyan);
    color: #00131a;
  }
  .btn-primary:hover { background: #0c91d4; }
  .btn-primary:active { background: #0a7eba; }
  .btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); }
  .btn-ghost:active { background: rgba(255,255,255,0.1); }
  .btn .chev { width: 16px; height: 16px; }

/* glass-button overrides removed — flat style only */

  /* =====================================================
     TRUST BAR
  ===================================================== */
  .trustbar {
    background: var(--bg-dark);
    color: var(--fg-dark);
    border-top: 1px solid var(--line-dark);
    padding: 22px 0 32px;
    position: relative;
  }
  .trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  @media (max-width: 820px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
  .trust-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px;
    color: var(--fg-dark-muted);
  }
  .trust-item svg { width: 18px; height: 18px; color: var(--cyan-2); flex-shrink: 0; }
  .trust-item strong { color: var(--fg-dark); font-weight: 600; }

  /* Hero-nested explainer + trust bar (kept inside hero for above-the-fold layout) */
  .hero-explainer, .hero-trustbar {
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
    color: var(--fg-dark);
  }
  .hero-explainer {
    padding: 22px 0 18px;
    /* soft top divider — fades in from the middle */
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent) 1;
  }
  .hero-trustbar {
    padding: 14px 0 22px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent) 1;
  }
  /* On narrow screens the two bars become taller; make them compact */
  @media (max-width: 820px) {
    .hero-inner { padding-top: 88px; padding-bottom: 24px; }
    .hero-explainer { padding: 18px 0 14px; }
    .hero-trustbar  { padding: 14px 0 20px; }
  }

  /* dark->light transition: short, sharp fade near the bottom.
     Dark holds until ~70%, then a quick blur into white. */
  .transition-dark-light {
    height: 80px;
    background: linear-gradient(180deg,
      #0a0a0a 0%,
      #0a0a0a 50%,
      #1a1d22 75%,
      #ffffff 100%
    );
    pointer-events: none;
  }

  /* Explainer strip (under hero, still dark) */
  .explainer {
    background: var(--bg-dark);
    color: var(--fg-dark);
    padding: 36px 0 28px;
    border-top: 1px solid var(--line-dark);
  }
  .explainer-steps {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .explainer-step {
    display: flex; align-items: center; gap: 14px;
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
  }
  /* Real <li class="explainer-divider"> between steps — flex `space-between`
     centers them in the visual gap regardless of how long each step's text
     ends up being in EN vs PL. The diamond is the same border-trick shape
     the old `::after` used; lifted out into its own element so it floats
     in the gap rather than hugging the previous step's column edge. */
  .explainer-divider {
    flex: 0 0 8px;
    width: 8px; height: 8px;
    border-right: 1.5px solid rgba(125,211,252,0.4);
    border-top: 1.5px solid rgba(125,211,252,0.4);
    rotate: 45deg;
    list-style: none;
  }
  .explainer-step .step-num {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(125,211,252,0.35);
    background: rgba(14,165,233,0.08);
    color: var(--cyan-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px;
    font-variant-numeric: tabular-nums;
  }
  .explainer-step .step-body { min-width: 0; }
  .explainer-step .step-title {
    font-size: 16px; font-weight: 600; color: var(--fg-dark);
    line-height: 1.2;
  }
  .explainer-step .step-sub {
    font-size: 13px; color: var(--fg-dark-muted);
    margin-top: 3px;
  }
  .explainer-step .step-arrow { display: none; }
  .explainer-step .step-title-aux,
  .step h3 .step-title-aux {
    font-weight: 500;
    color: var(--fg-dark-muted);
    font-size: 0.9em;
    white-space: nowrap;
  }
  .step h3 .step-title-aux { color: var(--fg-muted); }
  .explainer-step .step-asterisk {
    color: var(--cyan-2);
    font-weight: 600;
    margin-left: 2px;
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
  }
  .explainer-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--fg-dark-muted);
    letter-spacing: 0.01em;
  }
  .explainer-note span { color: var(--cyan-2); font-weight: 600; margin-right: 2px; }
  @media (max-width: 820px) {
    .explainer-steps { flex-direction: column; align-items: flex-start; gap: 16px; }
    .explainer-step { width: 100%; }
    .explainer-divider { display: none; }
    .explainer-step .step-arrow { display: none !important; }
    .explainer-note { margin-top: 10px; }
  }

  /* What is Tailcor (FAQ cards) */
  .whatis { background: #fff; border-top: 1px solid var(--line); }
  .whatis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  @media (max-width: 820px) { .whatis-grid { grid-template-columns: 1fr; } }
  .whatis-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
  }
  .whatis-card:hover {
    border-color: rgba(14,165,233,0.35);
    box-shadow: 0 12px 30px -20px rgba(14,165,233,0.25);
    transform: translateY(-2px);
  }
  .whatis-q {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--cyan-deep);
    margin-bottom: 14px;
  }
  .whatis-a {
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg);
    margin: 0;
  }
  .whatis-a strong { color: var(--fg); font-weight: 600; }

  /* =====================================================
     HOW IT WORKS
  ===================================================== */
  .how {
    background: #fff;
  }
  .section-head {
    max-width: 720px;
    margin-bottom: 56px;
  }
  .section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    margin-top: 14px;
  }
  .section-head p {
    color: var(--fg-muted);
    font-size: 17px;
    margin-top: 14px;
    max-width: 620px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
  }
  @media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

  .steps::before {
    content: "";
    position: absolute;
    top: 32px; left: 8%; right: 8%;
    height: 1px;
    background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    z-index: 0;
  }
  @media (max-width: 820px) { .steps::before { display: none; } }

  .step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    z-index: 1;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .step:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(10,10,10,0.18); border-color: #cfd4db; }
  .step-num {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--cyan);
    font-weight: 700;
    font-size: 17px;
    display: grid; place-items: center;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.08);
    margin-bottom: 20px;
  }
  .step h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .step p {
    color: var(--fg-muted);
    margin-top: 10px;
    font-size: 15px;
  }
  .step-icon {
    position: absolute;
    top: 24px; right: 24px;
    width: 28px; height: 28px;
    color: #cfd4db;
  }

  /* =====================================================
     RESPONSIBILITIES / WHO HANDLES WHAT
  ===================================================== */
  .responsibilities {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
  }
  .responsibilities .section-head { max-width: 760px; }
  .responsibilities .section-head h2 { letter-spacing: -0.02em; }

  .resp-table {
    margin-top: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 14px 40px -28px rgba(15,23,42,0.18);
  }
  .resp-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    transition: background 0.18s ease;
  }
  .resp-row:last-child { border-bottom: 0; }
  .resp-row:hover { background: #fafbfc; }

  .resp-q {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }
  .resp-q-num {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg-tint);
    color: var(--fg-muted);
    font-size: 11px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-flex; align-items: center; justify-content: center;
    letter-spacing: 0;
  }
  .resp-q-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.4;
  }

  .resp-a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .resp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .resp-chip svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
  }
  /* Variant: "No" — green relief */
  .resp-chip-no {
    background: #e8f7ee;
    color: #146c2e;
    border: 1px solid #c8eed5;
  }
  /* Variant: Tailcor / partner — cyan brand */
  .resp-chip-us {
    background: #e3f5fb;
    color: #075a76;
    border: 1px solid #c3e6f1;
  }
  /* Variant: neutral fact (accountant) */
  .resp-chip-fact {
    background: #f4f5f7;
    color: #2a3140;
    border: 1px solid #e6e8ec;
    white-space: normal;
    line-height: 1.4;
    padding: 10px 14px;
  }
  .resp-a-note {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.45;
    min-width: 0;
  }

  /* Footer reassurance bar */
  .resp-footer {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--fg-muted);
    font-size: 13.5px;
    text-align: center;
    line-height: 1.5;
  }
  .resp-footer strong { color: var(--fg); font-weight: 600; }
  .resp-footer svg { width: 18px; height: 18px; color: var(--cyan-deep); flex-shrink: 0; }

  @media (max-width: 760px) {
    .resp-table { border-radius: 14px; }
    .resp-row {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 20px 22px;
      align-items: flex-start;
    }
    .resp-a { padding-left: 40px; }
    .resp-q-text { font-size: 15px; }
  }
  @media (max-width: 420px) {
    .resp-row { padding: 18px 18px; }
    .resp-a { padding-left: 0; }
    .resp-chip { font-size: 12.5px; }
  }

  /* =====================================================
     BENEFITS
  ===================================================== */
  .benefits { background: #fff; border-top: 1px solid var(--line); }
  .benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  @media (max-width: 820px) { .benefit-grid { grid-template-columns: 1fr; } }
  .benefits-disclaimer {
    margin: 32px auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-muted);
    font-style: italic;
  }
  .card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(10,10,10,0.2); border-color: #cfd4db; }
  .card .icon-bubble {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14,165,233,0.12), rgba(14,165,233,0.04));
    border: 1px solid rgba(14,165,233,0.2);
    color: var(--cyan);
    display: grid; place-items: center;
    margin-bottom: 20px;
  }
  .card .icon-bubble svg { width: 22px; height: 22px; }
  .card h3 { font-size: 19px; font-weight: 600; }
  .card p { color: var(--fg-muted); margin-top: 10px; font-size: 15px; }

  /* =====================================================
     WHO IT'S FOR
  ===================================================== */
  .audience {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
  }
  .audience-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
  }
  .audience-head .eyebrow { justify-content: center; }
  .audience h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-top: 14px; }
  .audience p { color: var(--fg-muted); font-size: 17px; margin-top: 14px; }

  .segments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }
  @media (max-width: 820px) { .segments { grid-template-columns: 1fr; } }
  .segment-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .segment-card:hover {
    transform: translateY(-2px);
    border-color: rgba(14,165,233,0.35);
    box-shadow: 0 12px 30px -20px rgba(14,165,233,0.25);
  }
  .segment-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--cyan-2), var(--cyan));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .segment-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14,165,233,0.12), rgba(14,165,233,0.04));
    border: 1px solid rgba(14,165,233,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--cyan-deep);
    margin-bottom: 18px;
  }
  .segment-icon svg { width: 22px; height: 22px; }
  .segment-title {
    font-size: 20px; font-weight: 700;
    color: var(--fg);
    margin: 0 0 10px;
  }
  .segment-examples {
    font-size: 15px;
    color: var(--fg);
    margin: 0 0 14px !important;
    line-height: 1.5;
  }
  .segment-why {
    font-size: 13px;
    color: var(--fg-muted);
    margin: 0 !important;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    line-height: 1.5;
  }

  .chips-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
  }
  .chips-label {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--fg-muted);
  }
  .chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
  }
  .chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
    color: #1a1f2a;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
  }
  .chip:hover { border-color: var(--cyan); color: var(--cyan); }
  .chip-more { background: transparent; color: var(--fg-muted); border-style: dashed; }

  /* =====================================================
     PRICING
  ===================================================== */
  .pricing { background: #fff; border-top: 1px solid var(--line); }

  /* Stats section */
  .stats { background: linear-gradient(180deg, #fff 0%, #f2fbfd 100%); }
  .stats .section-head { max-width: 820px; }
  .stats .section-lede { color: var(--fg-muted); font-size: 17px; margin-top: 14px; max-width: 680px; }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  @media (max-width: 820px) { .stats-grid { grid-template-columns: 1fr; } }
  .stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
  }
  .stat-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--cyan-2), var(--cyan));
  }
  .stat-num {
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .stat-label {
    font-size: 16px; font-weight: 600;
    color: var(--fg);
    margin-top: 16px;
    line-height: 1.35;
  }
  .stat-sub {
    font-size: 13px;
    color: var(--fg-muted);
    margin-top: 8px;
  }
  .stats-foot {
    text-align: center;
    font-size: 18px;
    color: var(--fg);
    font-weight: 500;
    margin: 48px auto 0;
    max-width: 640px;
  }
  .stats-cta { margin-top: 24px; text-align: center; }
  .stats-cta .btn-primary { background: var(--cyan); color: #001018; }

  /* Compare section */
  .compare { background: #fff; border-top: 1px solid var(--line); }
  .compare-table {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px -20px rgba(0,0,0,0.08);
  }
  .compare-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-bottom: 1px solid var(--line);
  }
  .compare-row:last-child { border-bottom: 0; }
  .compare-row > div {
    padding: 18px 22px;
    font-size: 15px;
  }
  .compare-row > div:nth-child(1) { color: var(--fg-muted); font-weight: 500; }
  .compare-row > div:nth-child(2) { color: var(--fg); border-left: 1px solid var(--line); }
  .compare-row > div:nth-child(3) {
    background: linear-gradient(180deg, rgba(14,165,233,0.06), rgba(14,165,233,0.02));
    border-left: 1px solid var(--cyan);
    color: var(--fg);
    font-weight: 600;
  }
  .compare-row.head > div {
    background: #f8fafc;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--fg-muted);
    padding: 16px 22px;
  }
  .compare-row.head > div:nth-child(3) {
    background: linear-gradient(180deg, rgba(14,165,233,0.12), rgba(14,165,233,0.04));
    color: var(--cyan-deep);
  }
  .compare-row .win {
    display: inline-flex; align-items: center; gap: 6px;
  }
  .compare-row .win::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
  }
  .compare-foot {
    text-align: center;
    margin-top: 28px;
    font-size: 16px;
    color: var(--fg-muted);
    max-width: 640px; margin-left: auto; margin-right: auto;
  }
  @media (max-width: 720px) {
    .compare-row { grid-template-columns: 1.4fr 1fr 1fr; }
    .compare-row > div { padding: 14px 12px; font-size: 13px; }
  }
  .pricing-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }
  .price-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    background: #fff;
    margin-top: 32px;
    text-align: left;
    position: relative;
    overflow: hidden;
  }
  .price-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--cyan-2), var(--cyan), var(--cyan-deep));
  }
  .price-headline {
    display: flex; align-items: baseline; gap: 10px;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--cyan-deep);
  }
  .price-headline small {
    font-size: 17px;
    font-weight: 500;
    color: var(--fg-muted);
    letter-spacing: 0;
  }
  .price-headline .num {
    background: linear-gradient(90deg, #0a94c7, #0ea5e9 60%, #65ddec);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .price-list { list-style: none; padding: 0; margin: 28px 0 0; }
  .price-list li {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: #1a1f2a;
  }
  .price-list li:last-child { border-bottom: 0; }
  .price-list svg {
    width: 18px; height: 18px;
    color: var(--green);
    flex-shrink: 0;
  }
  .price-note { color: var(--fg-muted); font-size: 13px; margin-top: 20px; }
  .price-cta { margin-top: 28px; width: 100%; justify-content: center; }

  /* =====================================================
     LEGALITY / TRUST
  ===================================================== */
  .legality {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .legality .section-head { max-width: 780px; }
  .legality .section-head h2 { letter-spacing: -0.02em; }

  .legality-bar {
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .legality-fact {
    display: flex; flex-direction: column; gap: 4px;
    min-width: 0;
  }
  .legality-fact-label {
    font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 600;
  }
  .legality-fact-value {
    font-size: 16px; font-weight: 700; color: #111;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
  }
  .legality-fact-license .legality-fact-value {
    font-size: 14px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .legality-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-left: auto;
  }
  .legality-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    background: var(--cyan);
    color: #00131a;
  }
  .legality-action:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(14,165,233,0.55); }
  .legality-action .chev { width: 12px; height: 12px; }
  .legality-action-alt {
    background: transparent;
    color: var(--cyan-deep);
    border: 1px solid rgba(10,148,199,0.3);
  }
  .legality-action-alt:hover {
    background: rgba(14,165,233,0.06);
    border-color: var(--cyan-deep);
    box-shadow: none;
  }
  @media (max-width: 720px) {
    .legality-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
      padding: 20px;
    }
    .legality-actions {
      margin-left: 0;
      width: 100%;
    }
    .legality-action { flex: 1; justify-content: center; }
  }

  /* =====================================================
     CONTACT FORM (DARK)
  ===================================================== */
  .contact {
    background: var(--bg-dark);
    color: var(--fg-dark);
    position: relative;
    overflow: hidden;
    padding-block: 110px;
  }
  .contact::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(50% 40% at 20% 20%, rgba(14,165,233,0.15), transparent 60%),
      radial-gradient(40% 40% at 90% 80%, rgba(101,221,236,0.1), transparent 60%);
    pointer-events: none;
  }
  .contact-inner {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 72px;
    align-items: start;
    position: relative;
  }
  @media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }
  .contact h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
  .contact .lede { color: var(--fg-dark-muted); font-size: 17px; margin-top: 16px; max-width: 440px; }

  .contact-aside-list {
    list-style: none; margin: 36px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 14px;
  }
  .contact-aside-list li {
    display: flex; gap: 12px; align-items: flex-start;
    color: var(--fg-dark-muted);
    font-size: 14px;
  }
  .contact-aside-list svg { width: 18px; height: 18px; color: var(--cyan-2); flex-shrink: 0; margin-top: 1px; }
  .contact-aside-list strong { color: var(--fg-dark); font-weight: 600; display: block; }
  .contact-aside-mail { color: var(--cyan-2); text-decoration: none; font-weight: 500; transition: color .15s ease; }
  .contact-aside-mail:hover { color: var(--fg-dark); text-decoration: underline; }

  .form-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-dark);
    border-radius: 20px;
    padding: 32px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  @media (max-width: 520px) { .form-wrap { padding: 22px; } }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .form-grid .full { grid-column: 1 / -1; }
  @media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } }

  .field { display: flex; flex-direction: column; gap: 8px; }
  .field label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--fg-dark-muted);
  }
  .field label .req { color: var(--cyan-2); margin-left: 4px; }
  .input, .select {
    background: #fff;
    color: #0b0c0f;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
  }
  .input::placeholder { color: #9aa0a6; }
  .input:focus, .select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.22);
  }
  .field.invalid .input, .field.invalid .select { border-color: var(--error); box-shadow: 0 0 0 4px rgba(192,57,43,0.22); }
  .field.valid .input, .field.valid .select { border-color: #34d399; }
  .field .hint {
    font-size: 12px;
    color: var(--error);
    min-height: 16px;
    display: none;
  }
  .field.invalid .hint { display: block; }
  .field .hint:not([class~="hint-static"]):not(.hint) {}
  .field .hint-static, .field label .label-aux {
    color: var(--fg-dark-muted);
  }
  .field label .label-aux {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.7;
  }
  .field .hint-static {
    font-size: 12px;
    margin-top: 6px;
    display: block;
  }

  .select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 7l5 6 5-6' fill='none' stroke='%23515864' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
  }

  .submit {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    border-radius: 10px;
    background: var(--cyan);
    color: #001018;
    font-weight: 700;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 30px -12px rgba(14,165,233,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
  }
  .submit:hover { background: #38bdf8; transform: translateY(-1px); }
  .submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
  /* Pre-consent disabled state — distinct from the in-flight :disabled state above */
  .submit[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--cyan-2);
    transform: none;
    box-shadow: none;
  }
  .submit[aria-disabled="true"]:hover { background: var(--cyan-2); transform: none; }

  /* Public offer agreement checkbox */
  .legal-consent {
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
  }
  .legal-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
  }
  .legal-consent-box {
    flex: 0 0 22px;
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    display: grid; place-items: center;
    color: transparent;
    transition: all 0.15s ease;
    margin-top: 1px;
  }
  .legal-consent-box svg { width: 14px; height: 14px; }
  .legal-consent input[type="checkbox"]:checked + .legal-consent-box {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #00131a;
  }
  .legal-consent input[type="checkbox"]:focus-visible + .legal-consent-box {
    outline: 2px solid var(--cyan-2);
    outline-offset: 2px;
  }
  .legal-consent:hover .legal-consent-box { border-color: rgba(255,255,255,0.45); }
  .legal-consent input[type="checkbox"]:checked:hover + .legal-consent-box { border-color: var(--cyan); }
  .legal-consent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-dark-muted);
  }
  .legal-consent-text a {
    color: var(--cyan-2);
    text-decoration: underline;
    text-decoration-color: rgba(101,221,236,0.45);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
  }
  .legal-consent-text a:hover { text-decoration-color: var(--cyan-2); }
  .legal-consent-pl { color: var(--fg-dark-dim); }
  /* Show only the active language's consent text */
  html[lang="en"] .legal-consent-pl { display: none; }
  html[lang="pl"] .legal-consent-en { display: none; }
  html[lang="pl"] .legal-consent-pl { color: inherit; }
  .field.invalid .legal-consent-box {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.22);
  }

  .form-foot {
    margin-top: 16px;
    font-size: 12px;
    color: var(--fg-dark-dim);
    text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .form-foot svg { width: 13px; height: 13px; color: var(--fg-dark-muted); }

  /* Success state */
  .success {
    display: none;
    text-align: center;
    padding: 24px 8px 8px;
  }
  .success.show { display: block; animation: fadeIn .4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .check-circle {
    width: 84px; height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(14,165,233,0.12);
    border: 1px solid rgba(14,165,233,0.35);
    display: grid; place-items: center;
    position: relative;
  }
  .check-circle::after {
    content: "";
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(14,165,233,0.2);
    animation: ring 1.8s ease-out infinite;
  }
  @keyframes ring { 0% { transform: scale(0.9); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
  .check-circle svg { width: 40px; height: 40px; color: var(--cyan); }
  .check-circle svg path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: draw .6s .1s ease forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .success h3 { font-size: 24px; font-weight: 700; }
  .success p { color: var(--fg-dark-muted); margin-top: 10px; font-size: 15px; max-width: 360px; margin-inline: auto; }

  /* =====================================================
     FOOTER
  ===================================================== */
  .footer {
    background: var(--bg-dark-2);
    color: var(--fg-dark-muted);
    padding: 48px 0 36px;
    border-top: 1px solid var(--line-dark);
    font-size: 14px;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
  }
  @media (max-width: 820px) {
    .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  }
  .footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
  .footer-links a:hover { color: var(--fg-dark); }
  .footer-right { text-align: right; }
  @media (max-width: 820px) { .footer-right { text-align: left; } }

  .footer-inner { grid-template-columns: 1fr auto 1fr auto; }
  @media (max-width: 820px) {
    .footer-inner { grid-template-columns: 1fr; }
  }
  .footer-sticker {
    display: block;
    width: 48px; height: 48px;
    filter: drop-shadow(0 4px 10px rgba(243,153,17,0.3)) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    justify-self: end;
    transition: transform .25s ease;
  }
  .footer-sticker:hover { transform: rotate(-3deg) scale(1.05); }
  @media (max-width: 820px) { .footer-sticker { justify-self: start; } }
  .footer-powered {
    border-top: 1px solid var(--line-dark);
    margin-top: 32px;
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
    color: var(--fg-dark-dim);
    gap: 12px;
    flex-wrap: wrap;
  }
  .footer-powered .mp {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .footer-powered .mp .mark-sm { width: 16px; height: 16px; }

  /* Selection */
  ::selection { background: rgba(14,165,233,0.35); color: #fff; }

  /* =====================================================
     FLOATING CTA + MINI FORM
  ===================================================== */
  .float-btn {
    position: fixed;
    right: 60px; bottom: 98px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 14px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    color: #00131d;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 18px 44px -12px rgba(14,165,233,0.65), 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.45);
    transition: transform .2s ease, box-shadow .25s ease, opacity .25s ease;
    cursor: pointer;
  }
  .float-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -12px rgba(14,165,233,0.8), inset 0 1px 0 rgba(255,255,255,0.5); }
  .float-btn {
    animation: floatLevitate 3.6s ease-in-out infinite;
  }
  .float-btn:hover { animation-play-state: paused; }
  @keyframes floatLevitate {
    0%   { transform: translateY(0)     rotate(-1.2deg); }
    50%  { transform: translateY(-22px) rotate(1.6deg);  }
    100% { transform: translateY(0)     rotate(-1.2deg); }
  }
  .float-btn .fb-ico {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    display: grid; place-items: center;
    color: #001018;
  }
  .float-btn .fb-ico svg { width: 16px; height: 16px; }
  .float-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 1px solid rgba(14,165,233,0.5);
    animation: floatPulse 2.4s ease-out infinite;
    pointer-events: none;
  }
  @keyframes floatPulse {
    0% { transform: scale(0.98); opacity: .7; }
    100% { transform: scale(1.15); opacity: 0; }
  }

  body.hide-float .float-btn,
  body.float-open .float-btn { opacity: 0; pointer-events: none; transform: scale(0.9); }

  .float-scrim {
    position: fixed; inset: 0;
    background: rgba(4,6,10,0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 70;
  }
  body.float-open .float-scrim { opacity: 1; pointer-events: auto; }

  .float-panel {
    position: fixed;
    right: 22px; bottom: 22px;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #0e1115;
    color: #fff;
    border: 1px solid rgba(14,165,233,0.55);
    border-radius: 20px;
    box-shadow:
      0 40px 80px -20px rgba(0,0,0,0.7),
      0 0 0 1px rgba(14,165,233,0.35),
      0 0 28px rgba(14,165,233,0.25);
    padding: 24px 24px 22px;
    z-index: 80;
    transform-origin: bottom right;
    transform: translateY(20px) scale(0.7);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  }
  body.float-open .float-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  @media (max-width: 520px) {
    .float-panel { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 20px 18px; }
    .float-btn { right: 14px; bottom: 14px; padding: 12px 16px 12px 14px; font-size: 14px; }
  }

  .fp-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }
  .fp-head h3 {
    font-size: 20px; font-weight: 700; letter-spacing: -0.015em;
    margin: 0;
  }
  .fp-head p {
    font-size: 13px; color: var(--fg-dark-muted); margin-top: 4px;
  }
  .fp-close {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--line-dark);
    color: var(--fg-dark-muted);
    display: grid; place-items: center;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
  }
  .fp-close:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
  .fp-close svg { width: 16px; height: 16px; }

  .mini-form .field label {
    font-size: 11px;
  }
  .mini-form .field { gap: 6px; }
  .mini-form .input, .mini-form .select { padding: 11px 12px; font-size: 14px; }
  .mini-form .submit { padding: 13px; font-size: 14px; margin-top: 4px; }
  .mini-form .form-grid { gap: 12px; }
  .mini-form .form-foot { margin-top: 12px; font-size: 11px; }

  .fp-success {
    display: none;
    text-align: center;
    padding: 8px 4px 4px;
  }
  .fp-success.show { display: block; animation: fadeIn .4s ease; }
  .fp-success .check-circle { width: 64px; height: 64px; margin-bottom: 14px; }
  .fp-success .check-circle svg { width: 30px; height: 30px; }
  .fp-success h3 { font-size: 19px; }
  .fp-success p { font-size: 14px; margin-top: 8px; }

  /* ============================================================
     PUBLIC OFFER MODAL
  ============================================================ */
  .offer-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(5, 8, 14, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center; justify-content: center;
    padding: 32px 16px;
  }
  .offer-overlay.is-open { display: flex; }
  .offer-modal {
    position: relative;
    background: #0f1a2c;
    color: #e7eef9;
    width: 100%;
    max-width: 820px;
    max-height: 100%;
    border-radius: 16px;
    border: 1px solid #1f2c44;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .offer-head {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #1f2c44;
    background: rgba(11,19,32,0.85);
  }
  .offer-head-title {
    font-size: 14px; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase;
    color: #aab8cc;
  }
  .offer-head-actions { display: flex; gap: 8px; }
  .offer-btn {
    appearance: none; border: 1px solid #2a3a55; background: transparent;
    color: #e7eef9; font: inherit; font-size: 13px; font-weight: 600;
    padding: 8px 14px; border-radius: 999px;
    cursor: pointer; transition: background .15s ease, border-color .15s ease;
  }
  .offer-btn:hover { background: rgba(255,255,255,0.05); border-color: #3d527a; }
  .offer-close {
    width: 36px; height: 36px; padding: 0;
    display: grid; place-items: center;
    border-radius: 50%;
  }
  .offer-close svg { width: 18px; height: 18px; }
  .offer-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 28px 36px 40px;
    font-size: 15px; line-height: 1.65;
    color: #e7eef9;
  }
  .offer-body .doc-title {
    font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
    margin: 0 0 4px;
  }
  .offer-body .doc-title strong { font-weight: 800; }
  .offer-body .doc-subtitle {
    color: #ffb24c; font-weight: 600; margin: 0 0 4px; font-size: 15px;
  }
  .offer-body .doc-meta {
    color: #7c8aa0; font-size: 13px; margin: 0 0 24px;
  }
  .offer-body h2 {
    font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
    margin: 28px 0 10px; padding-top: 16px;
    border-top: 1px solid #1f2c44;
    color: #ffffff;
  }
  .offer-body h3 {
    font-size: 15px; font-weight: 700;
    margin: 18px 0 6px; color: #ffffff;
  }
  .offer-body p { margin: 0 0 10px; color: #cdd6e4; }
  .offer-body ul, .offer-body ol {
    margin: 0 0 12px; padding-left: 22px; color: #cdd6e4;
  }
  .offer-body li { margin-bottom: 4px; }
  .offer-body strong { color: #ffffff; }
  .offer-body em { font-style: italic; color: inherit; }
  @media (max-width: 600px) {
    .offer-overlay { padding: 0; }
    .offer-modal { border-radius: 0; max-height: 100%; height: 100%; }
    .offer-body { padding: 22px 20px 32px; font-size: 14.5px; }
    .offer-body .doc-title { font-size: 22px; }
  }
  @media print {
    @page { margin: 18mm 16mm; }
    /* Default: hide both modals if neither is open */
    .offer-overlay:not(.is-open) { display: none !important; }

    /* When ANY modal is open, hide everything else and show only that modal */
    body:has(.offer-overlay.is-open) > *:not(.offer-overlay) { display: none !important; }
    body:has(.offer-overlay.is-open) { overflow: visible !important; background: #fff !important; }

    .offer-overlay.is-open {
      position: static !important;
      background: #fff !important;
      padding: 0 !important;
      display: block !important;
      inset: auto !important;
      width: auto !important;
      height: auto !important;
      overflow: visible !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }
    .offer-overlay.is-open .offer-modal {
      box-shadow: none !important;
      border: 0 !important;
      max-width: none !important;
      max-height: none !important;
      height: auto !important;
      width: auto !important;
      transform: none !important;
      background: #fff !important;
      overflow: visible !important;
    }
    .offer-overlay.is-open .offer-head,
    .offer-overlay.is-open .offer-head-actions { display: none !important; }
    .offer-overlay.is-open .offer-body {
      color: #000 !important;
      padding: 0 !important;
      overflow: visible !important;
      max-height: none !important;
      height: auto !important;
    }
    .offer-overlay.is-open .offer-body p,
    .offer-overlay.is-open .offer-body li,
    .offer-overlay.is-open .offer-body strong,
    .offer-overlay.is-open .offer-body em,
    .offer-overlay.is-open .offer-body h2,
    .offer-overlay.is-open .offer-body h3,
    .offer-overlay.is-open .offer-body .doc-title { color: #000 !important; }
  }
