/* ═══════════════════════════════════════════════
   PostePro — Shared Design System
   Dark Premium · Lime Accent
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Mea+Culpa&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:       #0a0a0a;
  --bg2:      #101010;
  --bg3:      #161616;
  --bg4:      #1c1c1c;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);

  --accent:       #c8ff57;
  --accent-dim:   rgba(200,255,87,0.07);
  --accent-mid:   rgba(200,255,87,0.25);
  --accent-dark:  #0a0a0a;

  --text:     #efefef;
  --muted:    #777777;
  --faint:    #363636;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-logo:    'Mea Culpa', cursive;

  --nav-h:   72px;
  --pad-x:   clamp(24px, 5vw, 60px);
  --max-w:   1240px;
  --r:       10px;
  --r-lg:    18px;
  --r-xl:    28px;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9000;
}

/* ── LAYOUT ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-b {
  font-family: var(--font-logo);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Lang toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile toggle */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--muted);
  transition: all 0.25s;
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile-lang {
  margin-top: 8px;
}
.nav-mobile-close {
  position: absolute;
  top: 24px;
  right: var(--pad-x);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 17px 36px; font-size: 1rem; border-radius: var(--r-xl); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border2);
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: #fff;
}
.btn-outline-accent {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #0a0a0a;
}

/* ── SECTION SCAFFOLDING ────────────────────── */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section-dark  { background: var(--bg);  }
.section-mid   { background: var(--bg2); }
.section-light { background: var(--bg3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── CARDS ──────────────────────────────────── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(200,255,87,0.2);
}

/* ── GRIDS ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── DIVIDER ────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── SCROLL ANIMATIONS ──────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays for siblings */
.stagger > *:nth-child(1) { transition-delay: 0s;    }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  padding: 80px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 64px;
}
.footer-brand .logo-b { font-size: 3.2rem; margin-bottom: 4px; }
.footer-brand .logo-name { font-size: 1rem; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 270px;
}
.footer-by {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 8px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--faint);
}

/* Social icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.social-links svg { width: 15px; height: 15px; fill: currentColor; }

/* ── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero .section-title { margin-bottom: 12px; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .nav-actions .btn { display: none; }
}
