:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0f172a;
  background-color: #0b1120;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #1d2a5f, #090d1a 60%);
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  text-align: left;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 12px;
}

.hero .lede {
  font-size: 1.1rem;
  color: #c7d2fe;
  max-width: 640px;
  margin: 0;
}

.landing-hero {
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  color: #0b1120;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.secondary-cta {
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  color: #0f172a;
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  border: none;
  margin: 0;
  color: #e2e8f0;
  font-weight: 600;
  box-shadow: none;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.landing-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 16px 42px rgba(7, 12, 26, 0.6);
}

.landing-card h2 {
  margin: 0 0 10px;
}

.landing-card p {
  margin: 0 0 12px;
  color: #dbeafe;
}

.feature-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  color: #cbd5e1;
  display: grid;
  gap: 8px;
}

.stats-card {
  display: grid;
  gap: 14px;
}

.stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(67, 56, 202, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.stat-value {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: #c7d2fe;
}

.stat-label {
  margin: 4px 0 0;
  color: #e2e8f0;
}

.landing-steps {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 18px 44px rgba(9, 12, 24, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-steps h2 {
  margin: 4px 0 0;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.step-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
}

.step-label {
  font-weight: 700;
  color: #a5b4fc;
  margin: 0 0 8px;
}

.step-card h3 {
  margin: 0 0 8px;
}

.step-card p {
  margin: 0;
  color: #cbd5e1;
}

.examples {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.examples__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.examples__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 12px;
  justify-content: center;
}

.example-card {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  gap: 8px;
}

.example-source {
  margin: 0;
  color: #a5b4fc;
  font-weight: 700;
}

.example-question,
.example-answer {
  margin: 0;
  color: #e2e8f0;
}

.text-link {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 700;
}

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

.trust-panel {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 18px 44px rgba(7, 12, 26, 0.55);
}

.trust-panel__content {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  min-width: 280px;
  flex: 1 1 360px;
  align-items: stretch;
}

.trust-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.trust-card.is-highlight {
  border-color: rgba(94, 234, 212, 0.5);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(15, 23, 42, 0.6));
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.2);
}

.trust-card h3 {
  margin: 0 0 8px;
}

.trust-card p {
  margin: 0;
  color: #dbeafe;
}

.risk-card {
  border-color: rgba(248, 113, 113, 0.4);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(15, 23, 42, 0.55));
}

.cta-panel {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(94, 234, 212, 0.4);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.cta-panel__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.interaction {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.question-form label {
  font-weight: 600;
  font-size: 1rem;
}

.unit-source-selector {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.4);
}

.unit-source-selector__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.unit-source-selector__label {
  margin: 0;
  font-weight: 600;
  color: #c7d2fe;
}

.unit-source-selector__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.unit-source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.unit-source-button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.3);
  color: #e0e7ff;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.unit-source-button:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.unit-source-button.is-selected {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(129, 140, 248, 0.7);
  color: #fefefe;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

.unit-source-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  padding: 18px 20px;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.send-button {
  align-self: flex-end;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #0f172a;
  cursor: pointer;
  min-height: 46px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.send-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4);
}

.progress-card {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(241, 245, 249, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.conversation-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.conversation-feed.is-working {
  opacity: 0.94;
}

.conversation-placeholder {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.message-bubble {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(30, 41, 59, 0.75);
  color: #f1f5f9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.message-bubble--question {
  margin-left: 60px;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(94, 234, 212, 0.3);
}

.message-bubble--answer {
  margin-right: 60px;
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(129, 140, 248, 0.35);
}

.message-bubble__body {
  font-size: 1rem;
  line-height: 1.6;
}

.message-bubble__body p {
  margin-top: 0;
}

.message-bubble__body p:last-child {
  margin-bottom: 0;
}

.message-context {
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 10px;
}

.message-context summary {
  cursor: pointer;
  color: #c7d2fe;
  font-weight: 600;
}

.message-context__body {
  margin-top: 8px;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.follow-up-button {
  margin-top: 12px;
  border: 1px solid rgba(94, 234, 212, 0.6);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.follow-up-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

#progress-status {
  font-weight: 600;
  color: #c7d2fe;
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
  margin-bottom: 16px;
}

#progress-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #22d3ee, #6366f1);
  transition: width 0.2s ease-out;
}

.checkpoint-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.checkpoint-item {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(79, 70, 229, 0.2);
  color: #e0e7ff;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: checkpointIn 0.2s ease-out;
}

.checkpoint-item.is-muted {
  color: #a5b4fc;
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.2);
}

.checkpoint-list::-webkit-scrollbar {
  width: 6px;
}

.checkpoint-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #cbd5f5;
  font-size: 0.9rem;
}

.result-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 600;
}

