/* Sconce — sconce.io. Tokens and rules: site/docs/style-guide.md */

:root {
  --bg: #100F0D;
  --surface: #1A1815;
  --surface-raised: #221F1B;
  --hairline: rgb(255 255 255 / 0.08);
  --text: #F2EFE9;
  --text-dim: #9A948A;
  --amber: #E8A33D;
  --status-approval: #FF5C5C;
  --status-input: #FFC94D;
  --status-working: #4D9FFF;
  --status-idle: rgb(138 138 138 / 0.45);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-s: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 980px; margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }

.mono { font-family: var(--mono); font-size: 0.9em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* ---------- status dots (product semantics — see style guide) ---------- */

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  flex: none;
}
.dot-approval { background: var(--status-approval); }
.dot-input    { background: var(--status-input); }
.dot-working  { background: var(--status-working); }
.dot-idle     { background: var(--status-idle); }

/* signature animation: the needs-approval breathe */
.pulse { animation: breathe 2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 92 92 / 0.45); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px rgb(255 92 92 / 0);  transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

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

.top {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  width: 28px; height: 28px;
  display: block;
  margin: -3px 0;   /* glow padding in the SVG canvas — keep header height tight */
}

/* the page's logo statement: big torch above the headline */
.hero-mark {
  width: 128px; height: 128px;
  display: block;
  margin: 24px 0 8px -30px;   /* clear air below the header; -30px optically left-aligns the torch past its canvas padding */
}
.top-link { color: var(--text-dim); font-size: 14px; }
.top-link:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 72px 0 96px;
}
.hero-copy { flex: 1 1 0; }
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 18px; }
.sub { color: var(--text-dim); font-size: 17px; max-width: 44ch; margin-bottom: 28px; }

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { color: var(--text-dim); font-size: 13px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--amber);
  color: #1A1409;
  box-shadow: 0 0 24px 0 rgb(232 163 61 / 0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 36px 4px rgb(232 163 61 / 0.4);
  transform: translateY(-1px);
}

/* ---------- the panel mockup ---------- */

.hero-art {
  flex: 0 0 360px;
  position: relative;
  display: flex;
  justify-content: center;
}
/* the sconce: one warm light, upper and off-center */
.glow {
  position: absolute;
  width: 420px; height: 420px;
  top: -120px; left: 50%;
  transform: translateX(-46%);
  background: radial-gradient(circle, rgb(232 163 61 / 0.18) 0%, rgb(232 163 61 / 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.panel {
  position: relative;
  width: 320px;
  background: rgb(26 24 21 / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.5);
  padding: 10px 0 6px;
}

.panel-summary {
  display: flex;
  gap: 14px;
  padding: 2px 14px 10px;
  border-bottom: 1px solid var(--hairline);
}
.sum {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}
.sum .dot { width: 6px; height: 6px; }

.panel-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 6px;
  margin: 2px 6px;
}
.panel-row:hover { background: rgb(255 255 255 / 0.05); }
.row-hot { background: rgb(255 92 92 / 0.07); }

.proj { font-size: 13px; font-weight: 500; }
.tty {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-left: auto;
}
.state {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  width: 58px;
  text-align: right;
}
.state-approval { color: var(--status-approval); }

/* ---------- how it works ---------- */

.how { padding: 48px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 48px 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
}
.feature h4 { font-size: 14.5px; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 13.5px; }

/* ---------- install ---------- */

.install { padding: 72px 0; text-align: center; }
.install h2 { font-size: 30px; margin-bottom: 28px; }
.install .cta-row { justify-content: center; }
.install-note { color: var(--text-dim); font-size: 14.5px; margin-top: 20px; }
.install-bridge {
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 52ch;
  margin: 10px auto 0;
}

/* ---------- faq ---------- */

.faq { padding: 24px 0 72px; max-width: 640px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-dim);
  font-family: var(--mono);
  transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); font-size: 14.5px; padding-top: 10px; max-width: 56ch; }

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

footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.dots-divider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.dots-divider .dot { width: 6px; height: 6px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

/* ---------- small screens ---------- */

@media (max-width: 800px) {
  .hero { flex-direction: column; padding: 40px 0 64px; gap: 48px; }
  .hero h1 { font-size: 32px; }
  .hero-art { flex: none; }
  .steps, .features { grid-template-columns: 1fr; }
}
