/* ─────────────────────────────────────────────────────────────
   mulu-light.css  —  Mulu Code light design system
   Inter Display / Monochrome / Sharp corners
   Used by all Mulu Code landing pages (Code product, not Sites)
───────────────────────────────────────────────────────────── */

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

/* ── TOKENS ── */
:root {
  --tx:   lab(2.75381 0 0);          /* near-black text */
  --tx2:  lab(48.496 0 0);           /* secondary text */
  --tx3:  #94a3b8;                   /* muted text */
  --bg:   #ffffff;
  --bg2:  #fafafa;                   /* off-white sections */
  --bd:   rgba(15,23,42,0.07);       /* ultra-thin border */
  --bd2:  rgba(15,23,42,0.12);       /* slightly stronger border */
  --w:    1160px;                    /* max content width */
}

/* ── BASE ── */
html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { line-height: 26px; font-size: 16px; font-weight: 400; }

/* ── HEADINGS ── */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-style: normal;
  color: lab(2.75381 0 0);
  letter-spacing: -0.025em;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── LAYOUT ── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--bd);
}
.nav-out {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
}
.nav-bar { display: flex; align-items: center; flex: 1; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tx);
  margin-right: 28px;
  flex-shrink: 0;
}
.nav-logo img { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; }
.nav-links li button,
.nav-links li > a {
  display: flex;
  align-items: center;
  padding: 7px 11px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--tx2);
  background: none;
  border: none;
  gap: 3px;
  white-space: nowrap;
}
.nav-links li button:hover,
.nav-links li > a:hover { color: var(--tx); }
.nav-links .chevron { font-size: 0.65rem; }
.has-drop { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 180px;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tx2);
}
.dropdown a:hover { color: var(--tx); background: var(--bg2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { font-size: 0.83rem; font-weight: 500; color: var(--tx2); padding: 6px 10px; }
.nav-link:hover { color: var(--tx); }
.nav-cta {
  font-size: 0.83rem;
  font-weight: 600;
  padding: 7px 14px;
  background: var(--tx);
  color: #fff;
  border-radius: 4px;
}
.nav-cta:hover { background: #1e293b; }

/* Shared code-marketing navbar */
nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 4px 20px rgba(15,23,42,0.04);
}
.nav-outer {
  max-width: calc(var(--w) + 56px);
  margin: 0 auto;
  padding: 0 28px;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.nav-outer > .nav-logo {
  grid-column: 1;
  justify-self: start;
  margin-right: 0;
  gap: 9px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--tx);
}
.nav-outer > .nav-logo img {
  width: 24px;
  height: 24px;
}
.nav-outer > .nav-links {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.nav-outer > .nav-links > li { display: flex; }
.nav-outer > .nav-links > li > a,
.nav-outer > .nav-links > li > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--tx2);
  background: none;
  transition: color 0.12s ease;
}
.nav-outer > .nav-links > li > button:hover,
.nav-outer > .nav-links > li > a:hover {
  color: var(--tx);
  background: none;
  border-color: transparent;
}
.nav-outer > .nav-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  flex-shrink: 0;
}
.nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--tx2);
  background: transparent;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 6px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.nav-signin:hover {
  color: var(--tx);
  background: #f8fafc;
  border-color: rgba(15,23,42,0.2);
}
.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  background: #0f172a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid #0f172a;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.18), 0 2px 10px rgba(15,23,42,0.1);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.nav-download:hover {
  background: #1e293b;
  box-shadow: 0 2px 6px rgba(15,23,42,0.25), 0 4px 16px rgba(15,23,42,0.12);
}

