/* ========================================================================
   XARKLO Premium Global Layer
   Additive design system for every public page. Does not remove structure.
   ======================================================================== */

@layer xarklo-premium-global {
  :root {
    --xkg-bg: #050609;
    --xkg-bg-soft: #0a0e1a;
    --xkg-text: #f8fafc;
    --xkg-muted: #b9c3d7;
    --xkg-faint: #7e8aa4;
    --xkg-gold: #d4af37;
    --xkg-gold-soft: #f3e5ab;
    --xkg-cyan: #00d9ff;
    --xkg-purple: #8b5cf6;
    --xkg-emerald: #10b981;
    --xkg-border: rgba(255, 255, 255, 0.085);
    --xkg-border-strong: rgba(255, 255, 255, 0.16);
    --xkg-glass: rgba(13, 20, 38, 0.62);
    --xkg-glass-strong: rgba(11, 16, 30, 0.84);
    --xkg-radius-sm: 14px;
    --xkg-radius-md: 18px;
    --xkg-radius-lg: 24px;
    --xkg-radius-xl: 32px;
    --xkg-radius-pill: 999px;
    --xkg-shadow-card: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    --xkg-shadow-hover: 0 34px 90px rgba(0, 0, 0, 0.45), 0 0 36px rgba(212, 175, 55, 0.08);
    --xkg-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --xkg-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --xkg-section-y: clamp(72px, 10vw, 144px);
    --xkg-section-gap: clamp(28px, 5vw, 76px);
    --xkg-container: min(1320px, calc(100vw - clamp(32px, 6vw, 96px)));
    color-scheme: dark;
    /* Legacy variable aliases (used by pages with old --xk-* / --font-* / --spacing-* inline styles) */
    --xk-gold-primary: var(--xkg-gold);
    --xk-gold-light: var(--xkg-gold-soft);
    --xk-cyan-accent: var(--xkg-cyan);
    --xk-purple-accent: var(--xkg-purple);
    --xk-green-success: var(--xkg-emerald);
    --xk-text-primary: var(--xkg-text);
    --xk-text-secondary: var(--xkg-muted);
    --xk-text-muted: var(--xkg-faint);
    --xk-border-light: var(--xkg-border-strong);
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: clamp(2.25rem, 7vw, 3rem);
    --font-4xl: clamp(3rem, 8vw, 4.5rem);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 96px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
  }

  html {
    scroll-padding-top: 96px;
  }

  body {
    background-color: var(--xkg-bg-soft);
    text-rendering: geometricPrecision;
  }

  body::before {
    background:
      radial-gradient(circle at 12% 12%, rgba(212, 175, 55, 0.14), transparent 28%),
      radial-gradient(circle at 88% 18%, rgba(0, 217, 255, 0.11), transparent 26%),
      radial-gradient(circle at 48% 82%, rgba(139, 92, 246, 0.13), transparent 30%) !important;
  }

  main,
  .legal-page,
  .review-container,
  .app-hero,
  .features-section,
  .support-hero,
  .faq-hero,
  .contact-hero,
  .about-content {
    isolation: isolate;
  }

  main > section,
  .section,
  .services-home,
  .proof-home,
  .svc-block,
  .portfolio-section,
  .features-section,
  .cta-section,
  .about-content,
  .legal-page,
  .review-container {
    position: relative;
  }

  main > section::before,
  .section::before,
  .services-home::before,
  .proof-home::before,
  .svc-block::before,
  .features-section::before,
  .why-section::before,
  .process-section::before,
  .testimonials-section::before,
  .cta-section-home::before,
  .cta-section::before,
  .faq-section::before,
  .support-section::before,
  .partnership-section::before,
  .platform-section::before,
  .legal-page::before,
  .review-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -2;
    pointer-events: none;
    background:
      radial-gradient(700px 320px at var(--xk-mouse-x, 18%) var(--xk-mouse-y, 12%), rgba(212, 175, 55, 0.045), transparent 70%),
      radial-gradient(720px 360px at 88% 88%, rgba(0, 217, 255, 0.035), transparent 70%);
    opacity: 0.72;
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  }

  .container {
    container-type: inline-size;
  }

  .section,
  .features-section,
  .services-home,
  .proof-home,
  .svc-block,
  .portfolio-section {
    padding-block: var(--xkg-section-y);
  }

  .section-heading,
  .section-header,
  .pricing-head,
  .fp-sec-header,
  .header-section,
  .contact-hero > .container,
  .about-hero,
  .app-hero {
    text-wrap: balance;
  }

  .section-heading,
  .section-header,
  .pricing-head,
  .header-section {
    max-width: 860px;
    margin-inline: auto;
    margin-block-end: var(--xkg-section-gap);
  }

  .section-label,
  .hero-badge,
  .badge,
  .fp-badge,
  .service-pill,
  .status-badge,
  .kicker,
  .pill {
    position: relative;
    overflow: hidden;
    border-color: rgba(212, 175, 55, 0.26) !important;
    background:
      linear-gradient(135deg, rgba(212, 175, 55, 0.13), rgba(0, 217, 255, 0.055)),
      rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.14);
  }

  .section-label::after,
  .hero-badge::after,
  .badge::after,
  .fp-badge::after,
  .service-pill::after,
  .status-badge::after,
  .kicker::after,
  .pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.16), transparent 44%);
    transform: translateX(-120%) skewX(-14deg);
    animation: xkgBadgeGlint 7s ease-in-out infinite;
    pointer-events: none;
  }

  h1,
  h2,
  .section-title,
  .fp-sec-header h2,
  .legal-page h1,
  .review-container h1 {
    letter-spacing: -0.045em;
    text-wrap: balance;
  }

  body[dir="rtl"] h1,
  body[dir="rtl"] h2,
  html[dir="rtl"] h1,
  html[dir="rtl"] h2 {
    letter-spacing: -0.012em;
  }

  .hero h1,
  .work-hero h1,
  .svc-hero h1,
  .contact-hero h1,
  .about-hero h1,
  .app-hero h1,
  .premium-hero h1,
  .header-section h1,
  .legal-page h1 {
    color: #fff;
    background: linear-gradient(135deg, #fff 22%, var(--xkg-gold-soft) 52%, var(--xkg-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 18px 42px rgba(212, 175, 55, 0.08));
  }

  .hero p,
  .work-hero p,
  .svc-hero p,
  .contact-hero p,
  .about-content p,
  .app-hero p,
  .section-intro,
  .subtitle,
  .legal-section p,
  .legal-section li,
  .review-container p,
  .feature-card p,
  .panel p,
  .card p,
  .service-card p,
  .portfolio-card p {
    color: var(--xkg-muted) !important;
  }

  .hero,
  .work-hero,
  .svc-hero,
  .contact-hero,
  .about-hero,
  .app-hero,
  .premium-hero,
  .support-hero,
  .faq-hero {
    position: relative;
    overflow: hidden;
  }

  .hero::after,
  .work-hero::after,
  .svc-hero::after,
  .contact-hero::after,
  .about-hero::after,
  .app-hero::after,
  .premium-hero::after,
  .support-hero::after,
  .faq-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 9, 0.9));
    z-index: 0;
  }

  .hero > *,
  .work-hero > *,
  .svc-hero > *,
  .contact-hero > *,
  .about-hero > *,
  .app-hero > *,
  .premium-hero > *,
  .support-hero > *,
  .faq-hero > * {
    position: relative;
    z-index: 1;
  }

  .card,
  .panel,
  .feature,
  .notice,
  .stat,
  .app-card,
  .service-card,
  .work-card,
  .portfolio-card,
  .metric-card,
  .asset-card,
  .p-card,
  .offer-card,
  .hero-panel-card,
  .proof-card,
  .form-box,
  .vision-card,
  .val-item,
  .legal-section,
  .reviewer-summary,
  .project-info,
  .info-features,
  .gallery-item,
  .feature-card,
  .support-card,
  .faq-item,
  .info-item,
  .sla-box,
  .why-card,
  .bento-tile,
  .opt-card,
  .fp-glass-card {
    position: relative;
    overflow: hidden;
    border-color: var(--xkg-border) !important;
    background:
      radial-gradient(480px 260px at var(--xk-card-x, 50%) var(--xk-card-y, 0%), rgba(255, 255, 255, 0.075), transparent 60%),
      linear-gradient(180deg, rgba(20, 28, 50, 0.74), rgba(9, 13, 24, 0.9)) !important;
    box-shadow: var(--xkg-shadow-card);
    backdrop-filter: blur(18px) saturate(1.22);
    -webkit-backdrop-filter: blur(18px) saturate(1.22);
    transform: translate3d(0, 0, 0);
    transition:
      transform 0.38s var(--xkg-ease-out),
      box-shadow 0.38s var(--xkg-ease-out),
      border-color 0.38s var(--xkg-ease-out),
      background 0.38s var(--xkg-ease-out);
  }

  .card::before,
  .panel::before,
  .feature::before,
  .notice::before,
  .stat::before,
  .app-card::before,
  .service-card::before,
  .work-card::before,
  .portfolio-card::before,
  .metric-card::before,
  .asset-card::before,
  .p-card::before,
  .offer-card::before,
  .hero-panel-card::before,
  .proof-card::before,
  .form-box::before,
  .vision-card::before,
  .val-item::before,
  .legal-section::before,
  .reviewer-summary::before,
  .project-info::before,
  .info-features::before,
  .gallery-item::before,
  .feature-card::before,
  .support-card::before,
  .faq-item::before,
  .sla-box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.105), transparent 48%);
    transform: translateX(-115%) skewX(-12deg);
  }

  .card:hover,
  .panel:hover,
  .feature:hover,
  .notice:hover,
  .stat:hover,
  .app-card:hover,
  .service-card:hover,
  .work-card:hover,
  .portfolio-card:hover,
  .metric-card:hover,
  .asset-card:hover,
  .p-card:hover,
  .offer-card:hover,
  .hero-panel-card:hover,
  .proof-card:hover,
  .form-box:hover,
  .vision-card:hover,
  .val-item:hover,
  .legal-section:hover,
  .reviewer-summary:hover,
  .project-info:hover,
  .info-features:hover,
  .gallery-item:hover,
  .feature-card:hover,
  .support-card:hover,
  .faq-item:hover,
  .sla-box:hover {
    transform: translateY(-7px) scale(1.006);
    border-color: rgba(212, 175, 55, 0.22) !important;
    box-shadow: var(--xkg-shadow-hover);
  }

  .card:hover::before,
  .panel:hover::before,
  .feature:hover::before,
  .notice:hover::before,
  .stat:hover::before,
  .app-card:hover::before,
  .service-card:hover::before,
  .work-card:hover::before,
  .portfolio-card:hover::before,
  .metric-card:hover::before,
  .asset-card:hover::before,
  .p-card:hover::before,
  .offer-card:hover::before,
  .hero-panel-card:hover::before,
  .proof-card:hover::before,
  .form-box:hover::before,
  .vision-card:hover::before,
  .val-item:hover::before,
  .legal-section:hover::before,
  .reviewer-summary:hover::before,
  .project-info:hover::before,
  .info-features:hover::before,
  .gallery-item:hover::before,
  .feature-card:hover::before,
  .support-card:hover::before,
  .faq-item:hover::before,
  .sla-box:hover::before {
    opacity: 1;
    animation: xkgSheen 1.15s var(--xkg-ease-out);
  }

  .btn,
  .p-btn,
  .f-btn,
  .submit-btn,
  .cta-btn,
  .btn-github,
  .sw-btn,
  .portfolio-link,
  .back-link,
  .fp-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--xkg-radius-pill) !important;
    transform: translate3d(0, 0, 0);
    transition:
      transform 0.28s var(--xkg-ease-spring),
      box-shadow 0.28s var(--xkg-ease-out),
      border-color 0.28s var(--xkg-ease-out),
      background 0.28s var(--xkg-ease-out) !important;
  }

  .btn::after,
  .p-btn::after,
  .f-btn::after,
  .submit-btn::after,
  .cta-btn::after,
  .btn-github::after,
  .sw-btn::after,
  .portfolio-link::after,
  .back-link::after,
  .fp-btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(circle at var(--xk-card-x, 50%) var(--xk-card-y, 50%), rgba(255, 255, 255, 0.18), transparent 34%);
    opacity: 0;
    transition: opacity 0.25s var(--xkg-ease-out);
    pointer-events: none;
  }

  .btn:hover,
  .p-btn:hover,
  .f-btn:hover,
  .submit-btn:hover,
  .cta-btn:hover,
  .btn-github:hover,
  .sw-btn:hover,
  .portfolio-link:hover,
  .back-link:hover,
  .fp-btn:hover {
    transform: translateY(-3px) scale(1.015);
  }

  .btn:hover::after,
  .p-btn:hover::after,
  .f-btn:hover::after,
  .submit-btn:hover::after,
  .cta-btn:hover::after,
  .btn-github:hover::after,
  .sw-btn:hover::after,
  .portfolio-link:hover::after,
  .back-link:hover::after,
  .fp-btn:hover::after {
    opacity: 1;
  }

  :is(input, textarea, select) {
    transition: border-color 0.25s var(--xkg-ease-out), box-shadow 0.25s var(--xkg-ease-out), background 0.25s var(--xkg-ease-out), transform 0.25s var(--xkg-ease-out);
  }

  :is(input, textarea, select):focus {
    border-color: rgba(212, 175, 55, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 18px 42px rgba(0, 0, 0, 0.22) !important;
    background: rgba(255, 255, 255, 0.075) !important;
  }

  .trust-bar,
  .p-proof,
  .hero-metrics,
  .stats-grid,
  .premium-trust {
    position: relative;
  }

  .stat-box,
  .metric-card,
  .metric-chip,
  .p-stat,
  .trust-item,
  .sla-row {
    border-radius: var(--xkg-radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--xkg-border);
    padding: clamp(14px, 2.2vw, 24px);
  }

  .stat-num,
  .p-stat-val,
  .metric-card strong,
  .metric-chip strong,
  .sla-val,
  .stat strong {
    color: var(--xkg-gold);
    background: linear-gradient(135deg, var(--xkg-gold-soft), var(--xkg-gold) 52%, var(--xkg-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .faq-question,
  .faq-btn {
    border-radius: var(--xkg-radius-lg) !important;
  }

  .faq-item.open,
  .faq-item:focus-within {
    border-color: rgba(212, 175, 55, 0.26) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 28px rgba(212, 175, 55, 0.08);
  }

  .portfolio-preview,
  .app-banner img,
  .gallery-item img,
  .hero-media img,
  .proof-image img {
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s var(--xkg-ease-out), filter 0.55s var(--xkg-ease-out), opacity 0.55s var(--xkg-ease-out);
  }

  .portfolio-card:hover .portfolio-preview,
  .app-banner:hover img,
  .gallery-item:hover img,
  .hero-media:hover img,
  .proof-card:hover .proof-image img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.04);
  }

  .legal-page,
  .review-container {
    width: var(--xkg-container);
    max-width: 1040px !important;
  }

  .legal-section,
  .reviewer-summary {
    margin-block: clamp(20px, 3vw, 36px) !important;
    padding: clamp(22px, 3.2vw, 40px) !important;
  }

  .legal-section h2,
  .review-container h2,
  .gallery-section-title,
  .section-title {
    text-wrap: balance;
  }

  .table-container,
  .table-wrap {
    border-radius: var(--xkg-radius-lg);
    border: 1px solid var(--xkg-border);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: var(--xkg-shadow-card);
  }

  table,
  th,
  td,
  a {
    overflow-wrap: anywhere;
  }

  .dl-btns,
  .cta-links,
  .cta-row,
  .hero-actions,
  .hero-btns,
  .fp-btn-group {
    flex-wrap: wrap !important;
  }

  .xkg-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(7px);
    transition: opacity 0.75s var(--xkg-ease-out), transform 0.75s var(--xkg-ease-out), filter 0.75s var(--xkg-ease-out);
    transition-delay: var(--xkg-delay, 0ms);
    will-change: opacity, transform, filter;
    animation: xkgRevealFallback 0.01s 3.5s forwards;
  }

  .xkg-reveal.xkg-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
    animation: none !important;
  }

  @keyframes xkgRevealFallback {
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }

  .xkg-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
    transform: scale(0);
    animation: xkgRipple 0.62s var(--xkg-ease-out);
  }

  .xkg-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.038;
    mix-blend-mode: soft-light;
    background-image:
      radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px),
      radial-gradient(circle at 80% 70%, #fff 0 1px, transparent 1px);
    background-size: 44px 44px, 68px 68px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  }

  .xkg-page-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(700px 520px at var(--xk-mouse-x, 20%) var(--xk-mouse-y, 20%), rgba(212, 175, 55, 0.055), transparent 68%),
      radial-gradient(800px 580px at calc(100% - var(--xk-mouse-x, 20%)) calc(100% - var(--xk-mouse-y, 20%)), rgba(0, 217, 255, 0.04), transparent 70%);
    opacity: 0.88;
  }

  body > *:not(.xkg-page-ambient):not(.xkg-noise):not(.custom-cursor):not(.custom-cursor-dot):not(.page-transition):not(.progress-bar):not(.xk-progress-bar):not(.pf-back-to-top) {
    position: relative;
  }

  @container (max-width: 620px) {
    .section-heading,
    .section-header,
    .pricing-head {
      text-align: start;
    }
  }

  @media (max-width: 760px) {
    :root {
      --xkg-section-y: clamp(54px, 13vw, 86px);
    }

    .card,
    .panel,
    .feature,
    .notice,
    .stat,
    .app-card,
    .service-card,
    .work-card,
    .portfolio-card,
    .metric-card,
    .asset-card,
    .p-card,
    .offer-card,
    .hero-panel-card,
    .proof-card,
    .form-box,
    .vision-card,
    .val-item,
    .legal-section,
    .project-info,
    .info-features,
    .gallery-item,
    .feature-card,
    .support-card,
    .faq-item,
    .sla-box,
    .why-card,
    .bento-tile,
    .opt-card,
    .fp-glass-card,
    .tier-card,
    .team-card,
    .arch-card,
    .security-card,
    .reviewer-summary {
      padding: clamp(18px, 6vw, 28px) !important;
    }

    .hero::after,
    .work-hero::after,
    .svc-hero::after,
    .contact-hero::after,
    .about-hero::after,
    .app-hero::after,
    .premium-hero::after,
    .support-hero::after,
    .faq-hero::after {
      height: 60px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .xkg-reveal,
    .xkg-reveal.xkg-visible,
    .card,
    .panel,
    .feature,
    .notice,
    .stat,
    .app-card,
    .service-card,
    .work-card,
    .portfolio-card,
    .metric-card,
    .asset-card,
    .p-card,
    .offer-card,
    .hero-panel-card,
    .proof-card,
    .form-box,
    .vision-card,
    .val-item,
    .legal-section,
    .project-info,
    .info-features,
    .gallery-item,
    .feature-card,
    .support-card,
    .faq-item,
    .btn,
    .p-btn,
    .f-btn,
    .submit-btn,
    .cta-btn,
    .btn-github,
    .sw-btn,
    .portfolio-link,
    .back-link,
    .fp-btn {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
      transition: none !important;
      animation: none !important;
    }

    .xkg-page-ambient,
    .xkg-noise {
      display: none !important;
    }
  }

  @keyframes xkgSheen {
    from { transform: translateX(-115%) skewX(-12deg); }
    to { transform: translateX(125%) skewX(-12deg); }
  }

  @keyframes xkgBadgeGlint {
    0%, 62%, 100% { transform: translateX(-120%) skewX(-14deg); opacity: 0; }
    72% { opacity: 0.85; }
    86% { transform: translateX(145%) skewX(-14deg); opacity: 0; }
  }

  @keyframes xkgRipple {
    to { transform: scale(4); opacity: 0; }
  }
}

