/* =========================
   THEWILDREADER
   FULL DASHBOARD STYLES
   Dark, dense, futuristic, clean
========================= */

:root {
  --bg: #050816;
  --bg-2: #070d1f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-3: rgba(255, 255, 255, 0.085);

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.13);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);
  --muted-2: rgba(255, 255, 255, 0.48);

  --accent: #00e5ff;
  --accent-2: #7c4dff;
  --accent-3: #00ffa8;

  --good: #27e59b;
  --warn: #ffcc00;
  --danger: #ff5d5d;

  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.18);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --sidebar-w: 320px;
  --line: 1px solid var(--border);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.10), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(124, 77, 255, 0.10), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(0, 255, 168, 0.06), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(0, 229, 255, 0.24);
  color: #fff;
}

/* =========================
   ACCESSIBILITY
========================= */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
}

.hidden {
  display: none !important;
}

/* =========================
   BACKGROUND
========================= */

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(124, 77, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(0, 255, 168, 0.08), transparent 30%);
  filter: blur(18px);
  opacity: 0.9;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
}

/* =========================
   LAYOUT
========================= */

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 24px;
  border-right: var(--line);
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.94), rgba(6, 10, 20, 0.84));
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: var(--line);
  box-shadow: var(--shadow-sm);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(124, 77, 255, 0.14));
  border: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.08), 0 0 24px rgba(0, 229, 255, 0.12);
  font-size: 1.1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: var(--line);
  box-shadow: var(--shadow-sm);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 14px rgba(39, 229, 155, 0.8);
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.18);
  transform: translateX(4px);
  outline: none;
}

.sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.22);
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #6ff1ff);
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(0, 229, 255, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}

.btn-secondary:hover {
  border-color: rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.06);
}

/* =========================
   MAIN PANEL
========================= */

.main-panel {
  min-width: 0;
  padding: 28px;
}

/* =========================
   TOP HERO
========================= */

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding: 28px;
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  border: var(--line);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 72ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* =========================
   GRID SECTIONS
========================= */

.hero-grid,
.workspace-layout,
.assistant-layout,
.feature-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.35fr 0.95fr;
  margin-bottom: 26px;
}

.workspace-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.assistant-layout {
  grid-template-columns: 1fr;
}

.content-section {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 18px;
  padding: 2px 2px 0;
}

.section-heading h2 {
  margin: 0;
  max-width: 20ch;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  max-width: 80ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

/* =========================
   PANELS
========================= */

.panel,
.hero-panel,
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035));
  border: var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.panel::before,
.hero-panel::before,
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124, 77, 255, 0.07), transparent 34%);
  opacity: 0.9;
}

.panel > *,
.hero-panel > *,
.cta-panel > * {
  position: relative;
  z-index: 1;
}

.panel,
.hero-panel {
  padding: 22px;
}

.panel:hover,
.hero-panel:hover {
  border-color: rgba(0, 229, 255, 0.18);
}

/* =========================
   HERO CONTENT
========================= */

