/* =====================================================
   ROSETTA — Dark AI Product Theme
   Inspired by Ollama + LangChain aesthetics
   Grid Dynamics gold brand accent
   ===================================================== */

:root {
  --bg:         #020810;
  --bg-2:       #05111f;
  --panel:      #0a1a2e;
  --panel-2:    #0e2038;
  --text:       #eaf0f8;
  --muted:      #8ba5c0;
  --line:       rgba(255, 255, 255, 0.09);
  --brand:      #4a9eff;
  --gd-gold:    #ffc002;
  --gd-navy:    #0f2238;

  /* Font scale */
  --fs-xs: .75rem;
  --fs-sm: .84rem;
  --fs-base: .95rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.75rem;

  /* Spacing scale (8px base) */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem;
  --sp-4: 1rem;    --sp-5: 1.5rem; --sp-6: 2rem; --sp-8: 3rem;
}

* { box-sizing: border-box; }

/* ===== SMOOTH SCROLL + THEME TRANSITION ===== */
html { scroll-behavior: smooth; }
html[data-theme] { transition: background-color .35s ease, color .35s ease; }

/* ===== SKIP TO CONTENT ===== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: .6rem 1.2rem;
  background: var(--gd-gold);
  color: #09090b;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .15s;
}

.skip-to-content:focus {
  top: 0;
}

body {
  margin: 0;
  font-family: "Inter", "Fira Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--gd-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #e6a800;
  text-decoration-thickness: 2px;
}

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 7, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  display: inline-block;
  padding: .45rem .12rem;
  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;
  border-bottom: none;
  text-decoration: none;
  background-image: linear-gradient(var(--gd-gold), var(--gd-gold));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease, color .15s;
}

nav a.active,
nav a:hover {
  color: var(--text);
  background-size: 100% 2px;
  text-decoration: none;
}

nav a.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom-color: transparent;
}

nav a.github-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

nav a.discord-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  margin-left: .75rem;
  border-radius: 6px;
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #7289da;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(88, 101, 242, 0.08);
  transition: background .15s, border-color .15s, color .15s;
}

nav a.discord-link:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.7);
  color: #99aab5;
  text-decoration: none;
  border-bottom-color: rgba(88, 101, 242, 0.7);
}

nav a.discord-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

[data-theme="light"] nav a.discord-link {
  border-color: rgba(88, 101, 242, 0.3);
  color: #5865f2;
  background: rgba(88, 101, 242, 0.06);
}

[data-theme="light"] nav a.discord-link:hover {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.5);
  color: #4752c4;
}

/* ===== LAYOUT ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { line-height: 1.2; }

h1 {
  margin: .3rem 0 .75rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  color: var(--text);
  letter-spacing: -.01em;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: .9rem;
  font-size: var(--fs-lg);
  color: var(--text);
}

h3 {
  margin-top: 1.35rem;
  margin-bottom: .4rem;
  font-size: 1.1rem;
  color: var(--text);
}

.muted { color: var(--muted); }

p, li { max-width: 74ch; }

p a, li a { font-weight: 500; }

/* ===== INNER PAGE HERO ===== */
.hero {
  border: none;
  border-top: 3px solid var(--gd-gold);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 3rem 2rem;
  margin-bottom: 1.8rem;
  margin-top: 0;
  margin-left: -1.2rem;
  margin-right: -1.2rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255,192,2,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(74,158,255,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #03101f 0%, var(--bg) 100%);
}

/* ===== GRID + CARDS ===== */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  transition: border-color .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1), background .25s cubic-bezier(.22,1,.36,1), box-shadow .25s cubic-bezier(.22,1,.36,1);
}

.card:hover {
  border-color: rgba(255, 192, 2, 0.40);
  background: var(--panel-2);
  transform: translateY(-2px);
  box-shadow: 0 2px 16px rgba(255, 192, 2, 0.04);
}

.card h3 { margin: .2rem 0 .5rem; }

.card--muted { opacity: .72; }
.card--muted:hover { opacity: 1; }

.card-badge { font-size: .7rem; vertical-align: middle; opacity: .7; }

.wf-list { display: flex; flex-direction: column; gap: 1.5rem; }

.wf-list-group .try-section-label { margin-bottom: .6rem; }

.wf-list-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.wf-list-group li {
  padding-left: 1.1rem;
  position: relative;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted);
}

.wf-list-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gd-gold);
}

.wf-list-group li strong { color: var(--text); }

.wf-pro-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gd-gold);
  border: 1px solid var(--gd-gold);
  border-radius: 3px;
  padding: 0 .35em;
  vertical-align: middle;
  opacity: .85;
  margin-left: .2rem;
}

[data-theme="light"] .wf-pro-tag {
  color: var(--gd-gold-text);
  border-color: var(--gd-gold-text);
}

.card-hint {
  margin-top: .6rem;
  font-size: .78rem;
  color: var(--muted);
}
.card-hint code {
  font-size: .75rem;
  background: rgba(255,255,255,0.05);
  padding: .1rem .4rem;
  border-radius: 4px;
}
[data-theme="light"] .card-hint code { background: rgba(0,0,0,0.05); }

ul, ol { padding-left: 1.25rem; }

li::marker { color: var(--gd-gold); }

/* ===== NOTE / CALLOUT ===== */
.note {
  border-left: 2px solid rgba(255, 192, 2, 0.5);
  background: none;
  padding: .45rem 0 .45rem .9rem;
  border-radius: 0;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
a.button,
.button {
  display: inline-block;
  padding: .52rem 1.15rem;
  border-radius: 8px;
  background: var(--gd-gold);
  color: #09090b;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  letter-spacing: .01em;
  transition: filter .15s, transform .1s;
}

a.button:hover,
.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.02);
  text-decoration: none;
  color: #09090b;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: .88rem;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  transition: color .15s;
}

.footer-nav a:hover { color: var(--text); }

/* =====================================================
   HOME PAGE SECTIONS
   ===================================================== */

/* ===== DARK HERO (home) ===== */
.hero-main {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--gd-gold);
  border-radius: 0;
  padding: 5.5rem 2rem 4.5rem;
  margin-bottom: 3.5rem;
  margin-left: -1.2rem;
  margin-right: -1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255,192,2,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(74,158,255,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #03101f 0%, var(--bg) 100%);
}

