/* ==========================================================================
   JUWA777 OFFICIAL DESIGN SYSTEM — CSS STYLESHEET
   Theme: Premium White & Red Theme
   Typography: Plus Jakarta Sans / Outfit
   Design: Modern, Accessible, Mobile-First, Zero-Layout-Shift
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Core Color Palette */
  --color-primary: #dc2626;         /* Crimson red primary accent */
  --color-primary-dark: #b91c1c;    /* Deep red for active/hover states */
  --color-primary-darker: #991b1b;  /* Dark red for high contrast accents */
  --color-primary-light: #fee2e2;   /* Soft red tint for badges and highlights */
  --color-primary-subtle: #fff1f2;  /* Very soft background red tint */
  --color-accent-gold: #f59e0b;     /* Subtle warm gold accent for ratings/stars */

  /* Neutral Spectrum */
  --color-bg: #ffffff;              /* Primary page background */
  --color-bg-alt: #f8fafc;          /* Light grey background for alternate sections */
  --color-bg-card: #ffffff;         /* Card background */
  --color-bg-muted: #f1f5f9;        /* Input and secondary element background */
  --color-border: #e2e8f0;          /* Subtle neutral border */
  --color-border-hover: #cbd5e1;    /* Slightly darker border on hover */
  --color-border-red: #fca5a5;      /* Accent border */

  /* Typography Colors */
  --color-text-main: #0f172a;       /* Charcoal/dark slate for primary text */
  --color-text-muted: #475569;      /* Slate grey for secondary text */
  --color-text-light: #64748b;      /* Slate for captions and metadata */
  --color-text-inverse: #ffffff;    /* White text on dark/red backgrounds */

  /* Typography System */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-red: 0 8px 24px -4px rgba(220, 38, 38, 0.35);
  --shadow-red-sm: 0 4px 12px rgba(220, 38, 38, 0.2);

  /* Layout & Spacing */
  --container-width: 1200px;
  --container-narrow: 900px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Section Wrapper Utilities */
.section {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
}

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

.section-light {
  background-color: var(--color-bg-alt);
}

.section-border-top {
  border-top: 1px solid var(--color-border);
}

.section-border-bottom {
  border-bottom: 1px solid var(--color-border);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw + 0.5rem, 2.35rem);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
}

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

.lead-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-red {
  background-color: var(--color-primary-light);
  color: var(--color-primary-darker);
  border: 1px solid var(--color-border-red);
}

.badge-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.badge-neutral {
  background-color: var(--color-bg-muted);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), filter var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, var(--color-primary-darker) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.14),
    0 12px 26px -4px rgba(220, 38, 38, 0.5);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.22),
    0 4px 12px -4px rgba(220, 38, 38, 0.55);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Messenger brand logo inside CTA buttons (white badge + official logo) */
.btn .msg-logo,
.floating-contact-btn .msg-logo {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
}

