/* ══════════════════════════════════════════
 MAI Deal - Common Styles
 Shared across all pages
 ══════════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-surface: #1a1a1a;
  --dark-border: #2a2a2a;
  --gold: #c9a84c;
  --gold-light: #e4cc7a;
  --gold-dim: #a08335;
  --text-primary: #f0ede6;
  --text-secondary: #9a9590;
  --text-muted: #6a6560;
  --accent-blue: #4a7c8f;
  --white: #fafaf8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--black);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ── Language Toggle ── */
html[data-lang="en"] .i18n-zh { display: none !important; }
html[data-lang="zh"] .i18n-en { display: none !important; }

html[data-lang="zh"] body {
  font-family: 'Noto Sans SC', 'Instrument Sans', sans-serif;
}

html[data-lang="zh"] .hero h1,
html[data-lang="zh"] .section-title,
html[data-lang="zh"] .edge-feature h4,
html[data-lang="zh"] .service-card h3,
html[data-lang="zh"] .cta-section .section-title {
  font-family: 'Noto Serif SC', 'DM Serif Display', serif;
}

html[data-lang="zh"] .hero-chinese {
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.15em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--dark-border);
  overflow: hidden;
  margin-left: 0.5rem;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-switch button.active {
  background: var(--gold);
  color: var(--black);
}

.lang-switch button:not(.active):hover {
  color: var(--gold);
}
