/* Shared styles for project demo intro pages.
   Override --accent / --accent-soft per page to theme. */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0e1116;
  --bg-soft: #141821;
  --bg-card: #181d27;
  --line: #232a36;
  --line-soft: #1c222d;
  --text: #e8ebf0;
  --text-dim: #aab2c0;
  --text-mute: #6b7585;
  --accent: #56c785;
  --accent-soft: rgba(86, 199, 133, 0.12);
  --accent-border: rgba(86, 199, 133, 0.3);
  --gold: #f5b454;
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 700px 500px at 80% 90%, rgba(245, 180, 84, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.back:hover { color: var(--text); }
.crumb {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.hero { margin-bottom: 56px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 0 24px;
  line-height: 1.65;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.tag.accent { color: var(--accent); border-color: var(--accent-border); }

.section-head { margin-bottom: 24px; }
.section-head h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.try-list {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .try-list { grid-template-columns: 1fr; } }
.try-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.try-list .num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.try-list .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.try-list .sub {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
}

.enter-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) {
  .enter-card { grid-template-columns: 1fr; }
}
.enter-card h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.creds {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.creds .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.creds .key { color: var(--text-mute); }
.creds .val { color: var(--text); }
.creds .copyable {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
  user-select: all;
}
.creds .copyable:hover { border-color: var(--accent); }
.creds .row + .row { margin-top: 0; }

.creds-block + .creds-block { margin-top: 12px; }

.enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #0a1410;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: filter 0.15s, transform 0.15s;
  white-space: nowrap;
}
.enter-btn:hover { filter: brightness(1.08); }
.enter-btn:active { transform: translateY(1px); }
.enter-btn .arrow { font-size: 17px; line-height: 1; }

.note {
  margin-top: 40px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.65;
}
.note strong { color: var(--text-dim); font-weight: 500; }
.note a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent-border); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