.btn-sm .msg-logo,
.floating-contact-btn .msg-logo {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-red {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-red:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: var(--shadow-red-sm);
}

.site-logo .logo-text-red {
  color: var(--color-primary);
}

.site-logo .logo-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  background-color: var(--color-primary-light);
  color: var(--color-primary-darker);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Menu Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 85px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links .nav-link {
  font-size: 1.15rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links .nav-link.active {
  color: var(--color-primary);
}

.mobile-drawer-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Responsive Nav Breakpoint */
@media (max-width: 992px) {
  .desktop-nav, .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 90px;
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-visual-card .floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.97);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.floating-badge .badge-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.floating-badge .badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.floating-badge .badge-sub {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Trust Badges Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.trust-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

.trust-item-desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Section 2: Credit Bonus Section
   ========================================================================== */
/* White section; the cards reuse the "Safe. Fast. Fair." tp-card styles */
.cb-section {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

.cb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cb-amount {
  margin: -2px 0 14px;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.cb-percent {
  display: block;
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgb(var(--tp-glow));
  text-shadow: 0 6px 18px rgba(var(--tp-glow), 0.25);
}

.cb-amount-label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cb-card .tp-desc {
  margin-bottom: 24px;
}

.cb-btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   Section 3: Welcome Section (Overview)
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.welcome-info-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-pill {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-pill-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.info-pill-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Homepage About: one text column, centered, at a readable line length */
#welcome .welcome-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
}

.welcome-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.welcome-link:hover {
  color: var(--color-primary-dark);
}

#credit-bonus,
#games,
#how-it-works {
  scroll-margin-top: 96px;
}


/* Homepage footer: contact icons and a centered copyright bar */
.footer-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
  transition: color var(--transition-fast);
}

.footer-contact .footer-link:hover .footer-link-icon {
  color: var(--color-primary);
}

.footer-bottom.footer-bottom--center {
  justify-content: center;
  text-align: center;
}

@media (max-width: 576px) {
  .footer-bottom.footer-bottom--center {
    padding-bottom: 72px; /* clears the floating Messenger button */
  }
}

/* ==========================================================================
   Section 4: Game Categories Grid
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-red);
}

.category-card:hover::after {
  transform: scaleX(1);
}

.category-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.85rem;
  transition: all var(--transition-fast);
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.category-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.category-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.category-link:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Section 5: Our Games Cards Grid
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.game-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.game-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-muted);
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-card-media img {
  transform: scale(1.06);
}

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.game-badge.red {
  background: var(--color-primary);
}

.game-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-category {
  font-size: 0.775rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.game-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.game-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.game-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

/* Our Games (white thumbnail grid) */
.og-section {
  background-color: #ffffff;
  padding: 64px 0 72px;
  border-top: 1px solid var(--color-border);
}

.og-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

.og-title {
  color: var(--color-text-main);
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* Eight tiles per row on desktop; a partial row stays centered */
.og-grid {
  --og-cols: 8;
  --og-gap: clamp(12px, 1.6vw, 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--og-gap);
}

.og-tile {
  flex: 0 0 calc((100% - (var(--og-cols) - 1) * var(--og-gap)) / var(--og-cols));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 4px 0 -1px var(--color-border),
    0 14px 24px -14px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.og-tile:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-red);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 6px 0 -1px var(--color-primary-light),
    0 24px 34px -16px rgba(220, 38, 38, 0.35);
}

.og-tile picture {
  width: 80%;
  display: block;
}

.og-tile img {
  width: 100%;
  aspect-ratio: 174 / 126;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.35);
}

.og-tile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.og-actions {
  text-align: center;
  margin-top: 48px;
}

.og-view-all {
  display: inline-block;
  padding: 18px 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
}

.og-view-all:hover {
  color: #ffffff;
  background: var(--color-primary-dark);
}

@media (max-width: 1024px) {
  .og-grid {
    --og-cols: 4;
  }
  .og-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .og-grid {
    --og-cols: 2;
  }
  .og-view-all {
    display: block;
  }
}

/* ==========================================================================
   Section 6: Free Social Slots vs Real-Money Gaming
   ========================================================================== */
.social-gaming-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.social-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.comparison-column {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.comparison-column.highlight {
  border-color: var(--color-border-red);
  background-color: #fffaf9;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.comparison-column.highlight .comparison-header {
  border-bottom-color: var(--color-border-red);
}

.comparison-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .social-comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .social-gaming-box {
    padding: 28px 20px;
  }
}

/* Free social slots and casino-style games (dark game-category tiles) */
.sg-section {
  background-color: #ffffff;
  padding: 100px 0;
}

.sg-header {
  text-align: center;
  max-width: 1220px;
  margin: 0 auto 44px;
}

.sg-header h2 {
  color: var(--color-text-main);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.sg-header p {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1.6;
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.sg-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 288 / 385;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 24px rgba(0, 0, 0, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.25),
    0 18px 36px -14px rgba(var(--sg-glow), 0.45);
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Glossy sheen across the top of each card */
.sg-card::before {
  content: '';
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.sg-card:hover {
  --lift: -10px;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 24px rgba(0, 0, 0, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.25),
    0 30px 56px -16px rgba(var(--sg-glow), 0.7);
}

.sg-card--slots   { --sg-glow: 236, 72, 153;  background: linear-gradient(180deg, #ec4899 0%, #c81e6c 100%); }
.sg-card--instant { --sg-glow: 249, 115, 22;  background: linear-gradient(180deg, #f97316 0%, #f59e0b 100%); }
.sg-card--keno    { --sg-glow: 37, 99, 235;   background: linear-gradient(180deg, #0ea5e9 0%, #2563eb 100%); }
.sg-card--fish    { --sg-glow: 101, 163, 13;  background: linear-gradient(180deg, #059669 0%, #84cc16 100%); }

/* Sizes below use cqw (percent of card width) so every card keeps the reference proportions */
.sg-card-art {
  position: relative;
  width: 54cqw;
  aspect-ratio: 1;
  margin-top: 16cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5b2a86 0%, #3b1a5a 55%, #26103d 100%);
  box-shadow:
    inset 0 -2.5cqw 4cqw rgba(0, 0, 0, 0.4),
    inset 0 1.5cqw 3cqw rgba(255, 255, 255, 0.12),
    0 3cqw 6cqw rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sg-card:hover .sg-card-art {
  transform: scale(1.06);
}

.sg-card-icon {
  font-size: 34cqw;
  line-height: 1;
  filter: drop-shadow(0 1.5cqw 2cqw rgba(0, 0, 0, 0.35));
  animation: sg-float 4.5s ease-in-out infinite;
  will-change: transform;
  animation-delay: var(--sg-delay, 0s);
}

.sg-card--instant { --sg-delay: -1.1s; }
.sg-card--keno    { --sg-delay: -2.2s; }
.sg-card--fish    { --sg-delay: -3.3s; }

@keyframes sg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.2cqw); }
}

@keyframes sg-coin-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1.6cqw) rotate(8deg); }
}

.sg-coin {
  position: absolute;
  width: 13cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a 0%, #f59e0b 60%, #b45309 100%);
  border: 0.7cqw solid #fcd34d;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 6cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 1px rgba(146, 64, 14, 0.8);
  box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, 0.3);
  animation: sg-coin-bob 3.6s ease-in-out infinite;
  will-change: transform;
}

.sg-coin--2 { animation-delay: -1.2s; }
.sg-coin--3 { animation-delay: -2.4s; }

@media (prefers-reduced-motion: reduce) {
  .sg-card-icon,
  .sg-coin {
    animation: none;
  }
  .sg-card,
  .sg-card:hover,
  .sg-card:hover .sg-card-art {
    transition: none;
    transform: none;
  }
}

.sg-coin--1 { top: 0; right: -2cqw; }
.sg-coin--2 { bottom: 2cqw; right: -1cqw; }
.sg-coin--3 { bottom: 14cqw; left: -5cqw; }

/* Title + description block, centered in the space under the art */
.sg-card-text {
  margin: 8cqw 0 auto; /* every title starts at the same line under the art */
  padding: 0 7cqw 6cqw;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sg-card-desc {
  margin-top: 2.5cqw;
  text-align: center;
  font-size: max(12px, 5.2cqw);
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.sg-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Custom SVG icons (scratch card, keno balls) sized like the emoji icons */
.sg-card-svg {
  width: 46cqw;
  height: 46cqw;
  overflow: visible;
}

.sg-card-label {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11.5cqw;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
  text-shadow: 0 0.6cqw 1.2cqw rgba(0, 0, 0, 0.2);
}

/* Reference shows INSTANT WIN on two lines */
.sg-card--instant .sg-card-label {
  width: min-content;
  padding: 0;
}

@media (max-width: 900px) {
  .sg-section {
    padding: 72px 0;
  }
  .sg-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  /* Narrow cards: a bit taller, wider text area, smaller description */
  .sg-card {
    aspect-ratio: 288 / 430;
  }
  .sg-card-text {
    padding: 0 4cqw 6cqw;
  }
  .sg-card-desc {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .sg-grid {
    gap: 14px;
  }
  .sg-card {
    border-radius: 18px;
  }
}

/* ==========================================================================
   Section 7: Payment Information (Agent Assisted)
   ========================================================================== */
/* Six payment cards: 3D surface, colored border and bottom line per method */
.pm-shield {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pm-accent {
  color: var(--color-primary);
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr; /* every row, and so every card, matches the tallest card */
  gap: 16px;
  perspective: 1200px;
}

.pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 12px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, var(--color-bg-alt) 100%);
  border: 1.5px solid rgba(var(--pm-color), 0.35);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 26px -14px rgba(var(--pm-color), 0.35);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.pm-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--pm-color), 0.7);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 26px 40px -16px rgba(var(--pm-color), 0.5);
}

.pm-logo-wrap {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pm-card:hover .pm-logo-wrap {
  transform: translateY(-3px) scale(1.06);
}

.pm-logo {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 8px 10px rgba(var(--pm-color), 0.35));
}

.pm-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.pm-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

/* Colored bottom line, pushed to the same level in every card */
.pm-line {
  margin-top: auto;
  align-self: stretch;
  height: 4px;
  margin-left: -12px;
  margin-right: -12px;
  background: rgb(var(--pm-color));
}

.pm-cta {
  text-align: center;
  margin-top: 40px;
}

.pm-info {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* Entrance: JS adds .pm-animate, then .is-visible when the section scrolls in */
.pm-animate:not(.is-visible) .pm-card {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}

.pm-animate.is-visible:not(.pm-done) .pm-card {
  transition:
    opacity 0.6s ease calc(0.1s + var(--i) * 0.08s),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.1s + var(--i) * 0.08s);
}

@media (prefers-reduced-motion: reduce) {
  .pm-card,
  .pm-card:hover,
  .pm-card:hover .pm-logo-wrap {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .pm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pm-card {
    padding: 22px 7px 0;
  }
  .pm-desc {
    font-size: 0.74rem;
  }
  .pm-line {
    margin-left: -7px;
    margin-right: -7px;
  }
  .pm-logo-wrap {
    width: 64px;
    height: 64px;
  }
  .pm-cta .btn {
    width: 100%;
  }
}

.payment-disclosure-box {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Section 8: Safe, Fast & Transparent Trust Pillars
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.pillar-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--color-border-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Safe, Fast and Transparent (white, 3D icon cards) */
.tp-section {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 110px 0;
  overflow: hidden;
}

.tp-header h2 {
  color: var(--color-text-main);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-header .lead-text {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.tp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  perspective: 1200px;
}

.tp-card {
  position: relative;
  text-align: center;
  padding: 36px 22px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 0 -1px var(--color-border),
    0 20px 34px -18px rgba(15, 23, 42, 0.25);
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.35s ease;
}

/* Thin red accent line along the top edge of each card */
.tp-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
  opacity: 0.8;
  transition: left 0.35s ease, right 0.35s ease, opacity 0.35s ease;
}

.tp-card:hover::before {
  left: 8%;
  right: 8%;
  opacity: 1;
}

.tp-card:hover {
  transform: translateY(-8px) rotateX(4deg);
  border-color: rgba(var(--tp-glow), 0.45);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 0 -1px rgba(var(--tp-glow), 0.18),
    0 30px 46px -20px rgba(var(--tp-glow), 0.4);
}

.tp-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4c2373 0%, #3b1a5a 55%, #2a1142 100%);
  box-shadow:
    0 0 36px -4px rgba(var(--tp-glow), 0.55),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    inset 0 6px 12px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s ease;
}

/* "Safe. Fast. Fair." only: brand-red icon circles (Credit Bonus keeps purple) */
#why-us .tp-icon {
  background: radial-gradient(circle at 35% 30%, #ef4444 0%, var(--color-primary-dark) 55%, #7f1d1d 100%);
}

.tp-card:hover .tp-icon {
  box-shadow:
    0 0 52px 0 rgba(var(--tp-glow), 0.7),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    inset 0 6px 12px rgba(255, 255, 255, 0.08);
}

.tp-emoji {
  display: block;
  font-size: 4.25rem;
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
  animation: tp-float 4.5s ease-in-out infinite;
  will-change: transform;
  animation-delay: calc(var(--i) * -1.5s);
}

@keyframes tp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tp-title {
  color: var(--color-text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tp-desc {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Entrance: JS adds .tp-animate, then .is-visible when the section scrolls in */
.tp-animate .tp-header {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tp-animate:not(.is-visible) .tp-header,
.tp-animate:not(.is-visible) .tp-card {
  opacity: 0;
  transform: translateY(28px);
  transition: none;
}

.tp-animate.is-visible:not(.tp-done) .tp-card {
  transition:
    opacity 0.7s ease calc(0.15s + var(--i) * 0.12s),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.15s + var(--i) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
  .tp-emoji {
    animation: none;
  }
  .tp-card,
  .tp-card:hover {
    transition: none;
    transform: none;
  }
}

/* Tablet: two cards on top, the third centered below */
@media (max-width: 1024px) {
  .tp-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 760px;
    gap: 22px;
  }
  .tp-card {
    grid-column: span 2;
  }
  .tp-card:last-child {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 600px) {
  .tp-section {
    padding: 72px 0;
  }
  .tp-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tp-card,
  .tp-card:last-child {
    grid-column: auto;
  }
  .tp-emoji {
    font-size: 3.6rem;
  }
  .tp-icon {
    width: 128px;
    height: 128px;
  }
}

/* ==========================================================================
   Section 9: How to Get Started (Numbered Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-red-sm);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage "Start Playing" steps: 3D cards, icons, flow arrows, CTA */
.st-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  perspective: 1200px;
}

.st-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 22px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, var(--color-primary-subtle) 100%);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 28px -14px rgba(15, 23, 42, 0.22);
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.st-card:hover {
  --lift: -8px;
  border-color: var(--color-border-red);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 26px 44px -18px rgba(220, 38, 38, 0.38);
}

.st-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  background: radial-gradient(circle at 35% 30%, var(--color-primary) 0%, var(--color-primary-dark) 60%, var(--color-primary-darker) 100%);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(220, 38, 38, 0.35);
}

.st-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--color-primary-subtle) 45%, var(--color-primary-light) 100%);
  box-shadow:
    inset 0 -6px 12px rgba(220, 38, 38, 0.12),
    inset 0 4px 8px rgba(255, 255, 255, 0.9),
    0 10px 24px -8px rgba(220, 38, 38, 0.35);
  transition: box-shadow 0.3s ease;
}

.st-card:hover .st-icon {
  box-shadow:
    inset 0 -6px 12px rgba(220, 38, 38, 0.12),
    inset 0 4px 8px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(220, 38, 38, 0.06),
    0 14px 32px -6px rgba(220, 38, 38, 0.5);
}

.st-icon svg {
  width: 74%;
  height: 74%;
  overflow: visible;
  filter: drop-shadow(0 6px 6px rgba(15, 23, 42, 0.25));
  animation: st-float 4.5s ease-in-out infinite;
  will-change: transform;
  animation-delay: calc(var(--i) * -1.1s);
}

@keyframes st-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.st-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.st-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.st-action {
  margin-top: auto;
  width: 100%;
}

.st-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: var(--color-bg-muted);
  border-radius: var(--radius-sm);
}

/* Flow arrows in the gap between cards, level with the icons (desktop only) */
.st-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 87px;
  left: calc(100% + 4px);
  width: 20px;
  height: 2px;
  background-color: var(--color-border-red);
}

.st-card:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 83px;
  left: calc(100% + 15px);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  transform: rotate(45deg);
}

/* Entrance: JS adds .st-animate, then .is-visible when the section scrolls in */
.st-animate:not(.is-visible) .st-card {
  opacity: 0;
  transform: translateY(28px);
  transition: none;
}

.st-animate.is-visible:not(.st-done) .st-card {
  transition:
    opacity 0.7s ease calc(0.1s + var(--i) * 0.12s),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.1s + var(--i) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
  .st-icon svg {
    animation: none;
  }
  .st-card,
  .st-card:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 992px) {
  .st-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .st-card::after,
  .st-card::before {
    display: none;
  }
}

@media (max-width: 580px) {
  .st-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 10: FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

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

.faq-item.active {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
}

/* No browser outline on click; open/focused questions use the brand-red border.
   Keyboard users still get a visible red focus ring. */
.faq-question:focus {
  outline: none;
}

.faq-item:focus-within {
  border-color: var(--color-primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

/* FAQ categories: centered 820px column, category jump buttons, headings */
.faq-center {
  max-width: 820px;
  margin: 0 auto;
}

.faq-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 40px;
  max-width: 820px;
}

.faq-cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-red);
  background-color: #ffffff;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.faq-cat-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.faq-cat-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.faq-category {
  margin-top: 52px;
  scroll-margin-top: 100px;
}

.faq-cat-nav + .faq-category {
  margin-top: 0;
}

.faq-cat-title {
  position: relative;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-main);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.faq-cat-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-primary);
  transform: translateX(-50%);
}

.faq-still-box {
  margin-top: 56px;
  padding: 36px 28px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.faq-still-box p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 18px;
}

.faq-view-all {
  text-align: center;
  margin-top: 36px;
}

@media (max-width: 600px) {
  .faq-cat-nav {
    gap: 8px;
    margin-bottom: 32px;
  }
  .faq-cat-btn {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
  .faq-still-box {
    padding: 28px 20px;
  }
  .faq-still-box .btn {
    width: 100%;
  }
}

.faq-link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.faq-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

/* ==========================================================================
   Section 11: Testimonials and Player Feedback
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--color-accent-gold);
  margin-bottom: 16px;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.feedback-submit-prompt {
  background-color: var(--color-bg-alt);
  border: 1px dashed var(--color-border-hover);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Section 12: Need Help? Contact Callout Banner
   ========================================================================== */
.help-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.help-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.help-banner h2 {
  color: #ffffff;
}

.help-banner p {
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-channels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.channel-pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: #ffffff;
}

@media (max-width: 768px) {
  .help-banner {
    padding: 36px 24px;
  }
}

/* Homepage only: white, premium version of the help banner (other pages keep the dark one) */
#need-help .help-banner {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-alt) 100%);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 6px 0 -1px var(--color-border),
    0 26px 44px -22px rgba(15, 23, 42, 0.28);
}

#need-help .help-banner::after {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.14) 0%, transparent 70%);
}

