/* ==========================================================================
   Ciatech iGaming Provider B2B - Stylesheet
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  /* Colors */
  --bg-primary: #050505;
  --bg-secondary: #0f0f11;
  --bg-tertiary: #17171a;

  --primary: #facc15;
  --primary-hover: #eab308;
  --primary-gradient: linear-gradient(to right, #facc15, #f59e0b);
  --accent-cyan: #2dd4bf;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(250, 204, 21, 0.4);
  --glass-bg: rgba(20, 20, 25, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 10px 20px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(250, 204, 21, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

ul {
  list-style: none;
}

/* --- Grid System Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Common Components & Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.2);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: fit-content;
}

.badge-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(250, 204, 21, 0.5);
  background: var(--primary-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-text {
  padding: 8px 16px;
  color: var(--text-secondary);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* --- Glass Cards --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon {
  width: 16px;
  height: 16px;
  background: var(--primary);
  transform: rotate(45deg);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.nav-menu .header-actions {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: center;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, rgba(52, 211, 153, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.floating-cards-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  height: 500px;
  transform-style: preserve-3d;
}

@keyframes floatCard {

  0%,
  100% {
    transform: rotate(var(--rot)) translateZ(var(--tz)) translateY(0);
  }

  50% {
    transform: rotate(var(--rot)) translateZ(var(--tz)) translateY(-15px);
  }
}

.floating-card {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  transform: rotate(var(--rot)) translateZ(var(--tz));
  will-change: transform;
}

/* Hover effect removed per user request */

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.floating-card.card-1 {
  top: 15px;
  left: 15px;
  --rot: 0deg;
  --tz: 0px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 15px;
  right: 15px;
  --rot: 0deg;
  --tz: 15px;
  animation-delay: -1.5s;
}

.floating-card.card-3 {
  bottom: 15px;
  left: 15px;
  --rot: 0deg;
  --tz: 30px;
  animation-delay: -3s;
}

.floating-card.card-4 {
  bottom: 15px;
  right: 15px;
  --rot: 0deg;
  --tz: 45px;
  animation-delay: -4.5s;
}

@keyframes floatGlass {

  0%,
  100% {
    transform: translate(-50%, -50%) translateZ(100px) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateZ(100px) translateY(-15px);
  }
}

@keyframes scanlight {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 200%;
  }
}

.floating-glass-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(250, 204, 21, 0.1);
  z-index: 10;
  overflow: hidden;
  animation: floatGlass 7s ease-in-out infinite;
  will-change: transform;
}

.floating-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(250, 204, 21, 0.2), transparent);
  transform: skewX(-20deg);
  animation: scanlight 4s linear infinite;
  animation-delay: 2s;
  pointer-events: none;
}

.glass-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.glass-stat-row:last-child {
  margin-bottom: 0;
}

.glass-stat-label {
  color: var(--text-secondary);
}

.glass-stat-val {
  color: var(--primary);
  font-weight: 700;
}

.hero-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 130px;
}

.hero-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Trust Banner --- */
.trust-banner {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-icon-box svg {
  width: 20px;
  height: 20px;
}

.trust-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.trust-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Game Portfolio --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.game-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-secondary);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(45, 212, 191, 0.15);
  z-index: 2;
}

.game-img-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #09090b;
}

.game-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.game-card:hover .game-img-wrapper img {
  transform: scale(1.06);
  filter: brightness(1.15) contrast(1.1);
}

/* Stunning Shine Effect on Hover */
.game-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  z-index: 3;
}

.game-card:hover .game-img-wrapper::after {
  animation: shineThumb 0.8s ease-in-out;
}

@keyframes shineThumb {
  100% {
    left: 200%;
  }
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  z-index: 10;
}

.game-badge.new {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
}

.game-badge.hot {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

.game-overlay {
  display: none !important;
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 15px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  border-top: none;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.game-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.game-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Pagination Styles */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  width: 100%;
  grid-column: 1 / -1;
}

.page-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

.page-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  pointer-events: none;
}

/* --- Solutions Section --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.solution-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.solution-icon svg {
  width: 22px;
  height: 22px;
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.5;
}

/* --- Platform Details & Dashboard Mockup --- */
.platform-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.platform-visual {
  position: relative;
}

.dashboard-mockup {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #09090b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dashboard-mockup.new-layout {
  display: flex;
  height: 520px;
  /* Increased height to fit 2x2 grid */
}

