/* ═══════════════════════════════════════════════════
   MetaGrator — Main Stylesheet
   Shared across all pages
   ═══════════════════════════════════════════════════ */

/* ═══ VARIABLES ═══ */
:root {
  --bg: #f8f9fb;
  --bg-warm: #f1f3f7;
  --bg-dark: #0b0e14;
  --bg-card: #ffffff;
  --text: #0b0e14;
  --text-mid: #4a5568;
  --text-light: #8a94a6;
  --text-faint: #c3cad7;
  --accent: #3b6b9e;
  --accent-bright: #4a87c4;
  --accent-light: rgba(59,107,158,0.07);
  --accent-line: rgba(59,107,158,0.2);
  --line: rgba(11,14,20,0.06);
  --white: #fff;

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ═══ LAYOUT ═══ */
.frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ═══ SCROLL REVEAL ═══ */
.r {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.r.v { opacity: 1; transform: translateY(0); }
.r-d1 { transition-delay: 0.12s; }
.r-d2 { transition-delay: 0.24s; }
.r-d3 { transition-delay: 0.36s; }
.r-d4 { transition-delay: 0.48s; }

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s var(--ease);
}
nav.scrolled {
  padding: 14px 64px;
  background: rgba(248,249,251,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-right a {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-right a:hover { color: var(--text); }
.nav-right a.active { color: var(--text); font-weight: 500; }
.nav-right .nav-cta {
  font-weight: 500;
  color: var(--white);
  background: var(--text);
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.nav-right .nav-cta:hover {
  background: #1a2332;
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.lang-option {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.3s;
}
.lang-option:hover { color: var(--text-mid); }
.lang-option.lang-active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(248,249,251,0.98);
  backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--text); }
.mobile-menu .nav-cta {
  font-size: 18px;
  color: var(--white);
  background: var(--text);
  padding: 14px 36px;
  border-radius: 100px;
  margin-top: 16px;
}
.mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.mobile-lang .lang-option {
  font-size: 14px;
  padding: 6px 12px;
}

/* ═══ BUTTONS ═══ */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--text);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
}
.btn-dark:hover {
  background: #1a2332;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(11,14,20,0.12);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--text-faint);
  color: var(--text);
}
.btn-w {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--bg-dark);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.btn-w:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.12);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: #555;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: #999;
}

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
  padding: 140px 0 80px;
}
.page-hero-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 700px;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.65;
}

/* ═══ SECTION HEADER ═══ */
.section-header {
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 440px;
}

/* ═══ CTA SECTION ═══ */
.cta {
  padding: 160px 0;
  background: var(--bg-dark);
  color: var(--white);
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: 28px;
}
.cta h2 .cta-light {
  color: #4a5568;
  font-weight: 400;
}
.cta p {
  font-size: 17px;
  color: #555;
  font-weight: 300;
  max-width: 400px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══ FOOTER ═══ */
footer {
  padding: 56px 0 32px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}
.footer-logo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
}
.footer-logo span { color: var(--accent); }
.footer-cols {
  display: flex;
  gap: 4rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col h5 {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 0.25rem;
}
.footer-col a {
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: #999; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.5rem;
  font-size: 12px;
  color: #444;
}

/* ═══ RESPONSIVE — GLOBAL ═══ */
@media (max-width: 1024px) {
  .frame { padding: 0 40px; }
  nav { padding: 20px 40px; }
  nav.scrolled { padding: 12px 40px; }
}

@media (max-width: 900px) {
  .frame { padding: 0 28px; }
  nav { padding: 16px 28px; }
  nav.scrolled { padding: 12px 28px; }

  .nav-right a:not(.nav-cta) { display: none; }
  .lang-switch { display: none; }
  .nav-toggle { display: flex; }

  .page-hero { padding: 120px 0 48px; }

  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-cols { gap: 2.5rem; }
  .footer-bottom { text-align: center; }

  .cta { padding: 100px 0; }
}

@media (max-width: 600px) {
  .hero-actions,
  .cta-actions { flex-direction: column; }
  .btn-dark, .btn-outline, .btn-w, .btn-ghost { justify-content: center; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }
}
