/* ============================================================
   MuxDrive — Global Stylesheet
   Theme: dark navy, teal→blue gradient accent
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1220;
  --card: #131a2c;
  --card-hover: #182036;
  --border: #232b42;
  --border-soft: #1b2237;
  --teal: #2dd4a7;
  --teal-dim: #1f7a63;
  --blue: #4f7df9;
  --blue-dim: #3358c4;
  --grad: linear-gradient(135deg, var(--teal), var(--blue));
  --text: #f3f5f9;
  --text-muted: #8b93a7;
  --text-faint: #5c6478;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- focus & motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span.tag {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  margin-left: 2px;
}
.logo b { color: var(--text); }
.logo .accent { color: var(--teal); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.main-nav { display: none; }
}

/* ---------- footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 96px;
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
footer h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a:hover { color: var(--teal); }
footer .footer-desc { color: var(--text-muted); font-size: 14px; max-width: 300px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}
@media (max-width: 720px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- eyebrow / badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(45, 212, 167, 0.08);
  border: 1px solid rgba(45, 212, 167, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 46px; line-height: 1.12; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 21px; line-height: 1.3; }
p { color: var(--text-muted); margin: 0; }
.lede { font-size: 18px; color: var(--text-muted); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79, 125, 249, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -6px rgba(79, 125, 249, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sub { font-size: 13.5px; color: var(--text-faint); margin-left: 4px; }

/* ---------- ad slot (policy-compliant placeholder) ---------- */
.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: none; /* hidden until AdSense is approved & a real unit is pasted in */
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  margin: 32px 0;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

section.block { padding: 72px 0; }
section.block.tight { padding: 48px 0; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.dial {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 10px solid var(--border-soft);
  border-top-color: var(--teal);
  border-right-color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  transform: rotate(-45deg);
}
.dial .dial-inner { transform: rotate(45deg); text-align: center; }
.dial .pct { font-size: 40px; font-weight: 800; }
.dial .pct span { font-size: 18px; color: var(--teal); }
.dial .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}
.faq-item h3 { margin-bottom: 8px; font-size: 17px; }
.faq-item p { font-size: 15px; }

/* ---------- steps ---------- */
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 13.5px; color: var(--text-faint); margin-bottom: 20px; }
.crumbs a:hover { color: var(--teal); }

/* ---------- article ---------- */
.article-hero { padding: 48px 0 16px; }
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-faint);
  font-size: 13.5px;
  font-family: var(--font-mono);
  margin-top: 14px;
}
.tag-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--blue);
  background: rgba(79, 125, 249, 0.1);
  border: 1px solid rgba(79, 125, 249, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}
.prose { font-size: 16.5px; color: #cfd4e0; max-width: 760px; }
.prose h2 { color: var(--text); font-size: 25px; margin-top: 44px; margin-bottom: 14px; }
.prose h3 { color: var(--text); font-size: 19px; margin-top: 30px; margin-bottom: 10px; }
.prose p { color: #cfd4e0; margin-bottom: 18px; font-size: 16.5px; }
.prose ul, .prose ol { color: #cfd4e0; padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--card); color: var(--text); }
.prose strong { color: var(--text); }
.callout {
  border-left: 3px solid var(--teal);
  background: var(--card);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
  font-size: 15px;
  color: #cfd4e0;
}

/* ---------- blog list ---------- */
.post-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.post-card .tag-pill { margin-bottom: 14px; display: inline-block; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { font-size: 14.5px; }
.post-card .meta { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* ---------- contact ---------- */
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--teal); }

/* ---------- legal ---------- */
.legal p, .legal li { color: #cfd4e0; font-size: 15.5px; }
.legal h2 { margin-top: 38px; margin-bottom: 12px; font-size: 22px; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 36px; font-family: var(--font-mono); }