/* Sidebar */
.dashboard-sidebar {
  width: 210px;
  flex-shrink: 0;
  /* Prevents shifting when main content updates */
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-logo {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo span {
  color: var(--primary);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.sidebar-nav {
  list-style: none;
  padding: 15px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-nav li {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.sidebar-nav li svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.sidebar-nav li:hover,
.sidebar-nav li.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav li.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.sidebar-nav li.active svg {
  opacity: 1;
}

/* Main Area */
.dashboard-main {
  flex: 1;
  min-width: 0;
  /* Prevents flex children from blowing out the layout */
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pulse-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dashboard-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Changed to 2x2 to avoid cramped numbers */
  gap: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: transform 0.2s ease;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: color 0.3s ease;
  white-space: nowrap;
  /* Prevents line breaks */
}

.stat-trend {
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.trend-up {
  color: var(--accent-emerald);
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Equal space for chart and feed */
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.chart-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.chart-visual-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
  padding-top: 10px;
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.8) 100%);
  min-height: 10px;
  transition: height 0.6s ease;
}

.chart-bar.active {
  background: var(--primary-gradient);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Live Feed Table */
.live-feed-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.live-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-feed-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  /* Reduced to guarantee it fits */
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  animation: feedSlideIn 0.4s ease-out;
}

.live-feed-list li:hover {
  background: rgba(255, 255, 255, 0.06);
}

.feed-game {
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  /* Allow to shrink so win amount always shows */
}

.feed-game .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.feed-win {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.7rem;
}

.feed-win.positive {
  color: var(--accent-emerald);
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.platform-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.platform-feature {
  display: flex;
  gap: 16px;
}

.feature-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Integration / API Section --- */
.integration-grid {
  display: grid;
  grid-template-columns: 0.91fr 1.09fr;
  gap: 48px;
  align-items: center;
}

.integration-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  margin-top: 20px;
}

.steps-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 30px;
  left: 19px;
  /* Center of the 40px circle */
  width: 1px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 0;
}

.int-step {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.int-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.int-step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.int-step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal-mockup {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #09090b;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  position: relative;
}

.terminal-mockup::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 16px;
  height: 50px;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-controls .close {
  background: #ed6a5e;
}

.terminal-controls .min {
  background: #f4bf4f;
}

.terminal-controls .max {
  background: #61c554;
}

.terminal-tabs {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.terminal-tab-btn {
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.terminal-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.terminal-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.terminal-copy {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-copy:hover {
  color: #fff;
}

.terminal-content {
  padding: 24px 24px 24px 0;
  overflow-x: auto;
  min-height: 250px;
  counter-reset: line;
}

.terminal-pane {
  display: none;
}

.terminal-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.code-line {
  display: flex;
  line-height: 1.6;
  white-space: pre;
}

.code-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 40px;
  text-align: right;
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

.code-comment {
  color: #6b7280;
  font-style: italic;
}

.code-keyword {
  color: #f472b6;
}

.code-string {
  color: #34d399;
}

.code-number {
  color: #fb7185;
}

.code-function {
  color: #60a5fa;
}

.code-property {
  color: #fbbf24;
}

/* --- Branded Games Customization --- */
.branded-comparison-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
  /* responsive */
}

.comparison-card {
  text-align: center;
  max-width: 450px;
  width: 100%;
}

.comparison-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.comparison-visual-box {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}

.customization-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.custom-target-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.4);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  pointer-events: auto;
  animation: pulse 2s infinite;
}

.custom-target-marker::after {
  content: attr(data-label);
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.custom-target-marker:hover::after {
  opacity: 1;
}

.custom-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.custom-detail-item {
  padding: 20px;
  text-align: center;
}

.custom-detail-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.custom-detail-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-map-fallback {
  width: 100%;
  height: 100%;
  background-color: #0c0c11;
  background-image:
    radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.2) 0%, rgba(9, 9, 11, 0) 60%),
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-map-line {
  position: absolute;
  width: 41%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--primary) 100%);
  top: 60%;
  left: 30.5%;
  transform: rotate(-10deg);
  transform-origin: left center;
  opacity: 0.6;
}

.about-map-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: 0 0 12px var(--primary);
}

.node-latam {
  top: 60%;
  left: 30%;
  background: var(--accent-cyan);
}

.node-global {
  top: 50%;
  left: 70%;
  background: var(--primary);
}

.node-label {
  position: absolute;
  top: 100%;
  left: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.about-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active .faq-content {
  max-height: 500px;
  /* arbitrary limit that will be cleared */
  padding-bottom: 20px;
  transition: max-height 0.5s cubic-bezier(0.95, 0.05, 0.795, 0.035), padding 0.3s ease;
}

/* --- Contact & Request Demo Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Left info column ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-info-top {
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-info > p,
.contact-info-top > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Channel cards */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.channel-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
}

.channel-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.03));
  border: 1px solid rgba(250, 204, 21, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-text h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 600;
}