#need-help .help-banner h2 {
  color: var(--color-text-main);
}

#need-help .help-banner p {
  color: var(--color-text-muted);
}

#need-help .channel-pill {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
}

#need-help .channel-pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* About page: Our Mission cards (3 across on desktop, stacked below) */
.pillars-grid.mission-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Mission card icons: white line icon on a solid brand-red tile (matches the Juwa 2.0 page) */
.mission-grid .pillar-icon {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(220, 38, 38, 0.55);
}

.mission-grid .pillar-icon svg {
  width: 31px; /* about 55% of the 56px tile */
  height: 31px;
}

@media (max-width: 900px) {
  .pillars-grid.mission-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* About page: Juwa777 vs Juwa 2.0 comparison table */
#compare {
  border-top: 1px solid var(--color-border);
}

.cmp-card {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* On narrow screens only the table scrolls sideways, never the page */
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.cmp-table th,
.cmp-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

.cmp-table thead th {
  background-color: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: none;
}

.cmp-table thead th.cmp-hl-head {
  background-color: var(--color-primary);
  position: relative;
}

.cmp-rec {
  display: block;
  width: max-content;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cmp-table tbody th {
  font-weight: 700;
  color: var(--color-text-main);
  width: 22%;
}

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

.cmp-table tbody tr:nth-child(even) th,
.cmp-table tbody tr:nth-child(even) td {
  background-color: var(--color-bg-alt);
}

.cmp-table tbody td.cmp-hl {
  background-color: var(--color-primary-subtle);
  color: var(--color-text-main);
  font-weight: 600;
}

.cmp-table tbody tr:nth-child(even) td.cmp-hl {
  background-color: var(--color-primary-light);
}

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

.cmp-cta {
  text-align: center;
  margin-top: 40px;
}

.cmp-cta p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 18px;
}

.cmp-cta .btn-group {
  justify-content: center;
}

/* About page: Transparency items as icon cards (2x2, 1 column on phones) */
.trans-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

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

.trans-card {
  padding: 24px 24px 22px;
  border-radius: 16px;
  border-left: 3px solid var(--color-primary);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.trans-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(220, 38, 38, 0.55);
}

.trans-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 700px) {
  .trans-box {
    padding: 14px;
  }
  .trans-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* About page: Support Info cards */
.si-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.si-card {
  padding: 28px 24px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.si-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(220, 38, 38, 0.55);
}

.si-icon svg {
  width: 28px;
  height: 28px;
}

.si-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.si-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.si-actions {
  text-align: center;
  margin-top: 40px;
}

#about-faq {
  border-top: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .si-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* About page: text link inside the dark contact banner */
.about-cta-actions {
  align-items: center;
}

.about-cta-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-cta-link:hover {
  color: #fca5a5;
}

@media (max-width: 600px) {
  .cmp-table th,
  .cmp-table td {
    padding: 13px 14px;
    font-size: 0.9rem;
  }
  .cmp-cta .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .cmp-cta .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Juwa 2.0 Page Specific Styles
   ========================================================================== */
.page-hero {
  padding: 60px 0;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero-title {
  margin-bottom: 16px;
}

.page-hero-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs-separator {
  color: var(--color-border-hover);
}

/* ==========================================================================
   Juwa 2.0 page: About Us (text left, floating image right)
   ========================================================================== */
#about,
#whats-new {
  scroll-margin-top: 80px;
}

.ab-section {
  overflow: hidden;
  padding-top: 0; /* the hero above already supplies the normal section gap */
}

.ab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.ab-text p {
  margin-bottom: 18px;
  line-height: 1.75;
}

.ab-actions {
  margin-top: 28px;
}

.ab-media {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Decorative red blob behind the image */
.ab-blob {
  position: absolute;
  inset: 8% 4% -2% 12%;
  border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  background: radial-gradient(ellipse at 45% 45%, rgba(248, 113, 113, 0.9) 0%, rgba(220, 38, 38, 0.6) 35%, rgba(220, 38, 38, 0) 72%);
  opacity: 0.45;
}

.ab-picture {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
}

/* Same image and proportions as the hero visual */
.ab-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 338;
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(220, 38, 38, 0.12),
    0 24px 60px -18px rgba(220, 38, 38, 0.55);
  animation: ab-float 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes ab-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Entrance: JS adds .ab-animate, then .is-visible */
.ab-animate .ab-text,
.ab-animate .ab-media {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ab-animate:not(.is-visible) .ab-text {
  opacity: 0;
  transform: translateX(-40px);
}

.ab-animate:not(.is-visible) .ab-media {
  opacity: 0;
  transform: translateX(40px);
}

/* ==========================================================================
   Juwa 2.0 page: What's New (dark red, glass 3D cards)
   ========================================================================== */
.wn-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.wn-light {
  --light: 220, 38, 38;
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--light), 1) 0%, rgba(var(--light), 0) 70%);
  opacity: 0.1;
  pointer-events: none;
}

/* Faint brand-tinted light spots behind the glass cards */
.wn-light--1 { width: 360px; height: 360px; top: -120px; left: -80px; }
.wn-light--2 { width: 300px; height: 300px; bottom: -100px; right: -60px; opacity: 0.07; }
.wn-light--3 { --light: 245, 158, 11; width: 220px; height: 220px; top: 40%; left: 55%; opacity: 0.08; }

.wn-section .container {
  position: relative;
}

.wn-header h2 {
  color: var(--color-text-main);
}

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

.wn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
  perspective: 1000px;
}

.wn-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 26px;
  border-radius: 20px;
  /* glass fill inside, 1px red-to-gold gradient border */
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
    linear-gradient(135deg, rgba(239, 68, 68, 0.55), rgba(245, 158, 11, 0.5)) border-box;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 18px 34px -18px rgba(15, 23, 42, 0.25),
    0 10px 30px -22px rgba(220, 38, 38, 0.35);
  overflow: hidden;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.3s ease;
}

