/* novaclaw.app — noble-purple + gold, matching the app's v2 tokens (packages/app/src/index.css) */

:root {
  --bg-deep: #160f30;
  --bg-base: #201748;
  --bg-l1: #281d57;
  --bg-l2: #322568;
  --bg-l3: #3d2e7b;
  --text: #f3eeff;
  --text-muted: #bcaee0;
  --text-faint: #8b7db0;
  --gold: #f2c94c;
  --gold-hover: #f8d978;
  --accent-solid: #e7b62f;
  --accent-gradient: linear-gradient(155deg, #f4d06a, #e7b62f 55%, #c99a2e);
  --border-muted: rgba(181, 158, 255, 0.08);
  --border-base: rgba(181, 158, 255, 0.15);
  --border-strong: rgba(181, 158, 255, 0.26);
  --ink: #140c27;
  --ok: #6fe39a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 75% -100px, rgba(74, 56, 144, 0.55), transparent 65%),
    radial-gradient(900px 500px at 10% 30%, rgba(50, 37, 104, 0.5), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  background: rgba(20, 12, 39, 0.55);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

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

/* ------------------------------ nav ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem clamp(1rem, 5vw, 3rem);
  background: rgba(22, 15, 48, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-muted);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
}
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; gap: clamp(0.8rem, 3vw, 2rem); }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); }

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vh, 5.5rem) 1.2rem 3.5rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 320px at 50% 200px, rgba(231, 182, 47, 0.10), transparent 70%);
}
.hero-logo {
  width: clamp(120px, 20vw, 172px); height: auto;
  filter: drop-shadow(0 12px 40px rgba(122, 92, 255, 0.35));
}
.hero-eyebrow {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero h1 {
  margin: 0.5rem auto 1rem;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.gold {
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 46rem; margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-note { margin-top: 0.9rem; color: var(--text-faint); font-size: 0.88rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--accent-gradient);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(231, 182, 47, 0.28);
}
.btn-gold:hover { color: var(--ink); box-shadow: 0 8px 30px rgba(231, 182, 47, 0.42); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(40, 29, 87, 0.6);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ------------------------------ app mock ------------------------------ */
.appmock {
  max-width: 46rem;
  margin: 3rem auto 0;
  border-radius: 16px;
  border: 1px solid var(--border-base);
  background: rgba(32, 23, 72, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(10, 5, 30, 0.6);
  overflow: hidden;
  text-align: left;
}
.appmock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-muted);
  background: rgba(22, 15, 48, 0.6);
}
.appmock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-l3); }
.appmock-bar i:first-child { background: #a98ef0; }
.appmock-bar b { margin-left: 0.6rem; font-size: 0.8rem; color: var(--text-faint); font-weight: 600; }
.appmock-body { display: flex; min-height: 240px; }
.appmock-side {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0.8rem; border-right: 1px solid var(--border-muted);
  min-width: 8.5rem;
}
.tile {
  padding: 0.45rem 0.7rem; border-radius: 9px;
  font-size: 0.82rem; color: var(--text-muted);
  background: rgba(40, 29, 87, 0.55);
  border: 1px solid var(--border-muted);
  white-space: nowrap;
}
.tile-gold {
  background: var(--accent-gradient);
  color: var(--ink); font-weight: 700;
  border-color: transparent;
}
.appmock-chat { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.msg {
  border-radius: 12px; padding: 0.7rem 0.95rem;
  font-size: 0.88rem; max-width: 92%;
  border: 1px solid var(--border-muted);
}
.msg-user { align-self: flex-end; background: var(--bg-l3); }
.msg-agent { align-self: flex-start; background: rgba(22, 15, 48, 0.7); color: var(--text-muted); }
.msg-agent b { display: block; color: var(--text-faint); font-size: 0.72rem; margin-bottom: 0.35rem; letter-spacing: 0.04em; }
.msg .ok { color: var(--ok); }
.msg .run { color: var(--gold); }

/* ------------------------------ sections ------------------------------ */
.section { max-width: 68rem; margin: 0 auto; padding: 3.5rem clamp(1rem, 4vw, 2rem); }
.section-tight { padding-top: 1rem; }
.section h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
.diamond { color: var(--accent-solid); font-size: 0.8em; margin-right: 0.35rem; }
.section-sub { color: var(--text-muted); max-width: 56rem; margin-bottom: 1.6rem; }

.grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 1.6rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.card {
  background: rgba(40, 29, 87, 0.45);
  border: 1px solid var(--border-base);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ------------------------------ table ------------------------------ */
.tablewrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border-base); }
table { width: 100%; border-collapse: collapse; background: rgba(32, 23, 72, 0.5); min-width: 42rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; font-size: 0.94rem; }
thead th {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-strong);
}
tbody td { border-bottom: 1px solid var(--border-muted); color: var(--text-muted); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.us { color: var(--gold) !important; }
td.us { color: var(--text) !important; background: rgba(231, 182, 47, 0.05); }
thead .us { color: var(--gold) !important; }

/* ------------------------------ downloads ------------------------------ */
.card-dl .btn { margin: 0.6rem 0 1rem; word-break: break-all; }
.dl-meta { color: var(--text-faint) !important; font-size: 0.85rem !important; margin-bottom: 0.3rem; }
.dl-steps { margin: 0.4rem 0 1rem 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.dl-steps li { margin-bottom: 0.35rem; }
.hash { font-size: 0.78rem !important; color: var(--text-faint) !important; word-break: break-all; }
.hash code { font-size: 0.95em; }
.dl-note { margin-top: 1.4rem; color: var(--text-faint); font-size: 0.9rem; }

/* ------------------------------ footer ------------------------------ */
.footer {
  border-top: 1px solid var(--border-muted);
  margin-top: 2rem;
  padding: 2.2rem clamp(1rem, 4vw, 2rem) 2.8rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}
.footer p { max-width: 52rem; margin: 0.35rem auto; }
.footer-fine { font-size: 0.8rem; margin-top: 0.9rem; }

/* ------------------------------ small screens ------------------------------ */
@media (max-width: 640px) {
  .appmock-side { display: none; }
  .nav-links a[href="#source"] { display: none; }
}
