/* ============================================================
   Emerald Trust Gaming UI - Design System
   3777bet-bd.net | Bangladesh Premium Platform
   ============================================================ */

/* --- CSS Variables / Tokens --- */
:root {
  --color-primary: #0d6e3f;
  --color-primary-dark: #094d2c;
  --color-primary-soft: #e8f5ee;
  --color-secondary: #d4a017;
  --color-accent: #ff6b35;
  --color-bg: #f8faf9;
  --color-bg-soft: #f0f4f2;
  --color-surface: #ffffff;
  --color-surface-strong: #e8ede9;
  --color-card: #ffffff;
  --color-card-alt: #f4f8f5;
  --color-border: #d4ddd6;
  --color-border-strong: #9bab9f;
  --color-text: #1a2b1e;
  --color-text-soft: #4a5c4e;
  --color-text-muted: #7a8c7e;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-footer-bg: #0a1f12;
  --color-footer-text: #c8d8cc;

  --gradient-hero: linear-gradient(135deg, #0d6e3f 0%, #1a9956 50%, #d4a017 100%);
  --gradient-hero-soft: linear-gradient(180deg, rgba(13,110,63,0.06) 0%, transparent 60%);
  --gradient-button: linear-gradient(135deg, #d4a017, #e8b82a);
  --gradient-button-hover: linear-gradient(135deg, #c49315, #d4a017);
  --gradient-cta: linear-gradient(135deg, #0d6e3f 0%, #1a9956 100%);
  --gradient-footer: linear-gradient(180deg, #0a1f12 0%, #061510 100%);

  --shadow-header: 0 2px 12px rgba(10,31,18,0.08);
  --shadow-card: 0 4px 16px rgba(10,31,18,0.06);
  --shadow-card-hover: 0 8px 32px rgba(10,31,18,0.12);
  --shadow-button: 0 2px 8px rgba(212,160,23,0.3);
  --shadow-cta: 0 4px 20px rgba(13,110,63,0.2);
  --shadow-form: 0 4px 24px rgba(10,31,18,0.08);
  --shadow-soft: 0 1px 4px rgba(0,0,0,0.04);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-image: 12px;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(28px, 4vw, 48px);
  --fs-h2: clamp(22px, 3vw, 36px);
  --fs-h3: clamp(18px, 2.2vw, 26px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 15px;
  --lh-heading: 1.3;
  --lh-body: 1.85;

  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(20px, 3vw, 32px);

  --motion-fast: 0.15s;
  --motion-normal: 0.3s;
  --motion-slow: 0.5s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-image); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast) var(--ease-soft); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 { line-height: var(--lh-heading); color: var(--color-text); margin: 0 0 16px; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 1.5em; margin: 0 0 18px; }
button { cursor: pointer; font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* --- Container --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--motion-normal) var(--ease-soft);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10,31,18,0.15); }

.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, .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, .72vw, 14px);
  white-space: nowrap; overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto; min-width: 0;
  padding: 9px clamp(6px, .65vw, 12px);
  font-size: var(--fs-nav); line-height: 1;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--motion-fast) var(--ease-soft);
  position: relative;
}
.primary-nav a:hover, .primary-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.primary-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 20%; right: 20%;
  height: 2px; background: var(--color-secondary); border-radius: 1px;
}

.header-actions {
  flex: 0 0 auto; margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px clamp(14px, 1.4vw, 22px);
  font-size: var(--fs-button); font-weight: 600; line-height: 1;
  border: none; border-radius: var(--radius-pill);
  text-decoration: none; white-space: nowrap;
  transition: all var(--motion-normal) var(--ease-soft);
  min-height: 42px;
}
.btn-login {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-login:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-register {
  background: var(--gradient-button); color: var(--color-primary-dark);
  box-shadow: var(--shadow-button);
}
.btn-register:hover { box-shadow: 0 4px 16px rgba(212,160,23,0.5); transform: translateY(-1px); color: var(--color-primary-dark); }

.btn-primary {
  background: var(--gradient-cta); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(13,110,63,0.3); color: #fff; }
.btn-secondary {
  background: var(--gradient-button); color: var(--color-primary-dark);
  box-shadow: var(--shadow-button);
}
.btn-secondary:hover { transform: translateY(-1px); color: var(--color-primary-dark); }
.btn-outline {
  background: transparent; color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 17px; min-height: 50px; }

.nav-toggle {
  display: none; flex: 0 0 40px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); color: #fff; font-size: 20px;
  margin-left: 2px; padding: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.2); }