.wn-card:hover {
  --lift: -6px;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 30px 48px -20px rgba(15, 23, 42, 0.3),
    0 18px 40px -18px rgba(220, 38, 38, 0.45);
}

/* Large faded number watermark */
.wn-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #f87171 0%, var(--color-primary) 45%, var(--color-primary-darker) 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -4px 6px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(220, 38, 38, 0.45);
  animation: wn-float 3s ease-in-out infinite;
  will-change: translate;
  animation-delay: calc(var(--i) * -0.375s);
  transition: scale 0.3s ease;
}

/* Glossy highlight on the top of the icon circle */
.wn-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 12px;
  right: 12px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.wn-icon svg {
  position: relative;
  width: 35px; /* about 55% of the 64px circle */
  height: 35px;
  stroke-width: 2.2;
}

.wn-card:hover .wn-icon {
  scale: 1.1;
  animation:
    wn-float 3s ease-in-out infinite,
    wn-pulse 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.375s), 0s;
}

@keyframes wn-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes wn-pulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 3px rgba(255, 255, 255, 0.35),
      inset 0 -4px 6px rgba(0, 0, 0, 0.3),
      0 0 22px rgba(220, 38, 38, 0.45);
  }
  50% {
    box-shadow:
      inset 0 2px 3px rgba(255, 255, 255, 0.35),
      inset 0 -4px 6px rgba(0, 0, 0, 0.3),
      0 0 38px rgba(239, 68, 68, 0.85);
  }
}

.wn-title {
  position: relative;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.wn-desc {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Entrance: JS adds .wn-animate, then .is-visible; cards rise 100ms apart */
.wn-animate:not(.is-visible) .wn-card {
  opacity: 0;
  transform: translateY(30px);
  transition: none;
}

.wn-animate.is-visible:not(.wn-done) .wn-card {
  transition:
    opacity 0.6s ease calc(var(--i) * 0.1s),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 0.1s);
}

@media (prefers-reduced-motion: reduce) {
  .ab-img,
  .wn-icon,
  .wn-card:hover .wn-icon {
    animation: none;
  }
  .wn-card,
  .wn-card:hover {
    transform: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .wn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .ab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .wn-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ab-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ab-actions .btn {
    width: 100%;
  }
}

/* Juwa 2.0 page: feature cards (premium 3D look, animated icons) */
.feature-section {
  scroll-margin-top: 80px;
}

.feature-section .section-header {
  margin-bottom: 64px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; /* every card matches the tallest one */
  gap: 28px;
  perspective: 1200px;
}

.feature-box {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, var(--color-primary-subtle) 100%);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 0 -1px var(--color-border),
    0 18px 30px -16px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* 3px brand-red top border, shown on hover without shifting the layout */
.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--color-border-red);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 0 -1px var(--color-primary-light),
    0 30px 46px -18px rgba(220, 38, 38, 0.35);
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-box-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ef4444 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 8px 18px -6px rgba(220, 38, 38, 0.55);
  animation: feature-icon-float 4s ease-in-out infinite;
  will-change: transform;
  animation-delay: calc(var(--i) * -0.6s);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Light sweep across the icon tile on hover */
.feature-box-icon::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}

.feature-box:hover .feature-box-icon {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.08) rotate(-4deg);
}

.feature-box:hover .feature-box-icon::after {
  opacity: 1;
  animation: feature-icon-shine 0.8s ease forwards;
}

.feature-box-icon svg {
  position: relative;
  width: 31px; /* about 55% of the 56px tile */
  height: 31px;
  stroke-width: 2.2;
}

@keyframes feature-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes feature-icon-shine {
  from { left: -60%; }
  to { left: 120%; }
}

.feature-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.feature-box-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-actions {
  justify-content: center;
  margin-top: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .feature-box,
  .feature-box:hover,
  .feature-box-icon,
  .feature-box:hover .feature-box-icon {
    animation: none;
    transition: none;
    transform: none;
  }
  .feature-box:hover .feature-box-icon::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 992px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .feature-box {
    padding: 28px 20px 26px;
  }
  .feature-box-desc {
    font-size: 0.875rem;
  }
}

@media (max-width: 600px) {
  .feature-cards-grid {
    grid-template-columns: 1fr;
  }
  .feature-box {
    padding: 26px 18px 24px;
  }
  .feature-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Download Page Specific Styles
   ========================================================================== */
.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.download-card {
  background-color: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.download-card.popular {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.download-card-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.platform-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.download-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.825rem;
  color: var(--color-text-light);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.meta-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.download-card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.download-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Security Notice Box */
.security-alert {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 36px;
}

.security-alert-icon {
  color: #d97706;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-alert-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}

.security-alert-desc {
  font-size: 0.875rem;
  color: #b45309;
  line-height: 1.55;
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  background-color: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-muted);
  overflow: hidden;
  position: relative;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.blog-category-tag {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.blog-read-more:hover {
  color: var(--color-primary-dark);
}

/* Individual Blog Article Content */
.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 36px;
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 14px;
}

.article-featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.article-body h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 22px;
  color: #334155;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  list-style: disc;
  margin-bottom: 10px;
  color: #334155;
}

.article-body ol li {
  list-style: decimal;
}

.article-callout {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.975rem;
}

.article-author-card {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-channels-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg-alt);
  transform: translateX(4px);
}

.channel-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.channel-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.channel-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.contact-form-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ==========================================================================
   Modal Dialog Component
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.72);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
  line-height: 1;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--color-primary);
}

.modal-body {
  padding: 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 72px 0 32px;
  border-top: 3px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 16px 0 24px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background-color: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-disclaimer-box {
  background-color: #1e293b;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-disclaimer-box a {
  color: #fca5a5;
  text-decoration: underline;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Floating Quick Action Contact Button
   ========================================================================== */
.floating-contact-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  z-index: 999;
  transition: all var(--transition-fast);
  border: 2px solid #ffffff;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.5);
  color: #ffffff;
}

.pulse-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* expanding ring: transform + opacity only, so it never repaints while scrolling */
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.8s ease-out infinite;
  will-change: transform, opacity;
}

@keyframes pulseGreen {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  color: var(--color-text-main);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.back-to-top.visible {
  display: flex;
}

/* ==========================================================================
   Download popup ("Choose Your Version"), opened by [data-download-modal]
   ========================================================================== */
.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(15, 23, 42, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dm-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dm-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px 32px 28px;
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
  text-align: center;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dm-overlay.is-open .dm-dialog {
  transform: none;
}

.dm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-bg-muted);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dm-close svg {
  width: 18px;
  height: 18px;
}

.dm-close:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.dm-close:focus-visible,
.dm-btn:focus-visible,
.dm-help a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.dm-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.dm-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

.dm-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
}

.dm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dm-card--featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08), 0 16px 30px -14px rgba(220, 38, 38, 0.45);
}

.dm-label {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-muted);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.dm-label--red {
  background-color: var(--color-primary);
  color: #ffffff;
}

.dm-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.dm-card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.dm-btn {
  margin-top: auto;
  width: 100%;
}

.dm-help {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.dm-help a {
  color: var(--color-primary);
  font-weight: 700;
}

.dm-help a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .dm-dialog {
    padding: 36px 18px 22px;
  }
  .dm-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-overlay,
  .dm-dialog {
    transition: none;
  }
}

/* ==========================================================================
   About page: premium 3D cards + animated icons
   (Mission, Support Info and Transparency cards; comparison table gets depth only)
   ========================================================================== */
.mission-grid .pillar-card,
.si-card,
.trans-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 5px 0 -1px var(--color-border),
    0 18px 30px -18px rgba(15, 23, 42, 0.28);
  transform: none;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Transparency cards keep their 3px brand-red left border */
.trans-card {
  border-left: 3px solid var(--color-primary);
}

/* Neutralize the older generic hover so touch screens don't get a stuck lift */
.mission-grid .pillar-card:hover {
  transform: none;
}

.cmp-card {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 0 -1px var(--color-border),
    0 24px 40px -22px rgba(15, 23, 42, 0.3);
}

/* Icons: gentle float (uses `translate` so it never fights the hover transform) */
.mission-grid .pillar-icon,
.si-icon,
.trans-icon {
  animation: about-icon-float 4s ease-in-out infinite;
  transition: scale 0.3s ease, rotate 0.3s ease, box-shadow 0.3s ease;
}

.mission-grid .pillar-card:nth-child(2) .pillar-icon,
.si-card:nth-child(2) .si-icon,
.trans-card:nth-child(2) .trans-icon { animation-delay: -1s; }

.mission-grid .pillar-card:nth-child(3) .pillar-icon,
.si-card:nth-child(3) .si-icon,
.trans-card:nth-child(3) .trans-icon { animation-delay: -2s; }

.trans-card:nth-child(4) .trans-icon { animation-delay: -3s; }

@keyframes about-icon-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