/* subtle radial noise overlay */
.hero-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(74,158,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-main p { max-width: none; }

.hero-logo {
  width: clamp(260px, 38vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto 2.8rem;
  filter: drop-shadow(0 0 32px rgba(255, 192, 2, 0.30));
  position: relative;
  z-index: 1;
}

.hero-main h1 {
  color: var(--text);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin: 0 auto .8rem;
  letter-spacing: -.025em;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero-main h1.hero-headline {
  font-size: 1.6rem;
  font-weight: 700;
  max-width: 48ch;
  margin: 0 auto .5rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--gd-gold) 0%, #f7931d 50%, var(--gd-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 48ch;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero-tagline {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  max-width: 56ch;
  margin: 0 auto 2.4rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.button-ghost {
  display: inline-block;
  padding: .52rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}

.button-ghost:hover {
  border-color: var(--gd-gold);
  color: var(--gd-gold);
  text-decoration: none;
}

/* ===== SECTION WRAPPER ===== */
.section { margin-bottom: 2.2rem; }
.section + .section { border-top: 1px solid var(--line); padding-top: 2.2rem; }
.section > h2:first-child { margin-top: 0; }

/* ===== ⟩ HEADING MARKER ===== */
h2.with-marker::before {
  content: "⟩ ";
  color: var(--gd-gold);
  font-weight: 700;
}

/* ===== FEATURE CARD ICONS ===== */
.card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .5rem;
  line-height: 1;
}

/* ===== QUICK START (stepper) ===== */
.qs-panel {
  background: rgba(2,8,16,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 184, 0, .15);
  border-radius: 20px;
  padding: 2.4rem 2.2rem;
  overflow: hidden;
  box-shadow:
    0 2px 20px rgba(0, 0, 0, .25),
    0 0 40px rgba(255, 184, 0, .04);
}

.qs-panel h2.with-marker {
  color: var(--text);
  margin-top: 0;
}

.qs-panel h2.with-marker::before { color: var(--gd-gold); }

.qs-sub {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.6rem;
  max-width: none;
}

/* Stepper layout */
.qs-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qs-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.2rem;
  min-height: 0;
}

.qs-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qs-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 192, 2, 0.12);
  border: 2px solid var(--gd-gold);
  color: var(--gd-gold);
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.qs-step-num--done {
  background: var(--gd-gold);
  color: #09090b;
  font-size: 1.3rem;
  width: 2.6rem;
  height: 2.6rem;
}

.qs-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--gd-gold) 0%, rgba(255,192,2,0.15) 100%);
  margin: .3rem 0;
  min-height: 1rem;
}

.qs-step--last .qs-step-line { display: none; }

.qs-step-body {
  padding-bottom: 2rem;
  min-width: 0;
}

.qs-step--last .qs-step-body { padding-bottom: 0; }

.qs-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: .25rem 0 .3rem;
  line-height: 1.3;
}

.qs-step-desc {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 .8rem;
  max-width: 60ch;
  line-height: 1.55;
}

/* Tab strip */
.qs-tabs-scroll {
  margin: 0 0 .8rem;
}

.qs-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.qs-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: .35rem .75rem;
  border-radius: 20px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.qs-tab.active {
  background: var(--gd-gold);
  border-color: var(--gd-gold);
  color: #09090b;
  font-weight: 700;
  transform: scale(1.03);
}

.qs-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

/* OS tabs (Step 1) */
.qs-os-tabs {
  display: flex;
  gap: .3rem;
  margin-bottom: .6rem;
}

.qs-os-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: .25rem .7rem;
  border-radius: 5px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.qs-os-tab.active {
  background: rgba(255, 192, 2, 0.15);
  border-color: var(--gd-gold);
  color: var(--gd-gold);
  font-weight: 700;
}

.qs-os-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.qs-os-content { display: none; }
.qs-os-content.active { display: block; }

[data-theme="light"] .qs-os-tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .qs-os-tab.active {
  background: rgba(255, 192, 2, 0.1);
  border-color: var(--gd-gold);
  color: #92600a;
}

[data-theme="light"] .qs-os-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

/* Tab content */
.qs-content { display: none; }
.qs-content.active { display: block; }

.qs-content-hint {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 .5rem;
  line-height: 1.55;
}

.qs-content-hint code {
  font-size: .78rem;
  background: rgba(255,255,255,0.05);
  padding: .1rem .35rem;
  word-break: break-all;
  border-radius: 4px;
}

/* Code blocks */
.qs-code-wrap {
  position: relative;
  margin-bottom: .2rem;
}

.qs-code {
  background: #020810;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border-left: 2px solid rgba(255,192,2,0.3);
  padding: .85rem 3.5rem .85rem 1.2rem;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: var(--fs-sm);
  font-variant-ligatures: none;
  color: #c9d1d9;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
  margin: 0;
}

.qs-prompt  { color: var(--gd-gold); user-select: none; margin-right: .4rem; }
.qs-comment { color: #4d7a9a; }

.qs-copy {
  position: absolute;
  top: .6rem;
  right: .65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: .22rem .6rem;
  border-radius: 4px;
  font-size: .72rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.qs-copy:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

/* ===== WORKS WITH ===== */
.integrations-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.integration-tag {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .38rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}

.integration-tag:hover {
  border-color: rgba(255, 192, 2, 0.4);
  color: var(--text);
}

/* ===== ROADMAP ===== */
.rm-tabs {
  display: flex;
  gap: .5rem;
  margin: 2rem 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.rm-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: .6rem 1.1rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}

.rm-tab:hover { color: var(--text); }

.rm-tab.active {
  color: var(--text);
  border-bottom-color: var(--gd-gold);
  font-weight: 600;
}

.rm-panel { display: none; max-width: 720px; padding-top: 2rem; }
.rm-panel.active { display: block; }

.rm-panel-intro {
  margin-bottom: 2rem;
}

.rm-panel-intro p {
  color: var(--muted);
  margin: .75rem 0 0;
  max-width: 66ch;
}

.rm-release-intro {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 66ch;
}

.rm-group {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.rm-label {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--gd-gold);
  padding-top: .1rem;
}

.rm-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.rm-list li {
  font-size: .97rem;
  color: var(--muted);
  max-width: none;
  line-height: 1.6;
}

.rm-list li::marker {
  color: var(--gd-gold);
}

.rm-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
  max-width: 720px;
}

@media (max-width: 600px) {
  .rm-group {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}

/* ===== ROADMAP FEEDBACK BLOCK ===== */
.rm-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gd-gold);
  border-radius: 10px;
  flex-wrap: wrap;
}

.rm-feedback-text {
  flex: 1;
  min-width: 200px;
}

.rm-feedback-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.rm-feedback-text p {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
  line-height: 1.55;
  max-width: 52ch;
}

.rm-feedback-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.rm-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .46rem 1.05rem;
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 192, 2, 0.45);
  color: var(--gd-gold);
  background: rgba(255, 192, 2, 0.07);
  transition: background .15s, border-color .15s, color .15s;
}

.rm-feedback-btn--lg {
  padding: .4rem 1rem;
  font-size: .88rem;
  border-radius: 7px;
}

.rm-feedback-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rm-feedback-btn:hover {
  background: rgba(255, 192, 2, 0.15);
  border-color: var(--gd-gold);
  color: var(--gd-gold);
  text-decoration: none;
}

.rm-feedback-btn--discord {
  border-color: rgba(88, 101, 242, 0.45);
  color: #7289da;
  background: rgba(88, 101, 242, 0.07);
}

.rm-feedback-btn--discord:hover {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.7);
  color: #7289da;
  text-decoration: none;
}