/* Mobile menu */
#mobile-menu {
  display: none; position: fixed;
  top: var(--mobile-header-h); left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #061510 100%);
  z-index: 999; overflow-y: auto;
  padding: 20px 16px; flex-direction: column; gap: 4px;
}
#mobile-menu.is-open { display: flex; }
#mobile-menu a {
  display: block; padding: 14px 16px;
  color: rgba(255,255,255,0.9); font-size: 16px;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
#mobile-menu a:hover, #mobile-menu a.active {
  background: rgba(255,255,255,0.1); color: #fff;
}

/* ============================================================
   HERO VARIANTS
   ============================================================ */
.home-hero {
  background: var(--gradient-hero);
  padding: clamp(60px, 10vw, 120px) 0 clamp(48px, 8vw, 100px);
  color: #fff; position: relative; overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.2); margin-bottom: 20px; }
.home-hero .lead { font-size: clamp(16px, 2vw, 20px); opacity: 0.92; margin-bottom: 28px; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Inner page breadcrumb hero */
.page-hero {
  background: var(--gradient-hero);
  padding: clamp(32px, 5vw, 56px) 0;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { opacity: 0.9; margin-bottom: 0; max-width: 720px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; font-size: var(--fs-small);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-surface { background: var(--color-surface); }
.section-title { font-size: var(--fs-h2); margin-bottom: var(--gap-lg); color: var(--color-text); }
.section-subtitle { color: var(--color-text-soft); margin-bottom: var(--gap-lg); max-width: 680px; }
.section-title-center { text-align: center; }
.section-title-center + .section-subtitle { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; gap: var(--gap-md); }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature-card {
  background: var(--color-card); border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: all var(--motion-normal) var(--ease-soft);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-soft);
}
.feature-card .card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-primary);
  border-radius: var(--radius-md); font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.feature-card p { color: var(--color-text-soft); margin-bottom: 0; font-size: 15px; line-height: 1.7; }

.trust-card {
  background: var(--color-card-alt); border-radius: var(--radius-card);
  padding: var(--card-padding); text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--motion-normal) var(--ease-soft);
}
.trust-card:hover { border-color: var(--color-secondary); }
.trust-card .card-icon { margin: 0 auto 14px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; }

.game-card {
  background: var(--color-card); border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--motion-normal) var(--ease-soft);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.game-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.game-card-body { padding: 20px; }
.game-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.game-card-body p { font-size: 14px; color: var(--color-text-soft); margin-bottom: 12px; }

.step-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--color-border);
}
.step-card:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-cta); color: #fff;
  font-weight: 700; font-size: 18px;
  border-radius: 50%;
}
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { font-size: 15px; color: var(--color-text-soft); margin-bottom: 0; }

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-band {
  background: var(--gradient-cta); color: #fff;
  padding: clamp(40px, 6vw, 72px) 0;
  text-align: center; border-radius: var(--radius-xl);
  margin: var(--section-y) 0;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { opacity: 0.9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .btn-secondary { min-height: 50px; font-size: 17px; }

.inline-cta {
  background: var(--color-primary-soft); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); margin: 32px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.inline-cta p { margin-bottom: 0; font-size: 17px; font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
  transition: border-color var(--motion-fast);
}
.faq-item.is-open { border-color: var(--color-primary); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--color-card);
  border: none; font-size: 16px; font-weight: 600;
  color: var(--color-text); text-align: left;
  gap: 12px; cursor: pointer;
  transition: background var(--motion-fast);
}
.faq-btn:hover { background: var(--color-card-alt); }
.faq-btn .faq-icon {
  flex: 0 0 24px; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-primary);
  transition: transform var(--motion-normal) var(--ease-soft);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 0 20px 18px;
  font-size: 15px; line-height: 1.8; color: var(--color-text-soft);
}
.faq-item.is-open .faq-answer { display: block; }

/* ============================================================
   FORMS (Login / Register)
   ============================================================ */