/* Hover lift only on devices with a real mouse, so taps on phones aren't affected */
@media (hover: hover) and (pointer: fine) {
  .mission-grid .pillar-card:hover,
  .si-card:hover,
  .trans-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-red);
    box-shadow:
      inset 0 1px 0 #ffffff,
      0 1px 2px rgba(15, 23, 42, 0.05),
      0 7px 0 -1px var(--color-primary-light),
      0 28px 44px -20px rgba(220, 38, 38, 0.35);
  }

  .trans-card:hover {
    border-left-color: var(--color-primary);
  }

  .mission-grid .pillar-card:hover .pillar-icon,
  .si-card:hover .si-icon,
  .trans-card:hover .trans-icon {
    scale: 1.08;
    rotate: -4deg;
    box-shadow: 0 10px 22px -6px rgba(220, 38, 38, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mission-grid .pillar-icon,
  .si-icon,
  .trans-icon {
    animation: none;
  }
  .mission-grid .pillar-card,
  .si-card,
  .trans-card,
  .mission-grid .pillar-card:hover,
  .si-card:hover,
  .trans-card:hover {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   Download page (download.html)
   ========================================================================== */
.dl-hero {
  padding: 48px 0 40px;
  text-align: center;
  background-color: #ffffff;
}

.dl-hero h1 {
  margin-bottom: 12px;
}

.dl-hero .lead-text {
  max-width: 640px;
  margin: 0 auto 22px;
}

.dl-hero-actions {
  justify-content: center;
}

#juwa777-download,
#juwa2-download {
  scroll-margin-top: 80px;
  border-top: 1px solid var(--color-border);
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* Juwa 2.0: image left, text right */
.dl-section--featured .dl-media {
  order: -1;
}

.dl-section--featured {
  background: linear-gradient(180deg, var(--color-primary-subtle) 0%, #ffffff 100%);
}

.dl-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dl-badges .badge {
  margin-bottom: 0;
}

.dl-rec {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.dl-text .lead-text {
  margin-bottom: 22px;
}

.dl-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 28px;
}

.dl-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

.dl-info-item strong {
  color: var(--color-text-main);
  font-weight: 700;
}

.dl-info-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-info-icon svg {
  width: 18px;
  height: 18px;
}

.dl-actions .btn-primary svg {
  width: 20px;
  height: 20px;
}

.dl-more-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--color-primary);
  font-weight: 700;
}

.dl-more-link:hover {
  text-decoration: underline;
}

.dl-media {
  display: flex;
  justify-content: center;
}

.dl-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.4);
}

/* Classic Version image (about us image.jpeg) is 3:2 – show it whole, no crop */
.dl-img--wide {
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

.dl-section--featured .dl-img {
  box-shadow:
    0 0 0 1px rgba(220, 38, 38, 0.12),
    0 24px 60px -18px rgba(220, 38, 38, 0.5);
}

/* Fade-in when each section scrolls into view (JS adds .dl-animate, then .is-visible) */
.dl-animate .dl-grid {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dl-animate:not(.is-visible) .dl-grid {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  .dl-animate .dl-grid,
  .dl-animate:not(.is-visible) .dl-grid {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .dl-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* image always below the text on small screens */
  .dl-section--featured .dl-media {
    order: 0;
  }
}

@media (max-width: 600px) {
  .dl-info {
    grid-template-columns: 1fr;
  }
  .dl-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-actions .btn {
    width: 100%;
  }
}

/* Download page: install steps, download help, final CTA */
.dl-extra {
  scroll-margin-top: 80px;
  border-top: 1px solid var(--color-border);
}

.dl-animate .dl-fade {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dl-animate:not(.is-visible) .dl-fade {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  .dl-animate .dl-fade,
  .dl-animate:not(.is-visible) .dl-fade {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.dl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

/* thin connector line behind the emoji circles (desktop only); draws left to right on reveal */
.dl-steps::before {
  content: "";
  position: absolute;
  top: 78px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.5), rgba(220, 38, 38, 0.15));
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
  z-index: 0;
}

.dl-animate:not(.is-visible) .dl-steps::before {
  transform: scaleX(0);
}

/* outer li handles the staggered entrance; inner card handles tilt */
.dl-step {
  position: relative;
  z-index: 1;
  perspective: 900px;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.dl-animate:not(.is-visible) .dl-step {
  opacity: 0;
  transform: translateY(32px);
}

.dl-step-card {
  position: relative;
  height: 100%;
  padding: 32px 22px 28px;
  text-align: center;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fffafa 100%) padding-box,
    linear-gradient(135deg, #fecaca 0%, #fde68a 100%) border-box;
  box-shadow:
    0 22px 44px -22px rgba(15, 23, 42, 0.28),
    0 2px 6px rgba(15, 23, 42, 0.06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

/* glossy highlight across the top of the card */
.dl-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.dl-step-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffffff 0%, #ffe4e6 100%);
  box-shadow:
    inset 0 6px 10px rgba(255, 255, 255, 0.95),
    inset 0 -6px 12px rgba(220, 38, 38, 0.1),
    0 14px 26px -10px rgba(220, 38, 38, 0.45);
  animation: dlStepFloat 3s ease-in-out infinite;
  will-change: transform;
  animation-delay: calc(var(--i, 0) * -0.6s);
}

.dl-step-emoji {
  font-size: 44px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dl-step-num {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 12px -4px rgba(220, 38, 38, 0.6);
}

.dl-step h3 {
  position: relative;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.dl-step p {
  position: relative;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes dlStepFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes dlStepBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) translateY(-4px); }
  65% { transform: scale(1.08) translateY(0); }
  100% { transform: scale(1.12); }
}

@keyframes dlStepGlow {
  0%, 100% {
    box-shadow:
      inset 0 6px 10px rgba(255, 255, 255, 0.95),
      inset 0 -6px 12px rgba(220, 38, 38, 0.1),
      0 14px 26px -10px rgba(220, 38, 38, 0.45);
  }
  50% {
    box-shadow:
      inset 0 6px 10px rgba(255, 255, 255, 0.95),
      inset 0 -6px 12px rgba(220, 38, 38, 0.12),
      0 16px 34px -6px rgba(220, 38, 38, 0.7);
  }
}

@media (hover: hover) and (pointer: fine) {
  .dl-step-card:hover {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
    box-shadow:
      0 32px 60px -24px rgba(220, 38, 38, 0.4),
      0 6px 14px rgba(15, 23, 42, 0.1);
  }
  .dl-step-card:hover .dl-step-icon {
    animation: dlStepFloat 3s ease-in-out infinite, dlStepGlow 1.4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.6s), 0s;
  }
  .dl-step-card:hover .dl-step-emoji {
    animation: dlStepBounce 0.6s ease forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-step,
  .dl-animate:not(.is-visible) .dl-step {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .dl-steps::before,
  .dl-animate:not(.is-visible) .dl-steps::before {
    transition: none;
    transform: none;
  }
  .dl-step-card,
  .dl-step-card:hover {
    transform: none;
  }
  .dl-step-icon,
  .dl-step-card:hover .dl-step-icon,
  .dl-step-card:hover .dl-step-emoji {
    animation: none;
  }
}

.dl-help {
  background: #f8fafc;
}

.dl-help-more {
  text-align: center;
  margin: 28px 0 0;
  font-size: 0.95rem;
}

.dl-cta {
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #dc2626 100%);
  box-shadow: 0 24px 60px -24px rgba(127, 29, 29, 0.7);
}

.dl-cta h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.dl-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
}

.dl-cta .dl-cta-btn {
  background: #ffffff;
  color: var(--color-primary);
  border: 0;
  font-weight: 700;
}

.dl-cta .dl-cta-btn:hover {
  background: #fff1f2;
  color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
  .dl-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dl-steps::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .dl-steps {
    grid-template-columns: 1fr;
  }
  .dl-cta {
    padding: 40px 20px;
  }
  .dl-cta .dl-cta-btn {
    width: 100%;
  }
}

/* Normal section spacing above Download Help (split with the section before it) */
#install-fixes {
  padding-bottom: 40px;
}

#download-help {
  padding-top: 40px;
}

@media (max-width: 768px) {
  #install-fixes {
    padding-bottom: 28px;
  }
  #download-help {
    padding-top: 28px;
  }
}

/* Normal section spacing between Download Help and the final CTA box */
#download-help {
  padding-bottom: 32px;
}

#download-cta {
  padding-top: 32px;
}

@media (max-width: 768px) {
  #download-help {
    padding-bottom: 24px;
  }
  #download-cta {
    padding-top: 24px;
  }
}

/* Outline button for dark boxes (blog help banner) */
.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .help-banner .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .help-banner .btn-group .btn {
    width: 100%;
  }
}

/* FAQ accordion inside blog articles */
.article-body .article-faq {
  margin: 8px 0 32px;
}

.article-body .article-faq .faq-answer p {
  margin: 0;
}

/* Blog hero: tighter bottom spacing, H1 size, quick category pills */
#blog-hero {
  padding-bottom: 64px;
}

#blog-hero .section-header {
  margin-bottom: 0;
  max-width: 860px;
}

#blog-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  text-wrap: balance;
}

.blog-hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.blog-hero-cat {
  font-family: var(--font-body, inherit);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-hero-cat:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.blog-hero-cat:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  #blog-hero {
    padding-bottom: 48px;
  }
}

/* ==========================================================================
   Contact page: channel cards (contact.html #channels)
   ========================================================================== */
.ch-section {
  background:
    radial-gradient(ellipse 55% 60% at 50% 55%, rgba(220, 38, 38, 0.09) 0%, rgba(220, 38, 38, 0) 70%),
    #fafafa;
  border-top: 1px solid var(--color-border);
}