[data-theme="light"] .rm-feedback {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  border-left-color: var(--gd-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .rm-feedback-btn {
  border-color: rgba(184, 120, 0, 0.30);
  color: #9a6800;
  background: rgba(255, 192, 2, 0.05);
}

[data-theme="light"] .rm-feedback-btn:hover {
  background: rgba(255, 192, 2, 0.10);
  border-color: rgba(184, 120, 0, 0.50);
  color: #7a5000;
}

[data-theme="light"] .rm-feedback-btn--discord {
  border-color: rgba(88, 101, 242, 0.3);
  color: #5865f2;
  background: rgba(88, 101, 242, 0.05);
}

[data-theme="light"] .rm-feedback-btn--discord:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.5);
  color: #4752c4;
}

@media (max-width: 600px) {
  .rm-feedback { flex-direction: column; gap: 1.2rem; }
  .rm-feedback-actions { width: 100%; }
}

/* ===== RELEASE BADGE ===== */
.release-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.release-badge--stable {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.release-badge--upcoming {
  background: rgba(255, 192, 2, 0.1);
  color: var(--gd-gold);
  border: 1px solid rgba(255, 192, 2, 0.25);
}

[data-theme="light"] .release-badge--stable {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.2);
}

[data-theme="light"] .release-badge--upcoming {
  background: rgba(180, 120, 0, 0.07);
  color: #92600a;
  border-color: rgba(180, 120, 0, 0.2);
}

/* ===== OVERVIEW: HOW IT WORKS (minimal steps) ===== */
.ov-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.4rem 0;
}

.ov-step {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.ov-step:last-child {
  border-bottom: none;
}

.ov-step-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gd-gold);
  background: rgba(255, 192, 2, 0.1);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ov-step strong {
  font-size: 1rem;
  color: var(--text);
}

.ov-step-hint {
  display: block;
  font-size: .84rem;
  color: var(--muted);
  margin-top: .15rem;
}

/* ===== OVERVIEW: AUDIENCE ROWS ===== */
.ov-audience-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.4rem 0;
}

.ov-audience-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.ov-audience-row:last-child {
  border-bottom: none;
}

.ov-audience-row strong {
  font-size: .95rem;
  color: var(--text);
  min-width: 11rem;
  flex-shrink: 0;
}

.ov-audience-row span {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .ov-audience-row {
    flex-direction: column;
    gap: .3rem;
  }

  .ov-audience-row strong {
    min-width: unset;
  }
}

/* ===== ARCHITECTURE ANNOTATIONS ===== */
.arch-annotations {
  display: grid;
  grid-template-columns: 1fr 90px 1fr 90px 1fr;
  margin-top: 0;
  gap: 0;
}

.arch-anno:nth-child(1) { grid-column: 1; }
.arch-anno:nth-child(2) { grid-column: 3; }
.arch-anno:nth-child(3) { grid-column: 5; }

.arch-anno {
  position: relative;
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.arch-anno::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  width: 1px;
  height: 1rem;
  background: rgba(255, 192, 2, 0.45);
}

.arch-anno h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gd-gold);
  margin: 0 0 .4rem;
}

.arch-anno p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .arch-anno {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .arch-anno h4 {
  color: var(--gd-gold-text);
}

@media (max-width: 760px) {
  .arch-annotations {
    display: flex;
    flex-direction: column;
    gap: .8rem;
  }

  .arch-anno::before {
    display: none;
  }
}

/* ===== OVERVIEW: ARCHITECTURE FLOW ===== */
.arch-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.6rem 0 1.2rem;
  overflow-x: auto;
}

.arch-node {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  text-align: center;
  min-width: 200px;
  flex: 1;
  transition: border-color .3s, box-shadow .3s;
}

.arch-node:hover {
  box-shadow: 0 0 12px rgba(255, 192, 2, 0.08);
}

.arch-node--accent:hover {
  box-shadow: 0 0 18px rgba(255, 192, 2, 0.12);
}

.arch-node--accent {
  border-color: var(--gd-gold);
  border-width: 2px;
}

.arch-node-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto .8rem;
  color: var(--muted);
}

.arch-node-icon svg {
  width: 100%;
  height: 100%;
}

.arch-node--accent .arch-node-icon {
  color: var(--gd-gold);
  filter: drop-shadow(0 0 8px rgba(255, 192, 2, 0.25));
}

.arch-node-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arch-node-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .4rem;
}

.arch-node--accent .arch-node-label {
  color: var(--gd-gold);
}

.arch-node-sub {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.arch-node-sub code {
  font-size: .75rem;
  background: rgba(255,255,255,0.05);
  padding: .1rem .3rem;
  border-radius: 3px;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  min-width: 90px;
  padding: 0 .6rem;
  gap: .35rem;
}

.arch-connector::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gd-gold);
}

.arch-connector::after {
  content: '';
  position: absolute;
  right: .6rem;
  top: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--gd-gold);
  transform: translateY(-5px);
}

.arch-connector-label {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .02em;
}

/* Animated data packet */
.arch-connector .arch-packet {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gd-gold);
  box-shadow: 0 0 8px rgba(255, 192, 2, 0.6), 0 0 16px rgba(255, 192, 2, 0.3);
  animation: arch-packet-move 2.4s ease-in-out infinite;
  opacity: 0;
}

.arch-connector:nth-child(2) .arch-packet { animation-delay: 0s; }
.arch-connector:nth-child(4) .arch-packet { animation-delay: 0.8s; }

@keyframes arch-packet-move {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Pulse on accent node */
.arch-node--accent::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 2px solid var(--gd-gold);
  opacity: 0;
  animation: arch-node-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.arch-node--accent {
  position: relative;
}

@keyframes arch-node-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: .3; transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .arch-connector .arch-packet { animation: none; display: none; }
  .arch-node--accent::before { animation: none; display: none; }
}

/* Output row below the flow */
.arch-output {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: .8rem 0 0;
  padding: .8rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.arch-output-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--gd-gold);
  flex-shrink: 0;
  display: none;
}

