/* StajNano site: one stylesheet, no external fonts, no scripts, no trackers. */

:root {
  --bg: #000;
  --panel: #141416;
  --panel-2: #1c1c20;
  --line: #2a2a30;
  --text: #e7e9ec;
  --muted: #9aa0a6;
  --yellow: #fdd238;
  --violet: #6a54fe;
  --blue: #1a66ff;
  --green: #3ddc84;
  --radius: 10px;
  --head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: #000; position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }

.wordmark { font-family: var(--head); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em; color: #fff; text-decoration: none; line-height: 1; }
.wordmark .nano { color: var(--yellow); }

.site-nav { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }

/* ---------- layout ---------- */

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
main.narrow { max-width: 780px; }
section { padding: 44px 0 8px; }
.lead { font-size: 1.15rem; color: #cfd3d8; max-width: 46rem; }
.meta { color: var(--muted); font-size: .92rem; }

.hero { padding: 40px 0 8px; display: grid; gap: 28px; }
.hero h1 .nano { color: var(--yellow); }
.hero-copy .lead { margin-bottom: 1.2em; }
.hero-shot { margin: 0; }

.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 12px 22px; border-radius: 6px; background: var(--yellow); color: #111; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.button:hover { background: #fff; color: #111; }
.button.ghost { background: transparent; color: #fff; border: 2px solid var(--line); }
.button.ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-family: var(--head); font-weight: 800; letter-spacing: .08em; font-size: .85rem; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; color: #111; background: var(--yellow); }
.card .tag.violet { background: var(--violet); color: #fff; }
.card .tag.green { background: var(--green); }
.card .tag.blue { background: var(--blue); color: #fff; }
.card .tag.white { background: #fff; }

.gallery { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.store { display: flex; flex-wrap: wrap; gap: 16px; }
.store .card { flex: 1 1 260px; }
.soon { display: inline-block; margin-top: 4px; padding: 4px 12px; border: 1px dashed var(--muted); border-radius: 999px; color: var(--muted); font-size: .9rem; }

.notice { background: var(--panel-2); border-left: 4px solid var(--yellow); border-radius: 6px; padding: 14px 18px; margin: 20px 0; color: #cfd3d8; }

/* ---------- Song mode, the spotlight of the home page ---------- */

.spotlight { margin-top: 56px; padding: 30px 20px 26px; border: 1px solid #1d3a7a; border-radius: 16px;
  background: radial-gradient(900px 360px at 90% -10%, rgba(26, 102, 255, .26), transparent 60%), #05070d; }
.spotlight h2 { margin-bottom: .35em; }
.pill { display: inline-block; font-family: var(--head); font-weight: 800; letter-spacing: .14em; font-size: .95rem; color: #fff;
  background: var(--blue); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.spot-grid { display: grid; gap: 26px; margin: 26px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 36px; color: #cfd3d8; }
.checks li::before { content: "\266A"; position: absolute; left: 0; top: -4px; font-size: 1.7rem; color: #4d8dff; }
.checks strong { display: block; color: #fff; font-family: var(--head); font-size: 1.2rem; letter-spacing: .02em; }
.origin { margin: 0 0 26px; padding: 16px 20px; border-left: 4px solid var(--blue); background: rgba(26, 102, 255, .1); border-radius: 6px; }
.origin h3 { margin-bottom: .2em; color: #fff; }
.origin p { margin: 0; color: #cfd3d8; }
.gallery.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (min-width: 900px) {
  .spotlight { padding: 46px 42px 38px; }
  .spot-grid { grid-template-columns: 7fr 5fr; align-items: center; }
}

/* ---------- the foot controller: the four buttons ---------- */

.choc { margin: 26px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.choc h3 { margin-bottom: .2em; }
.choc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 16px 0 12px; }
.choc-btn { background: #0b0b0d; border: 2px solid var(--line); border-radius: 14px; padding: 12px 6px 10px; text-align: center; }
.choc-btn b { display: block; font-family: var(--head); font-size: 2.3rem; line-height: 1; color: #fff; margin-bottom: 6px; }
.choc-btn span { display: block; font-size: .82rem; line-height: 1.25; color: var(--muted); }
.choc-btn .hold { margin-top: 6px; color: var(--yellow); font-weight: 700; }

/* ---------- family apps ---------- */

.family { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.card:hover, a.card:focus-visible { border-color: var(--yellow); background: var(--panel-2); }
a.card h3 { color: #fff; }
.more { display: inline-block; margin-top: 6px; color: var(--yellow); font-weight: 700; }

/* ---------- text pages ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 54px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 6px; background: var(--yellow); color: #111; font-family: var(--head); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }
.steps strong { color: #fff; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .98rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); letter-spacing: .05em; color: var(--yellow); font-size: .95rem; text-transform: uppercase; }
td:first-child { white-space: nowrap; font-weight: 700; color: #fff; }
.table-wrap { overflow-x: auto; }

code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .92em; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--line); }
details > :not(summary) { margin-left: 18px; margin-right: 18px; }
details > p:first-of-type { margin-top: 14px; }
details > :last-child { margin-bottom: 16px; }

ul.clean { padding-left: 1.2em; margin: 0 0 1em; }
ul.clean li { margin-bottom: .35em; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 16px 40px; color: var(--muted); font-size: .92rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 10px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: #fff; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 7fr; align-items: center; gap: 40px; padding-top: 60px; }
  section { padding-top: 64px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { margin-left: 0; }
  .steps li { padding-left: 48px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
