/* ═══════════════════════════════════════
   MEILI PRECISION — Shared Design System
   ═══════════════════════════════════════ */

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

:root {
  --dark: #0B1520;
  --dark-2: #111D2C;
  --light: #F7F8FA;
  --warm-bg: #FAF6F1;
  --copper: #C27B3E;
  --copper-light: #D4924F;
  --cta: #D4622B;
  --cta-hover: #BF5524;
  --text: #1A1D23;
  --text-mid: #5A6270;
  --text-light: #C8D0DB;
  --border: #DDE1E7;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth }
body { font-family: var(--font-body); color: var(--text); line-height: 1.6; overflow-x: hidden; background: #fff }
img { max-width: 100%; display: block }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,21,32,.97);
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.transparent { background: transparent }
.nav.scrolled {
  background: rgba(11,21,32,.97);
  box-shadow: 0 1px 24px rgba(0,0,0,.15);
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #fff; text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--copper-light) }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none }
.nav-links a {
  color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 0.01em; transition: color .2s;
}
.nav-links a:hover { color: #fff }
.nav-links a.active { color: #fff }
.nav-links .dropdown { position: relative; cursor: pointer }
.nav-links .dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: -16px;
  background: var(--dark); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 8px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .25s;
}
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 16px; border-radius: 8px; font-size: 13px }
.dropdown-menu a:hover { background: rgba(255,255,255,.06) }
.nav-cta {
  background: var(--cta) !important; color: #fff !important;
  padding: 10px 22px; border-radius: 8px; font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--cta-hover) !important; transform: translateY(-1px) }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 101;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: #fff;
  position: absolute; left: 0; transition: all .3s;
}
.menu-toggle span:nth-child(1) { top: 0 }
.menu-toggle span:nth-child(2) { top: 9px }
.menu-toggle span:nth-child(3) { top: 18px }
.menu-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg) }
.menu-toggle.open span:nth-child(2) { opacity: 0 }
.menu-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg) }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta); color: #fff; padding: 16px 32px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all .25s; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,98,43,.3) }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cta); padding: 14px 28px; font-size: 15px;
  font-weight: 600; text-decoration: none; transition: all .2s;
  border: 2px solid var(--cta); border-radius: 10px; background: none; cursor: pointer;
}
.btn-outline:hover { background: var(--cta); color: #fff }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--dark); padding: 140px 48px 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,123,62,.12), transparent 70%);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative }
.page-hero .section-eyebrow { color: var(--copper-light) }
.page-hero .section-title { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px }
.page-hero .section-desc { color: var(--text-light); max-width: 600px }

/* ─── SECTIONS ─── */
.section { padding: 100px 48px }
.section-eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--copper);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -0.8px; line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-mid); max-width: 560px; line-height: 1.7;
}
.section-center { text-align: center }
.section-center .section-desc { margin: 0 auto }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--dark); padding: 80px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,123,62,.15), transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; color: #fff; letter-spacing: -1px;
  margin-bottom: 12px; position: relative;
}
.cta-section p { font-size: 16px; color: var(--text-light); margin-bottom: 36px; position: relative }

/* ─── FOOTER ─── */
.footer {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px; color: rgba(255,255,255,.4); font-size: 13px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer a { color: rgba(255,255,255,.55); text-decoration: none }
.footer a:hover { color: #fff }

/* ─── SPEC TABLE ─── */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 32px }
.spec-table th, .spec-table td {
  text-align: left; padding: 14px 20px; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-mid);
  background: var(--light);
}
.spec-table td { color: var(--text) }
.spec-table tr:hover td { background: rgba(194,123,62,.03) }

/* ─── CARDS ─── */
.card {
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s; background: #fff;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.06); border-color: var(--copper) }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(194,123,62,.08); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--copper); fill: none; stroke-width: 1.8 }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px }
.card p { font-size: 14px; color: var(--text-mid); line-height: 1.65 }

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal-delay-1 { transition-delay: .1s }
.reveal-delay-2 { transition-delay: .2s }
.reveal-delay-3 { transition-delay: .3s }
.reveal-delay-4 { transition-delay: .4s }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav { padding: 0 24px }
  .section { padding: 72px 24px }
  .page-hero { padding: 120px 24px 60px }
  .cta-section { padding: 64px 24px }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark); flex-direction: column;
    justify-content: center; align-items: center; gap: 24px;
  }
  .nav-links.open { display: flex }
  .nav-links .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; padding: 0 0 0 20px; background: transparent; min-width: 0;
  }
  .menu-toggle { display: block }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center }
}