.arch-output-label {
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.arch-output-files {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.arch-output-files code {
  font-size: .75rem;
  background: rgba(255, 192, 2, 0.1);
  color: var(--gd-gold);
  padding: .2rem .5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 192, 2, 0.2);
  transition: background .3s, box-shadow .3s, transform .2s;
}

.arch-output-files code:hover {
  background: rgba(255, 192, 2, 0.18);
  box-shadow: 0 0 10px rgba(255, 192, 2, 0.15);
  transform: translateY(-1px);
}

[data-theme="light"] .arch-node {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .arch-node--accent {
  border-color: var(--gd-gold);
}

[data-theme="light"] .arch-node-sub code {
  background: rgba(0,0,0,0.05);
}

[data-theme="light"] .arch-output {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.arch-output-link {
  font-size: .8rem;
  color: var(--gd-gold);
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.arch-output-link:hover {
  text-decoration: underline;
}


.arch-output-cta {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gd-gold);
  text-decoration: none;
  transition: color .2s;
}

.arch-output-cta:hover {
  color: #f7931d;
  text-decoration: underline;
}

[data-theme="light"] .arch-output-files code {
  background: rgba(255, 192, 2, 0.08);
  border-color: rgba(255, 192, 2, 0.2);
}

@media (max-width: 760px) {
  .arch-flow {
    flex-direction: column;
  }

  .arch-connector {
    min-width: unset;
    min-height: 40px;
    padding: .3rem 0;
    flex-direction: column;
  }

  .arch-connector::before {
    width: 2px;
    height: 24px;
  }

  .arch-connector::after {
    right: auto;
    top: auto;
    bottom: .3rem;
    left: 50%;
    transform: translateX(-50%);
    border-top: 8px solid var(--gd-gold);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: none;
  }

  .arch-connector .arch-packet {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: arch-packet-move-v 2.4s ease-in-out infinite;
  }

  @keyframes arch-packet-move-v {
    0%   { top: 0; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
  }

  .arch-output {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }

}

.ov-arch li {
  color: var(--muted);
}

/* ===== WORKFLOW SCHEMA ===== */
.workflow-schema {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 2rem 0;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.workflow-step {
  flex: 1;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gd-gold);
  border-radius: 10px;
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .25s ease, transform .2s ease;
  cursor: default;
}

.workflow-step:hover {
  box-shadow: 0 0 0 1px rgba(255,192,2,0.35), 0 4px 20px rgba(255,192,2,0.12);
  transform: translateY(-2px);
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  color: var(--gd-gold);
  font-size: 1.3rem;
  opacity: 0.7;
  position: relative;
}

.workflow-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--gd-gold);
  opacity: 0.6;
}

.workflow-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gd-gold);
}

.workflow-num--circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 192, 2, 0.1);
  border: 2px solid var(--gd-gold);
  color: var(--gd-gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .5rem;
}

[data-theme="light"] .workflow-num--circle {
  color: var(--gd-gold-text);
  border-color: var(--gd-gold-text);
  background: rgba(184, 120, 0, 0.08);
}

.workflow-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.workflow-desc {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.workflow-points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.workflow-points li {
  font-size: .78rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  max-width: none;
  line-height: 1.4;
}

.workflow-points li::before {
  content: '·';
  position: absolute;
  left: .2rem;
  color: var(--gd-gold);
  font-weight: 700;
}

[data-theme="light"] .workflow-step {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .workflow-points {
  border-top-color: var(--line);
}

@media (max-width: 760px) {
  .workflow-schema {
    flex-direction: column;
    overflow-x: visible;
  }
  .workflow-arrow {
    width: auto;
    height: 2rem;
    transform: rotate(90deg);
    align-self: flex-start;
    margin-left: 1.4rem;
  }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
  vertical-align: middle;
}

.theme-toggle:hover {
  color: var(--gd-gold);
  border-color: var(--gd-gold);
}

/* ===== LOGO VISIBILITY ===== */
.logo-light { display: none; }

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg:      #faf9f7;
  --bg-2:    #f0eeeb;
  --panel:   #ffffff;
  --panel-2: #f5f3f0;
  --text:    #1a1a1a;
  --muted:   #6b6560;
  --line:    rgba(0, 0, 0, 0.10);
  --gd-gold-text: #b87800;
}

[data-theme="light"] .site-header {
  background: rgba(250, 249, 247, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-main {
  border-top-color: var(--gd-gold);
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255,184,0,0.09) 0%, transparent 60%),
    #faf9f7;
}

[data-theme="light"] .hero-main::after {
  display: none;
}

[data-theme="light"] .hero-tagline {
  color: #4a4540;
}

[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255,184,0,0.09) 0%, transparent 60%),
    #faf9f7;
  border-color: var(--line);
}

[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .card:hover {
  background: #fffcf7;
  border-color: rgba(184, 120, 0, 0.35);
  box-shadow: 0 4px 20px rgba(184, 120, 0, 0.10), 0 0 0 1px rgba(184, 120, 0, 0.12);
  transform: translateY(-2px);
}

[data-theme="light"] .note {
  border-left-color: #b87800;
  background: rgba(255, 192, 2, 0.07);
}

[data-theme="light"] .qs-panel {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(247, 147, 29, .18);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, .06),
    0 0 40px rgba(255, 184, 0, .06);
}

[data-theme="light"] .qs-step-num {
  background: rgba(255, 184, 0, 0.10);
}

[data-theme="light"] .qs-step-line {
  background: linear-gradient(180deg, var(--gd-gold) 0%, rgba(255,192,2,0.1) 100%);
}

[data-theme="light"] .qs-tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

[data-theme="light"] .qs-tab:hover:not(.active) {
  background: rgba(255, 184, 0, 0.08);
  border-color: rgba(255, 184, 0, 0.25);
  color: var(--text);
}

[data-theme="light"] .qs-content-hint code {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .qs-code {
  background: #f7f5f2;
  color: #1a1a1a;
  border-color: rgba(0,0,0,0.12);
  border-left-color: rgba(180,130,0,0.3);
}

[data-theme="light"] .qs-prompt { color: #c07800; }

[data-theme="light"] .qs-comment { color: #9a9080; }

[data-theme="light"] .qs-copy {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

[data-theme="light"] .qs-copy:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--text);
}

[data-theme="light"] .integration-tag {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .integration-tag:hover {
  border-color: rgba(255, 184, 0, 0.40);
  color: var(--text);
}

[data-theme="light"] footer {
  border-top-color: var(--line);
}

/* ===== SPLASH SCREEN (Home page only) ===== */
body.is-splash {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body.is-splash .site-header,
body.is-splash footer,
body.is-splash .skip-to-content {
  display: none;
}

body.is-splash #main-content {
  padding: 0;
  margin: 0;
  max-width: none;
}

body.is-splash #main-content > *:not(.hero-main) {
  display: none;
}

body.is-splash .hero-main {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: none;
  padding: 2rem;
  border-radius: 0;
  z-index: 9999;
}

.splash-copyright {
  display: none;
}

body.is-splash .splash-copyright {
  display: block;
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  opacity: .6;
}

/* Transition out of splash */
body.splash-exiting .site-header,
body.splash-exiting footer,
body.splash-exiting .skip-to-content,
body.splash-exiting #main-content > *:not(.hero-main) {
  transition: opacity .6s ease;
  opacity: 1;
  pointer-events: auto;
}

body.splash-exiting .hero-main {
  transition: min-height .6s ease, padding .6s ease, margin .6s ease;
  min-height: unset;
}

body.splash-exiting {
  overflow: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav ul { gap: .5rem; }
  nav a.github-link span { font-size: .9rem; }
}

/* ===== HOW IT WORKS GRID ===== */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1.6rem 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hiw-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.hiw-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 192, 2, 0.1);
  border: 2px solid var(--gd-gold);
  color: var(--gd-gold);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.hiw-item strong {
  font-size: 1rem;
  color: var(--text);
}

.hiw-item p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  max-width: 22ch;
}

[data-theme="light"] .hiw-num {
  color: var(--gd-gold-text);
  border-color: var(--gd-gold-text);
  background: rgba(184, 120, 0, 0.08);
}

