:root {
  --bg: #08080d;
  --panel: #11111a;
  --text: #ffffff;
  --muted: #cbcbe3;
  --accent: #a855f7;
  --accent-2: #7e22ce;
  --line: #2b2b3f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 500px at 80% -20%, #2d0f47 0%, var(--bg) 50%);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1040px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 13, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; gap: 1rem; }

.section-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.section-nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid #443059;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

.section-nav a:hover {
  color: #f0ddff;
  border-color: #ac6dff;
}

.top-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.top-links a { text-decoration: none; }

.top-links a[aria-current="page"] {
  color: #f0ddff;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  transition: transform .35s ease;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text strong { color: #d9b2ff; }

.mobile-subheader {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-subheader a {
  color: #d8b8ff;
  text-decoration: none;
}

.mobile-subheader .crumb-sep {
  color: #8c77a5;
}

.mobile-subheader [aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

.cta, .btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 0.68rem 1rem;
  font-weight: 650;
  transition: all .25s ease;
}

.cta, .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 6px 24px rgba(168, 85, 247, .28);
}
.cta:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(168, 85, 247, .35); }

.btn-secondary {
  border: 1px solid #4a3961;
  color: var(--text);
}
.btn-secondary:hover { background: #231a32; }

.hero {
  padding: 4.8rem 0 2.8rem;
  background: radial-gradient(1200px 520px at 20% -15%, rgba(168,85,247,.35) 0%, transparent 60%);
}

.eyebrow {
  color: #ddb5ff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
}

h1 { margin: 0.4rem 0 0.8rem; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; }
.lead { color: var(--muted); max-width: 760px; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }

.section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 1rem auto;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.section:hover { transform: translateY(-2px); border-color: #5b3a82; box-shadow: 0 14px 30px rgba(0,0,0,.28); }

h2 { margin-top: 0; }
a { color: #caa2ff; }
a:hover { color: #e5d2ff; }

:where(a, button, .tab-btn, .btn, .cta, input, textarea):focus-visible {
  outline: 2px solid #f8f4ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.75), 0 0 0 7px rgba(8, 8, 13, 0.9);
}

.tab-btn.active:focus-visible {
  border-color: #f8f4ff;
}

.frameworks, .ladder { padding-left: 1.2rem; }
.contact-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.badges a {
  border: 1px solid #4f3a73;
  background: #151521;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.88rem;
  text-decoration: none;
}

.framework-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.framework-detail {
  border: 1px solid #3f2b5d;
  background: #0f0f18;
  border-radius: 12px;
  padding: 0.85rem;
}

.framework-detail:target {
  border-color: #ac6dff;
  box-shadow: 0 8px 18px rgba(122, 50, 190, .35);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tab-btn {
  border: 1px solid #4f3a73;
  background: #11111a;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: #ac6dff;
}


.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.mini-link-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #5a3f7c;
  background: #131322;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.95rem;
}

.mini-link-rail-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e3c5ff;
}

.mini-link-rail ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.mini-link-rail a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #4f3a73;
  background: #18182a;
  color: #dbc4f9;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.2;
}

.mini-link-rail a:hover {
  color: #ffffff;
  border-color: #b67afc;
  background: #202039;
}

.mini-link-rail a:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid #d3a7ff;
  outline-offset: 2px;
  border-color: #d3a7ff;
}

.tab-panel h3 {
  margin: 0.2rem 0 0.7rem;
  color: #f0ddff;
}

.pricing-grid,
.grid,
.proof-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.pricing-grid article,
.grid article,
.proof-grid article,
.about-grid article {
  background: #0f0f18;
  border: 1px solid #3f2b5d;
  border-radius: 12px;
  padding: 0.9rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pricing-grid article:hover,
.grid article:hover,
.proof-grid article:hover,
.about-grid article:hover,
.grid article:focus-within,
.proof-grid article:focus-within {
  border-color: #ac6dff;
  box-shadow: 0 8px 18px rgba(122, 50, 190, .35);
}

.grid h3,
.about-grid h3,
.proof-grid h3,
.pricing-grid h3 { margin: 0 0 0.45rem; font-size: 1rem; color: #f0ddff; }

.about-section p { color: var(--muted); }
.about-highlight { margin-top: 1rem; font-weight: 700; color: #f6ecff !important; }

.estimator {
  border: 1px solid #45315f;
  background: #11111b;
  border-radius: 12px;
  padding: 1rem;
  max-width: 680px;
}
.estimator input[type="range"] {
  width: 100%;
  accent-color: #b56cff;
}

.faq details {
  border: 1px solid #3b3151;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.65rem;
  background: #12121d;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: #9b59e8; }
.faq summary { cursor: pointer; font-weight: 600; }

.site-footer { color: var(--muted); padding: 1.8rem 0 2.6rem; }
.site-footer p { margin: 0.2rem 0; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

@media (max-width: 800px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .top-links { gap: 0.5rem; }
  .section-nav { width: 100%; }
  .mobile-subheader {
    position: sticky;
    top: 0;
    z-index: 11;
    padding: 0.45rem 0 0.55rem;
    background: rgba(8, 8, 13, 0.92);
    border-top: 1px solid rgba(126, 34, 206, 0.25);
    backdrop-filter: blur(8px);
    font-size: 0.84rem;
  }
}

.news-status {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.news-grid,
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.playlist-item {
  background: #0f0f18;
  border: 1px solid #3f2b5d;
  border-radius: 12px;
  padding: 0.85rem;
}

.playlist-item h3 {
  margin-bottom: 0.45rem;
}

.track-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.track-tab {
  border: 1px solid #4f3a73;
  background: #11111a;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.track-tab.active,
.track-tab:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: #ac6dff;
}


.playlist-action {
  margin-top: 0.4rem;
  border: 1px solid #4b3967;
  border-radius: 10px;
  background: #151523;
  color: var(--text);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.playlist-action:hover {
  border-color: #ac6dff;
}

.track-tab:focus-visible,
.quiz-options button:focus-visible,
.playlist-action:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}
.news-card,
.lesson-card {
  background: #0f0f18;
  border: 1px solid #3f2b5d;
  border-radius: 12px;
  padding: 0.9rem;
}

.lesson-meta {
  color: var(--muted);
  margin-top: -0.25rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quiz-options button {
  text-align: left;
  border: 1px solid #4b3967;
  border-radius: 10px;
  background: #151523;
  color: var(--text);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.quiz-options button.correct {
  border-color: #3fd28b;
  background: #0f2a1f;
}

.quiz-options button.wrong {
  border-color: #f87171;
  background: #32181b;
}

.quiz-result {
  min-height: 1.5rem;
  color: #e9d7ff;
  font-weight: 600;
}

.framework-mappings {
  margin-top: 0.8rem;
  border-top: 1px solid #34284a;
  padding-top: 0.65rem;
}

.framework-title {
  margin: 0 0 0.35rem;
  color: #dcc1ff;
  font-weight: 700;
}

.framework-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
.quiz-progress {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.quiz-options button:disabled {
  opacity: 0.92;
  cursor: not-allowed;
}

.quiz-reset {
  margin-top: 0.55rem;
  border: 1px solid #4f3a73;
  border-radius: 10px;
  background: #11111a;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.quiz-reset:hover,
.quiz-reset:focus-visible {
  border-color: var(--accent-2);
  outline: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #3b2f4d;
  padding: 0.6rem;
  text-align: left;
}

th {
  background: #1a1524;
}

.tab-link {
  text-decoration: none;
  border: 1px solid #4f3a73;
  background: #11111a;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
}

.tab-link.active,
.tab-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: #ac6dff;
}

.agent-form {
  display: grid;
  gap: 0.6rem;
  max-width: 760px;
}

.agent-form input,
.agent-form textarea,
.agent-form select {
  width: 100%;
  border: 1px solid #4b3967;
  border-radius: 10px;
  background: #151523;
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.agent-response {
  margin-top: 0.8rem;
  border: 1px solid #3f2b5d;
  background: #0f0f18;
  border-radius: 12px;
  padding: 0.9rem;
  white-space: pre-wrap;
  min-height: 120px;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.phase-grid article {
  background: #0f0f18;
  border: 1px solid #3f2b5d;
  border-radius: 12px;
  padding: 0.85rem;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.agent-conversation {
  border: 1px solid #3f2b5d;
  background: #0f0f18;
  border-radius: 12px;
  padding: 0.8rem;
  min-height: 180px;
  max-height: 430px;
  overflow-y: auto;
  margin-bottom: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.chat-bubble {
  border-radius: 12px;
  padding: 0.75rem;
}

.chat-bubble.user {
  border: 1px solid #61418d;
  background: #18122a;
}

.chat-bubble.assistant {
  border: 1px solid #2f5f52;
  background: #101d1a;
}

.chat-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #d9b2ff;
}

.chat-text {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}


.chat-sources,
.chat-next-actions {
  margin-top: 0.65rem;
}

.chat-meta-title {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fd7c8;
}

.chat-meta-list,
.chat-action-list {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.chat-meta-list li,
.chat-action-list li {
  margin: 0.2rem 0;
}

.chat-action-link {
  display: inline-block;
  border: 1px solid #2f5f52;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
}

.chat-action-link:hover,
.chat-action-link:focus-visible {
  border-color: #6ac8aa;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
}

.workspace-sidebar {
  border: 1px solid #3f2b5d;
  border-radius: 12px;
  background: #0f0f18;
  padding: 0.8rem;
  height: fit-content;
}

.workspace-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.workspace-sidebar-header h3 {
  margin: 0;
  font-size: 1rem;
}

.session-list {
  display: grid;
  gap: 0.45rem;
  max-height: 510px;
  overflow-y: auto;
}

.session-item {
  width: 100%;
  text-align: left;
  border: 1px solid #4f3a73;
  background: #11111a;
  color: var(--muted);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

.session-item.active,
.session-item:hover {
  background: #1a1524;
  color: var(--text);
}

.session-item small {
  display: block;
  opacity: 0.8;
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }
}

.news-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.news-card h3 a {
  color: #dfb9ff;
}

.news-card-meta,
.news-card-tags {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0.25rem 0 0.5rem;
}
