/* ============================================================
   Emerald Trust Gaming UI - Design System
   7000bet-apk.app | Bangladesh Market | bn-BD
   ============================================================ */

:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-soft: #ccfbf1;
  --color-secondary: #1e3a5f;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-bg: #f8fafc;
  --color-bg-soft: #f0fdfa;
  --color-surface: #ffffff;
  --color-surface-strong: #f1f5f9;
  --color-card: #ffffff;
  --color-card-alt: #f0fdfa;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #1e293b;
  --color-text-soft: #475569;
  --color-text-muted: #94a3b8;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0f172a;
  --color-footer-text: #e2e8f0;

  --gradient-hero: linear-gradient(135deg, #0d9488 0%, #1e3a5f 100%);
  --gradient-hero-soft: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
  --gradient-button: linear-gradient(135deg, #0d9488, #0f766e);
  --gradient-button-hover: linear-gradient(135deg, #0f766e, #115e59);
  --gradient-cta: linear-gradient(135deg, #f59e0b, #d97706);
  --gradient-cta-hover: linear-gradient(135deg, #d97706, #b45309);
  --gradient-footer: linear-gradient(180deg, #1e293b, #0f172a);
  --gradient-mobile-menu: linear-gradient(180deg, #0f172a, #1e3a5f);

  --shadow-header: 0 2px 12px rgba(15,23,42,.08);
  --shadow-card: 0 4px 16px rgba(15,23,42,.06);
  --shadow-card-hover: 0 8px 28px rgba(13,148,136,.12);
  --shadow-button: 0 4px 12px rgba(13,148,136,.2);
  --shadow-cta: 0 6px 20px rgba(245,158,11,.25);
  --shadow-menu: 0 12px 40px rgba(15,23,42,.15);
  --shadow-form: 0 8px 24px rgba(15,23,42,.08);
  --shadow-soft: 0 2px 8px rgba(15,23,42,.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 16px;

  --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, 2vw, 24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-nav: clamp(13px, .84vw, 15px);

  --container-max: 1200px;
  --section-y: clamp(48px, 6vw, 80px);
  --header-h: 72px;
  --mobile-header-h: 64px;

  --motion-fast: .15s;
  --motion-normal: .25s;
  --motion-slow: .4s;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.3; color: var(--color-secondary); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* ---- Container ---- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.container-narrow { max-width: 800px; }

/* ---- Section ---- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--color-surface-strong); }
.section-white { background: var(--color-surface); }
.section-soft { background: var(--color-bg-soft); }
.section-title { font-size: var(--fs-h2); font-weight: 800; color: var(--color-secondary); margin-bottom: .75rem; }
.section-lead { color: var(--color-text-soft); font-size: 1.05rem; max-width: 820px; margin: 0 auto 2rem; }
.text-center { text-align: center; }

/* ============================================================
   HEADER - Logo左靠, 全量导航, 禁止更多按钮
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--motion-normal);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(15,23,42,.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;
  text-decoration: none;
}
.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(4px, .6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(5px, .55vw, 10px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
  text-decoration: none;
}
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.primary-nav a.active { color: #fff; background: rgba(255,255,255,.15); }

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-fast);
  padding: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(14px, 1.2vw, 20px);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--motion-fast);
  line-height: 1;
  min-height: 42px;
}
.btn-register {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-register:hover { background: var(--gradient-cta-hover); color: #fff; transform: translateY(-1px); }
.btn-login {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-login:hover { background: rgba(255,255,255,.25); color: #fff; }

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { background: var(--gradient-button-hover); color: #fff; transform: translateY(-1px); }
.btn-accent {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-accent:hover { background: var(--gradient-cta-hover); color: #fff; }
.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 28px; font-size: 16px; }

/* ---- Mobile Menu ---- */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mobile-menu);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
  flex-direction: column;
  gap: 4px;
}
#mobile-menu.is-open { display: flex; }
#mobile-menu a {
  display: block;
  color: rgba(255,255,255,.9);
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--motion-fast);
}
#mobile-menu a:hover, #mobile-menu a.active { background: rgba(255,255,255,.1); color: #fff; }
#mobile-menu .mobile-cta { display: flex; gap: 12px; margin-top: 16px; padding: 0 16px; }
#mobile-menu .mobile-cta .btn { flex: 1; text-align: center; }

/* ---- Breadcrumb ---- */
.breadcrumb-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-small);
  margin-bottom: 1.5rem;
}
.breadcrumb-wrap a { color: var(--color-primary); }
.breadcrumb-wrap span { color: var(--color-text-muted); }
.breadcrumb-sep { color: var(--color-text-muted); margin: 0 2px; }

/* ============================================================
   HERO VARIANTS
   ============================================================ */
/* Homepage Hero */
.home-hero {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(245,158,11,.15), transparent 60%);
  pointer-events: none;
}
.home-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.home-hero h1 { color: #fff; font-size: clamp(26px, 3.5vw, 44px); }
.home-hero .hero-lead { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }
.home-hero .hero-img { border-radius: var(--radius-xl); box-shadow: 0 16px 48px rgba(0,0,0,.2); }
.hero-badge { display: inline-block; padding: 6px 14px; background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.4); color: #fbbf24; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; margin-bottom: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner Page Hero */
.inner-hero {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--gradient-hero-soft);
  border-bottom: 1px solid var(--color-border);
}
.inner-hero h1 { color: var(--color-secondary); font-size: clamp(24px, 3vw, 38px); }
.inner-hero .hero-lead { color: var(--color-text-soft); }

/* Auth Hero */
.auth-hero {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--gradient-hero);
  color: #fff;
}
.auth-hero h1 { color: #fff; font-size: clamp(24px, 3vw, 36px); }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { color: var(--color-text-soft); font-size: .95rem; margin: 0; }

.trust-card {
  background: var(--color-card-alt);
  border: 1px solid rgba(13,148,136,.15);
  border-radius: var(--radius-card);
  padding: 24px;
}

.step-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-button);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.game-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.game-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.game-card .card-body { padding: 20px; }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.content-grid.reversed { direction: rtl; }
.content-grid.reversed > * { direction: ltr; }