.hiw-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 760px) {
  .hiw-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hiw-grid, .hiw-grid--4 { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ===== QUICK START NOTE ===== */
.qs-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.qs-note strong {
  color: var(--gd-gold);
}

/* ===== BUILT FOR — HERO TITLE ===== */
.built-for-hero {
  text-align: left;
  margin-bottom: 2rem;
}

.built-for-hero h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
}

.built-for-hero p {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

/* ===== BUILT FOR — FLIP CARDS ===== */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin: 1.4rem 0;
}

.flip-container {
  perspective: 1000px;
  min-height: 260px;
  cursor: pointer;
  outline: none;
}

.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform .6s ease;
  will-change: transform;
}

.flip-container.is-flipped .flip-card {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
}

/* Front face */
.flip-front {
  background: var(--panel);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .8rem;
}

.flip-front h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.flip-hint {
  font-size: .75rem;
  color: var(--muted);
  opacity: .6;
  transition: opacity .2s;
}

.flip-container:hover .flip-hint,
.flip-container:focus-visible .flip-hint {
  opacity: 1;
}

.flip-container:hover .flip-front,
.flip-container:focus-visible .flip-front {
  border-color: rgba(255, 192, 2, 0.4);
  box-shadow: 0 0 14px rgba(255, 192, 2, 0.05);
}

/* Back face */
.flip-back {
  background: var(--panel);
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
  border-color: var(--gd-gold);
}

.flip-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.flip-back li {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}

.flip-back li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gd-gold);
}

/* Light theme */
[data-theme="light"] .flip-front {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .flip-container:hover .flip-front,
[data-theme="light"] .flip-container:focus-visible .flip-front {
  border-color: rgba(255, 184, 0, 0.35);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.08);
}

[data-theme="light"] .flip-back {
  background: #fffcf7;
  border-color: var(--gd-gold);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

@media (max-width: 1024px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip-container { min-height: 180px; }
  .flip-card { min-height: 180px; }
}

/* ===== PLAIN AI vs ROSETTA ===== */
/* ===== WITHOUT vs WITH ROSETTA ===== */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.4rem 0;
}

.vs-card {
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.vs-card--without {
  border-left: 3px solid rgba(180, 80, 80, 0.5);
}

.vs-card--with {
  border-left: 3px solid var(--gd-gold);
}

.vs-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}

.vs-card--without .vs-label { color: var(--muted); }
.vs-card--with .vs-label { color: var(--gd-gold); }

.vs-prompt {
  font-size: .82rem;
  color: var(--text);
  font-family: 'Fira Mono', 'SF Mono', monospace;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .5rem .7rem;
  margin-bottom: .8rem;
}

.vs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .8rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.vs-list li {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 1.3rem;
  position: relative;
}

.vs-card--without .vs-list li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: .8rem;
}

.vs-card--with .vs-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gd-gold);
  font-weight: 700;
  font-size: .8rem;
}

.vs-result {
  font-size: .82rem;
  font-weight: 600;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
}

.vs-result--bad { color: var(--muted); }
.vs-result--good { color: var(--gd-gold); }

[data-theme="light"] .vs-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .vs-card--without {
  border-left-color: rgba(0,0,0,0.15);
}

[data-theme="light"] .vs-card--with {
  border-left-color: var(--gd-gold);
}

[data-theme="light"] .vs-prompt {
  background: rgba(0,0,0,0.025);
}

@media (max-width: 760px) {
  .vs-grid { grid-template-columns: 1fr; }
}

/* ===== WHY ROSETTA ROWS ===== */
.why-rows {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 1.6rem 0;
}

.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.why-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-row-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .5rem;
  position: relative;
  padding-left: 1rem;
}

.why-row-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  width: 3px;
  height: 1em;
  background: var(--gd-gold);
  border-radius: 2px;
}

.why-row-text p {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  padding-left: 1rem;
}

@media (max-width: 640px) {
  .why-row {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  .hero-main {
    padding: 3.5rem 1.2rem 3rem;
    margin-left: -1.2rem;
    margin-right: -1.2rem;
  }

  .qs-panel {
    padding: 1.6rem 1rem;
    border-radius: 12px;
  }

  .qs-step {
    grid-template-columns: 2.4rem 1fr;
    gap: 0 .8rem;
  }

  .qs-step-num {
    width: 1.8rem;
    height: 1.8rem;
    font-size: .75rem;
  }

  .qs-step-body { padding-bottom: 1.4rem; }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== FOCUS STYLES ===== */
.qs-tab:focus-visible,
.rm-tab:focus-visible,
.qs-copy:focus-visible,
a.button:focus-visible,
.button-ghost:focus-visible,
.theme-toggle:focus-visible,
.rm-feedback-btn:focus-visible,
nav a:focus-visible {
  outline: 2px solid var(--gd-gold);
  outline-offset: 2px;
}

/* ===== TAB CONTENT FADE ===== */
.qs-content.active,
.rm-panel.active {
  animation: tabFadeIn .25s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE NAV (hamburger) ===== */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 0;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}

.nav-toggle:hover {
  color: var(--gd-gold);
  border-color: var(--gd-gold);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: .5rem 0 0;
  }

  nav ul.is-open { display: flex; }

  nav li { width: 100%; }

  nav a {
    display: block;
    padding: .6rem 0;
    border-bottom: none;
  }

  nav a.discord-link {
    margin-left: 0;
    margin-top: .5rem;
    width: fit-content;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  .ov-step,
  .flip-container {
    opacity: 1;
    transform: none;
  }
}

/* ===== TRY ROSETTA — SLIDE-OUT DEMO ===== */

/* FAB trigger button */
.try-rosetta-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  background: var(--gd-gold);
  color: #1a1a1a;
  border: none;
  padding: .85rem 1.3rem .85rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255, 192, 2, 0.35);
  transition: background .2s, box-shadow .2s, transform .2s;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.try-rosetta-fab::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 2px var(--gd-gold);
  flex-shrink: 0;
  animation: try-fab-pulse 2s ease-in-out infinite;
}

@keyframes try-fab-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px var(--gd-gold), 0 0 0 0 rgba(255, 192, 2, 0.4); }
  50%      { box-shadow: inset 0 0 0 2px var(--gd-gold), 0 0 0 6px rgba(255, 192, 2, 0); }
}

.try-rosetta-fab:hover {
  background: #f7931d;
  box-shadow: 0 4px 28px rgba(255, 192, 2, 0.5);
  transform: translateY(-2px);
}

body.is-splash .try-rosetta-fab {
  display: none;
}

/* Overlay */
.try-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.try-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.try-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  z-index: 960;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.try-drawer.is-open {
  transform: translateX(0);
}

/* Drawer header */
.try-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.try-drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gd-gold);
  margin: 0;
}

.try-drawer-subtitle {
  font-size: .75rem;
  color: var(--muted);
  margin: .15rem 0 0;
}

.try-drawer-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s;
}