.ch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 14px;
}

/* outer wrapper handles the staggered entrance; inner card handles lift + tilt */
.ch-item {
  perspective: 1000px;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.ch-animate:not(.is-visible) .ch-item {
  opacity: 0;
  transform: translateY(32px);
}

.ch-card {
  --lift: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 40px 28px 32px;
  border-radius: 24px;
  border: 1px solid #fecaca;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 26px 50px -26px rgba(15, 23, 42, 0.3),
    0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(var(--lift)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* glossy highlight across the top */
.ch-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.ch-card > * {
  position: relative;
}

/* highlighted Messenger card */
.ch-item--featured .ch-card {
  --lift: -14px;
  border: 2px solid var(--color-primary);
  box-shadow:
    0 30px 60px -22px rgba(220, 38, 38, 0.45),
    0 0 0 6px rgba(220, 38, 38, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.06);
}

.ch-logo-wrap {
  --ring: rgba(220, 38, 38, 0.35);
  display: block;
  width: 100px;
  height: 100px;
  margin-bottom: 22px;
  border-radius: 50%;
  animation: chFloat 3s ease-in-out infinite;
  will-change: transform;
  animation-delay: calc(var(--i, 0) * -0.7s);
}

/* soft pulsing glow ring in the brand color */
.ch-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--ring);
  animation: chRing 2.6s ease-out infinite;
  will-change: transform, opacity;
  animation-delay: calc(var(--i, 0) * 0.4s);
  pointer-events: none;
}

.ch-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.35),
    0 14px 28px -10px var(--ring);
  transition: transform 0.3s ease;
}

.ch-logo svg {
  width: 48px;
  height: 48px;
}

.ch-card--messenger .ch-logo-wrap { --ring: rgba(160, 51, 255, 0.4); }
.ch-card--messenger .ch-logo {
  background: linear-gradient(45deg, #0099ff 0%, #a033ff 60%, #ff5280 100%);
}

.ch-card--instagram .ch-logo-wrap { --ring: rgba(214, 41, 118, 0.4); }
.ch-card--instagram .ch-logo {
  background: radial-gradient(circle at 30% 107%, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}
.ch-card--instagram .ch-logo svg {
  width: 50px;
  height: 50px;
}

.ch-card--gmail .ch-logo-wrap { --ring: rgba(234, 67, 53, 0.3); }
.ch-card--gmail .ch-logo {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow:
    inset 0 -6px 12px rgba(15, 23, 42, 0.04),
    0 14px 28px -10px rgba(234, 67, 53, 0.35);
}
.ch-card--gmail .ch-logo svg {
  width: 50px;
  height: 38px;
}

.ch-badge {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #ffd54a;
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ch-title {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.ch-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.ch-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 700;
}

.ch-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.ch-card:hover .ch-arrow,
.ch-card:focus-visible .ch-arrow {
  transform: translateX(5px);
}

.ch-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

@keyframes chFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes chRing {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.32); opacity: 0; }
}

@keyframes chBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.14) translateY(-4px); }
  65% { transform: scale(1.06); }
  100% { transform: scale(1.1); }
}

@media (hover: hover) and (pointer: fine) {
  .ch-card:hover {
    --lift: -8px;
    box-shadow:
      0 36px 64px -24px rgba(220, 38, 38, 0.38),
      0 6px 14px rgba(15, 23, 42, 0.1);
  }
  .ch-item--featured .ch-card:hover {
    --lift: -20px;
    box-shadow:
      0 40px 70px -22px rgba(220, 38, 38, 0.55),
      0 0 0 6px rgba(220, 38, 38, 0.08),
      0 6px 14px rgba(15, 23, 42, 0.1);
  }
  .ch-card:hover .ch-logo {
    animation: chBounce 0.6s ease forwards;
  }
}

/* single centered column for the inquiry form */
.contact-grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .ch-grid {
    gap: 18px;
  }
  .ch-card {
    padding: 32px 18px 26px;
  }
  .ch-logo-wrap {
    width: 84px;
    height: 84px;
  }
  .ch-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 680px) {
  .ch-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    padding-top: 0;
  }
  .ch-item--featured {
    order: -1;
  }
  .ch-item--featured .ch-card {
    --lift: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-item,
  .ch-animate:not(.is-visible) .ch-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .ch-logo-wrap,
  .ch-logo-wrap::after,
  .ch-card:hover .ch-logo {
    animation: none;
  }
  .ch-card {
    transform: translateY(var(--lift));
  }
}

/* Contact form: dropdown, field errors, honeypot, status boxes */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

.form-select:invalid {
  color: var(--color-text-light, #94a3b8);
}

.form-select option {
  color: var(--color-text-main);
}

.form-control.is-invalid,
.form-checkbox input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
}

.field-error:empty {
  display: none;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status--success.is-visible {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status--error.is-visible {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

button[type="submit"]:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

/* FAQ page: keep the 7 category buttons to two rows on phones */
.faq-anchor-alias {
  display: block;
  position: relative;
  top: -100px;
}

@media (max-width: 480px) {
  .faq-cat-nav {
    gap: 4px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .faq-cat-btn {
    padding: 7px 7px;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Blog: code-generated article covers (filled in by initBlogCovers in main.js)
   ========================================================================== */
.blog-card-media--cover {
  aspect-ratio: auto;
  background: #ffffff;
  padding: 12px 12px 0;
  overflow: visible;
}

.blog-featured-media {
  padding: 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.blog-cover {
  --gold: #f5c451;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(135deg, #12060a 0%, #24080d 50%, #3a0d12 100%);
  isolation: isolate;
}

.bc-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bc-glow {
  position: absolute;
  top: -35%;
  right: -20%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 66, 0.35) 0%, rgba(220, 38, 38, 0.18) 40%, rgba(220, 38, 38, 0) 70%);
  opacity: 0.7;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, 0.12);
  pointer-events: none;
}

.bc-ring--left {
  width: 46%;
  aspect-ratio: 1;
  left: -16%;
  bottom: -38%;
}

.bc-ring--right {
  width: 34%;
  aspect-ratio: 1;
  right: -8%;
  bottom: -30%;
}

.bc-bar {
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--gold) 0%, #dc2626 100%);
}

.bc-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 5.5cqi, 34px) clamp(16px, 6cqi, 38px);
  gap: 6px;
}

.bc-top {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.bc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.55);
  background: rgba(10, 3, 5, 0.55);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 2.4cqi, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(245, 196, 81, 0.8);
}

.bc-icon {
  --icon: 88px;
  position: absolute;
  top: 0;
  right: 0;
  width: var(--icon);
  height: var(--icon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 3, 5, 0.5);
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.bc-icon svg {
  width: 44%;
  height: 44%;
}

.bc-title {
  flex-shrink: 0;
  max-width: calc(100% - var(--icon-space, 102px));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.95rem, 5.3cqi, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bc-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.8rem, 3.2cqi, 1.1rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.bc-logo span {
  color: #ef4444;
}

.bc-meta {
  margin-top: 2px;
  font-size: clamp(0.62rem, 2.4cqi, 0.8rem);
  color: rgba(255, 255, 255, 0.55);
}

.bc-year {
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fde68a 0%, #f5c451 55%, #e0a526 100%);
  color: #1f1300;
  font-size: clamp(0.62rem, 2.4cqi, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* hover: brighter glow, icon floats up with a gold glow, cover zooms inside its frame */
.blog-card:hover .bc-inner,
.blog-featured:hover .bc-inner {
  transform: scale(1.03);
}

.blog-card:hover .bc-glow,
.blog-featured:hover .bc-glow {
  opacity: 1;
}

.blog-card:hover .bc-icon,
.blog-featured:hover .bc-icon {
  transform: translateY(-6px);
  border-color: rgba(245, 196, 81, 0.9);
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.12), 0 0 22px rgba(245, 196, 81, 0.45);
}

.blog-card:hover .blog-card-media--cover img {
  transform: none;
}

@media (max-width: 768px) {
  .bc-icon {
    --icon: 64px;
  }
  .bc-title {
    --icon-space: 76px;
  }
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-inner,
  .bc-icon,
  .bc-glow {
    transition: none;
  }
  .blog-card:hover .bc-inner,
  .blog-featured:hover .bc-inner,
  .blog-card:hover .bc-icon,
  .blog-featured:hover .bc-icon {
    transform: none;
  }
}

/* Homepage hero: two-line title, download button icon, 3-across feature row */
.hero-title .hero-title-line {
  display: block;
}

.hero-dl-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex: none;
}

/* Home + Juwa 2.0 hero: Download and Messenger buttons share one width,
   and the download icon matches the 22px Messenger logo */
.hero-dl-btn svg:not(.msg-logo) {
  width: 22px;
  height: 22px;
}

#hero .btn-group,
#intro .btn-group {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 600px) {
  #hero .btn-group,
  #intro .btn-group {
    grid-template-columns: 1fr;
  }
}

.trust-bar--hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-icon--solid {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(220, 38, 38, 0.6);
}

.trust-icon--solid svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .trust-bar--hero {
    grid-template-columns: 1fr;
  }
}

/* Juwa 2.0 hero: helper line under the buttons, title size, spacing, label icon */
.hero-help {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.hero-help-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.hero-help-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Juwa 2.0 + About heroes: centered text layout, same as the Download page hero */
#intro,
#about-juwa {
  padding: 48px 0 40px;
  text-align: center;
}