.content-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.prose { max-width: 820px; }
.prose p { font-size: var(--fs-body); line-height: 1.9; margin: 0 0 18px; }
.prose h2 { font-size: var(--fs-h2); margin: 2rem 0 1rem; }
.prose h3 { font-size: var(--fs-h3); margin: 1.5rem 0 .75rem; }
.prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }

.note-box {
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 1.5rem 0;
}
.warning-box {
  border-left: 4px solid var(--color-warning);
  background: #fffbeb;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 1.5rem 0;
}

.comparison-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.comparison-table thead { background: var(--gradient-hero); color: #fff; }
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
.comparison-table tbody tr:hover { background: var(--color-bg-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
  padding: var(--section-y) 0;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.85); }
.cta-section .btn-accent { font-size: 16px; padding: 14px 32px; }

.inline-cta {
  background: var(--color-bg-soft);
  border: 1px solid rgba(13,148,136,.15);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-group { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: 12px;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question:hover { background: var(--color-bg-soft); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-primary);
  transition: transform var(--motion-normal);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-slow) var(--ease-out);
}
.faq-answer-inner { padding: 0 20px 20px; color: var(--color-text-soft); line-height: 1.8; }

/* ============================================================
   FORM
   ============================================================ */
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.auth-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--section-y) 32px;
  box-shadow: var(--shadow-form);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; color: var(--color-text); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  background: var(--color-surface);
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.form-input.error { border-color: var(--color-danger); }
.form-error { color: var(--color-danger); font-size: .85rem; margin-top: 4px; display: none; }
.form-btn { width: 100%; min-height: 48px; font-size: 16px; }
.form-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-trust-card {
  background: var(--color-card-alt);
  border: 1px solid rgba(13,148,136,.15);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.auth-step-list { list-style: none; padding: 0; counter-reset: step; }
.auth-step-list li { counter-increment: step; padding: 12px 0; border-bottom: 1px solid var(--color-border); display: flex; align-items: flex-start; gap: 12px; }
.auth-step-list li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* ============================================================
   ARTICLE / POLICY LAYOUT
   ============================================================ */
.article-shell { max-width: 820px; margin: 0 auto; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: 1.5rem; flex-wrap: wrap; }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.article-body { line-height: 1.9; }
.article-body h2 { margin-top: 2.5rem; }
.article-related {
  background: var(--color-surface-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 3rem;
}

.policy-layout { max-width: 820px; margin: 0 auto; }
.policy-toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 2rem;
}
.policy-toc a { display: block; padding: 6px 0; color: var(--color-primary); }
.policy-note {
  background: #fffbeb;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.policy-updated-box {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: rgba(255,255,255,.65); font-size: .95rem; line-height: 1.7; }
.footer-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.7); transition: color var(--motion-fast); font-size: .95rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-small);
  color: rgba(255,255,255,.5);
}

/* ============================================================
   SWIPER DEGRADE
   ============================================================ */
.swiper:not(.swiper-initialized) {
  display: flex;
  gap: 20px;
  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 DEGRADE - never hide content if AOS fails
   ============================================================ */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 { text-align: center; padding: 100px 20px; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-404 h1 { font-size: clamp(48px, 8vw, 96px); color: var(--color-primary); margin-bottom: 0; }
.page-404 p { color: var(--color-text-soft); font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .header-inner { min-height: var(--mobile-header-h); }
  .site-logo { height: clamp(28px, 4vw, 38px); }
  
  .home-hero .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .home-hero .hero-cta { justify-content: center; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.reversed { direction: ltr; }
  .card-grid-4, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #mobile-menu { top: var(--mobile-header-h); }
}

@media (max-width: 640px) {
  .card-grid-4, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 414px) {
  body { font-size: 16px; }
  .section { padding: clamp(32px, 5vw, 48px) 0; }
  .btn { min-height: 44px; padding: 12px 16px; }
  h1 { font-size: clamp(22px, 5vw, 32px); }
}

@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .header-inner { padding-left: 8px; padding-right: 8px; }
  .btn { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
