/* muxpad site — shared styles. Dark-first (terminal aesthetic), light-mode aware, responsive. */
:root {
  --bg: #0b0f17;
  --bg-elev: #121826;
  --bg-code: #0a0e15;
  --text: #e7ecf3;
  --text-dim: #9aa6b8;
  --border: #1f2839;
  --accent: #4fe0a6;
  --accent-2: #5cc8ff;
  --danger: #ff6b6b;
  --radius: 14px;
  --maxw: 1040px;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc; --bg-elev: #ffffff; --bg-code: #0b0f17;
    --text: #141a24; --text-dim: #5a6678; --border: #e2e8f0;
    --accent: #109c6b; --accent-2: #2a7fd0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; font-size: 0.92em;
  background: rgba(127,127,127,0.16); padding: 0.12em 0.4em; border-radius: 5px; }
pre { background: var(--bg-code); color: #dbe6d8; border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; font-size: 0.86rem; color: inherit; }
kbd { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.85em; background: var(--bg-elev); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; padding: 0.05em 0.4em; white-space: nowrap; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 16px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.lang-switch { display: flex; gap: 8px; align-items: center; border-left: 1px solid var(--border); padding-left: 14px; }
.lang-switch a { font-size: 0.9rem; color: var(--text-dim); }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* ---- Layout ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 64px; }
.page-title { font-size: 1.9rem; margin: 12px 0 6px; }
.section { margin: 40px 0; }
.section h2 { font-size: 1.35rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.section h3 { font-size: 1.05rem; margin-bottom: 4px; }
h1, h2, h3 { line-height: 1.25; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
.updated { color: var(--text-dim); font-size: 0.9rem; }

/* ---- Hero ---- */
.hero {
  text-align: center; padding: 64px 16px 40px;
  background:
    radial-gradient(900px 380px at 50% -60px, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-dim); max-width: 640px; margin: 0 auto 26px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-appstore { background: #111; color: #fff; border-color: #333; }
.btn-appstore.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); color: #05130d; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.06); }

/* ---- Feature grid ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }

/* ---- Screenshots ---- */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 16px; scroll-snap-type: x mandatory; }
.shots img { height: 460px; width: auto; border-radius: 16px; border: 1px solid var(--border); scroll-snap-align: center; }

/* ---- Callout ---- */
.callout { background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.88rem; }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 40px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .shots img { height: 380px; }
  .nav { gap: 10px; }
}
