/* ============================================
   MZY Media — Black & White theme
   ============================================ */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-bold: rgba(255, 255, 255, 0.28);

  --text: #ffffff;
  --text-dim: #a8a8a8;
  --text-muted: #6e6e6e;
  --text-faint: #4a4a4a;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --maxw: 1200px;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  font-feature-settings: 'ss01', 'cv11';
}

/* Subtle grid background + vignette */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 85%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 50%);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 2;
}

/* Serif italic accent */
.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 40px);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  color: #000;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000 !important;
  font-weight: 600 !important;
  transition: transform 0.2s, background 0.2s;
  border: 1px solid #fff;
}
.nav-cta:hover { transform: translateY(-1px); background: #e9e9e9; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #e9e9e9;
  border-color: #e9e9e9;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bold);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #fff;
}

.btn-block { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: clamp(60px, 11vw, 140px) 0 clamp(60px, 8vw, 90px);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 2;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 28px;
}

.hero-title .accent-italic {
  font-size: 1.05em;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(10px);
}

.hero-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  margin-top: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 18px 12px;
  }
  .hero-stat:last-child { border-bottom: none; }
}

/* ============================================
   Trusted-by strip
   ============================================ */
.clients-strip {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.clients-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.clients-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  flex-wrap: wrap;
  justify-content: center;
}

.client {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  color: var(--text-dim);
  letter-spacing: -0.015em;
  transition: color 0.3s;
}
.client:hover { color: var(--text); }

.client-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
}

@media (max-width: 600px) {
  .client-sep { display: none; }
}

/* ============================================
   Section defaults
   ============================================ */
.section {
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
}

.section-alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(44px, 6vw, 80px);
}

.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }

.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #fff;
}

.section-head h2 .accent-italic {
  letter-spacing: -0.02em;
  font-size: 1.05em;
}

.section-sub {
  color: var(--text-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  margin: 0;
  line-height: 1.65;
}

/* ============================================
   Pages grid
   ============================================ */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, background 0.3s;
  position: relative;
  backdrop-filter: blur(10px);
  text-align: center;
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bold);
  background: var(--bg-card-hover);
}
.page-card:hover .page-link { color: #fff; }
.page-card:hover .page-link::after { transform: translateX(4px); }
.page-card:hover .page-avatar { transform: scale(1.03); }

.page-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px var(--border-strong), 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-body h3 {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-at {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 20px;
}

.page-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  width: 100%;
}

.page-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.page-stats strong {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}

.page-stats span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.page-link {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.page-link::after {
  content: '';
  display: inline-block;
  transition: transform 0.2s;
}

/* ============================================
   Stats grid
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bold);
  background: var(--bg-card-hover);
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1;
  margin-bottom: 14px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.stat-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================
   Services grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.service {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--border-bold);
  background: var(--bg-card-hover);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: #fff;
  margin-bottom: 20px;
}

.service h3 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ============================================
   Contact
   ============================================ */
.section-contact { padding-bottom: clamp(80px, 10vw, 140px); }

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 44px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.contact-left, .contact-right { position: relative; z-index: 1; }

.contact-left h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.1;
  margin: 14px 0 18px;
}

.contact-sub {
  color: var(--text-dim);
  margin: 0 0 30px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-bold);
  transform: translateX(3px);
}

.cm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method strong { display: block; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.contact-method span { font-size: 0.82rem; color: var(--text-muted); }

.contact-right { display: flex; align-items: center; }

.contact-cta {
  width: 100%;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: #000;
  text-align: center;
  position: relative;
}

.contact-cta h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.contact-cta p {
  color: #444;
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.55;
}

.contact-cta .btn-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}
.contact-cta .btn-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.cta-note {
  margin-top: 16px !important;
  font-size: 0.8rem !important;
  color: #666 !important;
}

@media (max-width: 820px) {
  .contact-card { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 68px 0 32px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 50px;
  padding-bottom: 52px;
}

.footer-brand .brand-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: block;
  margin-bottom: 14px;
  color: #fff;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-cols h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-cols a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============================================
   Reveal animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Selection */
::selection { background: #fff; color: #000; }
