@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Deep navy palette — professional, not gloomy ── */
  --bg-primary:   #070c1c;   /* deep navy, far from void-black */
  --bg-secondary: #0c1228;   /* card / panel surface          */
  --bg-tertiary:  #111a35;   /* inset / input areas           */
  --bg-hover:     #18224a;   /* hover lift                    */

  --text-primary:   #edf0fa;   /* slightly cool-white           */
  --text-secondary: #8a9ec8;   /* blue-grey, not flat grey      */
  --text-tertiary:  #4a5880;   /* dimmed but still tinted       */

  /* Borders carry the indigo hue */
  --border-subtle:  rgba(99, 120, 255, 0.09);
  --border-default: rgba(99, 120, 255, 0.16);
  --border-hover:   rgba(99, 120, 255, 0.28);

  /* Accent — indigo / violet */
  --accent:        #6366f1;
  --accent-hover:  #818cf8;
  --accent-subtle: rgba(99, 102, 241, 0.12);

  /* Status */
  --success:        #22c55e;
  --success-subtle: rgba(34, 197, 94, 0.1);
  --error:          #ef4444;
  --error-subtle:   rgba(239, 68, 68, 0.1);
  --warning:        #f59e0b;

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;

  --shadow-sm: 0 0 0 1px var(--border-subtle);
  --shadow:    0 2px 8px rgba(0,0,0,0.35), 0 0 0 1px var(--border-subtle);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--border-subtle);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(160deg, #070c1c 0%, #09102a 45%, #070b20 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* fixed nav 高度 60px — 防止内容被遮 */
  padding-top: 60px;
}

/* Header - 固定吸顶（fixed 跨浏览器最可靠） */
.brand-nav {
  background: rgba(7, 12, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 60px;
}

.brand-stack {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.lobster-icon {
  width: 26px;
  height: 26px;
  z-index: 2;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 150ms ease;
  text-decoration: none;
}

.ghost-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Tabs - 胶囊样式 */
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  margin: 24px auto;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  width: fit-content;
  max-width: calc(100% - 48px);
}

.workspace-tabs button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 150ms ease;
  letter-spacing: -0.01em;
}

.workspace-tabs button.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  font-weight: 600;
}

.workspace-tabs button:hover:not(.active) {
  color: var(--text-primary);
}

/* Context Banner */
#context-banner p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

/* App Shell */
#app-shell {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0;
  align-items: start;
  box-sizing: border-box;
}

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

/* Panels - 精致的卡片 */
.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 200ms ease;
}

.panel:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Input Panel */
#input-panel,
#result-panel {
  min-height: 260px;
  margin: 0;
}

.panel-desc {
  margin: -4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Upload Zone */
.upload-zone {
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 200ms ease;
  background: var(--bg-tertiary);
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  border-style: solid;
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-subtle);
}

.upload-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.upload-zone.has-file .upload-hint {
  display: none;
}

.upload-icon {
  font-size: 28px;
  margin-bottom: 2px;
  opacity: 0.9;
}

.upload-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.upload-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.upload-file-info.hidden {
  display: none;
}

.file-icon {
  font-size: 22px;
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 11px;
  color: var(--text-secondary);
}

.file-remove {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 150ms ease;
}

.file-remove:hover {
  background: var(--error-subtle);
  border-color: var(--error);
  color: var(--error);
}

/* Form Fields */
label.field {
  display: block;
  margin-bottom: 12px;
}

label.field span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-sizing: border-box;
  font-size: 13px;
  transition: all 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

/* Run Button */
button#run-task {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms ease;
  letter-spacing: -0.01em;
}

button#run-task:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

button#run-task:active {
  transform: scale(0.98);
}

