/* ============================================
   tk10 Design System - Emerald Trust Gaming UI
   Original design system for Bangladesh market
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-primary: #0f766e;
  --color-primary-dark: #0d5d57;
  --color-primary-soft: #14b8a6;
  --color-secondary: #f59e0b;
  --color-accent: #eab308;
  --color-bg: #0c1220;
  --color-bg-soft: #111827;
  --color-surface: #1a2332;
  --color-surface-strong: #1f2d3d;
  --color-card: #162231;
  --color-card-alt: #1a2a3a;
  --color-border: rgba(255,255,255,0.08);
  --color-border-strong: rgba(255,255,255,0.15);
  --color-text: #e2e8f0;
  --color-text-soft: #94a3b8;
  --color-text-muted: #64748b;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #080e1a;
  --color-footer-text: #94a3b8;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0c1220 0%, #0f2027 40%, #0d1b2a 100%);
  --gradient-hero-soft: linear-gradient(180deg, rgba(15,118,110,0.15) 0%, transparent 60%);
  --gradient-button: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  --gradient-button-hover: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(20,184,166,0.3), rgba(245,158,11,0.2));
  --gradient-card-bg: linear-gradient(145deg, #1a2332 0%, #162231 100%);
  --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  --gradient-footer: linear-gradient(180deg, #0c1220 0%, #080e1a 100%);
  --gradient-mobile-menu: linear-gradient(180deg, #111827 0%, #0c1220 100%);
  --gradient-form-panel: linear-gradient(145deg, #1a2332 0%, #1f2d3d 100%);

  /* Shadows */
  --shadow-header: 0 2px 20px rgba(0,0,0,0.3);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 12px 40px rgba(15,118,110,0.2);
  --shadow-button: 0 4px 14px rgba(15,118,110,0.3);
  --shadow-cta: 0 4px 20px rgba(245,158,11,0.25);
  --shadow-menu: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-form: 0 8px 32px rgba(0,0,0,0.2);
  --shadow-footer: 0 -2px 20px rgba(0,0,0,0.2);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-mobile: 0 4px 16px rgba(0,0,0,0.15);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-image: 12px;
  --radius-form: 10px;
  --radius-section: 0;

  /* Typography */
  --font-base: "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-bn: "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h2: clamp(1.35rem, 2.2vw, 2rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.4rem);
  --fs-body: clamp(0.95rem, 1vw, 1.05rem);
  --fs-small: 0.85rem;
  --fs-nav: clamp(13px, 0.84vw, 15px);
  --fs-button: 0.95rem;
  --lh-heading: 1.3;
  --lh-body: 1.85;
  --lh-readable: 1.9;
  --letter-tight: -0.01em;
  --letter-normal: 0;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(3rem, 5vw, 5rem);
  --section-y-sm: clamp(2rem, 3vw, 3rem);
  --section-y-lg: clamp(4rem, 7vw, 7rem);
  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2.5rem;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(1.25rem, 2vw, 1.75rem);
  --form-padding: clamp(1.5rem, 2.5vw, 2rem);
  --footer-padding: clamp(2.5rem, 4vw, 4rem);

  /* Motion */
  --motion-fast: 0.15s;
  --motion-normal: 0.3s;
  --motion-slow: 0.5s;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --hover-lift: translateY(-4px);
  --hover-scale: scale(1.02);
}

/* --- Global Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-soft); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-secondary); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: var(--lh-heading);
  letter-spacing: var(--letter-tight);
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
button { cursor: pointer; font-family: inherit; }

/* --- Container --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* --- Section System --- */
.section-pad { padding: var(--section-y) 0; }
.section-pad-sm { padding: var(--section-y-sm) 0; }
.section-pad-lg { padding: var(--section-y-lg) 0; }
.bg-surface { background: var(--color-surface); }
.bg-surface-strong { background: var(--color-surface-strong); }
.bg-card { background: var(--color-card); }
.bg-dark { background: var(--color-bg-soft); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--motion-normal);
}
.site-header.scrolled { box-shadow: var(--shadow-header); }

.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, 0.8vw, 14px);
  display: flex;
  align-items: center;
}
.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, 0.72vw, 14px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, 0.65vw, 12px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.primary-nav a.active {
  color: var(--color-primary-soft);
  background: rgba(15,118,110,0.12);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.6vw, 10px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--motion-fast);
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), filter var(--motion-fast);
  min-height: 42px;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.08); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(15,118,110,0.4); color: #fff; }

.btn-secondary {
  background: var(--gradient-cta);
  color: #0c1220;
  box-shadow: var(--shadow-cta);
}
.btn-secondary:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.35); color: #0c1220; }

.btn-outline {
  background: transparent;
  color: var(--color-primary-soft);
  border: 1.5px solid var(--color-primary-soft);
}
.btn-outline:hover { background: rgba(15,118,110,0.1); color: #fff; }

.btn-login {
  background: transparent;
  color: var(--color-primary-soft);
  border: 1.5px solid var(--color-primary-soft);
  padding: 0.5rem 1rem;
}
.btn-login:hover { background: rgba(15,118,110,0.15); color: #fff; }

.btn-register {
  background: var(--gradient-cta);
  color: #0c1220;
  padding: 0.5rem 1rem;
  font-weight: 700;
}
.btn-register:hover { color: #0c1220; }

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--mobile-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mobile-menu);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.25rem;
}
#mobile-menu.is-open { display: flex; }
#mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--color-text);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--motion-fast);
}
#mobile-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
#mobile-menu a.active { color: var(--color-primary-soft); background: rgba(15,118,110,0.1); }

/* ============================================
   HERO VARIATIONS
   ============================================ */