.result-duration {
  font-style: italic;
}

.answer-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.source-reference {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0 8px;
  margin: 0 4px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #c7d2fe;
  background: rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.source-reference:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #f8fafc;
  border-color: rgba(129, 140, 248, 0.8);
}

.source-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
}

.source-overlay__dialog {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  padding: 24px;
  max-width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.7);
}

.source-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.source-overlay__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.source-overlay__close {
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.source-overlay__close:hover {
  color: #f87171;
}

.source-overlay__content {
  color: #e0e7ff;
  line-height: 1.5;
  white-space: pre-line;
}

.explore-more {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.explore-label {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.explore-text {
  margin: 0;
  color: #e0e7ff;
  line-height: 1.5;
  display: inline-block;
  outline: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.explore-text.is-clickable {
  cursor: pointer;
}

.explore-text.is-clickable:hover {
  color: #a5b4fc;
  transform: translateY(-1px);
}

.explore-text.is-clickable:focus-visible {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6);
  border-radius: 10px;
  padding: 2px 4px;
}

.context-toggle {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.context-toggle:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.context-panel {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.45);
  padding: 18px 20px;
}

.context-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cbd5f5;
}

.context-text {
  color: #e0e7ff;
  line-height: 1.5;
}

.error-message {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 16px 18px;
  border-radius: 16px;
  margin-top: 24px;
}

.is-hidden {
  display: none;
}

@media (min-width: 640px) {
  .input-row {
    flex-direction: row;
  }

  textarea {
    min-height: 140px;
  }

  .send-button {
    min-width: 140px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 32px 16px 60px;
    gap: 24px;
  }

  .hero {
    text-align: center;
  }

  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .interaction {
    padding: 22px 16px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px 14px 48px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .unit-source-selector {
    padding: 14px;
    margin-top: 12px;
  }

  .unit-source-buttons {
    gap: 10px;
  }

  .unit-source-button {
    width: 100%;
    justify-content: center;
  }

  .input-row {
    gap: 12px;
  }

  .send-button {
    width: 100%;
    padding: 14px 18px;
  }

  .progress-card {
    padding: 18px;
    margin-top: 20px;
  }

  .message-bubble {
    margin: 0;
    padding: 16px 14px 12px;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .checkpoint-list {
    max-height: 180px;
  }

  .source-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .source-overlay__dialog {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 40px);
    padding: 20px 16px;
    border-radius: 14px;
  }

  .source-overlay__header {
    align-items: flex-start;
  }
}

/* Landing page refresh */
.landing-body {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --accent: #10b981;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

.landing-body .page-shell {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  gap: 0;
}

.landing-body section[id] {
  scroll-margin-top: 120px;
}

.landing-body .landing-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 1rem 0;
}

.landing-body .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing-body .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.landing-body .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-body .logo-icon::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 6px;
}

.landing-body .logo-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 10px;
}

.landing-body .logo-line {
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.landing-body .brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.landing-body .brand-name .ask {
  color: var(--primary);
}

.landing-body .brand-name .ai {
  color: var(--accent);
}

.landing-body .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.landing-body .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-body .nav-toggle:hover {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.landing-body .nav-toggle:focus-visible {
  outline: 2px solid rgba(8, 145, 178, 0.6);
  outline-offset: 2px;
}

.landing-body .nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(30, 41, 59, 0.55);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-body .landing-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.landing-body .landing-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.landing-body .landing-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.landing-body .nav-links a:not(.cta-button) {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.3s;
}

.landing-body .nav-links a:not(.cta-button):hover {
  color: var(--primary);
}

.landing-body .cta-button {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-body .cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.3);
}

.landing-body .hero {
  margin-top: 80px;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.landing-body .hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.landing-body .hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.landing-body .hero-content h1 {
  font-family: "Crimson Pro", serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.landing-body .hero-content .highlight {
  color: var(--primary);
  position: relative;
}

.landing-body .hero-content p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.landing-body .hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.landing-body .secondary-button {
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s;
}

.landing-body .secondary-button:hover {
  background: var(--light-gray);
}

.landing-body .trust-badges {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.landing-body .badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.landing-body .badge-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.landing-body .demo-visual {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-body .demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-body .demo-title {
  font-weight: 600;
  color: var(--dark);
}

.landing-body .demo-badge {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.landing-body .demo-question {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--gray);
}

.landing-body .demo-answer {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--dark);
}

.landing-body .demo-citation {
  background: #ecfdf5;
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--dark);
  font-family: "Courier New", monospace;
}

.landing-body .features {
  padding: 6rem 2rem;
  background: white;
}

.landing-body .features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-body .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-body .section-tag {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.landing-body .section-header h2 {
  font-family: "Crimson Pro", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.landing-body .section-header p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
}

.landing-body .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.landing-body .feature-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--light-gray);
  transition: all 0.3s;
}

.landing-body .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.landing-body .feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 28px;
}

.landing-body .feature-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.landing-body .uk-flag-icon {
  background: transparent;
  border: 2px solid #e2e8f0;
  padding: 8px;
}

.landing-body .feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.landing-body .feature-card p {
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

.landing-body .how-it-works {
  padding: 6rem 2rem;
  background: var(--light-gray);
}

.landing-body .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.landing-body .step-card {
  padding: 2rem;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.landing-body .step-label {
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.landing-body .step-card h3 {
  margin: 0 0 0.75rem;
  color: var(--dark);
}

.landing-body .step-card p {
  margin: 0;
  color: var(--gray);
  line-height: 1.7;
}

.landing-body .cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.landing-body .cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.landing-body .cta-section h2 {
  font-family: "Crimson Pro", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.landing-body .cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.landing-body .cta-button-white {
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s;
}

.landing-body .cta-button-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 960px) {
  .landing-body .nav-container {
    position: relative;
    align-items: center;
    gap: 12px;
  }

  .landing-body .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .landing-body .landing-nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .landing-body .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .landing-body .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .landing-body .features-grid,
  .landing-body .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-body .hero {
    padding: 4.5rem 1.5rem 3rem;
  }

  .landing-body .features,
  .landing-body .how-it-works,
  .landing-body .cta-section {
    padding: 4.5rem 1.5rem;
  }

  .landing-body .hero-content h1 {
    font-size: 2.4rem;
  }

  .landing-body .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-body .cta-button,
  .landing-body .secondary-button {
    width: 100%;
  }

  .landing-body .trust-badges {
    gap: 1rem;
  }
}

/* Ask page refresh */
.ask-body {
  --ask-primary: #0ea5a4;
  --ask-primary-dark: #0f766e;
  --ask-accent: #22c55e;
  --ask-ink: #0f172a;
  --ask-slate: #334155;
  --ask-muted: #64748b;
  --ask-surface: #ffffff;
  --ask-surface-alt: #f1f5f9;
  --ask-border: rgba(15, 23, 42, 0.08);
  --ask-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ask-ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(14, 165, 164, 0.18), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(34, 197, 94, 0.15), transparent 35%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 60%, #f8fafc 100%);
  min-height: 100vh;
}

.ask-body .ask-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ask-body .ask-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
}

.ask-body .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ask-body .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ask-primary) 0%, var(--ask-primary-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ask-body .logo-icon::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--ask-accent);
  border-radius: 2px;
  position: absolute;
  left: 6px;
}

.ask-body .logo-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 10px;
}

.ask-body .logo-line {
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.ask-body .brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--ask-ink);
}