.try-drawer-close:hover {
  color: var(--text);
  border-color: var(--gd-gold);
}

/* Drawer body */
.try-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
}

/* Scenario cards */
.try-scenarios {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.try-scenario-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.try-scenario-card:hover {
  border-color: rgba(255, 192, 2, 0.4);
  box-shadow: 0 0 12px rgba(255, 192, 2, 0.08);
}

.try-scenario-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .2rem;
}

.try-scenario-tag {
  font-size: .68rem;
  color: var(--gd-gold);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

/* Chat area */
.try-chat {
  display: none;
  flex-direction: column;
  gap: .8rem;
}

.try-chat.is-active {
  display: flex;
}

.try-chat-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: .4rem;
  text-align: left;
  transition: color .2s;
}

.try-chat-back:hover {
  color: var(--gd-gold);
}

/* Chat messages */
.try-msg {
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .82rem;
  line-height: 1.5;
  max-width: 92%;
  opacity: 0;
  transform: translateY(8px);
  animation: try-msg-in .35s ease forwards;
}

.try-msg--user {
  background: rgba(255, 192, 2, 0.12);
  color: var(--text);
  align-self: flex-end;
  border: 1px solid rgba(255, 192, 2, 0.2);
}

.try-msg--rosetta {
  background: var(--panel);
  color: var(--muted);
  align-self: flex-start;
  border: 1px solid var(--line);
}

.try-msg--rosetta strong {
  color: var(--gd-gold);
  font-weight: 600;
}

.try-msg--rosetta code {
  font-size: .72rem;
  background: rgba(255, 192, 2, 0.08);
  color: var(--gd-gold);
  padding: .1rem .3rem;
  border-radius: 3px;
}

.try-msg--cta {
  background: none;
  border: none;
  padding: .5rem 0;
  text-align: center;
}

.try-msg--cta a {
  color: var(--gd-gold);
  font-weight: 600;
  text-decoration: none;
  font-size: .85rem;
}

.try-msg--cta a:hover {
  text-decoration: underline;
}

@keyframes try-msg-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing indicator */
.try-typing {
  display: flex;
  gap: 4px;
  padding: .7rem .9rem;
  align-self: flex-start;
}

.try-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: try-dot-bounce .6s ease-in-out infinite;
}

.try-typing span:nth-child(2) { animation-delay: .15s; }
.try-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes try-dot-bounce {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-4px); }
}

.try-pro-inline {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #1a1a1a;
  background: var(--gd-gold);
  padding: .15rem .4rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: .3rem;
}

/* Light theme */
[data-theme="light"] .try-drawer {
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .try-scenario-card {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .try-msg--rosetta {
  background: #f8f7f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .try-scenario-card--pro {
  border-color: rgba(247, 147, 29, .35);
  background: linear-gradient(135deg, rgba(255, 184, 0, .08) 0%, rgba(247, 147, 29, .04) 100%);
}

[data-theme="light"] .try-scenario-card--pro:hover {
  border-color: #f7931d;
  background: linear-gradient(135deg, rgba(255, 184, 0, .14) 0%, rgba(247, 147, 29, .08) 100%);
  box-shadow: 0 0 16px rgba(255, 184, 0, .18);
}

[data-theme="light"] .try-scenario-pro-badge {
  box-shadow: 0 1px 6px rgba(247, 147, 29, .25);
}

[data-theme="light"] .try-section-label--pro {
  border-top-color: rgba(247, 147, 29, .2);
}

/* Section labels */
.try-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gd-gold);
  padding: .4rem 0 .2rem;
  margin-top: .3rem;
}

.try-section-label--pro {
  color: var(--gd-gold);
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255, 184, 0, .2);
}

/* Pro badge on cards */
.try-scenario-card--pro {
  position: relative;
  border: 1px solid rgba(255, 184, 0, .35);
  background: linear-gradient(135deg, rgba(255, 184, 0, .06) 0%, rgba(247, 147, 29, .03) 100%);
}

.try-scenario-card--pro:hover {
  border-color: var(--gd-gold);
  background: linear-gradient(135deg, rgba(255, 184, 0, .12) 0%, rgba(247, 147, 29, .06) 100%);
  box-shadow: 0 0 16px rgba(255, 184, 0, .15);
}

.try-scenario-pro-badge {
  position: absolute;
  top: .6rem;
  right: .7rem;
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--gd-gold), #f7931d);
  padding: .2rem .5rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(255, 184, 0, .3);
}

/* Pro CTA inside chat */
.try-pro-cta {
  text-align: center;
  padding: 2rem 1rem;
}

.try-pro-cta-icon {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1a1a1a;
  background: var(--gd-gold);
  padding: .3rem .8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.try-pro-cta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .6rem;
}

.try-pro-cta p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.2rem;
}

.try-pro-cta-btn {
  display: inline-block;
  background: var(--gd-gold);
  color: #1a1a1a;
  font-size: .82rem;
  font-weight: 700;
  padding: .6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}

.try-pro-cta-btn:hover {
  background: #f7931d;
}

/* Pro blur + unlock overlay */
.try-pro-blur-wrap {
  position: relative;
  margin-top: .5rem;
}

.try-msg--blurred {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: .5;
}

.try-pro-unlock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, .85) 30%, rgba(26, 26, 26, .95) 100%);
  border-radius: 12px;
  z-index: 2;
}

.try-pro-unlock-icon {
  color: var(--gd-gold);
  margin-bottom: .8rem;
}

.try-pro-unlock-icon svg {
  width: 32px;
  height: 32px;
}

.try-pro-unlock h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .5rem;
}

.try-pro-unlock p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 260px;
}

.try-pro-unlock-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gd-gold), #f7931d);
  color: #1a1a1a;
  font-size: .82rem;
  font-weight: 700;
  padding: .6rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(255, 184, 0, .3);
}

.try-pro-unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 184, 0, .45);
}

/* Light theme unlock overlay */
[data-theme="light"] .try-pro-unlock {
  background: linear-gradient(180deg, rgba(250, 249, 247, 0) 0%, rgba(250, 249, 247, .85) 30%, rgba(250, 249, 247, .95) 100%);
}

[data-theme="light"] .try-pro-unlock h4 {
  color: #1a1a1a;
}

[data-theme="light"] .try-pro-unlock p {
  color: rgba(26, 26, 26, .6);
}

/* ===== TRY ROSETTA INLINE SECTION ===== */
.section-subtitle {
  color: var(--muted);
  font-size: .95rem;
  margin: -.5rem 0 1.5rem;
}

/* ── Try Inline: Container ── */
.try-inline {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(255, 184, 0, .15);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, .25),
    0 0 40px rgba(255, 184, 0, .04);
}

/* ── Sidebar ── */
.try-inline-sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

/* ── Tabs ── */
.try-inline-tabs {
  display: flex;
  padding: .75rem .75rem 0;
  gap: .4rem;
}

.try-inline-tab {
  flex: 1;
  padding: .55rem 0;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
}