#intro .welcome-grid,
#about-juwa .welcome-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

#intro .welcome-grid > div,
#about-juwa .welcome-grid > div {
  max-width: 760px;
  margin: 0 auto;
}

#intro .lead-text,
#about-juwa .welcome-grid > div > p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

#intro .btn-group,
#about-juwa .btn-group {
  justify-content: center;
}

/* About hero: more breathing room, one-line title on desktop, softer paragraphs */
#about-juwa {
  padding: 96px 0;
}

#about-juwa .welcome-grid > div {
  max-width: none;
}

#about-juwa h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  text-wrap: balance;
  margin-bottom: 20px;
}

#about-juwa .welcome-grid > div > p {
  color: var(--color-text-muted);
}

#about-juwa .welcome-grid > div > p.lead-text {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  #about-juwa {
    padding: 64px 0;
  }
}

#intro .hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.12;
}

#intro .hero-title .hero-title-line {
  text-wrap: balance;
}

.floating-badge .badge-icon--solid {
  background-color: var(--color-primary);
  color: #ffffff;
}

.badge-icon--solid svg {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   Hero motion background (canvas drawn by assets/js/hero-motion.js)
   Styles from juwa777-hero-motion.html (optimized version).
   Add class "has-motion" to a hero and put
   <canvas class="hero-motion-bg" aria-hidden="true"></canvas> first inside it.
   ========================================================================== */
.has-motion {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Static background lives in CSS (cheaper than drawing it every frame) */
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 47, 42, 0.10), transparent 45%),
    radial-gradient(circle at 65% 90%, rgba(244, 194, 77, 0.16), transparent 40%),
    radial-gradient(circle at 98% 70%, rgba(255, 140, 110, 0.10), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #fff7f6 60%, #ffeeec 100%);
}

.hero-motion-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.has-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.7) 42%,
    rgba(255, 255, 255, 0.08) 100%);
}

.has-motion > *:not(.hero-motion-bg) {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .has-motion::before {
    background: rgba(255, 255, 255, 0.78);
  }
}

/* Blog articles: the hero is the top of <main>, so the motion lives in a band
   (.hero-motion-band) that ends below the article header and fades into the page */
.has-motion--top {
  background: var(--color-bg);
}

.has-motion--top::before {
  content: none;
}

.has-motion > .hero-motion-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--motion-h, 360px);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 47, 42, 0.10), transparent 45%),
    radial-gradient(circle at 65% 90%, rgba(244, 194, 77, 0.16), transparent 40%),
    radial-gradient(circle at 98% 70%, rgba(255, 140, 110, 0.10), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #fff7f6 60%, #ffeeec 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero-motion-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.7) 42%,
    rgba(255, 255, 255, 0.08) 100%);
}

@media (max-width: 640px) {
  .hero-motion-band::after {
    background: rgba(255, 255, 255, 0.78);
  }
}



/* ==========================================================================
   Performance: pause looping animations in sections that are off screen
   (main.js adds .is-offscreen with an IntersectionObserver)
   ========================================================================== */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after,
.is-offscreen::before,
.is-offscreen::after {
  animation-play-state: paused !important;
}

.is-offscreen * {
  will-change: auto !important;
}

/* ==========================================================================
   Homepage hero image: transparent PNG shown directly (no frame or card),
   full image, never cropped or stretched
   ========================================================================== */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: end;
}

.hero-showcase img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 697;
  object-fit: contain;
  /* soft fade-in on load, then a very gentle drift (desktop only) */
  animation: heroShowcaseIn 0.9s ease-out both, heroShowcaseFloat 7s ease-in-out 0.9s infinite;
  will-change: transform;
}

@keyframes heroShowcaseIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* very gentle drift on large screens only */
@keyframes heroShowcaseFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 992px) {
  .hero-showcase {
    justify-self: center;
  }
  /* tablets and phones: fade in once, then the image stays exactly in place */
  .hero-showcase img {
    animation: heroShowcaseIn 0.9s ease-out both;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase img {
    animation: none;
    will-change: auto;
  }
}

/* ==========================================================================
   Homepage About Us: buttons + 3D image card (about us image.jpeg)
   ========================================================================== */
#welcome .welcome-actions {
  margin-top: 28px;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* narrow two-column desktops: stack the two equal-width buttons */
@media (min-width: 861px) and (max-width: 1140px) {
  #welcome .welcome-actions {
    grid-template-columns: 1fr;
  }
}

.about-3d {
  position: relative;
  perspective: 1200px;
  animation: aboutCardFloat 7s ease-in-out infinite;
  will-change: transform;
}

/* soft red-gold glow behind the card */
.about-3d::before {
  content: "";
  position: absolute;
  inset: 10% 6% -4%;
  border-radius: 32px;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.32) 0%, rgba(245, 158, 11, 0.14) 45%, rgba(220, 38, 38, 0) 72%);
  pointer-events: none;
}

.about-3d-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: rotateX(calc(4deg + var(--rx))) rotateY(calc(-9deg + var(--ry)));
  transform-style: preserve-3d;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    14px 22px 0 -8px rgba(220, 38, 38, 0.18),
    0 40px 70px -30px rgba(15, 23, 42, 0.55),
    0 24px 50px -28px rgba(220, 38, 38, 0.5);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}

.about-3d-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

/* glossy light sweep across the top-left of the card */
.about-3d-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

@keyframes aboutCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (hover: hover) and (pointer: fine) {
  .about-3d-card:hover {
    box-shadow:
      0 2px 4px rgba(15, 23, 42, 0.08),
      14px 22px 0 -8px rgba(220, 38, 38, 0.24),
      0 46px 80px -30px rgba(15, 23, 42, 0.6),
      0 30px 60px -26px rgba(220, 38, 38, 0.6);
  }
}

@media (max-width: 860px) {
  #welcome .welcome-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* image under the text on tablets and phones, gentler angle, no float */
  .about-3d {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    animation: none;
    will-change: auto;
  }
  .about-3d-card {
    transform: rotateX(2deg) rotateY(-4deg);
  }
}

@media (max-width: 600px) {
  #welcome .welcome-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-3d {
    animation: none;
  }
  .about-3d-card {
    transition: none;
  }
}

/* ==========================================================================
   Download: Android + iPhone buttons (download page + "Choose Your Version")
   ========================================================================== */
.btn-dark {
  background: linear-gradient(135deg, #2a0f15 0%, #14070a 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(20, 7, 10, 0.55);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #3a1620 0%, #1f0b10 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(20, 7, 10, 0.12),
    0 12px 26px -6px rgba(20, 7, 10, 0.55);
}

.btn-dark:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(1.15);
  box-shadow:
    0 0 0 4px rgba(20, 7, 10, 0.18),
    0 4px 12px -4px rgba(20, 7, 10, 0.5);
}

.btn .dl-os-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Android + iPhone: equal widths side by side, wrapping to a stack when the column is narrow */
.dl-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  max-width: 580px;
}

.dl-platforms .dl-platform-btn {
  flex: 1 1 250px;
  padding-left: 20px;
  padding-right: 20px;
}

.dl-chat {
  margin-top: 14px;
}

.dm-platforms {
  margin-top: auto;
  width: 100%;
  display: grid;
  gap: 10px;
}

.dm-platforms .dm-btn {
  margin-top: 0;
}

@media (max-width: 600px) {
  .dl-platforms .dl-platform-btn {
    flex: none;
    width: 100%;
  }
}

/* ==========================================================================
   Download page: Why Download From Us
   ========================================================================== */
.dl-alt {
  background: #f8fafc;
}

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

.why-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(220, 38, 38, 0.6);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.why-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
  .why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px -20px rgba(220, 38, 38, 0.35);
  }
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Download page: System Requirements table
   ========================================================================== */
.req-card {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px -26px rgba(15, 23, 42, 0.35);
}

/* only the table scrolls sideways on small screens, never the page */
.req-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.req-scroll:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

.req-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

/* fixed column widths: Requirement 32%, Minimum 34%, Recommended 34% */
.req-table {
  table-layout: fixed;
}

.req-table thead th:nth-child(1) { width: 32%; }
.req-table thead th:nth-child(2) { width: 34%; }
.req-table thead th:nth-child(3) { width: 34%; }

.req-table thead th {
  background: #14070a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 16px 20px;
}

.req-table thead th.req-rec {
  color: #fca5a5;
}

.req-table tbody th,
.req-table tbody td {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: middle;
}

.req-table tbody th {
  color: var(--color-text-main);
  font-weight: 700;
}

.req-table tbody tr:nth-child(even) th,
.req-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.req-table tbody td.req-rec {
  background: #fff1f2;
  color: var(--color-text-main);
  font-weight: 600;
}

.req-table tbody tr:nth-child(even) td.req-rec {
  background: #ffe4e6;
}

.req-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.req-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--color-primary);
  display: inline-flex;
}

.req-icon svg {
  width: 100%;
  height: 100%;
}

.req-note {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Download page: iPhone note under How to Install
   ========================================================================== */
.ios-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecaca;
}

.ios-note-icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--color-primary);
  display: inline-flex;
}

.ios-note-icon svg {
  width: 100%;
  height: 100%;
}