/* Status */
.status {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  background: var(--bg-tertiary);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status.running {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.status.success {
  background: var(--success-subtle);
  border-color: var(--success);
  color: var(--success);
}

.status.error {
  background: var(--error-subtle);
  border-color: var(--error);
  color: var(--error);
}

.status.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

.task-summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Artifact Links */
.artifact-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.artifact-links.hidden {
  display: none;
}

.artifact-links a,
.artifact-dl-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: all 150ms ease;
  border: 1px solid var(--border-subtle);
}

.artifact-links a:hover,
.artifact-dl-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Report Preview */
.report-preview {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.7;
  max-height: 500px;
  overflow-y: auto;
}

.report-preview.hidden {
  display: none;
}

/* Stats Cards */
.report-stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 4-card layout (contract audit) */
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

/* 6-card layout → 3 columns × 2 rows */
.report-stats-cards--6 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  padding: 12px 8px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-subtle);
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  transition: border-color 150ms, background 150ms;
}
.stat-card:hover {
  border-color: var(--border-default);
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.stat-card .stat-icon {
  font-size: 11px;
  line-height: 1;
}

.stat-card .stat-number {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Pagination styles */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--text-secondary);
}

.page-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-card.high {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}
.stat-card.high .stat-number { color: #ef4444; }

.stat-card.medium {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}
.stat-card.medium .stat-number { color: #f59e0b; }

.stat-card.low {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}
.stat-card.low .stat-number { color: #22c55e; }

.stat-card.total {
  background: var(--bg-hover);
}
.stat-card.total .stat-number { color: var(--accent); }

/* Key Risks */
.key-risks {
  margin-bottom: 16px;
}

.risk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.risk-item .risk-type {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 11px;
}

.risk-item .risk-location {
  color: var(--text-tertiary);
  font-size: 10px;
  font-family: monospace;
}

.risk-more {
  text-align: center;
  padding: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-style: italic;
}

.report-preview h4 {
  margin: 16px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.report-preview h4:first-of-type {
  margin-top: 0;
}

.report-preview ul,
.report-preview ol {
  margin: 0 0 12px;
  padding-left: 16px;
}

.report-preview li {
  margin-bottom: 6px;
}

.report-preview li strong {
  color: var(--accent);
  font-weight: 500;
}

/* Issue Groups */
.issue-group {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}

.issue-group strong {
  color: var(--text-primary);
  font-size: 13px;
}

.issue-group ul {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 11px;
  color: var(--text-secondary);
}

.issue-group li {
  margin-bottom: 2px;
  font-family: monospace;
}

/* History Panel */
.history-panel {
  margin: 16px 0 0 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: all 200ms ease;
}

.history-panel:hover {
  border-color: var(--border-default);
}

.history-panel.is-empty {
  margin: 16px 0 0 0;
  text-align: center;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.history-head h2 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.history-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-list li.empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 20px;
  font-size: 13px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  border: 1px dashed var(--border-default);
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  gap: 24px;
  align-items: center;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: none;
  transition: all 150ms ease;
  box-sizing: border-box;
}

.history-item:hover {
  background: var(--bg-hover);
}

.history-item + .history-item {
  border-top: none;
}



.history-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.history-meta .time {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.history-meta .task-id {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'SF Mono', Monaco, monospace;
}

.history-status {
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-block;
  height: 20px;
  line-height: 20px;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
  margin: 0;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.history-status.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.history-status.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.history-status.processing {
  background: rgba(99, 120, 255, 0.12);
  border-color: rgba(99, 120, 255, 0.4);
  color: var(--accent);
  animation: pulse-badge 1.4s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

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

/* Landing Page */
#landing {
  padding: 40px 20px 72px;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow-lg);
}

.hero-card h2 {
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-card .hero-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

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

.hero-btn {
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
}

.hero-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.hero-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.landing-header {
  padding: 16px 24px 0;
  font-size: 18px;
  font-weight: 600;
}

body.landing-only .landing-header h1,
body.landing-only header h1 {
  font-size: 22px;
}

/* Wallet Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}

.wallet-btn:hover {
  background: var(--accent);
  color: white;
}

.wallet-btn.connected {
  background: var(--success-subtle);
  border-color: var(--success);
  color: var(--success);
}

.wallet-btn.connected:hover {
  background: var(--success);
  color: white;
}

.wallet-icon {
  font-size: 14px;
}

/* History Filters */
.history-filters {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 150ms ease;
}

.filter-btn:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.history-skill {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

.history-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

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

.history-link-placeholder {
  display: inline-block;
  width: 48px;
  text-align: center;
  color: var(--text-tertiary);
}

/* Workspace Header specific */
.workspace-header {
  justify-content: space-between;
}

/* History Grid Layout - Override */
.history-col1 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.history-col2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.history-col3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.history-no-report {
  font-size: 12px;
  color: var(--text-tertiary);
}

.history-dl-btn {
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(99, 120, 255, 0.08);
  border: 1px solid rgba(99, 120, 255, 0.22);
  color: var(--accent);
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.history-dl-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.history-dl-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ========================================
   FUTURISTIC LANDING PAGE - 未来感首页
   ======================================== */

/* 环境光效 */
.ambient-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* 网格背景 */
.grid-overlay {
  display: none;
}

/* Logo脉冲效果 */
.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: white;
  overflow: visible;
}

.logo-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  opacity: 0.5;
  filter: blur(8px);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* 首页内容区 */
#landing {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  position: relative;
}

/* 徽章 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 120, 255, 0.08);
  border: 1px solid rgba(99, 120, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: #a5b8f8;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* 主标题 */
.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
}

.title-gradient {
  background: linear-gradient(135deg, #e8ecff 0%, #a5b4fc 45%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(99,102,241,0.25));
}

/* 副标题 */
.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

/* 描述 */
.hero-desc {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* 按钮 */
.hero-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #5b5ef5 0%, #7c3aed 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 4px 24px rgba(99,102,241,0.4),
    0 0 60px rgba(99,102,241,0.15);
}

.hero-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 30px rgba(99, 102, 241, 0.4);
}

.hero-btn--primary:hover::before {
  opacity: 1;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.hero-btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* 浮动卡片 */
.floating-elements {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  animation: floatCard 6s ease-in-out infinite;
}

.card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 60%;
  right: 8%;
  animation-delay: -2s;
}

.card-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: -4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-1deg); }
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .float-card {
    display: none;
  }
}

/* ========================================
   WORKSPACE FUTURISTIC STYLES - 工作区未来感
   ======================================== */

/* 工作区主体 */
body:not(.landing-only) {
  position: relative;
  min-height: 100vh;
}

body:not(.landing-only) .ambient-glow {
  opacity: 0.6;
}

/* 工作区头部 — 不再单独设置 position，继承 .brand-nav 的 fixed */
.workspace-header {
  /* position 由 .brand-nav fixed 统一管理，此处只做外观微调 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.workspace-header .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 32px;
}

.nav-link:hover {
  color: var(--accent);
}

/* Tab按钮未来感 */
.workspace-tabs {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.workspace-tabs button {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.workspace-tabs button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.workspace-tabs button.active {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Context Banner */
#context-banner {
  position: relative;
  z-index: 10;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#context-banner::before {
  content: '';
  width: 36px;
  height: 2px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.7), transparent);
  flex-shrink: 0;
}

#current-skill-desc {
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 560px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(165,180,252,0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.01em;
  margin: 0;
}

/* 工作区网格 */
.workspace-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

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

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

/* 玻璃态面板 */
.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.panel h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.panel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}

/* 上传区域 */
.upload-zone {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.5);
}

.upload-zone.dragover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.upload-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

/* 文件信息 */
.upload-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.file-size {
  font-size: 12px;
  color: var(--text-secondary);
}

.file-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  border: none;
  border-radius: 6px;
  color: #f87171;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* 运行按钮 */
#run-task {
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

#run-task:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

#run-task:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 结果面板状态 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.task-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0;
}