.try-inline-tab:hover {
  color: var(--text);
  border-color: rgba(255, 184, 0, .4);
  background: rgba(255, 184, 0, .05);
}

.try-inline-tab.is-active {
  color: #1a1a1a;
  background: var(--gd-gold);
  border-color: var(--gd-gold);
  box-shadow: 0 2px 8px rgba(255, 184, 0, .3);
}

.try-inline-tab[data-filter="pro"] {
  border-color: rgba(255, 184, 0, .25);
  background: linear-gradient(135deg, rgba(255, 184, 0, .08), rgba(247, 147, 29, .04));
  color: var(--gd-gold);
  position: relative;
  overflow: hidden;
}

.try-inline-tab[data-filter="pro"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .15) 50%, transparent 60%);
  animation: tryProShimmer 3s ease-in-out infinite;
}

@keyframes tryProShimmer {
  0%, 100% { transform: translateX(-120%); }
  50%      { transform: translateX(120%); }
}

.try-inline-tab[data-filter="pro"]:hover {
  border-color: var(--gd-gold);
  background: linear-gradient(135deg, rgba(255, 184, 0, .15), rgba(247, 147, 29, .08));
  box-shadow: 0 0 12px rgba(255, 184, 0, .2);
}

.try-inline-tab[data-filter="pro"].is-active {
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--gd-gold), #f7931d);
  border-color: #f7931d;
  box-shadow: 0 2px 14px rgba(247, 147, 29, .45), 0 0 20px rgba(255, 184, 0, .2);
}

.try-inline-tab[data-filter="pro"].is-active::before {
  display: none;
}

/* ── Card list ── */
.try-inline-list {
  flex: 1;
  overflow-y: auto;
  padding: .5rem .6rem .6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 0, .25) transparent;
}
.try-inline-list::-webkit-scrollbar { width: 5px; }
.try-inline-list::-webkit-scrollbar-track { background: transparent; }
.try-inline-list::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, .25);
  border-radius: 4px;
}
.try-inline-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 0, .4);
}
[data-theme="light"] .try-inline-list {
  scrollbar-color: rgba(247, 147, 29, .25) transparent;
}
[data-theme="light"] .try-inline-list::-webkit-scrollbar-thumb {
  background: rgba(247, 147, 29, .25);
}
[data-theme="light"] .try-inline-list::-webkit-scrollbar-thumb:hover {
  background: rgba(247, 147, 29, .4);
}

/* ── Cards ── */
.try-inline-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: .6rem .85rem;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  margin-bottom: .25rem;
  position: relative;
  border: 1px solid transparent;
}

.try-inline-card:hover {
  background: rgba(255, 184, 0, .06);
  border-color: rgba(255, 184, 0, .15);
}

.try-inline-card.is-active {
  background: rgba(255, 184, 0, .1);
  border-color: rgba(255, 184, 0, .3);
  box-shadow: inset 3px 0 0 var(--gd-gold), 0 1px 6px rgba(255, 184, 0, .08);
  font-weight: 600;
}

.try-inline-card-tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gd-gold);
  background: rgba(255, 184, 0, .1);
  padding: .15rem .45rem;
  border-radius: 5px;
  white-space: nowrap;
}

.try-inline-card.is-active .try-inline-card-tag {
  background: rgba(255, 184, 0, .2);
}

/* ── Chat area ── */
.try-inline-chat {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--panel) 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 0, .2) transparent;
}
.try-inline-chat::-webkit-scrollbar { width: 5px; }
.try-inline-chat::-webkit-scrollbar-track { background: transparent; }
.try-inline-chat::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, .2);
  border-radius: 4px;
}
.try-inline-chat::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 0, .35);
}

.try-inline-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  gap: .8rem;
  opacity: .4;
  transition: opacity .3s;
}

.try-inline-placeholder p {
  font-size: .88rem;
  font-weight: 500;
}

.try-inline-chat .try-msg {
  max-width: 100%;
  animation: tryMsgFadeIn .35s ease both;
}

@keyframes tryMsgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Light theme ── */
[data-theme="light"] .try-inline {
  border-color: rgba(0, 0, 0, .10);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, .07),
    0 0 0 1px rgba(0, 0, 0, .03);
}

[data-theme="light"] .try-inline-sidebar {
  background: linear-gradient(180deg, #f2f0ed 0%, #f8f7f5 100%);
}

[data-theme="light"] .try-inline-chat {
  background: #ffffff;
}

[data-theme="light"] .try-inline-card:hover {
  background: rgba(247, 147, 29, .06);
  border-color: rgba(247, 147, 29, .15);
}

[data-theme="light"] .try-inline-card.is-active {
  background: rgba(247, 147, 29, .1);
  border-color: rgba(247, 147, 29, .25);
  box-shadow: inset 3px 0 0 #f7931d, 0 1px 6px rgba(247, 147, 29, .08);
}

[data-theme="light"] .try-inline-tab:hover {
  background: rgba(247, 147, 29, .06);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .try-inline {
    grid-template-columns: 1fr;
    height: auto;
  }
  .try-inline-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 240px;
  }
  .try-inline-chat {
    min-height: 400px;
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .try-drawer { width: 100vw; }
  .try-rosetta-fab { right: 1rem; bottom: 1rem; font-size: .78rem; padding: .7rem 1rem .7rem .8rem; }
}

/* ===== CONTRIBUTE: DEEPER DOCS GRID ===== */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.docs-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.2rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.docs-card:hover {
  border-color: var(--gd-gold);
  box-shadow: 0 0 16px rgba(255, 192, 2, .08);
  transform: translateY(-2px);
}

.docs-card-icon {
  width: 32px;
  height: 32px;
  color: var(--gd-gold);
  margin-bottom: .7rem;
}

.docs-card-title {
  font-size: .92rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}

.docs-card-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

[data-theme="light"] .docs-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

[data-theme="light"] .docs-card:hover {
  border-color: var(--gd-gold);
  box-shadow: 0 2px 12px rgba(255, 192, 2, .12);
}

@media (max-width: 480px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* ===== SCROLL-TRIGGERED REVEAL (disabled) ===== */

/* ===== MARKDOWN TABLES ===== */
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: var(--fs-sm); }
th { text-align: left; font-weight: 700; color: var(--text); border-bottom: 2px solid rgba(255,192,2,0.4); padding: .6rem .8rem; }
td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
tr:hover td { background: rgba(255,192,2,0.03); }
[data-theme="light"] th { border-bottom-color: rgba(180,130,0,0.3); }
[data-theme="light"] tr:hover td { background: rgba(255,192,2,0.04); }

/* ===== LIGHT MODE: GOLD TEXT FOR LABELS ===== */
[data-theme="light"] .rm-label,
[data-theme="light"] .workflow-num,
[data-theme="light"] .qs-step-num,
[data-theme="light"] li::marker,
[data-theme="light"] h2::before {
  color: var(--gd-gold-text, var(--gd-gold));
}

/* ===== LIGHT MODE: HERO HEADLINE GRADIENT ===== */
[data-theme="light"] .hero-main h1.hero-headline {
  background: linear-gradient(135deg, #8a5a08 0%, #c68500 40%, #a06800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV: DISABLE SLIDE UNDERLINE ON SPECIAL LINKS ===== */
nav a.github-link,
nav a.discord-link {
  background-image: none;
}
nav a.github-link:hover,
nav a.github-link.active,
nav a.discord-link:hover,
nav a.discord-link.active {
  background-size: 0 0;
}

/* ===== THEME TRANSITION ON KEY ELEMENTS ===== */
.card, .arch-node, .arch-anno, .flip-front, .flip-back,
.vs-card, .docs-card, .workflow-step, .qs-panel, .note,
.site-header, footer, .rm-feedback {
  transition-property: background-color, border-color, box-shadow, transform;
  transition-duration: .35s;
  transition-timing-function: ease;
}

/* =====================================================
   DOCS LAYOUT — Sidebar + Content (Playwright-style)
   ===================================================== */

body.docs-layout main {
  max-width: none;
  padding: 0;
  margin: 0;
}

.docs-wrap {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  gap: 2rem;
  padding-top: 2rem;
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 1.5rem 0;
  border-right: 1px solid var(--line);
}

.docs-sidebar-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 1.5rem .4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.docs-sidebar-cat::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--gd-gold);
  margin-top: .3rem;
}

.docs-sidebar-link {
  display: block;
  padding: .35rem 1.5rem;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}

.docs-sidebar-link:hover {
  color: var(--text);
  text-decoration: none;
}

.docs-sidebar-link.active {
  color: var(--gd-gold);
  border-left-color: var(--gd-gold);
  background: rgba(255, 192, 2, 0.05);
  text-decoration: none;
}

.docs-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3rem;
  max-width: 860px;
}