.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl); align-items: start;
  max-width: 1000px; margin: 0 auto;
}
.auth-form-card {
  background: var(--color-card); border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-form);
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--color-text);
}
.form-group input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px; font-family: var(--font-base);
  transition: border-color var(--motion-fast);
  background: var(--color-bg);
}
.form-group input:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,110,63,0.1);
}
.form-submit {
  width: 100%; padding: 14px;
  background: var(--gradient-cta); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all var(--motion-normal);
}
.form-submit:hover { box-shadow: var(--shadow-cta); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-info-card {
  background: var(--color-card-alt); border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--color-border);
}
.auth-info-card h3 { margin-bottom: 16px; }
.auth-info-card ul { list-style: none; padding: 0; }
.auth-info-card li { padding: 10px 0; border-bottom: 1px solid var(--color-border); display: flex; gap: 10px; align-items: flex-start; }
.auth-info-card li:last-child { border-bottom: none; }
.auth-info-card .check-icon { color: var(--color-success); font-weight: 700; flex: 0 0 20px; }

/* ============================================================
   ARTICLE / PROSE
   ============================================================ */
.prose { max-width: var(--container-narrow); }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 28px; }
.prose p { font-size: 17px; line-height: 1.9; }
.prose ul, .prose ol { margin-bottom: 20px; }
.prose li { margin-bottom: 8px; line-height: 1.8; }
.prose img { margin: 28px 0; border-radius: var(--radius-image); }
.prose .callout {
  background: var(--color-primary-soft); border-left: 4px solid var(--color-primary);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.prose .warning-box {
  background: #fff3cd; border-left: 4px solid var(--color-warning);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.article-meta { display: flex; gap: 20px; font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 24px; }
.article-cover { margin-bottom: 32px; }
.article-cover img { width: 100%; aspect-ratio: 2/1; object-fit: cover; border-radius: var(--radius-lg); }

/* Related articles */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap-md); }

/* ============================================================
   POLICY / TERMS LAYOUT
   ============================================================ */
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--gap-xl); align-items: start; }
.policy-toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--color-card); border-radius: var(--radius-card);
  padding: 20px; border: 1px solid var(--color-border);
}
.policy-toc h3 { font-size: 15px; margin-bottom: 12px; }
.policy-toc a { display: block; padding: 6px 0; font-size: 13px; color: var(--color-text-soft); }
.policy-toc a:hover { color: var(--color-primary); }
.policy-body h2 { padding-top: 8px; border-top: 1px solid var(--color-border); margin-top: 36px; }
.policy-body h2:first-child { border-top: none; margin-top: 0; }
.policy-note {
  background: var(--color-primary-soft); padding: 16px 20px;
  border-radius: var(--radius-md); margin-bottom: 24px;
  font-size: 15px;
}
.policy-updated { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-scroll { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-md); }
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-card); border-radius: var(--radius-md);
  overflow: hidden;
}
.data-table th {
  background: var(--color-primary); color: #fff;
  padding: 14px 18px; text-align: left; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--color-border); font-size: 15px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-bg-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer); color: var(--color-footer-text);
  padding: clamp(48px, 6vw, 72px) 0 0;
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--gap-xl);
}
.footer-brand p { font-size: 14px; line-height: 1.7; opacity: 0.8; margin-top: 12px; }
.footer-col h4 {
  color: #fff; font-size: 16px; font-weight: 600;
  margin-bottom: 18px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px; background: var(--color-secondary); border-radius: 1px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--color-footer-text); font-size: 14px;
  transition: color var(--motion-fast), transform var(--motion-fast);
  display: inline-block;
}
.footer-col a:hover { color: #fff; transform: translateX(4px); }

.footer-bottom {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 13px; opacity: 0.7;
}
.footer-bottom a { color: var(--color-footer-text); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   SWIPER FALLBACK
   ============================================================ */
.swiper:not(.swiper-initialized) {
  display: flex; gap: var(--gap-md);
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 8px;
}
.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 280px; scroll-snap-align: start;
}

/* AOS fallback - content always visible */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@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);
    min-height: var(--mobile-header-h);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
  }
  .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;
  }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .home-hero { padding: clamp(40px, 8vw, 80px) 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-band { border-radius: var(--radius-lg); margin-left: 8px; margin-right: 8px; }
  .inline-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 414px) {
  .container { padding: 0 12px; }
  body { font-size: 16px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
}

@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; }
  .container { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-section { margin-top: var(--section-y); }
