/*
Theme Name: AxiaBIM
Theme URI: https://axiabim.com
Author: Christian Santos Fernandez
Description: Theme sur-mesure AxiaBIM - plugins de productivite pour Autodesk Revit.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: axiabim
*/

:root {
      --bg-deep: #030711;
      --bg-mid: #060B14;
      --bg-elevated: #101827;
      --accent: #4FA8D8;
      --accent-soft: rgba(79, 168, 216, 0.16);
      --accent-glow: rgba(79, 168, 216, 0.35);
      --teal: #1A7A6E;
      --violet: #4A4A8A;
      --amber: #F2A93B;
      --text: #E8EEF5;
      --muted: #8FA3BD;
      --glass: rgba(13, 20, 32, 0.72);
      --glass-border: rgba(232, 238, 245, 0.1);
      --glass-border-strong: rgba(79, 168, 216, 0.35);
      --radius: 16px;
      --radius-sm: 10px;
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
      --font-display: "Space Grotesk", system-ui, sans-serif;
      --font-body: "Inter", system-ui, sans-serif;
      --nav-h: 72px;
      --max: 1120px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      scroll-behavior: smooth;
      color-scheme: dark;
      background: #030711;
    }

    body {
      font-family: var(--font-body);
      background: #030711;
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
    }

    a { color: inherit; text-decoration: none; }
    button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
    img, svg { display: block; max-width: 100%; }
    ul { list-style: none; }

    .wrap {
      width: min(100% - 2.5rem, var(--max));
      margin-inline: auto;
      position: relative;
      z-index: 1;
    }

    /* ——— Ambient background system ——— */
    .ambient-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
      background: #030711;
    }

    .ambient-blob {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      will-change: transform, opacity;
    }

    .ambient-blob-global {
      width: min(90vw, 900px);
      height: min(90vw, 900px);
      top: -15%;
      left: 15%;
      background: radial-gradient(
        circle,
        rgba(91, 200, 255, 0.75) 0%,
        rgba(63, 169, 245, 0.45) 32%,
        rgba(26, 92, 122, 0.22) 55%,
        transparent 70%
      );
      filter: blur(80px);
      animation:
        ambient-drift 52s ease-in-out infinite alternate,
        ambient-fade 38s ease-in-out infinite alternate;
    }

    @keyframes ambient-drift {
      from { transform: translateX(-12vw); }
      to { transform: translateX(18vw); }
    }

    @keyframes ambient-fade {
      0% { opacity: 0.12; }
      50% { opacity: 0.58; }
      100% { opacity: 0.12; }
    }

    .ambient-stars {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .star {
      position: absolute;
      width: 2px;
      height: 2px;
      border-radius: 50%;
      background: rgba(232, 238, 245, 0.95);
      box-shadow: 0 0 5px rgba(91, 200, 255, 0.45);
      opacity: 0.3;
      animation: twinkle 4.5s ease-in-out infinite;
      will-change: opacity;
    }

    .star.sm {
      width: 1px;
      height: 1px;
      background: rgba(167, 210, 235, 0.95);
    }

    @keyframes twinkle {
      0%, 100% { opacity: 0.15; }
      50% { opacity: 0.68; }
    }

    .section-glow {
      position: absolute;
      width: min(70vw, 560px);
      height: min(70vw, 560px);
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
      filter: blur(90px);
      background: radial-gradient(
        circle,
        rgba(91, 200, 255, 0.7) 0%,
        rgba(63, 169, 245, 0.4) 38%,
        rgba(26, 92, 122, 0.18) 58%,
        transparent 72%
      );
      will-change: opacity, transform;
    }

    .section-glow--left {
      left: -18%;
      top: 10%;
      animation: section-pulse-a 42s ease-in-out infinite alternate;
    }

    .section-glow--center {
      left: 50%;
      top: 20%;
      transform: translateX(-50%);
      animation: section-pulse-b 36s ease-in-out infinite alternate;
    }

    .section-glow--right {
      right: -16%;
      top: 5%;
      animation: section-pulse-c 48s ease-in-out infinite alternate;
    }

    .section-glow--mid-left {
      left: -10%;
      bottom: -20%;
      top: auto;
      animation: section-pulse-d 33s ease-in-out infinite alternate;
    }

    .section-glow--footer {
      right: 10%;
      bottom: -30%;
      top: auto;
      width: min(60vw, 420px);
      height: min(60vw, 420px);
      animation: section-pulse-e 45s ease-in-out infinite alternate;
    }

    @keyframes section-pulse-a {
      0% { opacity: 0.12; transform: translate(0, 0); }
      100% { opacity: 0.55; transform: translate(12px, -18px); }
    }

    @keyframes section-pulse-b {
      0% { opacity: 0.1; transform: translateX(-50%) translate(0, 8px); }
      100% { opacity: 0.52; transform: translateX(-50%) translate(0, -14px); }
    }

    @keyframes section-pulse-c {
      0% { opacity: 0.12; transform: translate(0, 0); }
      100% { opacity: 0.58; transform: translate(-16px, 10px); }
    }

    @keyframes section-pulse-d {
      0% { opacity: 0.1; transform: translate(0, 0); }
      100% { opacity: 0.5; transform: translate(20px, -10px); }
    }

    @keyframes section-pulse-e {
      0% { opacity: 0.1; transform: translate(0, 0); }
      100% { opacity: 0.48; transform: translate(-12px, -16px); }
    }

    .hero,
    #produits,
    .footer {
      position: relative;
      z-index: 1;
      isolation: isolate;
      overflow: hidden;
    }

    #fonctionnalites {
      position: relative;
      z-index: 1;
      overflow: visible;
      background: transparent;
    }

    .trust,
    .support {
      position: relative;
      z-index: 1;
      background: transparent;
      overflow: visible;
      isolation: auto;
    }

    /* ——— Logo ——— */
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.15rem;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .logo-mark {
      width: 34px;
      height: 34px;
      flex-shrink: 0;
      object-fit: contain;
      filter: drop-shadow(0 0 8px rgba(79, 168, 216, 0.35));
    }

    /* ——— Buttons ——— */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.7rem 1.25rem;
      border-radius: 999px;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: -0.01em;
      transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
      white-space: nowrap;
    }

    .btn:focus-visible,
    .nav-links a:focus-visible,
    .footer a:focus-visible,
    .support-pill:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    .btn-primary {
      background: linear-gradient(180deg, #63b6e0 0%, var(--accent) 100%);
      color: #062038;
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 8px 28px rgba(79, 168, 216, 0.28);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 12px 36px rgba(79, 168, 216, 0.42);
    }

    .btn-ghost {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--glass-border);
      color: var(--text);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .btn-ghost:hover {
      border-color: var(--glass-border-strong);
      background: rgba(79, 168, 216, 0.08);
      box-shadow: 0 0 24px rgba(79, 168, 216, 0.12);
      transform: translateY(-1px);
    }

    .btn-link {
      color: var(--muted);
      font-weight: 500;
      padding: 0.7rem 0.35rem;
      transition: color 0.2s ease;
    }

    .btn-link:hover { color: var(--accent); }

    /* ——— Nav ——— */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 100;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      background: transparent;
      border-bottom: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .nav-inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      width: min(100% - 2.5rem, var(--max));
      margin-inline: auto;
      gap: 1rem;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.15rem;
    }

    .nav-links a {
      padding: 0.45rem 0.85rem;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--muted);
      border-radius: 8px;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
      color: var(--text);
      background: rgba(255, 255, 255, 0.04);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.55rem;
    }

    .nav-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border-radius: 10px;
      border: 1px solid var(--glass-border);
      background: rgba(255, 255, 255, 0.03);
      align-items: center;
      justify-content: center;
      margin-left: auto;
    }

    .nav-toggle span {
      display: block;
      width: 16px;
      height: 1.5px;
      background: var(--text);
      position: relative;
      transition: background 0.2s;
    }

    .nav-toggle span::before,
    .nav-toggle span::after {
      content: "";
      position: absolute;
      left: 0;
      width: 16px;
      height: 1.5px;
      background: var(--text);
      transition: transform 0.25s var(--ease);
    }

    .nav-toggle span::before { top: -5px; }
    .nav-toggle span::after { top: 5px; }

    .nav-toggle[aria-expanded="true"] span { background: transparent; }
    .nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

    /* ——— Hero ——— */
    .hero {
      position: relative;
      padding: calc(var(--nav-h) + clamp(2.75rem, 7vw, 4.5rem)) 0 clamp(4rem, 9vw, 6.5rem);
      overflow: hidden;
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: clamp(2rem, 5vw, 3.5rem);
      align-items: center;
    }

    .brand-signal {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: clamp(2.8rem, 6vw, 4.25rem);
      letter-spacing: -0.045em;
      line-height: 1;
      color: var(--text);
      margin-bottom: 1.1rem;
      background: linear-gradient(135deg, #F4F8FC 20%, #4FA8D8 95%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: rise 0.8s var(--ease) both;
    }

    .hero h1 {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: clamp(1.55rem, 3.2vw, 2.15rem);
      letter-spacing: -0.03em;
      line-height: 1.2;
      color: var(--text);
      margin-bottom: 1rem;
      max-width: 16ch;
      animation: rise 0.8s var(--ease) 0.08s both;
    }

    .hero-sub {
      color: var(--muted);
      font-size: 1.05rem;
      max-width: 36ch;
      margin-bottom: 1.75rem;
      animation: rise 0.8s var(--ease) 0.14s both;
    }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem 1.1rem;
      animation: rise 0.8s var(--ease) 0.2s both;
    }

    @keyframes rise {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ——— Mockup ——— */
    .mockup-stage {
      position: relative;
      animation: rise 0.9s var(--ease) 0.18s both;
    }

    .viewport-bg {
      position: absolute;
      inset: 8% -4% -6% 4%;
      border-radius: 20px;
      background:
        linear-gradient(145deg, rgba(16, 24, 39, 0.95), rgba(6, 11, 20, 0.98)),
        repeating-linear-gradient(
          90deg,
          transparent,
          transparent 28px,
          rgba(63, 169, 245, 0.04) 28px,
          rgba(63, 169, 245, 0.04) 29px
        ),
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 28px,
          rgba(63, 169, 245, 0.04) 28px,
          rgba(63, 169, 245, 0.04) 29px
        );
      filter: blur(1.5px);
      box-shadow: inset 0 0 60px rgba(3, 7, 17, 0.7);
      overflow: hidden;
    }

    .viewport-bg::after {
      content: "";
      position: absolute;
      inset: 18% 22%;
      border: 1px solid rgba(79, 168, 216, 0.12);
      border-radius: 4px;
      box-shadow: 0 0 40px rgba(79, 168, 216, 0.08);
    }

    .tool-panel {
      position: relative;
      background: rgba(13, 20, 32, 0.82);
      backdrop-filter: blur(22px) saturate(1.3);
      -webkit-backdrop-filter: blur(22px) saturate(1.3);
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 50px rgba(63, 169, 245, 0.1);
      overflow: hidden;
      transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
      transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
    }

    .tool-panel:hover {
      transform: perspective(1200px) rotateY(-1deg) rotateX(0deg) translateY(-4px);
      box-shadow:
        0 32px 70px rgba(4, 14, 30, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px rgba(79, 168, 216, 0.16);
    }

    .tool-chrome {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--glass-border);
      background: rgba(255, 255, 255, 0.02);
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(143, 163, 189, 0.45);
    }

    .dot:nth-child(1) { background: #e86a6a; }
    .dot:nth-child(2) { background: #e8c46a; }
    .dot:nth-child(3) { background: #6ac48a; }

    .tool-title {
      margin-left: 0.5rem;
      font-size: 0.75rem;
      color: var(--muted);
      font-weight: 500;
    }

    .tool-tabs {
      display: flex;
      gap: 0.2rem;
      padding: 0.65rem 0.75rem 0;
      overflow-x: auto;
    }

    .tool-tab {
      padding: 0.45rem 0.8rem;
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--muted);
      border-radius: 8px 8px 0 0;
      border: 1px solid transparent;
      border-bottom: none;
      transition: color 0.2s, background 0.2s, border-color 0.2s;
      white-space: nowrap;
    }

    .tool-tab:hover { color: var(--text); }

    .tool-tab.active {
      color: var(--text);
      background: rgba(79, 168, 216, 0.1);
      border-color: var(--glass-border);
    }

    .tool-body {
      margin: 0 0.75rem 0.85rem;
      padding: 1rem;
      border: 1px solid var(--glass-border);
      border-radius: 0 12px 12px 12px;
      background: rgba(6, 11, 20, 0.55);
      min-height: 220px;
    }

    .check-list {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      margin-bottom: 1.1rem;
    }

    .check-item {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.55rem 0.7rem;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid transparent;
      font-size: 0.82rem;
      color: var(--muted);
      transition: border-color 0.2s, background 0.2s, color 0.2s;
      width: 100%;
      text-align: left;
    }

    .check-item:hover {
      border-color: var(--glass-border);
      background: rgba(79, 168, 216, 0.06);
      color: var(--text);
    }

    .check-item.checked {
      color: var(--text);
      border-color: rgba(79, 168, 216, 0.25);
      background: rgba(79, 168, 216, 0.08);
    }

    .checkbox {
      width: 16px;
      height: 16px;
      border-radius: 4px;
      border: 1.5px solid var(--muted);
      display: grid;
      place-items: center;
      flex-shrink: 0;
      transition: background 0.2s, border-color 0.2s;
    }

    .check-item.checked .checkbox {
      background: var(--accent);
      border-color: var(--accent);
    }

    .check-item.checked .checkbox svg { opacity: 1; }
    .checkbox svg { opacity: 0; width: 10px; height: 10px; }

    .isolate-btn {
      width: 100%;
      padding: 0.7rem;
      border-radius: 10px;
      background: linear-gradient(180deg, #63b6e0, var(--accent));
      color: #062038;
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.02em;
      box-shadow: 0 8px 20px rgba(79, 168, 216, 0.25);
      transition: transform 0.2s var(--ease), box-shadow 0.25s ease;
    }

    .isolate-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 28px rgba(79, 168, 216, 0.4);
    }

    /* ——— Sections ——— */
    section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

    .section-head {
      margin-bottom: 2rem;
    }

    .eyebrow {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.65rem;
    }

    .section-head h2 {
      font-family: var(--font-display);
      font-size: clamp(1.65rem, 3vw, 2.15rem);
      font-weight: 650;
      letter-spacing: -0.03em;
      line-height: 1.15;
    }

    .section-head p {
      color: var(--muted);
      margin-top: 0.55rem;
      max-width: 44ch;
    }

    /* ——— Bento ——— */
    .bento {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 1rem;
    }

    .glass-card {
      background: rgba(13, 20, 32, 0.78);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 1.4rem;
      transition:
        transform 0.35s var(--ease),
        border-color 0.3s ease,
        box-shadow 0.35s ease,
        background 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .glass-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 169, 245, 0.12), transparent 40%);
      opacity: 0;
      transition: opacity 0.35s ease;
      pointer-events: none;
    }

    .glass-card:hover {
      transform: translateY(-3px);
      border-color: var(--glass-border-strong);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 32px rgba(63, 169, 245, 0.12);
      background: rgba(16, 24, 39, 0.88);
    }

    .glass-card:hover::before { opacity: 1; }

    .bento-large {
      grid-column: span 7;
      grid-row: span 2;
      min-height: 340px;
      display: flex;
      flex-direction: column;
    }

    .bento-medium {
      grid-column: span 5;
      min-height: 200px;
    }

    .bento-small {
      grid-column: span 5;
      min-height: 120px;
      background: rgba(13, 20, 32, 0.55);
      border-style: dashed;
      border-color: rgba(143, 163, 189, 0.22);
      opacity: 0.85;
    }

    .bento-small:hover {
      opacity: 1;
      border-color: rgba(143, 163, 189, 0.4);
      box-shadow: none;
      transform: none;
    }

    .card-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 0.3rem 0.65rem;
      border-radius: 999px;
      margin-bottom: 0.85rem;
    }

    .badge-live {
      background: rgba(26, 122, 110, 0.2);
      color: #5ec4b5;
      border: 1px solid rgba(26, 122, 110, 0.35);
    }

    .badge-soon {
      background: rgba(74, 74, 138, 0.25);
      color: #a8a8d4;
      border: 1px solid rgba(74, 74, 138, 0.4);
    }

    .badge-muted {
      background: rgba(143, 163, 189, 0.12);
      color: var(--muted);
      border: 1px solid rgba(143, 163, 189, 0.2);
    }

    .glass-card h3 {
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 650;
      letter-spacing: -0.02em;
      margin-bottom: 0.4rem;
    }

    .glass-card > p {
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 1.15rem;
    }

    .ui-thumb {
      margin-top: auto;
      border-radius: 12px;
      border: 1px solid var(--glass-border);
      background: linear-gradient(160deg, #0D1420, #101827);
      padding: 0.85rem;
      min-height: 150px;
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 0.65rem;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .ui-thumb-side {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .ui-bar {
      height: 8px;
      border-radius: 4px;
      background: rgba(79, 168, 216, 0.15);
    }

    .ui-bar.w60 { width: 60%; }
    .ui-bar.w80 { width: 80%; }
    .ui-bar.w45 { width: 45%; background: rgba(26, 122, 110, 0.3); }
    .ui-bar.w90 { width: 90%; }

    .ui-thumb-main {
      border-radius: 8px;
      background:
        radial-gradient(circle at 30% 40%, rgba(63, 169, 245, 0.4), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(26, 122, 110, 0.25), transparent 35%),
        linear-gradient(145deg, #060B14, #0D1420);
      border: 1px solid rgba(79, 168, 216, 0.12);
      position: relative;
      overflow: hidden;
    }

    .ui-thumb-main::after {
      content: "";
      position: absolute;
      width: 40%;
      height: 55%;
      top: 20%;
      left: 28%;
      border: 1.5px solid rgba(79, 168, 216, 0.55);
      border-radius: 3px;
      box-shadow: 0 0 16px rgba(79, 168, 216, 0.25);
    }

    .game-visual {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-top: 0.5rem;
    }

    .xp-ring {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background:
        conic-gradient(var(--accent) 0 72%, rgba(143, 163, 189, 0.2) 72% 100%);
      display: grid;
      place-items: center;
      flex-shrink: 0;
      position: relative;
    }

    .xp-ring::before {
      content: "";
      position: absolute;
      inset: 5px;
      border-radius: 50%;
      background: var(--bg-elevated);
    }

    .xp-ring span {
      position: relative;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.8rem;
      color: var(--accent);
    }

    .game-bars {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }

    .game-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.72rem;
      color: var(--muted);
    }

    .game-track {
      flex: 1;
      height: 6px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.06);
      overflow: hidden;
    }

    .game-fill {
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--teal), var(--accent));
    }

    .game-fill.amber { background: linear-gradient(90deg, #c4842a, var(--amber)); width: 45%; }
    .game-fill.teal { width: 78%; }
    .game-fill.violet { background: linear-gradient(90deg, var(--violet), #7a7ac4); width: 55%; }

    /* ——— Features ——— */
    .features-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }

    .feature-tile {
      text-align: left;
      padding: 1.35rem 1.25rem;
    }

    .feature-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      margin-bottom: 1rem;
      background: var(--accent-soft);
      border: 1px solid rgba(79, 168, 216, 0.22);
      color: var(--accent);
      transition: box-shadow 0.3s ease, background 0.3s ease;
    }

    .feature-tile:hover .feature-icon {
      box-shadow: 0 0 24px rgba(79, 168, 216, 0.25);
      background: rgba(79, 168, 216, 0.22);
    }

    .feature-tile h3 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 650;
      margin-bottom: 0.35rem;
    }

    .feature-tile p {
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.45;
    }

    /* ——— Trust ——— */
    .trust {
      text-align: center;
      padding: 1.5rem 0 0.5rem;
      background: transparent;
    }

    .trust p {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 42ch;
      margin-inline: auto;
      line-height: 1.55;
    }

    .trust strong {
      color: var(--text);
      font-weight: 600;
    }

    /* ——— Support ——— */
    .support {
      display: flex;
      justify-content: center;
      padding: 2rem 0 0.5rem;
      background: transparent;
    }

    .support-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.55rem 1.1rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 600;
      color: #2a1c05;
      background: linear-gradient(180deg, #f5bc5a, var(--amber));
      box-shadow: 0 4px 16px rgba(242, 169, 59, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.15);
      transition: transform 0.25s var(--ease), box-shadow 0.3s ease, filter 0.2s;
      opacity: 0.92;
    }

    .support-pill:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(242, 169, 59, 0.32);
      opacity: 1;
    }

    .support-pill svg { width: 14px; height: 14px; }

    /* ——— Footer ——— */
    .footer {
      margin-top: 3rem;
      border-top: 1px solid var(--glass-border);
      background: rgba(6, 11, 20, 0.72);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      padding: 3rem 0 2rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 2rem;
      margin-bottom: 2.5rem;
    }

    .footer-brand p {
      color: var(--muted);
      font-size: 0.88rem;
      margin-top: 0.85rem;
      max-width: 28ch;
      line-height: 1.5;
    }

    .footer-col h4 {
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 650;
      margin-bottom: 0.9rem;
      letter-spacing: -0.01em;
    }

    .footer-col a {
      display: block;
      color: var(--muted);
      font-size: 0.88rem;
      padding: 0.28rem 0;
      transition: color 0.2s ease;
    }

    .footer-col a:hover { color: var(--accent); }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--glass-border);
      font-size: 0.8rem;
      color: var(--muted);
    }

    .footer-bottom a {
      color: var(--amber);
      font-weight: 500;
      transition: opacity 0.2s;
    }

    .footer-bottom a:hover { opacity: 0.8; }

    /* ——— Responsive ——— */
    @media (max-width: 960px) {
      .nav-inner {
        grid-template-columns: auto 1fr;
      }

      .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1.25rem 1rem;
        background: rgba(6, 11, 20, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        gap: 0.15rem;
      }

      .nav-links.open { display: flex; }

      .nav-actions .btn-ghost { display: none; }

      .nav-toggle { display: inline-flex; }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }

      .tool-panel { transform: none; }
      .tool-panel:hover { transform: translateY(-4px); }

      .bento-large,
      .bento-medium,
      .bento-small {
        grid-column: span 12;
        min-height: auto;
      }

      .bento-large { min-height: 300px; }

      .features-row {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 560px) {
      .wrap { width: min(100% - 1.5rem, var(--max)); }

      .nav-actions .btn-primary {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
      }

      .brand-signal { font-size: 2.4rem; }

      .features-row { grid-template-columns: 1fr; }

      .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

      .ui-thumb { grid-template-columns: 1fr; min-height: 180px; }
      .ui-thumb-main { min-height: 90px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .ambient-blob-global,
      .section-glow,
      .star {
        animation: none !important;
      }

      .ambient-blob-global {
        opacity: 0.35;
        transform: none;
      }

      .section-glow {
        opacity: 0.3;
      }

      .section-glow--center {
        transform: translateX(-50%);
      }

      .star {
        opacity: 0.4;
      }

      .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
    }

    /* ——— Reveal on scroll ——— */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
      transition-delay: var(--reveal-delay, 0ms);
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .glass-card.reveal.is-visible:hover {
      transform: translateY(-3px);
    }

    .bento-small.reveal.is-visible:hover {
      transform: none;
    }


/* WordPress nav menu list compatibility */
.nav-links > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > ul > li > a {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-block;
}
.nav-links > ul > li > a:hover,
.nav-links > ul > li.current-menu-item > a,
.nav-links > ul > li.current_page_item > a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 960px) {
  .nav-links > ul {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Generic page template */
.page-shell {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + clamp(2.75rem, 7vw, 4.5rem)) 0 clamp(4rem, 9vw, 6.5rem);
}
.page-shell .glass-card {
  max-width: 800px;
  margin-inline: auto;
}
.page-shell .entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-shell .entry-content {
  color: var(--muted);
  line-height: 1.7;
}
.page-shell .entry-content > *:first-child { margin-top: 0; }
.page-shell .entry-content a { color: var(--accent); }

/* ——— Donation page ——— */
.donation-page .donation-card {
  max-width: 720px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.donation-header {
  margin-bottom: 1.75rem;
}

.donation-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.donation-why {
  margin-bottom: 1.5rem;
}

.donation-why h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.donation-why p {
  color: var(--muted);
  line-height: 1.6;
}

.donation-transparency {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 169, 59, 0.35);
  background: rgba(242, 169, 59, 0.08);
}

.donation-transparency p {
  margin: 0;
  color: #f0d9a8;
  font-size: 0.92rem;
  line-height: 1.55;
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.donation-amounts {
  border: none;
  margin: 0;
  padding: 0;
}

.donation-amounts legend {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.donation-amount-btn {
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.donation-amount-btn:hover {
  border-color: var(--glass-border-strong);
  background: rgba(79, 168, 216, 0.08);
  transform: translateY(-1px);
}

.donation-amount-btn.is-active,
.donation-amount-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(79, 168, 216, 0.16);
  box-shadow: 0 0 24px rgba(79, 168, 216, 0.18);
  color: var(--text);
}

.donation-custom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.donation-custom-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(6, 11, 20, 0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.donation-custom-field:focus-within {
  border-color: var(--glass-border-strong);
  box-shadow: 0 0 0 3px rgba(79, 168, 216, 0.12);
}

.donation-custom-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.donation-custom-field input::-webkit-outer-spin-button,
.donation-custom-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.donation-custom-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.donation-currency {
  color: var(--accent);
  font-weight: 700;
}

.donation-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.donation-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.donation-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.donation-consent-text {
  display: inline;
}

.donation-legal-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.donation-legal-link:hover {
  color: #7bc4e8;
}

.donation-submit {
  width: 100%;
  justify-content: center;
}

.donation-submit:disabled,
.donation-submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.25);
}

.donation-submit:disabled:hover,
.donation-submit[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.donation-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

/* ——— Legal modal ——— */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.legal-modal.is-hidden,
.legal-modal[hidden] {
  display: none !important;
}

.legal-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 17, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.legal-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 40px rgba(79, 168, 216, 0.1);
}

.legal-modal__dialog:hover {
  transform: none;
}

.legal-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.legal-modal__close:hover {
  border-color: var(--glass-border-strong);
  background: rgba(79, 168, 216, 0.1);
}

.legal-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 2.5rem 1rem 0;
  color: var(--text);
}

.legal-modal__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.legal-modal__tab {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-modal__tab:hover {
  color: var(--text);
  border-color: var(--glass-border-strong);
}

.legal-modal__tab.is-active,
.legal-modal__tab[aria-selected="true"] {
  color: var(--text);
  border-color: rgba(79, 168, 216, 0.4);
  background: rgba(79, 168, 216, 0.14);
}

.legal-modal__panels {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  flex: 1;
  min-height: 0;
}

.legal-modal__panel[hidden] {
  display: none !important;
}

.legal-modal__panel h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 1.15rem 0 0.45rem;
}

.legal-modal__panel h3:first-child {
  margin-top: 0;
}

.legal-modal__panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.35rem;
}

.legal-modal__panel a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-modal__panel a:hover {
  color: #7bc4e8;
}

body.legal-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .donation-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .donation-consent {
    align-items: flex-start;
  }

  .legal-modal__dialog {
    max-height: 90vh;
    padding: 1.15rem 1rem 1rem;
  }
}
