/* dotMux marketing site — hand-rolled, dependency-free. Dark developer aesthetic. */
:root {
  --bg: #0b0e14;
  --bg-2: #11151f;
  --panel: #151a26;
  --border: #232a3b;
  --text: #e6ebf5;
  --muted: #97a3b8;
  --faint: #6b768c;
  --accent: #1fa84a;     /* terminal green */
  --accent-2: #7fc04f;   /* dim terminal green */
  --accent-3: #34c46a;   /* brighter green (gradient pair) */
  --term-green: #1fa84a; /* classic terminal green — wordmark + icon glow */
  --radius: 14px;
  --maxw: 1080px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(11,14,20,0.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 18px; color: var(--text); flex-shrink: 0; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand .dot { color: var(--term-green); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.nav-badge img { height: 30px; }
@media (max-width: 640px) {
  .nav-links a.hide-sm { display: none; }
  .nav .wrap { padding: 0 16px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 480px) {
  .nav-links .nav-badge { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0b0e14; font-weight: 600;
  padding: 11px 18px; border-radius: 11px; font-size: 15px;
  border: 1px solid transparent; transition: transform .08s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); }
.appstore-badge { display: inline-flex; line-height: 0; transition: transform .08s ease, filter .15s ease; }
.appstore-badge img { height: 48px; width: auto; display: block; }
.appstore-badge:hover { text-decoration: none; filter: brightness(1.07); transform: translateY(-1px); }
.coming-soon-badge {
  display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box;
  height: 48px; padding: 0 18px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--panel); color: var(--text); cursor: default; user-select: none;
}
.coming-soon-badge svg { width: 20px; height: 20px; fill: currentColor; opacity: .85; }
.coming-soon-badge .cs-text { display: flex; flex-direction: column; line-height: 1.15; }
.coming-soon-badge .cs-text small { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.coming-soon-badge .cs-text strong { font-size: 16px; font-weight: 650; }
.nav-links span.nav-badge.coming-soon-badge { height: 34px; padding: 0 12px; gap: 7px; }
.nav-badge.coming-soon-badge svg { width: 15px; height: 15px; }
.nav-badge.coming-soon-badge .cs-text small { font-size: 8px; }
.nav-badge.coming-soon-badge .cs-text strong { font-size: 12px; }

/* ---- hero ---- */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(31,168,74,0.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--accent-2);
  background: rgba(31,168,74,0.10); border: 1px solid rgba(31,168,74,0.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 24px;
}
h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 20px; font-weight: 720; text-wrap: balance;
}
h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 660px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { color: var(--faint); font-size: 14px; }

/* device frame */
.shot { border-radius: 22px; border: 1px solid var(--border); background: var(--panel); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85); }
.shot.phone { border-radius: 34px; }
.hero-shot { margin: 0; width: 100%; }
.hero-shot.ipad { max-width: 560px; border-radius: 26px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: left; }
  .hero-shot.ipad { max-width: 520px; margin: 4px auto 0; }
  .lede { max-width: 600px; }
}

/* ---- sections ---- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
/* The features run sits right under "The difference" band, whose bottom border already divides it —
   drop the first feature's own top border so the two lines don't stack. */
#features + section .feature:first-child { border-top: none; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: 27px; letter-spacing: -0.01em; margin: 10px 0 14px; }
.feature-text p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.feature-text ul { margin: 0; padding: 0; list-style: none; }
.feature-text li { color: var(--muted); padding: 6px 0 6px 28px; position: relative; }
.feature-text li::before { content: "›"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .shot { max-width: 320px; }
.feature-shot .shot.wide { max-width: 560px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature-shot .shot, .feature-shot .shot.wide { max-width: 320px; }
}

/* carousel */
.carousel { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.car-viewport { position: relative; width: 100%; height: 540px; display: flex; align-items: center; justify-content: center; }
.car-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.car-slide.active { opacity: 1; visibility: visible; }
.car-slide .shot { max-width: 100%; max-height: 100%; line-height: 0; cursor: zoom-in; }
.car-slide .shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 540px; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(11,14,20,0.72); color: var(--text); font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.car-nav:hover { border-color: var(--accent); background: rgba(11,14,20,0.9); }
.car-nav.prev { left: 0; }
.car-nav.next { right: 0; }
.car-tabs { display: flex; gap: 8px; }
.car-tab { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; cursor: pointer;
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); transition: all .2s; }
.car-tab:hover { color: var(--text); }
.car-tab.active { color: #0b0e14; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(4,7,13,0.92); backdrop-filter: blur(4px); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto;
  border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 90px -20px rgba(0,0,0,0.9); }
.lightbox .lb-close { position: fixed; top: 18px; right: 22px; font-size: 34px; line-height: 1;
  color: var(--muted); background: none; border: none; cursor: pointer; }
.lightbox .lb-close:hover { color: var(--text); }
@media (max-width: 820px) { .car-viewport { height: 460px; } .car-slide .shot img { max-height: 460px; } }

/* grid cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .ic { font-family: var(--mono); color: var(--accent-2); font-size: 14px; margin-bottom: 10px; }
.card h4 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* CTA band */
.band { text-align: center; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 16px; }

/* ---- doc pages (privacy / support) ---- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 40px; margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-family: var(--mono); background: var(--panel); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; color: var(--accent-2); }
.doc .eff { color: var(--faint); font-family: var(--mono); font-size: 14px; }
.doc strong { color: var(--text); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.small { font-size: 14px; }