/* Cascade bridge: these unlayered rules intentionally sit after the layer so
   page-local styles keep their structure while the premium system wins polish. */
.container {
  max-width: var(--xkg-container);
  margin-inline: auto;
}

:is(.section, .services-home, .proof-home, .svc-block, .portfolio-section, .features-section, .cta-section,
    .why-section, .process-section, .testimonials-section, .cta-section-home, .cta-cta,
    .addons, .final-cta, .flexpay, .faq-section, .support-section, .partnership-section, .platform-section,
    .stats-section, .location-section, .why-choose) {
  padding-block: var(--xkg-section-y) !important;
}

:is(.section-heading, .section-header, .pricing-head, .header-section) {
  max-width: 860px !important;
  margin-inline: auto !important;
  margin-block-end: var(--xkg-section-gap) !important;
}

:is(.hero, .work-hero, .svc-hero, .contact-hero, .about-hero, .app-hero, .platform-hero, .partnership-hero, .premium-hero, .support-hero, .faq-hero) {
  background:
    radial-gradient(900px 520px at 12% 16%, rgba(212, 175, 55, 0.13), transparent 62%),
    radial-gradient(850px 500px at 88% 18%, rgba(0, 217, 255, 0.09), transparent 60%),
    radial-gradient(780px 540px at 48% 88%, rgba(139, 92, 246, 0.12), transparent 64%) !important;
}

