/* Mudbug Software — clean, minimal SaaS marketing site.
   Light by default, with a dark-mode pass via prefers-color-scheme. */

:root {
  --accent: #c0392b;
  --accent-dark: #9e2b20;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f3;
  --border: #e4e7eb;
  --text: #14171a;
  --muted: #5c6570;
  --shadow: 0 1px 2px rgba(20, 23, 26, 0.04), 0 8px 24px rgba(20, 23, 26, 0.06);
  --radius: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #e6594b;
    --accent-dark: #c0392b;
    --bg: #0e1013;
    --surface: #171a1f;
    --surface-2: #1f242b;
    --border: #262b32;
    --text: #e7e9ec;
    --muted: #9aa3ad;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 650; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface); border-color: var(--muted); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.9rem; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 800; font-family: Georgia, "Times New Roman", serif;
}
.brand-name { font-size: 1.12rem; }
.brand-soft { color: var(--muted); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 550; font-size: 0.97rem; }
.site-nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.6rem; color: var(--text); cursor: pointer; }

/* ---- sections ---- */
section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.6rem; }

.hero { padding: 5.5rem 0 4rem; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- product / feature cards ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 999px; }
.tag-live { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.tag-soon { background: var(--surface-2); color: var(--muted); }

.feature { padding: 0; background: none; border: none; box-shadow: none; }
.feature h3 { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }

/* ---- split (text + art) ---- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.art-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; display: grid; place-items: center; box-shadow: var(--shadow); }
.art-panel img { max-width: 100%; height: auto; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- contact form ---- */
.form { max-width: 34rem; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0.9rem 0 0.35rem; }
.form input, .form textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.97rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 1rem; min-height: 1.3em; font-size: 0.92rem; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: var(--accent); }
@media (prefers-color-scheme: dark) { .form-msg.ok { color: #5ddd7f; } }

/* ---- legal docs ---- */
.doc { max-width: 46rem; }
.doc h2 { margin-top: 2.25rem; }
.doc h3 { margin-top: 1.5rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.35rem; }
.notice { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.95rem; }

/* ---- footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand p { color: var(--muted); margin: 0.4rem 0 0; font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-legal { color: var(--muted); font-size: 0.82rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .split { gap: 2rem; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 0.75rem; justify-content: center; }
  section { padding: 3.25rem 0; }
}
