/* ============================================================
   YINTEK — 金融科技基础设施 · Fintech Infrastructure
   Light Theme: Purple + Gold
   ============================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --brand-purple: #6C3CE1;
  --brand-purple-dark: #5A2DC5;
  --brand-purple-light: #8B5CF6;
  --brand-purple-soft: #F3EEFF;
  --brand-purple-fade: rgba(108, 60, 225, 0.08);

  --brand-gold: #D4A843;
  --brand-gold-dark: #B8922E;
  --brand-gold-light: #E8C96A;
  --brand-gold-soft: #FDF8EC;
  --brand-gold-fade: rgba(212, 168, 67, 0.1);

  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F7FC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFE;
  --bg-elevated: #F5F4FA;
  --bg-muted: #EEEDF5;
  --bg-hero: linear-gradient(135deg, #F8F7FC 0%, #F3EEFF 50%, #FDF8EC 100%);

  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-dim: #6B6B8D;
  --text-mute: #9898B0;

  --border: #E8E6F0;
  --border-light: #F0EEF5;
  --border-accent: rgba(108, 60, 225, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --max-width: 1360px;
  --header-height: 72px;

  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04), 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.06), 0 2px 4px rgba(26, 26, 46, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.08), 0 4px 8px rgba(26, 26, 46, 0.04);
  --shadow-purple: 0 4px 20px rgba(108, 60, 225, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--brand-purple); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; z-index: 1000;
}
.skip-link:focus { top: 16px; }

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

/* ---- Section ---- */
.section {
  padding: 80px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Section dividers */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Solutions page - unique section backgrounds */
.section-ecommerce {
  background: linear-gradient(135deg, #F8F7FC 0%, #F3EEFF 100%);
  position: relative;
}
.section-ecommerce::before {
  background: linear-gradient(90deg, transparent, var(--brand-purple-light), transparent);
  opacity: 0.3;
}
.section-payouts {
  background: radial-gradient(ellipse at center, #FFFDF7 0%, #FDF8EC 100%);
  position: relative;
}
.section-payouts::before {
  background: linear-gradient(90deg, transparent, var(--brand-gold-light), transparent);
  opacity: 0.4;
}
.section-gaming {
  background: linear-gradient(160deg, #F8F6FF 0%, #FFFFFF 50%, #FDF8EC 100%);
  position: relative;
}
.section-gaming::before {
  background: linear-gradient(90deg, transparent, var(--brand-purple), var(--brand-gold), transparent);
  opacity: 0.2;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---- Section Label (Purple small text) ---- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-purple);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ---- Section Head ---- */
.sub-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-wrap: balance;
}

.sub-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Sub Head ---- */
.sub-head {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 56px 0 28px;
  letter-spacing: -0.3px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.nav-inner {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; justify-self: start; }
.brand-logo { height: 30px; width: auto; }
@media (max-width: 768px) {
  .brand-logo { height: 26px; }
}

.main-nav {
  display: flex; align-items: center; gap: 8px;
  justify-self: center;
}
.main-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.main-nav a:hover {
  color: var(--brand-purple);
  background: var(--brand-purple-fade);
}
.main-nav a.active {
  color: var(--brand-purple);
  font-weight: 600;
}

.nav-actions {
  display: flex; align-items: center; gap: 12px;
  justify-self: end;
}

/* ---- Language Switch ---- */
.lang-switch {
  display: flex;
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-size: 12px; font-weight: 700;
  color: var(--text-dim);
  padding: 5px 10px; border-radius: 999px;
  transition: all var(--transition-fast);
  min-width: 32px; text-align: center;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.is-active {
  background: var(--brand-purple);
  color: #fff;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 999px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn-primary {
  background: var(--brand-purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-purple-dark);
  box-shadow: var(--shadow-purple);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--brand-gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--brand-gold-dark);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: var(--brand-purple-fade);
}
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn.full, .full { width: 100%; }

/* ---- Nav Toggle (Mobile) ---- */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, #F8F6FF 0%, #FFFFFF 35%, #FFFDF7 65%, #FDF8EC 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-wrap: balance;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto; margin-right: auto;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 24px;
  text-align: center;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 0 0 100px;
  text-align: center;
  background: var(--bg-primary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.stats-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.stat {
  padding: 36px 16px 28px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
.stat-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--brand-purple);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================================
   CARDS (Solutions / Modules / About)
   ============================================================ */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  font-size: 28px; margin-bottom: 16px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-purple-fade);
  border-radius: var(--radius-md);
  color: var(--brand-purple);
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ============================================================
   SOLUTIONS HOME (4-Card Grid)
   ============================================================ */
.solutions-home {
  background: var(--bg-primary);
}

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

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: all var(--transition-base);
}

.solution-card:hover {
  border-color: var(--brand-purple);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108, 60, 225, 0.12);
}

.solution-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-purple-fade);
  border-radius: var(--radius-sm);
  color: var(--brand-purple);
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.solution-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   ECOSYSTEM HOME (Tech Modules + Platform Cards)
   ============================================================ */
.ecosystem-home {
  background: var(--bg-secondary);
}

.section-subtitle {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Eco sub-section: aligns section-label with grid below */
.eco-sub-section {
  margin: 0 auto;
}
.eco-sub-section .section-label {
  margin-bottom: 16px;
}

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

.tech-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
}

.tech-module-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tech-module-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-purple-fade);
  border-radius: var(--radius-md);
  color: var(--brand-purple);
  margin-bottom: 16px;
}

