/* Gravitron Data — portal styles.
   Single stylesheet, no framework, no external fonts: the box serves this
   itself and a marketing page should not need a build step. */

:root {
  --bg: #0b0d12;
  --bg-2: #11141c;
  --panel: #141824;
  --line: #232838;
  --fg: #e8ecf5;
  --muted: #8b94ab;
  --accent: #5b8cff;
  --accent-2: #7de3c0;
  --danger: #ff6b6b;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.1rem; }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 5rem; }
section { margin: 4rem 0; }

/* --- header / footer --- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: var(--max); margin: 0 auto; padding: 1.25rem;
}
.brand { color: var(--fg); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--accent); margin-right: .3rem; }
.brand .thin { color: var(--muted); font-weight: 500; }
header.site nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
header.site nav a { color: var(--muted); font-size: .95rem; }
header.site nav a:hover { color: var(--fg); text-decoration: none; }
/* The nav link rule is more specific than .btn, so the CTA in the header would
   otherwise inherit the muted grey and read as disabled. */
header.site nav a.btn { color: #fff; }
header.site nav a.btn:hover { color: #fff; }

footer.site {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  max-width: var(--max); margin: 4rem auto 0; padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--line);
}
footer.site h4 { color: var(--muted); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .8rem; }
footer.site a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: .45rem; }
footer.site a:hover { color: var(--fg); text-decoration: none; }
.soon { font-size: .7rem; color: var(--accent-2); border: 1px solid var(--line);
  padding: 0 .35rem; border-radius: 4px; }

/* --- hero --- */
.hero { text-align: center; padding: 3rem 0 1rem; }
.eyebrow { color: var(--accent-2); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 600; margin: 0 0 1rem; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin: 0 auto 1.5rem; }
.hero .cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 .75rem; }

/* --- buttons --- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .7rem 1.35rem; border-radius: 8px; border: 0; cursor: pointer;
  font-size: .97rem; font-weight: 600; font-family: inherit;
}
.btn:hover { background: #4a7bf0; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }
.btn.small { padding: .45rem .9rem; font-size: .88rem; }
.btn.wide { width: 100%; margin-top: .5rem; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer;
  font: inherit; font-size: .95rem; padding: 0; }
button.link:hover { color: var(--fg); }
button.link.danger:hover { color: var(--danger); }
form.inline { display: inline; }

/* --- code --- */
pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; overflow-x: auto; margin: 0;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
p code, td code, li code { background: var(--bg-2); border: 1px solid var(--line);
  padding: .1rem .35rem; border-radius: 5px; font-size: .85rem; }

/* --- demo --- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.demo h3 { color: var(--muted); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .6rem; }

/* --- cards --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem; color: var(--fg);
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card.live { border-color: #24406e; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card p { color: var(--muted); font-size: .93rem; }
.more { color: var(--accent); font-size: .9rem; font-weight: 600; }
.feature { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem; }
.feature p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }

.pill { font-size: .72rem; color: var(--muted); border: 1px solid var(--line);
  padding: .15rem .5rem; border-radius: 20px; white-space: nowrap; }
.pill.on { color: var(--accent-2); border-color: #2a5a4a; }

/* --- pricing --- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.1rem; }
.tier { position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; }
.tier.featured { border-color: var(--accent); }
.ribbon { position: absolute; top: -10px; right: 1rem; background: var(--accent);
  color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 20px; }
.tier .price { font-size: 2.1rem; font-weight: 700; margin: .3rem 0 0; letter-spacing: -0.03em; }
.tier .credits { color: var(--accent-2); font-size: .92rem; margin: 0 0 1rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.35rem; }
.tier li { color: var(--muted); font-size: .9rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.tier li:last-child { border: 0; }
.tiers.compact .tier { padding: 1.1rem; }

/* --- tables --- */
table.data { width: 100%; border-collapse: collapse; font-size: .92rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th { text-align: left; background: var(--bg-2); color: var(--muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
table.data td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
tr.muted td { opacity: .45; }
.pos { color: var(--accent-2); } .neg { color: var(--muted); }

/* --- forms --- */
input[type=email], input[type=password], input[type=text] {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: .65rem .8rem; color: var(--fg); font: inherit; font-size: .95rem; width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label { display: block; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
label input { margin-top: .35rem; }
.hint { display: block; margin-top: .3rem; font-size: .8rem; color: var(--muted); }
form.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
form.row input { width: auto; flex: 1 1 220px; }

.auth { max-width: 380px; margin: 3rem auto; }
.section-head { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }

/* --- dashboard --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem; }
.stat .label { display: block; color: var(--muted); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .07em; }
.stat .value { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.stat .value.small-v { font-size: .95rem; font-weight: 500; word-break: break-all; }

.keybox { background: var(--panel); border: 1px solid var(--accent-2);
  border-radius: var(--radius); padding: 1.35rem; margin: 2rem 0; }
pre.key { background: var(--bg); margin-top: .6rem; }
pre.key code { color: var(--accent-2); word-break: break-all; white-space: pre-wrap; }

/* --- notices --- */
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: .8rem 1rem; font-size: .93rem; }
.notice.ok { border-left-color: var(--accent-2); }
.notice.bad { border-left-color: var(--danger); }
.callout { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { color: var(--muted); padding: .4rem 0 .4rem 1.6rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

.page-head { text-align: center; margin: 2.5rem 0 3rem; }
.closer { text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3rem 1.5rem; }
.waitlist { max-width: 560px; margin: 0 auto; text-align: center; }
.waitlist form.row { justify-content: center; margin: 1.5rem 0; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 2.5rem; }

@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; }
  footer.site { grid-template-columns: 1fr; gap: 1.5rem; }
  header.site { flex-direction: column; align-items: flex-start; }
}