.ask-body .brand-name .ask {
  color: var(--ask-primary);
}

.ask-body .brand-name .ai {
  color: var(--ask-accent);
}

.ask-body .ask-shell::before,
.ask-body .ask-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.ask-body .ask-shell::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(14, 165, 164, 0.25), transparent 70%);
  animation: askGlow 8s ease-in-out infinite;
}

.ask-body .ask-shell::after {
  width: 220px;
  height: 220px;
  bottom: 40px;
  left: -110px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 70%);
  animation: askGlow 10s ease-in-out infinite;
}

.ask-body .ask-shell > * {
  position: relative;
  z-index: 1;
}

.ask-body .hero {
  padding: 32px 34px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 164, 0.12),
    rgba(255, 255, 255, 0.95)
  );
  border: 1px solid var(--ask-border);
  box-shadow: var(--ask-shadow);
  animation: askRise 0.7s ease both;
}

.ask-body .eyebrow {
  color: var(--ask-primary-dark);
  letter-spacing: 0.2em;
}

.ask-body .hero h1 {
  font-family: "Crimson Pro", serif;
  font-size: clamp(2.4rem, 4.4vw, 3.2rem);
  color: var(--ask-ink);
}

.ask-body .hero .lede {
  color: var(--ask-slate);
  font-size: 1.15rem;
}

.ask-body .interaction {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ask-border);
  border-radius: 28px;
  padding: 28px 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  animation: askRise 0.7s ease 0.08s both;
  backdrop-filter: blur(12px);
  gap: 20px;
}

.ask-body .question-form label {
  color: var(--ask-ink);
}

.ask-body .unit-source-selector {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--ask-surface-alt);
}

.ask-body .unit-source-selector__label {
  color: var(--ask-slate);
}

.ask-body .unit-source-selector__hint {
  color: var(--ask-muted);
}