.channel-text p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* SLA card */
.sla-card {
  padding: 26px;
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.sla-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sla-card-header .sla-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: slaPulse 2s ease-in-out infinite;
}

@keyframes slaPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #10b981; }
  50% { opacity: 0.5; box-shadow: 0 0 20px #10b981; }
}

.sla-card-header h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #10b981;
  font-weight: 700;
  margin: 0;
}

.sla-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sla-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sla-list li svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: #10b981;
}

.contact-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Legacy classes (keep for backward compat with index.html) */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.03));
  border: 1px solid rgba(250, 204, 21, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-text h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-method-text p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.contact-trust-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 40px;
}

/* ── Right form column ── */
.contact-form-wrapper {
  padding: 44px;
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-panel-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.form-panel-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-panel-header h3 svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.form-panel-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form-wrapper .btn-primary,
.form-submit-btn {
  width: 100%;
  padding: 18px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(250, 204, 21, 0.2);
}

.contact-form-wrapper .btn-primary:hover,
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(250, 204, 21, 0.35);
}

.form-submit-btn svg {
  width: 20px;
  height: 20px;
}

.form-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-secure-note svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}

/* ── Form elements ── */
.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.08), inset 0 2px 8px rgba(0, 0, 0, 0.25);
  outline: none;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: rgba(255, 255, 255, 0.025);
  padding-right: 44px;
}

select.form-control option {
  background-color: #13131a;
  color: #fff;
  padding: 12px;
}

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

.turnstile-container {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
  min-height: 65px;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.form-feedback.error {
  display: block;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  background-color: #050508;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin: 16px 0 24px 0;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-link:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* --- Animations --- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }

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

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

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .integration-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .branded-comparison-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* Mobile Menu Toggle & Navigation Drawer */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px 40px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    right: 0;
  }

  .header-actions {
    margin-right: 16px;
  }

  .header-actions .btn {
    display: none;
    /* Hide header buttons on mobile screen, or display compact */
  }

  .nav-menu .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    align-items: stretch;
  }

  .nav-menu .header-actions .btn {
    display: inline-flex;
    text-align: center;
  }

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

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .hero-ctas .btn {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .custom-details-grid {
    grid-template-columns: 1fr;
  }

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

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Legal Pages (Terms of Service / Privacy Policy)
   ========================================================================== */
.legal-hero {
  position: relative;
  padding: 160px 0 60px;
  text-align: center;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at top, rgba(250, 204, 21, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.legal-hero > .container {
  position: relative;
  z-index: 1;
}

.legal-hero .badge {
  margin: 0 auto 22px;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.legal-hero .lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

.legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
}

.legal-section {
  padding: 40px 0 100px;
}

.legal-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 28px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-toc h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  transition: var(--transition-smooth);
  line-height: 1.4;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.legal-toc a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(250, 204, 21, 0.04);
}

/* Content */
.legal-content {
  max-width: 760px;
}

.legal-content article {
  padding: 36px 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 100px;
}

.legal-content article:first-of-type {
  padding-top: 0;
}

.legal-content article:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.legal-content h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 4px;
  padding-left: 22px;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-content li::marker {
  color: var(--primary);
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 204, 21, 0.3);
  transition: var(--transition-smooth);
}

.legal-content a:hover {
  border-bottom-color: var(--primary);
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin: 20px 0;
  background: rgba(250, 204, 21, 0.04);
  border: 1px solid rgba(250, 204, 21, 0.15);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
}

.legal-callout svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-contact-card {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.04), rgba(245, 158, 11, 0.02));
  border: 1px solid rgba(250, 204, 21, 0.15);
  border-radius: var(--radius-lg);
}

.legal-contact-card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.legal-contact-card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-contact-card .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}

.legal-contact-card .contact-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.legal-contact-card .contact-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

  .legal-toc {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 130px 0 40px;
  }

  .legal-content h2 {
    font-size: 1.3rem;
    gap: 10px;
  }

  .legal-content h2 .num {
    min-width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .legal-contact-card {
    padding: 24px;
  }

  .legal-contact-card .contact-row {
    flex-direction: column;
    gap: 12px;
  }
}