/* ==========================================================================
   Everyway Panel — shared site stylesheet
   Used by index.html (showcase) and guide.html (user guide) so the two pages
   can be linked into one product website later.

   Palette is the app's own JARVIS theme (SidePanel/themes/jarvis.json):
   amber #ffb648 + arc-cyan #46e0ff on near-black.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* --- brand palette (from themes/jarvis.json) --- */
  --bg:          #05070a;
  --panel:       #10151e;
  --surface:     #181f2b;
  --surface-hi:  #1f2735;
  --accent:      #ffb648;
  --accent-2:    #46e0ff;
  --text:        #e9eef6;
  --muted:       #8597ab;
  --border:      #4a3a22;
  --border-soft: #1c222c;
  --on-accent:   #0c1016;

  --ok:   #4cc98a;
  --warn: #e8b45a;

  /* --- type --- */
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "SF Mono", ui-monospace, monospace;

  /* --- rhythm --- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* a soft brand glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 34rem at 78% -8%, rgba(255, 182, 72, .10), transparent 60%),
    radial-gradient(46rem 30rem at 6% 12%, rgba(70, 224, 255, .07), transparent 62%);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

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

h1, h2, h3, h4 { line-height: 1.22; margin: 0; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p  { margin: .7em 0; }

.lede  { font-size: clamp(1.02rem, 2.1vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.amber { color: var(--accent); }
.cyan  { color: var(--accent-2); }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: #0d1117;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent-2);
}

pre {
  font-family: var(--mono);
  font-size: .85rem;
  background: #0d1117;
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 14px 16px;
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; color: var(--text); }

/* ---------- shared header / nav ---------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 10, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-head .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(145deg, var(--accent), #ff8f2e);
  box-shadow: 0 0 0 1px rgba(255, 182, 72, .35), 0 0 16px rgba(255, 182, 72, .28);
  position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; right: 4px; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px; background: var(--on-accent); opacity: .55;
}
.site-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); font-size: .9rem; padding: 6px 11px; border-radius: 999px;
  border: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav a.here { color: var(--accent); border-color: var(--border); }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 620; font-size: .95rem; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(145deg, var(--accent), #f59b2c);
  color: var(--on-accent);
  box-shadow: 0 6px 22px rgba(255, 182, 72, .26);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 182, 72, .36); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hi); }

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

.card {
  background: linear-gradient(180deg, var(--surface), var(--panel));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px;
}
.card h3 { margin-bottom: 6px; }
.card p  { margin: 0; color: var(--muted); font-size: .95rem; }

.pill {
  display: inline-block; font-size: .72rem; letter-spacing: .10em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; font-weight: 640;
}

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

section { padding: 86px 0; scroll-margin-top: 72px; }
.sec-head { max-width: 60ch; margin-bottom: 34px; }
.sec-head h2 { margin-bottom: 10px; }

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

.site-foot {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: .9rem;
}
.site-foot .bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-foot .bar .spacer { margin-left: auto; }

/* ---------- scroll-reveal (progressive: visible if JS never runs) ------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- pre-launch notice strip (index + guide) --------------------- */
.notice {
  background: linear-gradient(90deg, rgba(255,182,72,.12), rgba(255,182,72,.05) 60%, transparent);
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.notice .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 11px 22px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.notice b { color: var(--accent); font-weight: 660; }
.notice .rest { color: var(--muted); }
.notice a { white-space: nowrap; }
.notice .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(255,182,72,.55); animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(255,182,72,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,182,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,182,72,0); }
}