:is(.hero h1, .work-hero h1, .svc-hero h1, .contact-hero h1, .about-hero h1, .app-hero h1, .platform-hero h1, .partnership-hero h1, .premium-hero h1, .header-section h1, .legal-page h1) {
  color: #fff !important;
  background: linear-gradient(135deg, #fff 22%, var(--xkg-gold-soft) 52%, var(--xkg-cyan) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

:is(.card, .panel, .feature, .notice, .stat, .app-card, .service-card, .work-card, .portfolio-card, .metric-card, .asset-card, .p-card, .offer-card, .hero-panel-card, .proof-card, .form-box, .vision-card, .val-item, .legal-section, .reviewer-summary, .project-info, .info-features, .gallery-item, .feature-card, .support-card, .faq-item, .info-item, .sla-box, .why-card, .bento-tile, .opt-card, .fp-glass-card) {
  border-color: var(--xkg-border) !important;
  box-shadow: var(--xkg-shadow-card) !important;
}

:is(.card, .panel, .feature, .notice, .stat, .app-card, .service-card, .work-card, .portfolio-card, .metric-card, .asset-card, .p-card, .offer-card, .hero-panel-card, .proof-card, .form-box, .vision-card, .val-item, .legal-section, .reviewer-summary, .project-info, .info-features, .gallery-item, .feature-card, .support-card, .faq-item, .info-item, .sla-box, .why-card, .bento-tile, .opt-card, .fp-glass-card):hover {
  border-color: rgba(212, 175, 55, 0.24) !important;
  box-shadow: var(--xkg-shadow-hover) !important;
}

:is(.btn, .p-btn, .f-btn, .submit-btn, .cta-btn, .btn-github, .sw-btn, .portfolio-link, .back-link, .fp-btn) {
  border-radius: var(--xkg-radius-pill) !important;
}

.btn-outline {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #fff !important;
}

/* ── Premium Preloader ─────────────────────────────────── */
#xkg-loader {
  position: fixed;
  inset: 0;
  background: #030406;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s;
}
.xkg-loader-inner { text-align: center; }
.xkg-loader-logo {
  margin-bottom: 24px;
  animation: xkgLogoPulse 2s infinite ease-in-out;
}
.xkg-loader-logo img { height: 48px; width: auto; }
.xkg-loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px auto;
  border-radius: 4px;
  overflow: hidden;
}
.xkg-loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--xkg-gold), var(--xkg-cyan));
  transition: width 0.3s ease;
  border-radius: 4px;
}
.xkg-loader-pct {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xkg-gold);
  letter-spacing: 1px;
}
@keyframes xkgLogoPulse {
  0% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2)); }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5)); }
  100% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2)); }
}

