/* ===================================================================
   PUZZLE BLOCK COLOR - OFFICIAL WEBSITE STYLESHEET
   Comprehensive Responsive UI (All Screen Sizes: Mobile, Tablet, Desktop)
   =================================================================== */

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --bg-primary: #0a0d14;
  --bg-secondary: #121826;
  --bg-card: rgba(22, 29, 47, 0.75);
  --bg-card-hover: rgba(30, 41, 66, 0.9);
  --bg-glass: rgba(10, 13, 20, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  
  /* Brand Accent Colors */
  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Typography */
  --font-heading: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions & Shadows */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
}

/* ===================================================================
   BASE & RESET (STRICT OVERFLOW CONTROL)
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 240, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(168, 85, 247, 0.08), transparent);
  background-attachment: fixed;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #67e8f9;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===================================================================
   NAVIGATION BAR (DESKTOP & MOBILE RESPONSIVE)
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Nav Actions (Header Button & Mobile Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  display: inline-flex;
}

/* Mobile nav drawer button (hidden on desktop) */
.nav-drawer-btn {
  display: none !important;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  max-width: 100%;
  width: fit-content;
  line-height: 1.35;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseAnim 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.text-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  line-height: 1.1;
}

.hero-stat-item p {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ===================================================================
   HERO SHOWCASE / INTERACTIVE BOARD
   =================================================================== */
.hero-visual {
  position: relative;
  width: 100%;
}

.visual-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card), 0 0 30px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
}

.visual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.game-score-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Mini Grid Showcase */
.mini-board-wrapper {
  background: #000000;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
  width: 100%;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  aspect-ratio: 1;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
}

.grid-cell {
  aspect-ratio: 1;
  background: #141824;
  border-radius: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

.grid-cell:hover {
  transform: scale(1.08);
  border: 1px solid var(--accent-cyan);
}

.grid-cell.filled-1 { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.6); }
.grid-cell.filled-2 { background: #ec4899; box-shadow: 0 0 6px rgba(236, 72, 153, 0.6); }
.grid-cell.filled-3 { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
.grid-cell.filled-4 { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.grid-cell.filled-5 { background: #8b5cf6; box-shadow: 0 0 6px rgba(139, 92, 246, 0.6); }

.grid-cell.clearing {
  animation: cellClearAnim 0.4s ease forwards;
}

@keyframes cellClearAnim {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.2); filter: brightness(2); background: #ffffff; }
  100% { transform: scale(0); opacity: 0; }
}

.mini-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: var(--text-dim);
  gap: 0.75rem;
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

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

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card.cyan .feature-icon-wrapper { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }
.feature-card.purple .feature-icon-wrapper { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.feature-card.amber .feature-icon-wrapper { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); }
.feature-card.green .feature-icon-wrapper { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.feature-card.pink .feature-icon-wrapper { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }
.feature-card.blue .feature-icon-wrapper { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

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

/* ===================================================================
   DISTRIBUTION BANNER (OFFICIAL STORE NOTICE)
   =================================================================== */
.distribution-banner {
  background: rgba(22, 29, 47, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.distribution-content {
  max-width: 680px;
}

.distribution-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  max-width: 100%;
  width: fit-content;
  line-height: 1.35;
}

.distribution-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: #ffffff;
  margin-bottom: 0.5rem;
}

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

/* ===================================================================
   HOW TO PLAY
   =================================================================== */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

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

/* ===================================================================
   POWER-UPS SHOWCASE
   =================================================================== */
.powerup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.powerup-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.powerup-icon {
  font-size: 2rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* ===================================================================
   CALL TO ACTION BANNER
   =================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(22, 29, 47, 0.95) 0%, rgba(30, 41, 66, 0.85) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   LEGAL PAGES (PRIVACY POLICY & TERMS & CONDITIONS)
   =================================================================== */
.legal-page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 24, 38, 0.4);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  max-width: 100%;
  width: fit-content;
  line-height: 1.35;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.885rem;
  line-height: 1.6;
  word-break: break-word;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}

/* Sticky Legal Sidebar */
.legal-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toc-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: var(--transition);
  display: block;
  word-break: break-word;
}

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

/* Legal Content Body */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  overflow-x: hidden;
}

.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 90px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-word;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  word-break: break-word;
}

.legal-section ul, .legal-section ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-section li {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 0.4rem;
  word-break: break-word;
}

/* Callout Box */
.callout-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  word-break: break-word;
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--accent-amber);
}

.callout-box.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--accent-green);
}

.callout-box p {
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* Compliance Data Table with Scroll Container */
.data-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  background: rgba(10, 13, 20, 0.6);
}

.compliance-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.compliance-table td {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compliance-table tr:last-child td {
  border-bottom: none;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.885rem;
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.885rem;
  transition: var(--transition);
}

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

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.825rem;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS (ALL SCREEN SIZES)
   =================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

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

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
  }

  .toc-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .toc-link {
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
  }
}

/* Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header adjustments: hide header button, show hamburger toggle */
  .header-btn {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Slide-down mobile drawer */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem 1.5rem;
    gap: 0.5rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-item.active {
    background: rgba(0, 240, 255, 0.08);
  }

  .nav-item.active::after {
    display: none;
  }

  .nav-drawer-btn {
    display: inline-flex !important;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.8rem;
    justify-content: center;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  /* Mini Board controls */
  .visual-card {
    padding: 1.25rem 1rem;
  }

  .mini-controls {
    flex-direction: column;
    text-align: center;
  }

  .mini-controls > div {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Sections */
  .section {
    padding: 3.5rem 0;
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  /* Distribution policy banner */
  .distribution-banner {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .distribution-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Powerups */
  .powerup-card {
    padding: 1.25rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 2.25rem 1.25rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  /* Legal Content */
  .legal-content {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.25rem 1rem;
  }

  .step-card {
    padding: 1.25rem 1rem;
  }

  .powerup-card {
    padding: 1.25rem 1rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 0.925rem;
  }

  .hero-badge,
  .legal-badge,
  .distribution-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    letter-spacing: 0.02em;
  }

  .legal-page-header {
    padding: 2.25rem 0 1.5rem;
  }

  .legal-title {
    font-size: 1.85rem;
  }

  .legal-meta {
    font-size: 0.825rem;
  }

  .compliance-table th,
  .compliance-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }
}
