/* ==============================================
   LEGACY MMULLA LLC — Lei Trade
   Design #23: Teal + Rose
   ============================================== */

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

:root {
  --teal: #115e59;
  --rose: #e11d48;
  --cream: #fdf2f8;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --white: #ffffff;
  --teal-light: #0d9488;
  --rose-light: #fb7185;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-heading {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

/* Fade-in on scroll */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   HEADER / NAV
   ============================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17,94,89,0.08);
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}
.logo span { color: var(--rose); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--rose);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: #be123c; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==============================================
   HERO — Topo Lines
   ============================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: 80px;
}

/* Topographic contour lines */
.topo-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.topo-line {
  position: absolute;
  left: -5%;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  opacity: 0.06;
}

.topo-line:nth-child(1) {
  width: 110%;
  height: 70px;
  top: 8%;
  border-radius: 48% 52% 45% 55% / 40% 55% 45% 60%;
}

.topo-line:nth-child(2) {
  width: 105%;
  height: 50px;
  top: 28%;
  border-radius: 52% 48% 58% 42% / 50% 48% 52% 50%;
}

.topo-line:nth-child(3) {
  width: 108%;
  height: 65px;
  top: 46%;
  border-radius: 46% 54% 50% 50% / 55% 42% 58% 45%;
}

.topo-line:nth-child(4) {
  width: 103%;
  height: 55px;
  top: 64%;
  border-radius: 54% 46% 48% 52% / 44% 56% 44% 56%;
}

.topo-line:nth-child(5) {
  width: 106%;
  height: 60px;
  top: 80%;
  border-radius: 50% 50% 54% 46% / 52% 44% 56% 48%;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 2;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  opacity: 0.7;
}

.hero-heading {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-heading .underline {
  position: relative;
  display: inline-block;
}

.hero-heading .underline::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--rose);
  border-radius: 4px;
  opacity: 0.85;
  z-index: -1;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: #0d4e4a;
  border-color: #0d4e4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,94,89,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225,29,72,0.2);
}

/* ==============================================
   SERVICES — Deck Stack
   ============================================== */
.services { background: var(--cream); }

.services .section-label,
.services .section-heading,
.services .section-subtitle { text-align: center; }
.services .section-subtitle { margin: 0 auto 60px; }

.deck-stack {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  min-height: 520px;
}

.deck-card {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid rgba(17,94,89,0.12);
  border-radius: 14px;
  padding: 28px 32px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.deck-card:nth-child(1) { top: 0;   z-index: 5; }
.deck-card:nth-child(2) { top: 44px;  z-index: 4; }
.deck-card:nth-child(3) { top: 88px;  z-index: 3; }
.deck-card:nth-child(4) { top: 132px; z-index: 2; }
.deck-card:nth-child(5) { top: 176px; z-index: 1; }

.deck-card.active {
  top: 0 !important;
  z-index: 10 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: none;
}

.deck-card:not(.active):hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.deck-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.deck-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--cream);
  color: var(--teal);
}

.deck-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.deck-card-expand {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,94,89,0.1);
}

.deck-card.active .deck-card-expand { display: block; }

.deck-card-expand p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.deck-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--cream);
  color: var(--teal);
}

/* ==============================================
   ABOUT — Word Cloud
   ============================================== */
.about { background: var(--white); }
.about .section-label,
.about .section-heading { text-align: center; }
.about .section-heading { margin-bottom: 60px; }

.word-cloud {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 420px;
}

.cloud-tag {
  position: absolute;
  font-weight: 800;
  transition: transform 0.3s;
  cursor: default;
  user-select: none;
}
.cloud-tag:hover {
  transform: scale(1.2);
}

.cloud-tag:nth-child(1)  { left: 4%;  top: 5%;   font-size: 22px; color: var(--teal); }
.cloud-tag:nth-child(2)  { left: 56%; top: 0%;   font-size: 18px; color: var(--rose); }
.cloud-tag:nth-child(3)  { left: 30%; top: 12%;  font-size: 16px; color: var(--teal); }
.cloud-tag:nth-child(4)  { left: 72%; top: 18%;  font-size: 21px; color: var(--rose); }
.cloud-tag:nth-child(5)  { left: 12%; top: 32%;  font-size: 14px; color: var(--rose); }
.cloud-tag:nth-child(6)  { left: 48%; top: 30%;  font-size: 20px; color: var(--teal); }
.cloud-tag:nth-child(7)  { left: 68%; top: 42%;  font-size: 15px; color: var(--teal); }
.cloud-tag:nth-child(8)  { left: 20%; top: 52%;  font-size: 19px; color: var(--rose); }
.cloud-tag:nth-child(9)  { left: 55%; top: 58%;  font-size: 17px; color: var(--teal); }
.cloud-tag:nth-child(10) { left: 36%; top: 72%;  font-size: 22px; color: var(--rose); }

/* ==============================================
   INDUSTRIES — Stat Pills
   ============================================== */
.industries { background: var(--cream); }

.industries .section-label,
.industries .section-heading,
.industries .section-subtitle { text-align: center; }
.industries .section-subtitle { margin: 0 auto 56px; }

.stat-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--teal);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s;
}
.stat-pill:hover { transform: translateY(-3px); }