/* ── Aurora Background Orbs ────────────────────────────── */
.xkg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.xkg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  mix-blend-mode: screen;
}
.xkg-orb-gold {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--xkg-gold) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: xkgOrbDrift1 20s ease-in-out infinite alternate;
}
.xkg-orb-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--xkg-cyan) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation: xkgOrbDrift2 25s ease-in-out infinite alternate;
}
.xkg-orb-purple {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--xkg-purple) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: xkgOrbDrift3 22s ease-in-out infinite alternate;
}
@keyframes xkgOrbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes xkgOrbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -80px) scale(1.15); }
}
@keyframes xkgOrbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(0.95); }
}

/* ── Page Ready State ──────────────────────────────────── */
body.xkg-ready { opacity: 1; }

/* ========================================================================
   NEW SECTION STYLES
   Additive styles for newly added sections across all pages.
   ======================================================================== */

/* ── Why Choose Us / Why Section ───────────────────────── */
.why-choose,
.why-section { padding: var(--xkg-section-y) 0; }
.why-choose-header,
.section-header { text-align: center; margin-bottom: var(--xkg-section-gap); max-width: 860px; margin-inline: auto; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 40px 32px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.24);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}
.why-icon,
.why-card .icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.why-card p { color: var(--xkg-muted); line-height: 1.7; font-size: 0.95rem; }