/* 历史记录面板 */
.history-panel {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.history-head h2 {
  margin-bottom: 12px;
}

/* 钱包按钮 */
.wallet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.wallet-btn.connected {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* 幽灵按钮 */
.ghost-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ========================================
   LANDING PAGE — NEW SECTIONS
   ======================================== */

/* ── Nav links ── */
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 4px;
}

.lp-nav-item {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lp-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.lp-nav-cta {
  margin-left: 10px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
  white-space: nowrap;
}

.lp-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
}

/* ── Hero extras ── */
.hero-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.trust-dot.green  { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.trust-dot.blue   { background: #38bdf8; box-shadow: 0 0 6px #38bdf888; }
.trust-dot.purple { background: #a78bfa; box-shadow: 0 0 6px #a78bfa88; }

.trust-sep { color: var(--border-default); }

/* Float card subtitle */
.card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ── Shared section layout ── */
.lp-section {
  position: relative;
  z-index: 2;
  padding: 96px 24px;
}

.lp-section--alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--accent-subtle);
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.2);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Stats ── */
.lp-stats-section {
  padding: 56px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.04) 50%, transparent 100%);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.stat-block {
  flex: 1;
  text-align: center;
  padding: 40px 24px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 60%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus, .stat-pct, .stat-unit {
  font-size: 28px;
  font-weight: 600;
}

.stat-block .stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card--large {
  grid-row: span 2;
  grid-column: 1;
}

.feature-card--wide {
  grid-column: 2 / span 2;
  display: flex;
  gap: 32px;
  align-items: center;
}

.feature-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.feature-card-inner {
  position: relative;
  z-index: 2;
  padding: 32px;
  flex: 1;
}

.feature-card-glow {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.feature-card:hover .feature-card-glow {
  opacity: 0.28;
}

.feature-glow--indigo  { background: #6366f1; }
.feature-glow--violet  { background: #8b5cf6; }
.feature-glow--cyan    { background: #06b6d4; }
.feature-glow--emerald { background: #10b981; }

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-icon--indigo  { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.feature-icon--violet  { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.feature-icon--cyan    { background: rgba(6,182,212,0.15);  color: #22d3ee; border: 1px solid rgba(6,182,212,0.25);  }
.feature-icon--emerald { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.feature-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feature-cta:hover {
  color: var(--accent-hover);
  gap: 8px;
}

/* Report mock preview */
.feature-report-preview {
  width: 260px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 24px 24px 0;
}

.report-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-dot.red    { background: #ef4444; }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.green  { background: #22c55e; }

.mock-title {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: monospace;
}

.report-mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  width: 100%;
}

.mock-line--title {
  height: 14px;
  background: rgba(255,255,255,0.1);
  width: 65%;
}

.mock-line.w70 { width: 70%; }
.mock-line.w50 { width: 50%; }
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }

.mock-badges {
  display: flex;
  gap: 6px;
}

.mock-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.mock-badge.red    { background: rgba(239,68,68,0.15); color: #f87171; }
.mock-badge.yellow { background: rgba(245,158,11,0.15); color: #fbbf24; }
.mock-badge.green  { background: rgba(34,197,94,0.15);  color: #4ade80; }

/* ── How It Works ── */
.steps-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.04);
  transform: translateY(-4px);
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: monospace;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #818cf8;
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 8px;
  color: var(--text-tertiary);
}

.connector-line {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.connector-arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Tech Cards ── */
.lp-tech-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.tech-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.04);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.tech-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tech-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── CTA Banner ── */
.lp-cta-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}

.cta-banner {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 28px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 36px;
}

.cta-btn {
  font-size: 16px;
  padding: 16px 36px;
}

/* ── Footer ── */
.lp-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--large {
    grid-row: span 1;
    grid-column: span 2;
  }
  .feature-card--wide {
    grid-column: span 2;
  }
  .tech-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .lp-section { padding: 64px 20px; }
  .section-title { font-size: 28px; }
  .stats-grid { flex-direction: column; }
  .stat-divider { width: 60px; height: 1px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large,
  .feature-card--wide { grid-column: span 1; }
  .feature-card--wide { flex-direction: column; }
  .feature-report-preview { width: 100%; margin: 0 0 24px; }
  .steps-row { flex-direction: column; gap: 20px; }
  .step-connector { transform: rotate(90deg); }
  .tech-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Custom Dropdown ── */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
  outline: none;
}

/* Trigger button */
.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-trigger:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.custom-select.cs-open .cs-trigger {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cs-value {
  flex: 1;
  color: var(--text-primary);
}

.cs-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.22s ease, color 0.2s ease;
}

.custom-select.cs-open .cs-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Dropdown panel */
.cs-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: #1c1c28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-select.cs-open .cs-dropdown {
  display: block;
  animation: csSlideIn 0.15s ease;
}

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

/* Option rows */
.cs-option {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cs-option:last-child {
  border-bottom: none;
}

.cs-option:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

.cs-option--selected {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.cs-option--selected::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
}

/* History item name tooltip — 挂在 li 上避免被 overflow:hidden 裁掉 */
.history-item.has-tooltip {
  position: relative;
}
.history-item.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 14px;
  top: calc(100% + 4px);
  background: #2a2a3a;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 200;
}
.history-item.has-tooltip:hover::after {
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   VISUAL OVERHAUL — 2-col Hero + Charts + Animations
   ══════════════════════════════════════════════════ */

/* Aurora — vivid and clearly visible */
.ambient-glow {
  background:
    radial-gradient(ellipse 80% 55% at 10% 10%, rgba(99,102,241,0.32) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 88% 78%, rgba(139,92,246,0.26) 0%, transparent 50%),
    radial-gradient(ellipse 55% 65% at 68% 2%,  rgba(34,211,238,0.18) 0%, transparent 48%),
    radial-gradient(ellipse 45% 38% at 3%  92%, rgba(16,185,129,0.13) 0%, transparent 42%),
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(99,102,241,0.08) 0%, transparent 60%);
  animation: auroraShift 12s ease-in-out infinite;
}

@keyframes auroraShift {
  0%, 100% { transform: scale(1)   rotate(0deg); }
  33%       { transform: scale(1.04) rotate(1deg); }
  66%       { transform: scale(0.97) rotate(-1deg); }
}

/* ── Hero 2-column layout ─────────────────────── */
#landing {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 80px 80px 80px;
  min-height: 100vh;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-content {
  text-align: left;
  flex: 0 1 500px;
  max-width: 500px;
}

.hero-content .hero-desc   { margin-left: 0; }
.hero-content .hero-trust  { justify-content: flex-start; }
.hero-content .hero-buttons { justify-content: flex-start; }

/* ── Hero visual (right column) ──────────────── */
.hero-visual {
  flex: 0 0 390px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* ── Dashboard cards ─────────────────────────── */
.dash-card {
  background: linear-gradient(145deg, rgba(12,20,48,0.88) 0%, rgba(9,14,36,0.88) 100%);
  border: 1px solid rgba(99,120,255,0.14);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dash-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,140,255,0.45), transparent);
  pointer-events: none;
}
.dash-card:hover {
  border-color: rgba(99,120,255,0.26);
  box-shadow: 0 12px 40px rgba(0,0,30,0.5);
}

.dash-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dash-htitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade8099;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Score gauge ─────────────────────────────── */
.gauge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.gauge-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
}

.gauge-svg { width: 100%; height: auto; display: block; }

.gauge-fill {
  stroke-dasharray: 213.6 300;
  stroke-dashoffset: 213.6;
  /* JS will transition this to 27.8 */
}

.gauge-overlay {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.gauge-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.gauge-sub { font-size: 11px; color: var(--text-tertiary); margin-left: 1px; }

.gauge-meta { display: flex; flex-direction: column; gap: 3px; }

.gauge-grade {
  font-size: 20px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gauge-label  { font-size: 12px; color: var(--text-secondary); }
.gauge-change { font-size: 11px; color: #4ade8099; }

/* ── Donut chart ─────────────────────────────── */
.vuln-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.donut-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.donut-svg { width: 100%; height: 100%; }

.donut-track { fill: none; stroke: #1e1e32; }

.donut-seg {
  fill: none;
  stroke-dasharray: 0 238.76;
  /* dashoffset set by JS per segment */
}

.seg-critical { stroke: #ef4444; }
.seg-high     { stroke: #f97316; }
.seg-medium   { stroke: #f59e0b; }
.seg-low      { stroke: #22c55e; }

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dc-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.dc-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vuln-legend { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.vl-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
}

.vl-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.vl-cnt { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-primary); }

/* ── Scan progress bars ──────────────────────── */
.scan-bars { display: flex; flex-direction: column; gap: 9px; }

.sb-row { display: flex; align-items: center; gap: 9px; }

.sb-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  width: 72px;
  flex-shrink: 0;
}

.sb-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.sb-fill {
  height: 100%;
  width: 0%;
  background: var(--tc);
  border-radius: 100px;
  box-shadow: 0 0 8px var(--tc);
}

.sb-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Line chart card ─────────────────────────── */
.perf-dash { padding: 16px 20px; }

.perf-tag {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99,102,241,0.12);
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.2);
}

.lc-wrap {
  height: 70px;
  margin: 0 -4px;
  overflow: hidden;
}

.lc-svg { width: 100%; height: 100%; }

.lc-line {
  stroke: #6366f1;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  /* dasharray / dashoffset set by JS */
}

.lc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.lc-footer b { color: var(--text-secondary); font-weight: 600; }

/* ── Scroll fade-up ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside fade-up containers */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

.steps-row .step-card:nth-child(1) { transition-delay: 0s; }
.steps-row .step-card:nth-child(3) { transition-delay: 0.15s; }
.steps-row .step-card:nth-child(5) { transition-delay: 0.3s; }

.tech-cards .tech-card:nth-child(1) { transition-delay: 0s; }
.tech-cards .tech-card:nth-child(2) { transition-delay: 0.07s; }
.tech-cards .tech-card:nth-child(3) { transition-delay: 0.14s; }
.tech-cards .tech-card:nth-child(4) { transition-delay: 0.21s; }
.tech-cards .tech-card:nth-child(5) { transition-delay: 0.28s; }
.tech-cards .tech-card:nth-child(6) { transition-delay: 0.35s; }

/* ── Stats counter highlight ─────────────────── */
.stat-num .cn {
  display: inline;
}

/* ── Responsive overrides ────────────────────── */
@media (max-width: 1100px) {
  #landing { padding: 60px 40px; gap: 40px; }
  .hero-visual { flex: 0 0 340px; }
}

@media (max-width: 900px) {
  #landing {
    flex-direction: column;
    padding: 60px 24px 80px;
    min-height: auto;
    max-width: 100%;
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
    flex: none;
  }
  .hero-content .hero-trust  { justify-content: center; }
  .hero-content .hero-buttons { justify-content: center; }
  .hero-visual { flex: none; width: 100%; max-width: 400px; }
}

/* ================================================================
   WORKSPACE REDESIGN v2  — 专业控制台风格
   ================================================================ */

/* ── Tabs with icons ──────────────────────────────────────────── */
.workspace-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 150ms;
}
.workspace-tabs button.active .tab-icon { opacity: 1; }
.workspace-tabs button:hover:not(.active) .tab-icon { opacity: 0.85; }

/* ── Context Banner badge ────────────────────────────────────── */
.cb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cb-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
  animation: cbPing 2s ease-in-out infinite;
}
@keyframes cbPing {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Feature Capability Strip ────────────────────────────────── */
.feat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
@media (max-width: 700px) {
  .feat-strip { grid-template-columns: 1fr; }
}

.feat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: linear-gradient(145deg, rgba(14,22,50,0.85) 0%, rgba(10,16,38,0.85) 100%);
  border: 1px solid rgba(99,120,255,0.12);
  border-radius: 12px;
  transition: border-color 200ms, background 200ms, transform 200ms, box-shadow 200ms;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,130,255,0.5), transparent);
}
.feat-card:hover {
  border-color: rgba(99,120,255,0.24);
  background: linear-gradient(145deg, rgba(18,28,62,0.9) 0%, rgba(14,20,48,0.9) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,40,0.4);
}

.feat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feat-icon-wrap svg { width: 20px; height: 20px; }
.feat-purple { background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2); color: #818cf8; }
.feat-blue   { background: rgba(59,130,246,0.12);  border: 1px solid rgba(59,130,246,0.2);  color: #60a5fa; }
.feat-green  { background: rgba(34,197,94,0.12);   border: 1px solid rgba(34,197,94,0.2);   color: #4ade80; }

.feat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feat-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.feat-chips span {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* ── Panel Header row ────────────────────────────────────────── */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-badge {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.22);
  color: #818cf8;
  font-size: 10px;
  font-weight: 600;
  font-family: 'SF Mono', Monaco, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Workspace Panel — navy-glass surface + top glow ────────── */
.ws-panel {
  position: relative;
  background: linear-gradient(155deg, rgba(12,20,44,0.96) 0%, rgba(9,15,36,0.96) 100%);
  border-color: rgba(99,120,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ws-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,130,255,0.55), transparent);
  border-radius: 1px;
  pointer-events: none;
}
.ws-panel:hover::before {
  background: linear-gradient(90deg, transparent, rgba(99,130,255,0.80), transparent);
}
.ws-panel:hover {
  border-color: rgba(99,120,255,0.24);
  box-shadow: 0 8px 32px rgba(0,0,20,0.5), 0 0 0 1px rgba(99,120,255,0.18);
}

/* ── Upload Zone — scan animation ───────────────────────────── */
.upload-zone { position: relative; overflow: hidden; }

.uz-scan-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}
.uz-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.uz-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99,102,241,0.45) 25%,
    rgba(139,92,246,0.7) 50%,
    rgba(99,102,241,0.45) 75%,
    transparent 100%
  );
  animation: uzScan 4s ease-in-out infinite;
  opacity: 0;
  filter: blur(0.5px);
}
@keyframes uzScan {
  0%   { top: 5%;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}
.upload-zone:hover .uz-scan-line { animation-duration: 2.2s; }
.upload-zone.has-file .uz-scan-line {
  background: linear-gradient(90deg,
    transparent, rgba(34,197,94,0.45), rgba(34,197,94,0.65), rgba(34,197,94,0.45), transparent
  );
}
.upload-zone.dragover .uz-scan-line { animation-duration: 1s; }

/* Upload icon box (replaces emoji) */
.upload-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: background 200ms, border-color 200ms, transform 200ms;
  color: var(--accent);
}
.upload-icon-box svg { width: 26px; height: 26px; }

.upload-zone:hover .upload-icon-box {
  background: rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-1px);
}
.upload-zone.has-file .upload-icon-box {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: var(--success);
}

/* File icon box */
.file-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.file-icon-box svg { width: 16px; height: 16px; }

/* file-remove SVG button */
.file-remove {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-remove svg { width: 12px; height: 12px; }

/* ── Scan Checklist ──────────────────────────────────────────── */
.scan-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -2px;
}
.sc-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-dot--green  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.55); }
.sc-dot--blue   { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.55); }
.sc-dot--purple { background: #6366f1; box-shadow: 0 0 6px rgba(99,102,241,0.55); }

/* ── Result Panel ────────────────────────────────────────────── */
.rp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rp-top h2 { margin: 0; }

/* Idle visual */
.result-idle-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 20px;
  position: relative;
  gap: 0;
}