.tech-module-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.tech-module-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

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

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-purple);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
}

.platform-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.platform-card-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.platform-card-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

.platform-card-cn {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: -4px;
}

.platform-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-purple);
  background: var(--brand-purple-fade);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.platform-card-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-gold-dark);
  margin-bottom: 12px;
}

.platform-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   CORE CAPABILITIES (Asymmetric Layout)
   ============================================================ */
.core-capabilities {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.capabilities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.capability-featured {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.capability-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-gold));
}

.capability-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, var(--brand-purple-soft) 0%, var(--brand-gold-soft) 100%);
  border-radius: var(--radius-lg);
}

.capability-icon-large {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  color: var(--brand-purple);
  position: relative;
  z-index: 1;
}

.capability-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.capability-content h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.capability-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.capabilities-secondary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capability-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.capability-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.capability-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-purple-fade) 0%, var(--brand-gold-fade) 100%);
  border-radius: var(--radius-md);
  color: var(--brand-purple);
}

.capability-text h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.capability-text p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---- Modules ---- */
.modules {
  max-width: 900px; margin: 0 auto;
}
.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition-base);
}
.module:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}
.module-ic {
  font-size: 24px; margin-bottom: 12px;
  color: var(--brand-purple);
}
.module h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.module p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ---- Tech Grid (Ecosystem) ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  max-width: 960px;
  margin: 0 auto;
}
.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.tech-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tech-ic {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-purple-fade);
  border-radius: var(--radius-md);
  color: var(--brand-purple);
}
.tech-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.tech-text p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- Platforms ---- */
.platforms {
  max-width: 960px; margin: 0 auto;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--transition-base);
}
.platform-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.platform-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.platform-name {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.platform-tag {
  font-size: 11px; font-weight: 600;
  color: var(--brand-purple);
  background: var(--brand-purple-fade);
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border-accent);
}
.platform-role {
  font-size: 15px; font-weight: 700;
  color: var(--brand-gold-dark);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.platform-card > p:last-of-type {
  font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

/* ---- About Cards ---- */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
}
.about-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); }
.about-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ============================================================
   API / TECH
   ============================================================ */
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.api-text { max-width: 480px; }
.api-text .section-title { text-align: left; }
.api-text .section-desc { margin: 0 0 24px; text-align: left; }
.api-list {
  display: flex; flex-direction: column; gap: 10px;
}
.api-list li {
  font-size: 14px; color: var(--text-dim);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}
.api-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
}

