/* ═══════════════════════════════════════════════════════════════
   MOMKN Solutions — Design System
   shared.css — Single source of truth for all pages
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --bg: #050507;
  --text: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-1: #7c3aed;
  --accent-2: #3b82f6;
  --accent-3: #ec4899;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.2);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-glow: 0 0 40px rgba(124,58,237,0.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Ambient Background ─── */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  animation: float 30s infinite ease-in-out alternate;
  will-change: transform;
}

.orb-1 {
  width: 55vw; height: 55vw;
  background: var(--accent-1);
  top: -25%; left: -15%;
}

.orb-2 {
  width: 50vw; height: 50vw;
  background: var(--accent-2);
  bottom: -20%; right: -15%;
  animation-delay: -8s;
}

.orb-3 {
  width: 30vw; height: 30vw;
  background: var(--accent-3);
  top: 55%; left: 55%;
  animation-delay: -15s;
  opacity: 0.18;
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Navigation — Desktop ─── */
.top-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(10,10,14,0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.45rem;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.top-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.top-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.top-nav a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ─── Navigation — Hamburger Button ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 300;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  margin: 5px 0;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Navigation — Mobile Overlay ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5,5,7,0.96);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  transform: translateY(20px);
  opacity: 0;
  animation: none;
}

.mobile-menu.open a {
  animation: menuItemIn 0.5s var(--ease-out) forwards;
}

.mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }

.mobile-menu a:hover,
.mobile-menu a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

/* ─── Page Wrapper ─── */
.page {
  position: relative;
  z-index: 10;
}

/* ─── Section Shared ─── */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #000000;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 4px 24px rgba(255,255,255,0.12);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,255,255,0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  letter-spacing: 0.01em;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ─── Glass Card (Reusable) ─── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--shadow-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

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

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  position: relative;
  z-index: 10;
  letter-spacing: 0.01em;
}

.footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

/* ─── Keyframes ─── */
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 4%) scale(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menuItemIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Legal / Long-form Content Pages ─── */
.legal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 2rem 3rem;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.legal-content h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal-content h1 span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content ul {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.legal-content strong {
  color: #e2e8f0;
  font-weight: 600;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a.link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.legal-content a.link:hover {
  color: #ffffff;
}

.legal-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 640px) {
  /* Show hamburger, hide desktop nav */
  .top-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    background: rgba(10,10,14,0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.65rem 0.6rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .mobile-menu {
    display: flex;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .legal-content {
    padding: 5rem 1.25rem 2rem;
  }

  .legal-content h1 {
    font-size: 2.25rem;
  }

  .footer {
    font-size: 0.75rem;
    padding: 2rem 1.25rem;
  }
}