/* Hide idle visual when a task state is active */
#result-panel:has(.status.running)  .result-idle-visual,
#result-panel:has(.status.success)  .result-idle-visual,
#result-panel:has(.status.error)    .result-idle-visual,
#result-panel:has(.status.warning)  .result-idle-visual {
  display: none;
}

/* Hide default summary text on idle (idle visual covers it) */
#result-panel:not(:has(.status.running)):not(:has(.status.success)):not(:has(.status.error)):not(:has(.status.warning)) #task-summary {
  display: none;
}

/* Concentric pulsing rings */
.riv-bg-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.riv-ring {
  position: absolute;
  width: var(--s, 80px);
  height: var(--s, 80px);
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.14);
  animation: rivPulse 3s ease-out var(--d, 0s) infinite;
}
@keyframes rivPulse {
  0%   { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.25); }
}

/* Shield icon */
.riv-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(99,102,241,0.45);
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  animation: rivIconFloat 4s ease-in-out infinite;
}
.riv-icon-wrap svg { width: 28px; height: 28px; }
@keyframes rivIconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.riv-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 4px;
  position: relative;
  z-index: 1;
}
.riv-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Run button upgrade ──────────────────────────────────────── */
button#run-task {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(99,102,241,0.28);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
button#run-task::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
}
button#run-task:hover:not(:disabled) {
  background: linear-gradient(135deg, #818cf8 0%, #8b5cf6 100%);
  box-shadow: 0 6px 28px rgba(99,102,241,0.42);
  transform: translateY(-2px);
}