.hero-copy h2 {
  margin: 0;
  max-width: 15ch;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 68ch;
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* =========================
   SUMMARY GRID
========================= */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.summary-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.summary-notes {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.summary-notes p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}

/* =========================
   WORKSPACE SIGNALS
========================= */

.signal-list {
  display: grid;
  gap: 12px;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.signal-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.signal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.signal-meta > i {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.signal-meta strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.signal-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.signal-meta div {
  min-width: 0;
}

.signal-value {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-value.neutral {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.signal-value.warning {
  color: var(--warn);
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.12);
}

.signal-value.alert {
  color: var(--danger);
  background: rgba(255, 93, 93, 0.08);
  border: 1px solid rgba(255, 93, 93, 0.12);
}

.signal-value.good {
  color: var(--good);
  background: rgba(39, 229, 155, 0.08);
  border: 1px solid rgba(39, 229, 155, 0.12);
}

/* =========================
   METRICS
========================= */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.16);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.metric-card strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.55rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

/* =========================
   FEATURE GRID
========================= */

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid .panel h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.feature-grid .panel p {
  color: var(--muted);
  line-height: 1.85;
  margin: 14px 0 0;
}

/* =========================
   ASSISTANT
========================= */

.assistant-panel {
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.panel-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-window {
  display: grid;
  gap: 14px;
  min-height: 320px;
  max-height: 420px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(5, 8, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.28) transparent;
}

.chat-window::-webkit-scrollbar {
  width: 10px;
}

.chat-window::-webkit-scrollbar-track {
  background: transparent;
}

.chat-window::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-message.user {
  justify-content: flex-end;
  flex-direction: flex-start;
}

.message-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.14);
  color: var(--accent);
}

.chat-message.user .message-icon {
  background: rgba(124, 77, 255, 0.08);
  border-color: rgba(124, 77, 255, 0.14);
  color: #cbb6ff;
}

.message-body {
  max-width: min(100%, 640px);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-sm);
}

.chat-message.user .message-body {
  text-align: right;
  background: rgba(124, 77, 255, 0.08);
  border-color: rgba(124, 77, 255, 0.16);
}

.assistant-response {
  display: grid;
  gap: 10px;
}

.assistant-response-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.assistant-response-header i {
  color: var(--accent);
}

.assistant-response-body {
  display: grid;
  gap: 10px;
}

.assistant-response-body p {
  margin: 0;
  line-height: 1.82;
  color: var(--muted);
}

.chat-question {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.assistant-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.assistant-bullets li {
  margin: 0;
}

.assistant-controls {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.assistant-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prompt-grid {
  display: grid;
  gap: 10px;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-grid {
  grid-template-columns: 1fr;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.prompt-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.prompt-chip.is-active {
  border-color: rgba(0, 229, 255, 0.34);
  background: rgba(0, 229, 255, 0.08);
}

.prompt-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.22);
}

.back-button {
  width: fit-content;
  justify-self: start;
}

.typing-message .typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}

.typing-message .typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.5;
  animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-message .typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-message .typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* =========================
   FAQ
========================= */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(0, 229, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.faq-item summary i:last-child {
  transition: transform 0.2s ease;
  color: var(--muted);
}

.faq-item[open] summary i:last-child {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px 48px;
  color: var(--muted);
  line-height: 1.85;
}

/* =========================
   CTA
========================= */

.cta-section {
  margin-top: 22px;
}

.cta-panel {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.cta-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
}

.cta-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 72ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 28px 4px 12px;
  color: var(--muted-2);
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

/* =========================
   POLISH
========================= */

.panel,
.hero-panel,
.cta-panel,
.brand-lockup,
.sidebar-card,
.signal-row,
.metric-card,
.prompt-chip,
.sidebar-nav a,
.btn,
.faq-item {
  box-shadow: var(--shadow-sm);
}

.panel:hover,
.hero-panel:hover,
.cta-panel:hover {
  box-shadow: var(--shadow-md);
}

.topbar,
.panel,
.hero-panel,
.cta-panel,
.sidebar,
.brand-lockup,
.sidebar-card,
.signal-row,
.metric-card,
.prompt-chip,
.sidebar-nav a,
.btn,
.faq-item {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.panel:hover,
.hero-panel:hover,
.metric-card:hover,
.signal-row:hover {
  transform: translateY(-2px);
}

.fa-solid,
.fa-regular,
.fa-brands,
.fa-duotone {
  line-height: 1;
  text-rendering: optimizeLegibility;
}

.panel-head h3 i,
.feature-grid .panel h3 i,
.section-heading .eyebrow i,
.topbar .eyebrow i,
.cta-copy .eyebrow i {
  color: var(--accent);
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .hero-grid,
  .workspace-layout,
  .assistant-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    min-height: auto;
    border-right: 0;
    border-bottom: var(--line);
  }

  .main-panel {
    padding: 18px;
  }

  .topbar {
    padding: 22px;
  }

  .summary-grid,
  .metrics-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .signal-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-value {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .sidebar,
  .main-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel,
  .hero-panel,
  .cta-panel,
  .topbar,
  .sidebar-card,
  .brand-lockup {
    border-radius: 20px;
  }

  .topbar h1 {
    max-width: 100%;
  }

  .hero-copy h2,
  .cta-copy h2,
  .section-heading h2 {
    max-width: 100%;
  }

  .feature-chips {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .sidebar-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .prompt-chip {
    width: 100%;
  }

  .chat-window {
    min-height: 280px;
  }

  .faq-item summary {
    padding: 14px 16px;
  }

  .faq-item p {
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