.api-code {
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-head .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.code-head .dot.r { background: #ff5f57; }
.code-head .dot.y { background: #febc2e; }
.code-head .dot.g { background: #28c840; }
.code-file {
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-left: 8px; font-family: var(--font-mono);
}
.api-code pre {
  padding: 20px; overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}
.api-code code { font-family: var(--font-mono); }
.c-c { color: rgba(255,255,255,0.35); }
.c-k { color: var(--brand-purple-light); }
.c-s { color: var(--brand-gold-light); }

/* ============================================================
   LOGO MARQUEE / PARTNERS (continuous scroll + hover brighten)
   ============================================================ */
.logo-marquee-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

/* Scrolling track */
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite !important;
}
.logo-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual logo card */
.logo-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-purple-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  height: 72px;
  min-width: 140px;
  flex-shrink: 0;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.logo-marquee-item img {
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
  /* Default: dimmed */
  filter: grayscale(1) brightness(0.75);
  opacity: 0.55;
  transition: filter var(--transition-base), opacity var(--transition-base);
}
.logo-marquee-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}
.logo-marquee-item:hover img {
  /* Hover: full color */
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* Responsive: smaller masks on mobile */
@media (max-width: 768px) {
  .logo-marquee-mask-left,
  .logo-marquee-mask-right {
    width: 60px;
  }
  .logo-marquee-track {
    gap: 20px;
  }
  .logo-marquee-item {
    min-width: 120px;
    height: 60px;
    padding: 12px 16px;
  }
  .logo-marquee-item img {
    max-width: 100px;
    max-height: 36px;
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-text { max-width: 460px; }
.contact-text .section-title { text-align: left; }
.contact-text .section-desc { margin: 0 0 16px; text-align: left; }
.contact-note {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.6;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}
.field input, .field select, .field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px var(--brand-purple-fade);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B6B8D'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.consent-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-dim);
  cursor: pointer;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px;
  accent-color: var(--brand-purple); flex-shrink: 0;
}
.consent-label a {
  color: var(--brand-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-label a:hover { color: var(--brand-purple-dark); }

.form-ok {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--brand-purple-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  background: var(--brand-purple-fade);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-primary);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-logo { height: 38px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-meta { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-mail { margin-top: 10px; }
.footer-mail a { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; transition: color var(--transition-fast); }
.footer-mail a:hover { color: rgba(255,255,255,0.8); }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h5 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: #fff; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--brand-gold-light); }

.footer-bottom { text-align: center; }
.footer-bottom p {
  font-size: 13px; color: rgba(255,255,255,0.4);
  line-height: 1.7; margin-bottom: 8px;
}
.footer-copy {
  font-size: 12px !important;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 12px !important;
}

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-wrap {
  max-width: 860px; margin: 0 auto; padding: 110px 24px 80px;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-purple); font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
  transition: color var(--transition-fast);
}
.legal-back:hover { color: var(--brand-purple-dark); }
.legal-h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.legal-subtitle {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 22px 0 36px;
}
.legal-toc a {
  font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
  transition: all var(--transition-fast);
}
.legal-toc a:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.legal-doc {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.legal-doc h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.legal-doc h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.legal-doc ul { padding-left: 20px; list-style: disc; }
.legal-doc li { margin-bottom: 4px; }
.ph { color: var(--brand-gold-dark); font-weight: 600; }

.callout-draft {
  margin-top: 18px;
  background: var(--brand-purple-fade);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.callout-title {
  color: var(--brand-purple);
  font-weight: 700;
  margin-bottom: 6px;
}
.callout-text {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   SUB PAGE (solutions / ecosystem / api / partners / about)
   ============================================================ */
.sub-hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(160deg, #F8F6FF 0%, #FFFFFF 35%, #FFFDF7 65%, #FDF8EC 100%);
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.sub-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}
.sub-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-wrap: balance;
}
.sub-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Feature Detail (for sub pages) ---- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-block .feature-visual {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.feature-block .feature-visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.feature-text h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  text-wrap: balance;
}
.feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--brand-purple); }
.breadcrumb .sep { color: var(--text-mute); }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

/* ---- Page CTA ---- */
.page-cta {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-hero);
}
.page-cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.page-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-text h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  text-align: left;
}
.cta-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  text-align: left;
}
.cta-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.cta-form .field.full {
  grid-column: 1 / -1;
}

/* ---- Solutions Page Layout Variations ---- */
/* E-commerce: Full-width visual with content overlay */
.section-ecommerce {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.ecommerce-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
.ecommerce-visual {
  max-width: 480px;
  margin: 0 auto;
}
.ecommerce-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.ecommerce-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.ecommerce-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.ecommerce-content .feature-list {
  display: inline-block;
  text-align: left;
}

/* Payouts: Centered layout with visual on top */
.section-payouts {
  background: var(--bg-primary);
}
.payouts-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.payouts-visual {
  width: 100%;
  max-width: 400px;
}
.payouts-content {
  text-align: center;
}
.payouts-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.payouts-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.payouts-content .feature-list {
  display: inline-block;
  text-align: left;
}

/* Gaming: Asymmetric 2/3 + 1/3 layout */
.section-gaming {
  background: var(--bg-secondary);
}
.gaming-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: center;
}
.gaming-visual {
  max-width: 100%;
}
.gaming-content {
  padding: 32px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.gaming-content h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.gaming-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.gaming-content .feature-list {
  font-size: 14px;
}

/* Responsive for solution variations */
@media (max-width: 768px) {
  .gaming-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gaming-content {
    padding: 24px;
  }
}

/* ---- About Page Layout Variations ---- */
/* Company: Centered layout with visual on top */
.company-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.company-visual {
  width: 100%;
  max-width: 400px;
}
.company-content {
  text-align: center;
}
.company-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.company-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.company-content .feature-list {
  display: inline-block;
  text-align: left;
}

/* Mission: Full-width with gradient background */
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mission-content {
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.mission-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.mission-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.mission-visual {
  max-width: 100%;
}

/* Responsive for about variations */
@media (max-width: 768px) {
  .mission-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mission-content {
    padding: 24px;
  }
}

/* ---- Partners & API Page Layout Variations ---- */
/* Compliance: Centered with visual on top */
.compliance-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.compliance-visual {
  width: 100%;
  max-width: 400px;
}
.compliance-content {
  text-align: center;
}
.compliance-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.compliance-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.compliance-content .feature-list {
  display: inline-block;
  text-align: left;
}

/* Security: Full-width with gradient background */
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.security-content {
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.security-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.security-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.security-visual {
  max-width: 100%;
}

/* SDK: Centered with visual on top */
.sdk-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.sdk-visual {
  width: 100%;
  max-width: 400px;
}
.sdk-content {
  text-align: center;
}
.sdk-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.sdk-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.sdk-content .feature-list {
  display: inline-block;
  text-align: left;
}

/* Responsive for partners & api variations */
@media (max-width: 768px) {
  .security-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .security-content {
    padding: 24px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .api-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats-grid::before { left: 5%; right: 5%; }
  .stat:nth-child(2)::after { display: none; }
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block.reverse { direction: ltr; }

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

  /* Ecosystem Home */
  .tech-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Core Capabilities */
  .capabilities-layout { grid-template-columns: 1fr; gap: 32px; }
  .capability-featured { padding: 32px; }
  .capability-visual { height: 180px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 72px; }
  .stats { padding: 0 0 72px; }
  .sub-hero { padding: 120px 0 60px; }
  .page-cta { padding: 60px 0; }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-text h2, .cta-text p {
    text-align: center;
  }
  .cta-form form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }

  .nav-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
  }
  .brand { justify-self: start; }
  .main-nav { justify-self: auto; }
  .nav-actions { justify-self: auto; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
    z-index: 99;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }
  .nav-toggle { display: flex; }

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

  /* Solutions Home */
  .solutions-grid { grid-template-columns: 1fr; }

  /* Ecosystem Home */
  .tech-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-cards-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .lang-switch {
    display: flex;
    gap: 4px;
  }
  .lang-btn {
    font-size: 11px;
    padding: 4px 8px;
    min-width: 28px;
  }

  .feature-block { padding: 48px 0; }
  .feature-block .feature-visual { min-height: 200px; padding: 24px; }
  .breadcrumb { font-size: 12px; }
  .sub-hero h1 { font-size: 28px; }
  .sub-hero p { font-size: 15px; }

  /* Core Capabilities */
  .capability-featured { padding: 24px; }
  .capability-visual { height: 160px; }
  .capability-icon-large { width: 100px; height: 100px; }
  .capability-icon-large svg { width: 40px; height: 40px; }
  .capability-item { padding: 20px; }

  /* API Section */
  .api-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .api-text { max-width: 100%; }
  .api-text .section-title { text-align: center; }
  .api-text .section-desc { text-align: center; margin: 0 auto 24px; }
  .api-list { max-width: 400px; margin: 0 auto; }
  .api-code { max-width: 100%; }

  /* Hero Note */
  .hero-note { font-size: 12px; padding: 0 16px; }

  /* Section Label */
  .section-label { font-size: 12px; }

  /* Nav Actions: compact on mobile */
  .nav-actions { gap: 8px; }
  .nav-actions .btn { display: none; }

  /* Ecosystem sub-section */
  .tech-modules-grid { gap: 16px; }
  .platform-cards-grid { gap: 16px; }
  .platform-card-name { font-size: 20px; }
  .platform-card-logo { height: 30px; max-width: 130px; }

  /* Solution cards */
  .solution-card { padding: 24px 20px; }
  .solution-card h3 { font-size: 16px; }

  /* Tech module cards */
  .tech-module-card { padding: 24px 20px; }
  .tech-module-card h4 { font-size: 15px; }

  /* Footer logo */
  .footer-logo { height: 32px; }

  /* Page CTA */
  .page-cta h2 { font-size: 24px; }
  .page-cta p { font-size: 15px; }

  /* Section title */
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; }

  /* Sub-page: Feature blocks */
  .feature-block { grid-template-columns: 1fr; }
  .feature-block.reverse { direction: ltr; }
  .feature-visual { min-height: 200px; }
  .feature-content { padding: 0; }

  /* Sub-page: Ecommerce/Payouts/Gaming layouts */
  .ecommerce-layout, .payouts-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ecommerce-visual, .payouts-visual { max-width: 100%; }
  .ecommerce-content, .payouts-content { padding: 24px; }

  /* Sub-page: Gaming layout */
  .gaming-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gaming-content { padding: 24px; }

  /* Sub-page: Mission/Security layouts */
  .mission-layout, .security-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mission-content, .security-content { padding: 24px; }

  /* Sub-page: Company/Compliance/SDK centered layouts */
  .company-layout, .compliance-layout, .sdk-layout {
    gap: 32px;
  }
  .company-visual, .compliance-visual, .sdk-visual {
    max-width: 300px;
  }

  /* Sub-page: API code block */
  .api-code { overflow-x: auto; }
  .api-code pre { font-size: 13px; }

  /* Sub-page: Page CTA */
  .page-cta .section-title { font-size: 24px; }

  /* Sub-page: Tech grid on ecosystem sub-page */
  .tech-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Sub-page: Partner types grid */
  .partner-types-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-bottom { text-align: center; }
  .footer-bottom p { font-size: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-head { margin-bottom: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 30%;
    right: auto;
    width: 40%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
  }
  .stat { padding: 20px 12px; }
  .stat-num { font-size: 28px; }
  .modules { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }

  /* Core Capabilities */
  .capability-featured { padding: 20px; gap: 24px; }
  .capability-visual { height: 140px; }
  .capability-icon-large { width: 80px; height: 80px; }
  .capability-icon-large svg { width: 32px; height: 32px; }
  .capability-item { padding: 16px; gap: 16px; }
  .capability-icon { width: 48px; height: 48px; }
  .capability-icon svg { width: 24px; height: 24px; }
  .capability-content h3 { font-size: 20px; }
  .capability-text h4 { font-size: 16px; }

  /* Sub-page: Smaller screens */
  .hero-title { font-size: 28px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 14px; }
  .sub-hero h1 { font-size: 24px; }
  .sub-hero p { font-size: 14px; }

  /* Sub-page: Feature blocks */
  .feature-block { padding: 40px 0; }
  .feature-visual { min-height: 160px; padding: 20px; }
  .feature-content h2 { font-size: 24px; }
  .feature-content p { font-size: 14px; }

  /* Sub-page: Ecommerce/Payouts */
  .ecommerce-content, .payouts-content { padding: 20px; }
  .ecommerce-content h2, .payouts-content h2 { font-size: 24px; }

  /* Sub-page: Gaming */
  .gaming-content { padding: 20px; }
  .gaming-content h2 { font-size: 22px; }

  /* Sub-page: Mission/Security */
  .mission-content, .security-content { padding: 20px; }
  .mission-content h2, .security-content h2 { font-size: 24px; }

  /* Sub-page: Company/Compliance/SDK */
  .company-content h2, .compliance-content h2, .sdk-content h2 { font-size: 24px; }

  /* Sub-page: API code */
  .api-code pre { font-size: 11px; }

  /* Sub-page: CTA */
  .page-cta h2 { font-size: 22px; }
  .page-cta p { font-size: 14px; }

  /* Logo marquee */
  .logo-marquee-item { min-width: 100px; height: 50px; padding: 8px 12px; }
  .logo-marquee-item img { max-height: 30px; }

  /* Footer */
  .footer-meta { font-size: 12px; }
  .footer-mail { font-size: 12px; }
  .footer-copy { font-size: 11px; }
}

/* ============================================================
   PDF MODAL
   ============================================================ */
.pdf-link {
  color: var(--brand-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.pdf-link:hover { color: var(--brand-gold); }

.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pdf-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pdf-modal {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 85vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--text-primary);
  color: #fff;
  flex-shrink: 0;
}
.pdf-modal-title {
  font-size: 14px;
  font-weight: 600;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.pdf-modal-close:hover { opacity: 1; }

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
}
.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