/* Homepage Hero - Strong visual */
.home-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--gradient-hero);
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(15,118,110,0.2), transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 100%, rgba(245,158,11,0.1), transparent 60%);
  pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.home-hero h1 { margin-bottom: 1.25rem; }
.home-hero .lead { font-size: clamp(1rem, 1.2vw, 1.15rem); color: var(--color-text-soft); line-height: 1.8; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { text-align: center; }
.hero-visual img { border-radius: var(--radius-lg); max-height: 400px; margin: 0 auto; }

/* Inner page hero - simple breadcrumb + title */
.inner-hero {
  padding: clamp(2rem, 3vw, 3rem) 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

/* Auth hero - form focused */
.auth-hero {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  background: var(--gradient-hero);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

/* Policy hero - minimal */
.policy-hero {
  padding: clamp(1.5rem, 2.5vw, 2.5rem) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

/* FAQ hero */
.faq-hero {
  padding: clamp(2rem, 3vw, 3rem) 0;
  background: var(--gradient-hero);
}

/* About hero */
.about-hero {
  padding: clamp(3rem, 5vw, 4rem) 0;
  background: var(--gradient-hero);
  position: relative;
}

/* Download hero */
.download-hero {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  background: var(--gradient-hero);
}
.download-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  font-size: var(--fs-small);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary-soft); }
.breadcrumb .sep { color: var(--color-text-muted); margin: 0 0.25rem; }
.breadcrumb .current { color: var(--color-text-soft); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}
.card:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(20,184,166,0.3);
}

.feature-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}
.feature-card:hover { transform: var(--hover-lift); box-shadow: var(--shadow-card-hover); }
.feature-card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-button);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--color-text-soft); font-size: 0.92rem; margin: 0; }

.trust-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
}
.trust-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15,118,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-soft);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  position: relative;
}
.step-card .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.guide-card {
  display: flex;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  align-items: flex-start;
}
.guide-card img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-image); flex-shrink: 0; }

.security-card {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}

.link-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--motion-normal), border-color var(--motion-normal);
}
.link-card:hover { transform: var(--hover-lift); border-color: var(--color-primary-soft); color: #fff; }

/* Card Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
  padding: var(--section-y) 0;
  text-align: center;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--color-text-soft); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.inline-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.inline-cta p { margin: 0; }

/* ============================================
   FAQ
   ============================================ */
.faq-group { margin-bottom: 2rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fast);
  font-family: var(--font-base);
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--motion-normal);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-soft);
  line-height: var(--lh-readable);
}
.faq-answer.is-open { display: block; }

/* ============================================
   FORMS
   ============================================ */
.form-card {
  background: var(--gradient-form-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--form-padding);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-form);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}
.form-control::placeholder { color: var(--color-text-muted); }
.form-error { color: var(--color-danger); font-size: 0.82rem; margin-top: 0.3rem; display: none; }
.form-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ============================================
   TABLE
   ============================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.data-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.data-table th {
  background: var(--color-surface-strong);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.data-table td { color: var(--color-text-soft); font-size: 0.92rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================
   ARTICLE/PROSE
   ============================================ */
.prose { max-width: var(--container-narrow); }
.prose p { font-size: var(--fs-body); line-height: var(--lh-readable); margin-bottom: 1.1rem; }
.prose h2 { font-size: var(--fs-h2); margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose img { border-radius: var(--radius-image); margin: 1.5rem 0; }

.article-shell { max-width: var(--container-narrow); margin: 0 auto; }
.article-meta { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-cover { border-radius: var(--radius-lg); margin-bottom: 2rem; }
.article-body { margin-bottom: 3rem; }
.article-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }

/* Policy layout */
.policy-layout { max-width: var(--container-narrow); margin: 0 auto; }
.policy-toc {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.policy-toc h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.policy-toc a { display: block; padding: 0.3rem 0; color: var(--color-primary-soft); font-size: 0.92rem; }
.policy-note {
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--color-warning);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.policy-updated {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--color-border);
  padding: var(--footer-padding) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--color-footer-text); font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  color: var(--color-footer-text);
  font-size: 0.88rem;
  transition: color var(--motion-fast);
}
.footer-col a:hover { color: var(--color-primary-soft); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-primary-soft); }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Content image in text */
.content-img {
  border-radius: var(--radius-image);
  margin: 1.5rem 0;
  width: 100%;
  height: auto;
}
.img-float-right {
  float: right;
  max-width: 45%;
  margin: 0 0 1rem 1.5rem;
  border-radius: var(--radius-image);
}

/* Trust strip / marquee */
.trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  overflow: hidden;
}
.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.trust-badges span { white-space: nowrap; display: flex; align-items: center; gap: 0.4rem; }

/* Swiper degradation */
.swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; overflow-x: auto; gap: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 280px; scroll-snap-align: start; }

/* AOS degradation */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
    min-height: var(--mobile-header-h);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(5px, 1.6vw, 8px);
    white-space: nowrap;
  }
  .header-actions .btn { min-height: 40px; padding-inline: clamp(10px, 2.6vw, 14px); font-size: clamp(12px, 3.2vw, 14px); }
  .nav-toggle { display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; margin-left: 2px; }

  .home-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .auth-layout { grid-template-columns: 1fr; }
  .download-hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .img-float-right { float: none; max-width: 100%; margin: 1rem 0; }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .inline-cta { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 414px) {
  body { font-size: 0.93rem; }
  .container { padding: 0 1rem; }
  .section-pad { padding: 2.5rem 0; }
  .card, .feature-card, .step-card, .guide-card { padding: 1.1rem; }
  .faq-question { padding: 0.85rem 1rem; font-size: 0.92rem; }
}

@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 38px; padding-inline: 9px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
}