.docs-content h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  max-width: none;
}

.docs-content h2 {
  margin-top: 2.5rem;
  max-width: none;
}

.docs-content h3,
.docs-content h4 {
  max-width: none;
}

.docs-content p,
.docs-content li {
  max-width: 74ch;
}

.docs-content pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: .84rem;
}

.docs-content code {
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: .84rem;
}

.docs-content pre code {
  font-size: .84rem;
  background: none;
  padding: 0;
  border: none;
}

.docs-content :not(pre) > code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .875rem;
}

.docs-content table th {
  text-align: left;
  padding: .55rem .75rem;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.docs-content table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.docs-content table tr:hover td {
  background: var(--panel);
}

.docs-content blockquote {
  border-left: 3px solid var(--gd-gold);
  margin: 1.25rem 0;
  padding: .75rem 1.25rem;
  background: rgba(255, 192, 2, 0.04);
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}

.docs-content details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: .75rem 0;
}

.docs-content summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}

.docs-content summary::-webkit-details-marker {
  display: none;
}

.docs-content summary::before {
  content: '+ ';
  color: var(--gd-gold);
  font-weight: 700;
}

.docs-content details[open] summary::before {
  content: '- ';
}

/* Docs index cards */
.docs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.docs-index-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  transition: border-color .2s, background .2s;
  display: block;
}

.docs-index-card:hover {
  border-color: var(--gd-gold);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
}

.docs-index-card-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gd-gold);
  margin: 0 0 .35rem;
}

.docs-index-card-title {
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 .25rem;
}

.docs-index-card-desc {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ===== DOCS MOBILE ===== */
@media (max-width: 768px) {
  .docs-wrap {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  .docs-sidebar-cat {
    display: none;
  }

  .docs-sidebar-link {
    white-space: nowrap;
    flex-shrink: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: .5rem 1rem;
  }

  .docs-sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--gd-gold);
    background: rgba(255, 192, 2, 0.05);
  }

  .docs-content {
    padding: 1.5rem 1.25rem;
  }

  .docs-content h1 {
    font-size: 1.5rem;
  }
}

/* ===== DOCS LIGHT THEME ===== */
[data-theme="light"] .docs-sidebar {
  background: #f7f9fc;
}

[data-theme="light"] .docs-sidebar-link.active {
  background: rgba(180, 120, 0, 0.07);
}

[data-theme="light"] .docs-content pre {
  background: #f3f5f8;
}

[data-theme="light"] .docs-content :not(pre) > code {
  background: #f0f2f5;
  border-color: #d4d9e0;
}

[data-theme="light"] .docs-content table tr:hover td {
  background: #f0f3f7;
}

[data-theme="light"] .docs-index-card {
  background: #ffffff;
}

[data-theme="light"] .docs-index-card:hover {
  background: #f7f9fc;
}

/* ===== PRO BADGE ===== */
.badge-pro {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: var(--gd-gold);
  border-radius: 3px;
  padding: .1em .45em;
  vertical-align: middle;
  line-height: 1.5;
  white-space: nowrap;
}

/* ===== INTRO LOGO (theme-aware) ===== */
.intro-logo--light { display: none; }
.intro-logo--dark  { display: inline; }
[data-theme="light"] .intro-logo--light { display: inline; }
[data-theme="light"] .intro-logo--dark  { display: none; }

/* ===== DOCS CALLOUTS (GitHub-style admonitions) ===== */
.docs-callout {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  margin: 1.25rem 0;
  border: 1px solid;
  font-size: .9rem;
  line-height: 1.55;
}

.docs-callout-header {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.docs-callout-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.docs-callout-body { min-width: 0; }

.docs-callout-title {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.docs-callout--note    { background: rgba(99,179,237,0.08);  border-color: rgba(99,179,237,0.35);  }
.docs-callout--tip     { background: rgba(72,187,120,0.08);  border-color: rgba(72,187,120,0.35);  }
.docs-callout--warning { background: rgba(255,192,2,0.08);   border-color: rgba(255,192,2,0.35);   }
.docs-callout--important { background: rgba(237,100,166,0.08); border-color: rgba(237,100,166,0.35); }
.docs-callout--caution { background: rgba(252,129,74,0.08);  border-color: rgba(252,129,74,0.35);  }

.docs-callout--note .docs-callout-title    { color: #63b3ed; }
.docs-callout--tip .docs-callout-title     { color: #48bb78; }
.docs-callout--warning .docs-callout-title { color: var(--gd-gold); }
.docs-callout--important .docs-callout-title { color: #ed64a6; }
.docs-callout--caution .docs-callout-title { color: #fc814a; }

[data-theme="light"] .docs-callout--note    { background: rgba(49,130,206,0.07);  border-color: rgba(49,130,206,0.3);  }
[data-theme="light"] .docs-callout--tip     { background: rgba(47,133,90,0.07);   border-color: rgba(47,133,90,0.3);   }
[data-theme="light"] .docs-callout--warning { background: rgba(180,120,0,0.07);   border-color: rgba(180,120,0,0.3);   }
[data-theme="light"] .docs-callout--important { background: rgba(197,48,121,0.07); border-color: rgba(197,48,121,0.3); }
[data-theme="light"] .docs-callout--caution { background: rgba(221,107,32,0.07);  border-color: rgba(221,107,32,0.3);  }