.ios-note-title {
  font-size: 1rem;
  margin: 0 0 4px;
}

.ios-note-text {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Download page: Common Install Problems & Fixes
   ========================================================================== */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.fix-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.28);
}

.fix-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.fix-text {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fix-steps {
  list-style: none;
  counter-reset: fix;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fix-steps li {
  counter-increment: fix;
  position: relative;
  padding-left: 36px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.fix-steps li::before {
  content: counter(fix);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fix-steps strong {
  color: var(--color-text-main);
}

.fix-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecaca;
}

.fix-notice p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.fix-notice-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--color-primary);
  display: inline-flex;
}

.fix-notice-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  .fix-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Homepage Our Games: 4 premium 3D game cards (images from "our games image")
   ========================================================================== */
.og-grid {
  --og-cols: 4;
  max-width: 1180px;
  margin: 0 auto;
}

.og-tile {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  aspect-ratio: auto;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff7f7 100%) padding-box,
    linear-gradient(145deg, #ffffff 0%, #fecaca 55%, #fde68a 100%) border-box;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 6px 0 -2px #f3d6d6,
    0 22px 36px -20px rgba(15, 23, 42, 0.38);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

/* glossy top highlight */
.og-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.og-tile picture {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.og-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4096 / 2985;
  object-fit: contain;
  border-radius: 12px;
  background: #1b0b2a;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.45);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .og-tile:hover {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
    border-color: transparent;
    box-shadow:
      inset 0 1px 0 #ffffff,
      0 2px 4px rgba(15, 23, 42, 0.08),
      0 8px 0 -2px #fbd0d0,
      0 34px 48px -22px rgba(220, 38, 38, 0.42);
  }
  .og-tile:hover img {
    transform: scale(1.03);
  }
}

@media (max-width: 1024px) {
  .og-grid {
    --og-cols: 4;
  }
}

@media (max-width: 900px) {
  .og-grid {
    --og-cols: 3;
    max-width: 760px;
  }
}

@media (max-width: 600px) {
  .og-grid {
    --og-cols: 2;
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .og-tile,
  .og-tile img {
    transition: none;
  }
  .og-tile:hover img {
    transform: none;
  }
}

/* ==========================================================================
   Website logo (website logo.jpeg, transparent copy) in header, menu, footer
   ========================================================================== */
.site-logo picture {
  display: block;
  line-height: 0;
}

.site-logo-img {
  display: block;
  height: 46px;
  width: auto;
  aspect-ratio: 1571 / 814;
}

.site-footer .site-logo-img {
  height: 72px;
}

@media (max-width: 600px) {
  .site-logo-img {
    height: 40px;
  }
  .site-footer .site-logo-img {
    height: 64px;
  }
}

/* Footer: Messenger and Gmail icons in their own brand colors */
.footer-link .footer-brand-icon {
  width: 18px;
  height: 18px;
  color: inherit;
}

.footer-contact .footer-link:hover .footer-brand-icon {
  color: inherit;
}

/* Our Games: non-clickable cards keep the same look */
.og-tile--static {
  cursor: default;
}

/* ==========================================================================
   Homepage Our Games: header, clickable cards, game names, Play Now label
   ========================================================================== */
.og-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.og-header .og-title {
  margin: 12px 0 12px;
}

.og-subtitle {
  margin: 0 auto;
}

.og-tile {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-decoration: none;
  color: inherit;
}

.og-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.og-frame img {
  border-radius: 0;
}

.og-play {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 6px);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.og-name {
  display: block;
  margin-top: 10px;
  padding: 0 4px 2px;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--color-text-main);
}

@media (hover: hover) and (pointer: fine) {
  .og-tile:hover img {
    transform: scale(1.05);
  }
  .og-tile:hover .og-play {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.og-tile:focus-visible .og-play {
  opacity: 1;
  transform: translate(-50%, 0);
}

.og-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
}

@media (max-width: 600px) {
  .og-name {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   Blog articles: light red info box and red-check checklist
   ========================================================================== */
.article-infobox {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.975rem;
}

.article-infobox strong {
  display: block;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.article-infobox p {
  margin-bottom: 0;
}

.article-body ul.article-checklist {
  padding-left: 0;
}

.article-body .article-checklist li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.art-check-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  color: var(--color-primary);
}

/* Blog articles: comparison table inside the article body */
.article-table {
  margin: 24px 0 32px;
}

.article-body .article-table th {
  line-height: 1.5;
}

/* ==========================================================================
   "Bip-bip" pulse: navbar Play Now, hero Play Now, floating Messenger/Instagram
   ========================================================================== */
@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55), var(--shadow-red);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0), var(--shadow-red);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), var(--shadow-red);
  }
}

.cta-pulse {
  animation: ctaPulse 1.8s ease-out infinite;
}

/* Floating quick actions (right side, stacked) */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fa-btn {
  --fa-pulse: 220, 38, 38;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  animation: faPulse 2s ease-out infinite;
  transition: transform var(--transition-fast);
}

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

.fa-btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.fa-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

.fa-btn--messenger {
  --fa-pulse: 0, 132, 255;
  background: #ffffff;
  border-color: #e0ecff;
}

.fa-btn--messenger svg {
  width: 30px;
  height: 30px;
}

.fa-btn--instagram {
  --fa-pulse: 214, 41, 118;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  animation-delay: 0.4s;
}

@keyframes faPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--fa-pulse), 0.5), 0 8px 20px rgba(15, 23, 42, 0.22);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(var(--fa-pulse), 0), 0 8px 20px rgba(15, 23, 42, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--fa-pulse), 0), 0 8px 20px rgba(15, 23, 42, 0.22);
  }
}

@media (max-width: 600px) {
  .floating-actions {
    right: 14px;
    bottom: 18px;
    gap: 12px;
  }
  .fa-btn {
    width: 46px;
    height: 46px;
  }
  .fa-btn svg {
    width: 22px;
    height: 22px;
  }
  .fa-btn--messenger svg {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-pulse,
  .fa-btn {
    animation: none;
  }
}

/* Our Games: new artwork shown at its own aspect ratio (no letterboxing or crop) */
.og-tile img {
  aspect-ratio: auto;
  background: transparent;
}

/* Anchor jumps: keep headings clear of the sticky header (zero specificity,
   so the section-specific scroll-margin rules above still win) */
:where([id]) {
  scroll-margin-top: 96px;
}

/* Phones: keep small card text and category pills readable (min ~12.8px) */
@media (max-width: 600px) {
  .sg-card-desc,
  .pm-desc,
  .faq-cat-btn {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Blog article hero (one component for all articles: .article-hero)
   Breadcrumb bar > hero (motion background, text + icon circle) > content
   ========================================================================== */
.article-crumbs {
  background-color: var(--color-bg-alt);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.article-crumbs .breadcrumbs {
  margin: 0;
}

.article-hero {
  min-height: max(380px, 45vh);
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.article-hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 40px;
  align-items: center;
}

.article-hero-text {
  text-align: left;
}

.article-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin: 16px 0 16px;
}

.article-hero-summary {
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.article-hero-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

.article-hero-icon {
  justify-self: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f4c24d;
  background: linear-gradient(145deg, #3a0d12 0%, #12060a 100%);
  border: 2px solid rgba(244, 194, 77, 0.75);
  box-shadow:
    0 0 0 8px rgba(244, 194, 77, 0.08),
    0 0 42px rgba(244, 194, 77, 0.35),
    0 22px 40px -18px rgba(18, 6, 10, 0.6);
  animation: articleHeroFloat 5s ease-in-out infinite;
}

.article-hero-icon svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 8px rgba(244, 194, 77, 0.45));
}

@keyframes articleHeroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* article content right after the hero, normal spacing */
.article-main {
  padding: 48px 0 80px;
}

@media (max-width: 768px) {
  .article-hero {
    min-height: auto;
    padding: 40px 0;
  }
  .article-hero-inner {
    grid-template-columns: 1fr;
  }
  .article-hero-text {
    text-align: center;
  }
  .article-hero-summary {
    margin-left: auto;
    margin-right: auto;
  }
  .article-hero-meta {
    justify-content: center;
  }
  .article-hero-icon {
    display: none;
  }
  .article-main {
    padding: 36px 0 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-hero-icon {
    animation: none;
  }
}

/* Download popup, one-version mode (data-download-modal="juwa777" / "juwa2") */
.dm-overlay--single .dm-dialog {
  max-width: 600px;
}

.dm-single-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.dm-single-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dm-big-btn {
  width: 100%;
  min-height: 58px;
  gap: 10px;
  padding: 14px 16px;
}

.dm-big-btn .dl-os-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.dm-btn-ios {
  background: #14070a;
  color: #ffffff;
  border-color: #14070a;
}

.dm-btn-ios:hover {
  background: #2a0f15;
  color: #ffffff;
  transform: translateY(-2px);
}

.dm-big-btn.is-recommended {
  box-shadow:
    0 0 0 3px rgba(244, 194, 77, 0.55),
    0 0 26px rgba(244, 194, 77, 0.45);
}

.dm-rec {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #fff7e0;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dm-note {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

@media (max-width: 560px) {
  .dm-single-actions {
    grid-template-columns: 1fr;
  }
}

/* Contact page: email / Messenger box (replaces the form for now) */
.contact-email-box {
  text-align: center;
}

.contact-email-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 22px;
}
