/* Mira Forge — hand-written, no frameworks, no external requests. */
:root {
  color-scheme: dark light;
  --bg: #121019;
  --bg-2: #1a1724;
  --card: #1f1b2b;
  --line: #2f2a3f;
  --text: #ece8f4;
  --muted: #a9a3b8;
  --gold: #ffc46b;
  --ember: #ff8a4c;
  --violet: #a78bfa;
  --violet-strong: #8b6cf6;
  --ok: #7ee2a8;
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f4;
    --bg-2: #f2eee6;
    --card: #ffffff;
    --line: #e4ded2;
    --text: #1d1a24;
    --muted: #5f5869;
    --gold: #b86e00;
    --ember: #c4501a;
    --violet: #6d4ee0;
    --violet-strong: #6d4ee0;
    --ok: #1f8a4c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1b1826; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.eyebrow { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .8em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-art { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / .35); background: #f6f6f6; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet-strong); color: #fff; }
.btn-primary:hover { background: #7a59f0; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.tag { display: inline-block; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-soon { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.tool { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .12s ease, transform .12s ease; }
.tool:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.tool img { image-rendering: pixelated; aspect-ratio: 630 / 500; width: 100%; background: #121019; }
.tool span { display: block; padding: 12px 14px 14px; font-size: .92rem; color: var(--muted); }
.tool strong { display: block; color: var(--text); font-size: 1rem; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin: .45em 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin: .5em 0; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-2); }
td.c, th.c { text-align: center; width: 110px; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price .amt { font-size: 2.4rem; font-weight: 750; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-size: 1rem; font-weight: 500; }
.price.featured { border-color: var(--violet-strong); box-shadow: 0 0 0 1px var(--violet-strong); }
.price .badge { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border-radius: 999px; background: var(--violet-strong); color: var(--bg); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.notice { border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 8%, var(--card)); border-radius: var(--radius); padding: 16px 18px; max-width: 760px; }
.notice p:last-child { margin-bottom: 0; }

/* Figures */
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.shot { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #f6f6f6; }

/* Code sample */
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: .88rem/1.55 var(--mono); margin: 0 0 1em; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
.updated { color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 48px; font-size: .93rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35em 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid, .product, .grid-2, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 48px; }
  section { padding: 48px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .prices { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }
  th, td { padding: 10px 12px; }
  td.c, th.c { width: 64px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-grid > *, .product > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