.dropdown-wrap { position: relative; }
.dropdown-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.4;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.dropdown-wrap:hover .dropdown-chevron,
.dropdown-wrap:focus-within .dropdown-chevron {
  opacity: 0.7;
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 250;
}
.dropdown-wrap:hover .dropdown-menu,
.dropdown-wrap:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-menu-right {
  left: 50%;
  right: auto;
}
.dropdown-panel {
  width: min(580px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid rgba(15,23,42,0.09);
  border-top: 2px solid #0f172a;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.1), 0 4px 16px rgba(15,23,42,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.dropdown-panel-sm {
  width: min(340px, calc(100vw - 48px));
  grid-template-columns: 1fr;
}
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 18px;
  min-width: 0;
  border-bottom: 1px solid var(--bd);
  color: var(--tx2);
  transition: background 0.1s ease;
}
.dropdown-item .di-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--tx3);
  margin-top: 3px;
  transition: color 0.12s ease;
}
.dropdown-item:hover .di-icon {
  color: var(--tx);
}
.dropdown-item > div {
  min-width: 0;
}
.dropdown-panel > .dropdown-item:nth-child(odd) {
  border-right: 1px solid var(--bd);
}
.dropdown-panel-sm > .dropdown-item:nth-child(odd) {
  border-right: none;
}
.dropdown-panel > .dropdown-item:last-child:nth-child(odd) {
  border-right: none;
}
.dropdown-item:last-child,
.dropdown-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
.dropdown-item:hover {
  background: var(--bg2);
  color: var(--tx);
}
.dropdown-item:hover::before {
  border-color: var(--bd2);
  background-color: rgba(255, 255, 255, 0.96);
}
.dropdown-item strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--tx);
  margin-bottom: 3px;
}
.dropdown-item span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--tx3);
}
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 6px;
  color: var(--tx);
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.mobile-toggle:hover {
  background: var(--bg2);
  border-color: var(--bd2);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 400;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-inner {
  margin-left: auto;
  width: min(380px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.06);
  overflow-y: auto;
  padding: 18px 0 24px;
}
.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 20px 8px auto;
  background: none;
  border: 1px solid var(--bd);
  border-radius: 4px;
  color: var(--tx);
}
.mobile-menu-close:hover { background: var(--bg2); }
.mobile-section-label {
  padding: 12px 20px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx3);
}
.mobile-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tx2);
}
.mobile-menu a:hover {
  background: var(--bg2);
  color: var(--tx);
}
.mobile-divider {
  height: 1px;
  margin: 10px 20px;
  background: var(--bd);
}
.mobile-signin {
  font-weight: 600;
  color: var(--tx);
}
.mobile-primary {
  margin: 16px 20px 0;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--tx);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--tx);
  transition: background 0.15s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: #1e293b; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid rgba(15,23,42,0.12);
  color: var(--tx2);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  background: none;
  transition: border-color 0.15s, color 0.15s;
  letter-spacing: -0.01em;
}
.btn-ghost:hover { border-color: rgba(15,23,42,0.22); color: var(--tx); }

/* ── EYEBROW LABEL ── */
.eyebrow {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 18px;
}

/* ── HERO (generic centered) ── */
.hero {
  padding: 80px 0 0;
  text-align: center;
  border-bottom: 1px solid var(--bd);
}
.hero-text { max-width: 640px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero .sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--tx2);
  line-height: 26px;
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

/* App chrome (browser/app window mockup) */
.hero-img-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(15,23,42,0.07);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  overflow: hidden;
}
.app-chrome {
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chrome-dots { display: flex; gap: 5px; }
.chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bd2);
}
.chrome-title {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--tx3);
  flex: 1;
  text-align: center;
}

/* ── PLACEHOLDER IMAGE BOX ── */
.img-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--bd2);
  border-radius: 4px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--tx3);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ── FEATURE ROWS ── */
.features { padding: 80px 0; }
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--bd);
}
.feat.rev { direction: rtl; }
.feat.rev > * { direction: ltr; }
.feat-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tx3);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.feat-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.feat-text p {
  font-size: 16px;
  font-weight: 400;
  color: var(--tx2);
  line-height: 26px;
  margin-bottom: 14px;
}
.feat-text p:last-child { margin-bottom: 0; }

/* ── STATS STRIP ── */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--bd);
}
.stat-val {
  font-size: 2.2rem;
  font-weight: 300;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: lab(2.75381 0 0);
  display: block;
  letter-spacing: -0.03em;
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--tx3);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── SECTION HEADER ── */
.sec-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
  line-height: 1.15;
}
.sec-head p {
  font-size: 16px;
  font-weight: 400;
  color: var(--tx2);
  line-height: 26px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 4px;
  padding: 28px 24px;
}
.card-icon {
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: block;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card p {
  font-size: 15px;
  font-weight: 400;
  color: var(--tx2);
  line-height: 24px;
}

/* ── CTA SECTION ── */
.cta-sect {
  background: var(--bg2);
  border-top: 1px solid var(--bd);
  padding: 80px 24px;
  text-align: center;
}
.cta-sect h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
  line-height: 1.15;
}
.cta-sect p {
  font-size: 16px;
  font-weight: 400;
  color: var(--tx2);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 26px;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ── FOOTER ── */
footer { border-top: 1px solid var(--bd); padding: 40px 0 28px; }
.foot-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
.foot-brand { font-size: 0.875rem; font-weight: 700; color: var(--tx); margin-bottom: 4px; }
.foot-tag { font-size: 0.8rem; color: var(--tx3); }
.foot-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 16px;
}
.foot-links a { font-size: 0.81rem; color: var(--tx3); }
.foot-links a:hover { color: var(--tx); }
.foot-bottom {
  max-width: var(--w);
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--bd);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--tx3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    backdrop-filter: blur(10px) saturate(1.05);
  }
  .nav-outer {
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-toggle {
    display: inline-flex;
    grid-column: 2;
  }
  .hero h1 { font-size: 2.2rem; }
  .feat, .feat.rev {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  .card-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 24px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .cta-row { flex-direction: column; }
  .hero-ctas { flex-direction: column; }
}