/* ── History Panel upgrades ──────────────────────────────────── */
.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.history-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  flex-shrink: 0;
}
.hs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.hs-dot--success { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); animation: cbPing 2s ease-in-out infinite; }
.hs-label { font-size: 11px; color: #4ade80; font-weight: 500; }

.history-thead {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  gap: 24px;
  padding: 6px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2px;
}
.history-thead span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.history-thead span:nth-child(2) { text-align: left; }
.history-thead span:last-child   { text-align: left; }

/* Filter buttons with icons */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.filter-btn svg { width: 9px; height: 9px; opacity: 0.7; }
.filter-btn.active svg { opacity: 1; }

/* Empty state icon */
.history-list li.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.history-list li.empty svg {
  width: 28px;
  height: 28px;
  opacity: 0.25;
}

/* Pagination button icons */
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.page-btn svg { width: 10px; height: 10px; }

/* History item hover glow */
.history-item:hover {
  background: rgba(99,102,241,0.04);
  border-radius: var(--radius-sm);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .feat-strip { display: none; }
  .history-thead { display: none; }
}

/* ================================================================
   CUSTOM MODAL — Disconnect Wallet
   ================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 28px 28px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.4);
  /* entrance animation */
  transform: scale(0.93) translateY(8px);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
/* top glow accent */
.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
}
.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}

/* Wallet icon */
.modal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  margin-bottom: 16px;
}
.modal-icon-wrap svg { width: 26px; height: 26px; }

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.modal-addr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.modal-addr-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  flex-shrink: 0;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 280px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.modal-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}
.modal-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.modal-btn--cancel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.modal-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.modal-btn--danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.modal-btn--danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

/* ── Upload error inline message ─────────────────────────── */
.upload-error {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
  animation: ueSlideIn 180ms ease;
}
@keyframes ueSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.upload-error.hidden { display: none; }
.upload-error .ue-icon { flex-shrink: 0; opacity: 0.9; }
.upload-error .ue-text { flex: 1; letter-spacing: 0.01em; }

/* Upload zone error state */
.upload-zone.has-error {
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: rgba(239, 68, 68, 0.03) !important;
}
