:root {
  color-scheme: dark;
  --bg: #02040a;
  --surface: rgba(6, 17, 31, 0.68);
  --surface-strong: rgba(8, 24, 43, 0.82);
  --text: #f7fcff;
  --muted: #a5bccd;
  --line: rgba(126, 220, 255, 0.24);
  --line-strong: rgba(198, 244, 255, 0.58);
  --primary: #78dcff;
  --blue: #1e7cff;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
  --soft-glow: 0 0 18px rgba(95, 211, 255, 0.24), 0 0 42px rgba(30, 124, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 124, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(120, 220, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #030812 0%, #02040a 58%, #030812 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(120, 220, 255, 0.18), transparent 18%),
    linear-gradient(90deg, #02040a, rgba(5, 20, 37, 0.98), #02040a);
  animation: introCurtain 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.particle-canvas,
.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.particle-canvas {
  z-index: 0;
  opacity: 0.86;
}

.background-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(126, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 220, 255, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 74%, transparent);
  animation: gridDrift 24s linear infinite;
}

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 70px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(247, 252, 255, 0.88);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-navbar.is-scrolled {
  border-bottom: 1px solid rgba(126, 220, 255, 0.16);
  background: rgba(2, 8, 17, 0.68);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-brand,
.nav-links,
.nav-status {
  display: flex;
  align-items: center;
}

.nav-brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 220, 255, 0.36);
  border-radius: 8px;
  color: #dff9ff;
  background: rgba(8, 24, 43, 0.74);
  box-shadow: var(--soft-glow);
}

.nav-links {
  gap: 18px;
  color: rgba(218, 239, 248, 0.72);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-status {
  gap: 8px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(126, 220, 255, 0.22);
  border-radius: 999px;
  color: rgba(232, 249, 255, 0.84);
  font-size: 13px;
  background: rgba(6, 17, 31, 0.5);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(120, 220, 255, 0.62);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 100svh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 56px;
}

.hero-kicker,
.section-heading span,
.panel-title-row span,
.answer-header span,
.template-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.hero-title {
  margin: 16px 0 20px;
  color: #ffffff;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  background: linear-gradient(100deg, #ffffff 5%, #9fe8ff 42%, #2c8fff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(120, 220, 255, 0.16);
  animation: titleLineIn 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.16s;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0;
  color: rgba(218, 239, 248, 0.76);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-cta,
.secondary-cta,
.submit-button {
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid rgba(198, 244, 255, 0.48);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(120, 220, 255, 0.22) 36%, rgba(30, 124, 255, 0.72)),
    rgba(8, 24, 43, 0.82);
  box-shadow: 0 0 18px rgba(120, 220, 255, 0.22), inset 0 0 18px rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.secondary-cta {
  background: rgba(8, 24, 43, 0.56);
  color: rgba(232, 249, 255, 0.86);
}

.primary-cta:hover,
.secondary-cta:hover,
.submit-button:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 24px rgba(120, 220, 255, 0.32), inset 0 0 18px rgba(255, 255, 255, 0.1);
}

.primary-cta:active,
.secondary-cta:active,
.submit-button:active {
  transform: scale(0.97);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: 0 0 14px rgba(120, 220, 255, 0.14), inset 0 0 16px rgba(255, 255, 255, 0.055);
}

.submit-button:disabled:hover {
  transform: none;
  border-color: rgba(198, 244, 255, 0.42);
}

.hero-orbit {
  position: relative;
  min-height: 470px;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(126, 220, 255, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 48px rgba(30, 124, 255, 0.08);
}

.floating-card {
  position: absolute;
  width: 250px;
  padding: 18px;
  border: 1px solid rgba(126, 220, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 24, 43, 0.68);
  box-shadow: var(--shadow), var(--soft-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: floatCard 5.5s ease-in-out infinite;
}

.floating-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.floating-card strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.card-one {
  top: 24px;
  right: 34px;
}

.card-two {
  top: 188px;
  left: 0;
  animation-delay: 0.5s;
}

.card-three {
  right: 0;
  bottom: 34px;
  animation-delay: 1s;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(198, 244, 255, 0.44);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.section-block,
.workspace-section,
.stats-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.panel-title-row h2,
.answer-header h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glass-card,
.glass-panel,
.template-card,
.stat-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--surface);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.glass-card:hover,
.template-card:hover,
.stat-item:hover,
.task-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 244, 255, 0.52);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.3), 0 0 22px rgba(120, 220, 255, 0.18);
}

.glass-card {
  min-height: 220px;
  padding: 24px;
}

.card-number,
.task-card-index {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.glass-card h3 {
  margin: 38px 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.glass-card p,
.task-card-desc,
.site-footer p {
  color: rgba(218, 239, 248, 0.68);
  line-height: 1.7;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.glass-panel {
  padding: 22px;
}

.question-form,
.answer-section {
  min-width: 0;
}

.panel-title-row,
.answer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mini-badge {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(126, 220, 255, 0.22);
  border-radius: 999px;
  color: rgba(232, 249, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  background: rgba(3, 13, 24, 0.48);
}

.knowledge-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(126, 220, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 220, 255, 0.08), transparent 48%),
    rgba(2, 9, 18, 0.42);
}

.knowledge-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.knowledge-panel-header span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.knowledge-panel-header p {
  margin: 6px 0 0;
  color: rgba(218, 239, 248, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.knowledge-count {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(126, 220, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 13, 24, 0.48);
}

.upload-dropzone {
  position: relative;
  min-height: 84px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed rgba(126, 220, 255, 0.28);
  border-radius: 8px;
  color: rgba(232, 249, 255, 0.84);
  text-align: center;
  background: rgba(2, 9, 18, 0.48);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.upload-dropzone:hover {
  border-color: rgba(198, 244, 255, 0.52);
  background: rgba(5, 20, 37, 0.6);
  box-shadow: 0 0 18px rgba(120, 220, 255, 0.12);
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone span {
  font-weight: 900;
}

.upload-dropzone small {
  color: rgba(218, 239, 248, 0.5);
  font-size: 12px;
}

.upload-button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(126, 220, 255, 0.22);
  border-radius: 8px;
  color: rgba(232, 249, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
  background: rgba(3, 13, 24, 0.62);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.upload-button:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 244, 255, 0.48);
  box-shadow: 0 0 16px rgba(120, 220, 255, 0.16);
}

.upload-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.upload-status {
  min-height: 22px;
  margin-top: 8px;
  color: rgba(218, 239, 248, 0.66);
  font-size: 12px;
}

.upload-status.is-success {
  color: #bdf6ff;
}

.upload-status.is-error {
  color: #ffd0d0;
}

.knowledge-file-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(126, 220, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 9, 18, 0.42);
}

.file-name {
  overflow: hidden;
  color: rgba(232, 249, 255, 0.86);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta,
.file-empty {
  color: rgba(218, 239, 248, 0.48);
  font-size: 12px;
}

.task-options {
  display: grid;
  gap: 12px;
}

.task-card {
  min-height: 104px;
  padding: 16px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(126, 220, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  text-align: left;
  background: rgba(5, 16, 30, 0.58);
  opacity: 0.66;
  transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.task-card.is-active {
  opacity: 1;
  border-color: rgba(198, 244, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(120, 220, 255, 0.12)),
    rgba(8, 29, 52, 0.72);
  box-shadow: var(--soft-glow), inset 0 0 20px rgba(255, 255, 255, 0.055);
}

.task-card-title {
  font-size: 16px;
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 154px;
  margin-top: 16px;
  resize: vertical;
  border: 1px solid rgba(126, 220, 255, 0.22);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--text);
  line-height: 1.65;
  outline: none;
  background: rgba(2, 9, 18, 0.76);
  box-shadow: inset 0 0 22px rgba(120, 220, 255, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea::placeholder {
  color: rgba(196, 222, 235, 0.56);
}

textarea:focus {
  border-color: var(--line-strong);
  box-shadow: var(--soft-glow), inset 0 0 24px rgba(120, 220, 255, 0.06);
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.example-button,
.answer-action-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(126, 220, 255, 0.22);
  border-radius: 8px;
  color: rgba(232, 249, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
  background: rgba(3, 13, 24, 0.58);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.example-button:hover,
.answer-action-button:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 244, 255, 0.48);
  box-shadow: 0 0 16px rgba(120, 220, 255, 0.16);
}

.submit-button {
  width: 100%;
}

.analysis-progress {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 220, 255, 0.08);
  opacity: 0;
}

.analysis-progress.is-active {
  opacity: 1;
}

.analysis-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--primary), var(--blue));
  animation: progressSweep 1.1s ease-in-out infinite;
}

.question-history {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(126, 220, 255, 0.12);
}

.question-history-title {
  margin-bottom: 10px;
  color: rgba(232, 249, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.question-history-list {
  display: grid;
  gap: 8px;
}

.history-button {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(126, 220, 255, 0.14);
  border-radius: 8px;
  color: rgba(218, 239, 248, 0.78);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(2, 9, 18, 0.42);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.history-button:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 244, 255, 0.42);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(120, 220, 255, 0.12);
}

.history-empty {
  color: rgba(218, 239, 248, 0.46);
  font-size: 13px;
}

.answer-section {
  display: flex;
  min-height: 640px;
  flex-direction: column;
}

.answer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(218, 239, 248, 0.7);
  font-size: 12px;
}

.answer-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(126, 220, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 13, 24, 0.42);
}

#answerStatus {
  color: #ffffff;
  font-weight: 900;
}

#answerSource {
  color: #ffffff;
  font-weight: 900;
}

.answer-box {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(126, 220, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  color: #e8f9ff;
  background: rgba(2, 9, 18, 0.58);
  line-height: 1.82;
}

.answer-box.is-empty {
  color: rgba(218, 239, 248, 0.58);
}

.answer-box.is-loading {
  display: grid;
  place-items: center;
  min-height: 240px;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(232, 249, 255, 0.9);
  font-weight: 800;
}

.loading-orb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(126, 220, 255, 0.2);
  border-top-color: rgba(198, 244, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(120, 220, 255, 0.48);
  animation: loadingSpin 0.85s linear infinite, loadingPulse 1.6s ease-in-out infinite;
}

.answer-section.has-answer {
  animation: resultSpring 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.markdown-section {
  padding: 15px 0;
  border-bottom: 1px solid rgba(126, 220, 255, 0.11);
  animation: suggestionIn 0.42s ease-out both;
}

.markdown-section:nth-child(2) {
  animation-delay: 0.08s;
}

.markdown-section:nth-child(3) {
  animation-delay: 0.16s;
}

.markdown-section:nth-child(4) {
  animation-delay: 0.24s;
}

.markdown-section:nth-child(5) {
  animation-delay: 0.32s;
}

.markdown-section:first-child {
  padding-top: 0;
}

.markdown-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.markdown-section.is-risk {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(250, 202, 93, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 202, 93, 0.08), rgba(120, 220, 255, 0.035)),
    rgba(8, 16, 25, 0.52);
}

.answer-box h3,
.answer-box h4,
.answer-box p,
.answer-box ul,
.answer-box ol {
  margin-top: 0;
}

.answer-box h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
}

.answer-box h4 {
  margin-bottom: 8px;
  color: #d9f7ff;
  font-size: 15px;
}

.answer-box p {
  margin-bottom: 13px;
}

.answer-box ul,
.answer-box ol {
  margin-bottom: 13px;
  padding-left: 20px;
}

.answer-box li + li {
  margin-top: 6px;
}

.answer-box strong {
  padding: 1px 5px;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(120, 220, 255, 0.1);
}

.answer-box code {
  padding: 2px 5px;
  border: 1px solid rgba(126, 220, 255, 0.22);
  border-radius: 4px;
  color: #bcefff;
  background: rgba(2, 9, 18, 0.76);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.reference-sources {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(126, 220, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 220, 255, 0.055), transparent 58%),
    rgba(2, 9, 18, 0.5);
  box-shadow: inset 0 0 22px rgba(120, 220, 255, 0.035);
}

.reference-sources[hidden] {
  display: none;
}

.reference-sources h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.reference-source-list {
  display: grid;
  gap: 10px;
}

.reference-source-card {
  padding: 13px 14px;
  border: 1px solid rgba(126, 220, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 13, 24, 0.5);
}

.reference-source-file {
  color: #bdf6ff;
  font-size: 13px;
  font-weight: 900;
}

.reference-source-snippet {
  margin: 8px 0 0;
  color: rgba(218, 239, 248, 0.56);
  font-size: 13px;
  line-height: 1.75;
}

.template-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
}

.template-card {
  min-height: 170px;
  padding: 20px;
  color: #ffffff;
  text-align: left;
  scroll-snap-align: start;
}

.template-card strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-item {
  min-height: 150px;
  padding: 22px;
  display: grid;
  align-content: center;
}

.stat-item strong {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.stat-item span {
  margin-top: 12px;
  color: rgba(218, 239, 248, 0.68);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid rgba(126, 220, 255, 0.14);
  color: rgba(218, 239, 248, 0.66);
}

.site-footer strong {
  color: #ffffff;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: #ffffff;
}

.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal.is-visible .glass-card,
.section-reveal.is-visible .task-card,
.section-reveal.is-visible .template-card {
  animation: cardIn 0.6s ease-out both;
}

.section-reveal.is-visible .glass-card:nth-child(2),
.section-reveal.is-visible .task-card:nth-child(2),
.section-reveal.is-visible .template-card:nth-child(2) {
  animation-delay: 0.15s;
}

.section-reveal.is-visible .glass-card:nth-child(3),
.section-reveal.is-visible .task-card:nth-child(3),
.section-reveal.is-visible .template-card:nth-child(3) {
  animation-delay: 0.3s;
}

@media (max-width: 980px) {
  .site-navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

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

  .hero-orbit {
    min-height: 360px;
  }

  .feature-grid,
  .stats-section {
    grid-template-columns: 1fr 1fr;
  }

  .answer-section {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .site-navbar {
    height: 62px;
  }

  .nav-status {
    display: none;
  }

  .hero-section,
  .section-block,
  .workspace-section,
  .stats-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    padding-top: 104px;
  }

  .hero-title {
    font-size: clamp(42px, 16vw, 58px);
  }

  .hero-orbit {
    min-height: 390px;
  }

  .floating-card {
    width: min(260px, 86vw);
  }

  .card-one {
    top: 12px;
    right: 0;
  }

  .card-two {
    top: 150px;
  }

  .card-three {
    bottom: 12px;
  }

  .feature-grid,
  .stats-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .panel-title-row,
  .answer-header {
    flex-direction: column;
  }

  .answer-actions {
    justify-content: flex-start;
  }
}

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

@keyframes introCurtain {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    filter: blur(10px);
    visibility: hidden;
  }
}

@keyframes titleLineIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 58px 58px, 58px 58px;
  }
}

@keyframes progressSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(260%);
  }
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(120, 220, 255, 0.32);
  }

  50% {
    box-shadow: 0 0 22px rgba(120, 220, 255, 0.64);
  }
}

@keyframes resultSpring {
  from {
    opacity: 0.82;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes suggestionIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