/* ── CTA Glass Box ────────────────────────────────────── */
.cta-glass-box {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 60px);
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.cta-glass-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
}
.cta-glass-box h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 20px 0; color: #fff;
  background: linear-gradient(135deg, #fff 30%, var(--xkg-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-glass-box p {
  color: var(--xkg-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-btns, .cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Process Steps ────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-step {
  text-align: center;
  padding: 40px 24px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.process-num {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700; color: var(--xkg-gold);
  background: linear-gradient(135deg, var(--xkg-gold), var(--xkg-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: block;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.process-step p { color: var(--xkg-muted); line-height: 1.7; font-size: 0.95rem; }

/* ── Testimonials ─────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: var(--xkg-section-gap);
}
.testimonial-card {
  padding: 40px 32px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.testimonial-card {
  padding: 40px 32px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.2);
}
.testimonial-stars {
  color: var(--xkg-gold);
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card p {
  color: var(--xkg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author strong {
  display: block;
  color: #fff;
}
.testimonial-author span {
  color: var(--xkg-muted);
  font-size: 0.85rem;
}

/* ── Trust Badges ─────────────────────────────────────── */
.trust-badges,
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: var(--xkg-section-gap) 0;
}
.trust-badge {
  text-align: center;
  padding: 32px 24px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.trust-badge:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.trust-badge .icon,
.trust-badge .trust-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.trust-badge h3,
.trust-badge h4 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-badge p { color: var(--xkg-muted); font-size: 0.9rem; }

/* ── Service Tiers ────────────────────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tier-card {
  padding: 40px 32px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.tier-card.featured {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
}
.tier-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.24);
}
.tier-card .price {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--xkg-gold);
  margin: 16px 0;
}
.tier-card .features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}
.tier-card .features li {
  padding: 8px 0;
  color: var(--xkg-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── FAQ Filters ──────────────────────────────────────── */
.faq-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.faq-filter-btn {
  padding: 10px 24px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  color: var(--xkg-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}
.faq-filter-btn:hover,
.faq-filter-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--xkg-gold);
}

/* ── Architecture & Security Grids ────────────────────── */
.arch-grid, .security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.arch-card, .security-card {
  padding: 32px 24px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: all 0.3s;
}
.arch-card:hover, .security-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.2);
}
.arch-card .icon, .security-card .icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.arch-card h3, .security-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.arch-card p, .security-card p { color: var(--xkg-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Integration Logos ────────────────────────────────── */
.integration-logos {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.integration-logo {
  padding: 16px 24px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--xkg-muted);
  transition: all 0.3s;
}
.integration-logo:hover {
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--xkg-gold);
}

/* ── Location / Map ───────────────────────────────────── */
.location-section {
  padding: var(--xkg-section-y) 0;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .location-grid { grid-template-columns: 1fr; }
}
.location-info {
  padding: 40px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
}
.map-placeholder {
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xkg-muted);
}
@media (max-width: 480px) { .map-placeholder { min-height: 200px; border-radius: 16px; } }

/* ── Team Grid ────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.team-card {
  padding: 40px 32px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.36, 1);
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.24);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xkg-gold), var(--xkg-cyan));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.team-card .role { color: var(--xkg-gold); font-size: 0.9rem; margin-bottom: 12px; }
.team-card p { color: var(--xkg-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Stats Section ────────────────────────────────────── */
.stats-section {
  padding: var(--xkg-section-y) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(17, 24, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--xkg-gold);
  margin-bottom: 8px;
}
.stat-suffix {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--xkg-gold);
}
.stat-label {
  color: var(--xkg-muted);
  font-size: 0.9rem;
}

/* ── Canvas Particles Container ────────────────────────── */
.xkg-particles-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.xkg-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Ultra-wide screens (1920px+) ───────────────────────── */
@media (min-width: 1920px) {
  :root { --xkg-container: min(1600px, calc(100vw - 80px)); }
  .container { max-width: 1600px !important; }
  .hero-inner { gap: 80px; }
  .trust-inner { justify-content: space-evenly; }
}

/* ── Desktop (1280-1440px) ─────────────────────────────── */
@media (min-width: 1280px) and (max-width: 1440px) {
  .container { max-width: 1320px !important; }
}

/* ── Small laptop / tablet landscape (900-1024px) ──────── */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding-block: 100px 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-content p { margin-inline: auto; }
  .hero-btns, .cta-btns, .dl-btns { justify-content: center; }
  .hero-visual img { max-width: 80%; margin-inline: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
}

/* ── Tablet (768-900px) ────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --xkg-section-y: clamp(56px, 10vw, 80px);
    --xkg-section-gap: clamp(24px, 4vw, 40px);
    --spacing-3xl: 40px;
    --spacing-4xl: 60px;
  }
  .container { padding-inline: 20px !important; }
  h1, h2, .section-title { text-wrap: pretty; }
  .section-header { margin-bottom: var(--xkg-section-gap); }
}

/* ── Mobile (480-768px) ────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --xkg-section-y: clamp(44px, 11vw, 64px);
    --xkg-section-gap: clamp(20px, 5vw, 32px);
    --xkg-container: min(100%, calc(100vw - 32px));
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 36px;
    --spacing-4xl: 48px;
  }
  .hero { padding-block: 80px 40px; }
  .hero-content h1 { font-size: clamp(2rem, 7.5vw, 2.6rem) !important; }
  .hero-content p { font-size: 1.05rem; margin-bottom: 32px; }
  .badge { font-size: 0.7rem; padding: 6px 14px; margin-bottom: 14px; }
  .trust-bar { padding-block: 28px; }
  .trust-inner { gap: 20px; }
  .stat-box { flex: 1 1 40%; min-width: 140px; }
  .stat-num { font-size: 1.8rem; }
  .stat-lbl { font-size: 0.8rem; }
  .svc-grid-home { grid-template-columns: 1fr; gap: 20px; }
  .svc-card-home { padding: 36px 28px; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonial-card { padding: 28px 24px; }
  .process-step { padding: 28px 16px; }
  .trust-inner { flex-direction: column; align-items: center; gap: 16px; }
  .stat-box { flex: none; width: 100%; text-align: center; }
  .proof-card { flex-direction: column; text-align: center; padding: 28px; gap: 32px; }
  .proof-image img { border-radius: 12px; }
  .why-card { padding: 28px 24px; }
  .cta-glass-box { padding: 36px 24px; }
  .cta-glass-box h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cta-glass-box p { font-size: 1rem; }
  .faq-question { font-size: 0.95rem; }
  .tier-grid, .team-grid, .arch-grid, .security-grid, .why-grid { gap: 16px; }
  .tier-card, .team-card, .arch-card, .security-card { padding: 28px 24px; }
}

/* ── Small mobile (480px and below) ────────────────────── */
@media (max-width: 480px) {
  :root {
    --xkg-section-y: clamp(32px, 12vw, 48px);
    --xkg-section-gap: clamp(16px, 5vw, 24px);
    --font-3xl: clamp(1.6rem, 6vw, 2rem);
    --font-4xl: clamp(2rem, 7vw, 2.8rem);
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 28px;
    --spacing-4xl: 40px;
  }
  .container { padding-inline: 16px !important; }
  .hero { padding-block: 70px 30px; }
  .hero-content h1 { font-size: clamp(1.6rem, 8vw, 2rem) !important; margin-bottom: 16px; }
  .hero-content p { font-size: 0.95rem; margin-bottom: 28px; line-height: 1.6; }
  .hero-visual img { max-width: 100%; border-radius: 16px; }
  .btn { padding: 14px 26px; font-size: 0.9rem; }
  .hero-btns { gap: 12px; }
  h1:not(.hero-content h1) { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
  h2 { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; }
  h3 { font-size: clamp(1.1rem, 5vw, 1.4rem) !important; }
  .section-header { margin-bottom: var(--xkg-section-gap); }
  .badge { font-size: 0.65rem; padding: 5px 12px; }
  .svc-card-home { padding: 28px 20px; }
  .svc-icon-home { font-size: 2.2rem; margin-bottom: 20px; }
  .svc-card-home h3 { font-size: 1.3rem; }
  .why-card { padding: 24px 20px; }
  .why-icon { font-size: 2rem; margin-bottom: 14px; }
  .process-num { font-size: 2.2rem; }
  .process-step { padding: 24px 12px; }
  .testimonial-card { padding: 24px 20px; }
  .proof-card { padding: 20px; gap: 24px; }
  .cta-glass-box { padding: 28px 20px; border-radius: 24px; }
  .cta-glass-box h2 { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .cta-glass-box p { font-size: 0.9rem; }
  .stat-num { font-size: 1.5rem; }
  .stat-lbl { font-size: 0.75rem; }
  .legal-section { padding: 20px 16px !important; }
  .faq-item { padding: 20px 16px !important; }
  table { font-size: 0.85rem; }
  .dl-btns { gap: 12px; }
}

/* ── Horizontal overflow guard ─────────────────────────── */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ── Very small screens (380px and below) ─────────────── */
@media (max-width: 380px) {
  :root {
    --xkg-container: calc(100vw - 20px);
  }
  .container { padding-inline: 10px !important; }
  .hero { padding-block: 60px 24px; }
  .hero-content h1 { font-size: clamp(1.3rem, 7vw, 1.6rem) !important; }
  .hero-content p { font-size: 0.85rem; }
  .btn { padding: 12px 20px; font-size: 0.82rem; }
  .cta-glass-box { padding: 20px 14px; border-radius: 18px; }
  .stat-num { font-size: 1.3rem; }
  .legal-section { padding: 14px 10px !important; }
  .stat-box { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #xkg-loader { display: none !important; }
  .xkg-aurora { display: none !important; }
  .xkg-particles-container { display: none !important; }
}