.stat-pill-value {
  font-size: 20px;
  font-weight: 900;
  color: #5eead4;
}

/* ==============================================
   APPROACH — Milestone Flags
   ============================================== */
.approach { background: var(--white); }

.approach .section-label,
.approach .section-heading,
.approach .section-subtitle { text-align: center; }
.approach .section-subtitle { margin: 0 auto 64px; }

.milestone-path {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.milestone-path::before {
  content: '';
  position: absolute;
  top: 82px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(17,94,89,0.15);
}

.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.milestone {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pole line */
.milestone-pole {
  width: 2.5px;
  height: 48px;
  background: var(--text-muted);
  margin-bottom: 0;
}

/* Triangle flag using borders */
.milestone-flag {
  width: 0;
  height: 0;
  border-left: 28px solid var(--teal);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-bottom: 16px;
  position: relative;
}

.milestone:nth-child(even) .milestone-flag {
  border-left-color: var(--rose);
}

.flag-number {
  position: absolute;
  left: -24px;
  top: -8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  width: 20px;
  text-align: center;
}

.milestone-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.milestone-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 160px;
}

/* ==============================================
   CONTACT — SMS Widget
   ============================================== */
.contact { background: var(--cream); }

.contact .section-label,
.contact .section-heading { text-align: center; }

.sms-widget {
  max-width: 400px;
  margin: 48px auto 0;
  background: var(--white);
  border: 2px solid var(--rose);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
}

.sms-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose);
  margin-bottom: 12px;
}

.sms-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.sms-phone {
  font-size: 28px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.sms-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rose);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.sms-btn:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.sms-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sms-icon {
  font-size: 20px;
}

/* ==============================================
   CTA — Ebook Card
   ============================================== */
.cta-ebook {
  background: var(--teal);
  color: var(--white);
}

.cta-ebook .section-label { color: #5eead4; }
.cta-ebook .section-heading { color: var(--white); }
.cta-ebook .section-subtitle { color: #99f6e4; }

.ebook-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Ebook cover mockup */
.ebook-cover {
  width: 220px;
  height: 310px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

.ebook-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(17,94,89,0.04) 14px,
      rgba(17,94,89,0.04) 15px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 14px,
      rgba(17,94,89,0.04) 14px,
      rgba(17,94,89,0.04) 15px
    );
  pointer-events: none;
}

.ebook-cover-icon {
  font-size: 48px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.ebook-cover-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--teal);
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.ebook-cover-subtitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose);
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.ebook-info {
  max-width: 420px;
}

.ebook-info .section-heading {
  text-align: left;
  margin-bottom: 16px;
}

.ebook-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}

.ebook-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #ccfbf1;
}

.ebook-feature::before {
  content: '\2713';
  font-weight: 700;
  color: #5eead4;
  font-size: 16px;
}

.ebook-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.ebook-btn:hover {
  background: #be123c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225,29,72,0.3);
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: #0d3d3a;
  color: #99f6e4;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo,
.footer-brand .logo span { color: var(--white); }

.footer-brand p {
  font-size: 14px;
  color: #5eead4;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #5eead4;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(94,234,212,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #5eead4;
}

.footer-bottom a { color: #5eead4; text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }

/* ==============================================
   LEGAL PAGES
   ============================================== */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 8px;
}

.legal-page .effective-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 12px;
}

.legal-page p, .legal-page li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ol { list-style: decimal; }
.legal-page ul { list-style: disc; }

.legal-page address {
  font-style: normal;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 16px 0;
  padding: 20px 24px;
  background: rgba(17,94,89,0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 24px;
}
.legal-back:hover { color: var(--rose); }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .stat-pills-grid { grid-template-columns: repeat(2, 1fr); }
  .milestones { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .milestone-path::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 2px solid rgba(17,94,89,0.08);
    gap: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  }
  .mobile-toggle { display: flex; }

  .hero-heading { font-size: clamp(30px, 8vw, 48px); }
  .hero-subtitle { font-size: 16px; }

  .stat-pills-grid { grid-template-columns: 1fr 1fr; }

  .milestones { grid-template-columns: 1fr 1fr; gap: 28px; }

  .deck-stack { min-height: 440px; }
  .deck-card { padding: 22px 20px; }

  .word-cloud { min-height: 480px; }

  .ebook-wrapper { flex-direction: column; text-align: center; }
  .ebook-info .section-heading { text-align: center; }
  .ebook-features { align-items: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stat-pills-grid { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

  .cloud-tag:nth-child(1)  { left: 2%;  top: 4%; }
  .cloud-tag:nth-child(2)  { left: 50%; top: 2%; }
  .cloud-tag:nth-child(3)  { left: 22%; top: 14%; }
  .cloud-tag:nth-child(4)  { left: 60%; top: 20%; }
  .cloud-tag:nth-child(5)  { left: 6%;  top: 32%; }
  .cloud-tag:nth-child(6)  { left: 40%; top: 30%; }
  .cloud-tag:nth-child(7)  { left: 62%; top: 42%; }
  .cloud-tag:nth-child(8)  { left: 14%; top: 52%; }
  .cloud-tag:nth-child(9)  { left: 48%; top: 60%; }
  .cloud-tag:nth-child(10) { left: 30%; top: 74%; }

  .word-cloud { min-height: 520px; }
}