.ask-body .unit-source-button {
  background: #ffffff;
  color: var(--ask-slate);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ask-body .unit-source-button:hover:not(:disabled) {
  border-color: rgba(14, 165, 164, 0.5);
  background: rgba(14, 165, 164, 0.12);
}

.ask-body .unit-source-button.is-selected {
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.2), rgba(34, 197, 94, 0.2));
  border-color: rgba(14, 165, 164, 0.6);
  color: var(--ask-ink);
  box-shadow: 0 14px 30px rgba(14, 165, 164, 0.2);
}

.ask-body textarea {
  background: #ffffff;
  color: var(--ask-ink);
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ask-body textarea::placeholder {
  color: rgba(100, 116, 139, 0.8);
}

.ask-body textarea:focus {
  outline: 2px solid rgba(14, 165, 164, 0.6);
  outline-offset: 2px;
}

.ask-body .send-button {
  background: linear-gradient(135deg, var(--ask-primary), var(--ask-accent));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 165, 164, 0.2);
}

.ask-body .send-button:hover {
  box-shadow: 0 18px 36px rgba(14, 165, 164, 0.28);
}

.ask-body .conversation-feed {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 18px;
  min-height: 140px;
}

.ask-body .conversation-placeholder {
  color: var(--ask-muted);
}

.ask-body .message-bubble {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: var(--ask-ink);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ask-body .message-bubble--question {
  background: rgba(14, 165, 164, 0.1);
  border-color: rgba(14, 165, 164, 0.3);
}

.ask-body .message-bubble--answer {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.25);
}

.ask-body .message-context {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.ask-body .message-context summary {
  color: var(--ask-primary-dark);
}

.ask-body .message-context__body {
  color: var(--ask-slate);
}

.ask-body .follow-up-button {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.ask-body .follow-up-button:hover {
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.25);
}

.ask-body .progress-card {
  margin-top: 24px;
  background: rgba(14, 165, 164, 0.08);
  border: 1px solid rgba(14, 165, 164, 0.2);
}

.ask-body #progress-status {
  color: var(--ask-primary-dark);
}

.ask-body .progress-bar {
  background: rgba(15, 23, 42, 0.08);
}

.ask-body #progress-bar-inner {
  background: linear-gradient(90deg, var(--ask-primary), var(--ask-accent));
}

.ask-body .checkpoint-item {
  background: rgba(14, 165, 164, 0.12);
  border-color: rgba(14, 165, 164, 0.2);
  color: var(--ask-slate);
}

.ask-body .checkpoint-item.is-muted {
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.2);
  color: var(--ask-muted);
}

.ask-body .source-reference {
  border-color: rgba(14, 165, 164, 0.4);
  color: var(--ask-primary-dark);
  background: rgba(14, 165, 164, 0.1);
}

.ask-body .source-reference:hover {
  background: rgba(14, 165, 164, 0.2);
  border-color: rgba(14, 165, 164, 0.6);
}

.ask-body .source-overlay__dialog {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--ask-ink);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.ask-body .source-overlay__title {
  color: var(--ask-ink);
}

.ask-body .source-overlay__close {
  color: var(--ask-slate);
}

.ask-body .source-overlay__content {
  color: var(--ask-slate);
}

.ask-body .explore-more {
  background: rgba(14, 165, 164, 0.08);
  border-color: rgba(14, 165, 164, 0.2);
}

.ask-body .explore-label {
  color: var(--ask-primary-dark);
}

.ask-body .explore-text {
  color: var(--ask-slate);
}

.ask-body .explore-text.is-clickable:hover {
  color: var(--ask-primary-dark);
}

.ask-body .context-toggle {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--ask-ink);
}

.ask-body .context-toggle:hover {
  background: rgba(14, 165, 164, 0.08);
}

.ask-body .context-panel {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.ask-body .context-label {
  color: var(--ask-muted);
}

.ask-body .context-text {
  color: var(--ask-slate);
}

.ask-body .error-message {
  color: #991b1b;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

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

@keyframes askGlow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .ask-body .ask-shell {
    padding: 36px 18px 64px;
  }

  .ask-body .hero {
    text-align: center;
  }

  .ask-body .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .ask-body .ask-shell {
    padding: 28px 14px 56px;
  }

  .ask-body .logo-icon {
    width: 34px;
    height: 34px;
  }

  .ask-body .logo-icon::before {
    height: 20px;
  }

  .ask-body .logo-line {
    width: 14px;
  }

  .ask-body .brand-name {
    font-size: 20px;
  }

  .ask-body .hero {
    padding: 24px 20px;
  }

  .ask-body .interaction {
    padding: 22px 18px;
  }

  .ask-body .conversation-feed {
    padding: 14px;
  }
}
