/* ============================================================
   Mack Multi-Level Marketing LLC — Design System v2.0
   Corporate-grade design inspired by Kasa Living's aesthetic,
   with unique STR brand identity.
   ============================================================ */

:root {
  /* Primary palette */
  --navy-950: #050505;
  --navy-900: #0a0a0a;
  --navy-800: #111111;
  --navy-700: #1a1a1a;
  --charcoal: #1a1a1a;
  --charcoal-2: #222222;
  --soft-black: #2a2a2a;
  --ivory: #f5f0e6;
  --ivory-2: #f8f4ec;
  --muted: #cfc6b8;
  --muted-2: #b0a896;
  --gold: #c9a24d;
  --champagne: #d6b56d;
  --gold-deep: #a8863f;
  --gold-soft: rgba(201, 162, 77, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
  --shadow-md: 0 12px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.35);
  --shadow-gold: 0 12px 30px rgba(201,162,77,0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.6s ease;

  /* Layout */
  --container-max: 1400px;
  --container-padding: 8%;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top right, rgba(201,162,77,0.16), transparent 30%),
    linear-gradient(135deg, #050505 0%, #111111 55%, #1a1a1a 100%);
  color: var(--ivory);
  overflow-x: hidden;
}

/* Grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
}

h1 { font-size: clamp(42px, 8vw, 88px); line-height: 0.95; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.5vw, 30px); }

h1 span, h2 span { color: var(--champagne); }

p { line-height: 1.7; }

.eyebrow {
  color: var(--champagne);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.lead { font-size: 18px; line-height: 1.8; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--champagne));
  color: #080808;
  box-shadow: var(--shadow-gold);
}
.btn-secondary {
  border: 1px solid rgba(214,181,109,0.6);
  color: var(--ivory);
}
.btn:hover { transform: translateY(-3px); }

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214,181,109,0.2);
}

.logo {
  font-family: var(--font-display);
  color: var(--champagne);
  font-size: 16px;
}

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--ivory);
  font-size: 14px;
  transition: 0.3s;
}
.nav-links a:hover { color: var(--champagne); }

/* ---------- Layout ---------- */
section { padding: 90px 8%; }
.section-title { max-width: 760px; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 14px; }
.section-title p { color: var(--muted); line-height: 1.8; font-size: 16px; }

.container { max-width: var(--container-max); margin: 0 auto; }

/* ---------- Glass cards ---------- */
.glass {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(214,181,109,0.22);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card { padding: 30px; transition: var(--transition-med); }
.card:hover { transform: translateY(-8px); border-color: rgba(214,181,109,0.55); }
.card h3 { color: var(--champagne); font-size: 25px; margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.7; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.feature-box { padding: 38px; }
.feature-box p { color: var(--muted); line-height: 1.9; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 18px; }
.step { padding: 24px; border-left: 2px solid var(--champagne); }
.step strong { color: var(--champagne); display: block; margin-bottom: 8px; }

/* ---------- Portfolio ---------- */
.portfolio { min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; border: 1px dashed rgba(214,181,109,0.45); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 90px 8%; }
.contact h2 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 18px; }
.contact p { color: var(--muted); max-width: 620px; margin: 0 auto 26px; line-height: 1.8; }

/* ---------- Modal ---------- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { background: var(--navy-800); padding: 50px; border-radius: var(--radius-lg); max-width: 700px; width: 90%; border: 1px solid rgba(214,181,109,0.3); box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 28px; color: var(--muted); cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: var(--champagne); }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 30px; color: #9b9183; font-size: 13px; border-top: 1px solid rgba(214,181,109,0.16); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Card images */
.card-image { overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 20px; }
.card-image img { transition: transform 0.4s ease; }
.card-image img:hover { transform: scale(1.05); }

/* Hero styles */
.hero-image-reveal { max-width: 600px; margin: 0 auto 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-text { text-align: center; max-width: 600px; margin: 0 auto; }
.hero-image-reveal img { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav { flex-direction: column; gap: 12px; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-links a { margin-left: 0; }
  header { padding: 30px 6%; }
  section { padding: 70px 6%; }
  .split { grid-template-columns: 1fr; }
  .buttons { flex-direction: column; }
  .btn { text-align: center; }
}
