
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #101510;
  --panel: #171e17;
  --panel-light: #1d271d;
  --line: #303c2d;
  --text: #f1f5e9;
  --muted: #9ba894;
  --lime: #d1f17a;
  --lime-dark: #9cc94a;
  --danger: #ff9a91;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }

a { color: inherit; }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .10;
  pointer-events: none;
  z-index: -1;
}

.ambient-one { background: #8bc34a; top: -220px; left: 10%; }
.ambient-two { background: #27875d; top: 550px; right: -280px; }

.topbar {
  height: 76px;
  padding: 0 max(5%, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #ffffff0d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 700 21px 'Space Grotesk', sans-serif;
  letter-spacing: -.7px;
}

.brand-icon { font-size: 25px; }
.brand-ai { color: var(--lime); }

.topbar-right {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px #d1f17a80;
}

.shell {
  width: min(920px, 90%);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 80px 0 57px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero .eyebrow span { margin-right: 5px; }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

h1 {
  margin: 18px 0;
  font-size: clamp(54px, 9vw, 88px);
  line-height: .99;
  letter-spacing: -5px;
}

h1 span, .manifesto h2 span { color: var(--lime); }

.hero-copy {
  max-width: 500px;
  margin: 22px auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 25px;
}

.hero-pills span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #c7d1c0;
  background: #ffffff04;
  font-size: 11px;
}

.dashboard {
  margin-bottom: 23px;
  padding: 28px;
  background: linear-gradient(145deg, #1b231b, #151b15);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 55px #00000012;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.section-heading .eyebrow { margin-bottom: 8px; }

h2 {
  margin: 0;
  font-size: clamp(23px, 4vw, 31px);
  letter-spacing: -1.2px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 9px 0 0;
}

.step-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--lime);
  background: #d1f17a0c;
  border: 1px solid #d1f17a35;
  border-radius: 13px;
  font-size: 20px;
}

.ai-panel {
  padding: 20px;
  border: 1px solid #354331;
  border-radius: 14px;
  background: #111710;
}

.ai-panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.model-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #182013;
  border-radius: 12px;
  font-weight: 800;
}

.model-info { flex: 1; min-width: 0; }
.model-info strong, .model-info span { display: block; }
.model-info strong { font-size: 13px; }
.model-info span { margin-top: 5px; color: var(--muted); font-size: 11px; }

.status-badge, .count-badge {
  flex-shrink: 0;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
}

.status-badge.connected {
  color: var(--lime);
  border-color: #d1f17a4d;
  background: #d1f17a0c;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 600;
}

.token-row {
  display: flex;
  gap: 10px;
}

input, select {
  min-width: 0;
  color: var(--text);
  background: #0d120d;
  border: 1px solid #354331;
  border-radius: 9px;
  outline: none;
}

input {
  width: 100%;
  padding: 13px 14px;
}

input:focus, select:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px #d1f17a12;
}

input::placeholder { color: #667361; }

.button {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }

.button-primary {
  background: var(--lime);
  color: #172012;
}

.button-primary:hover:not(:disabled) { background: #e0ff96; }

.button-secondary {
  flex-shrink: 0;
  color: var(--text);
  border-color: #3c4a37;
  background: #202a1f;
}

.button-secondary:hover:not(:disabled) { background: #2a3727; }

.microcopy {
  margin: 10px 0;
  color: #84917e;
  font-size: 10px;
  line-height: 1.7;
}

.text-link {
  color: var(--lime);
  font-size: 11px;
  text-decoration: none;
}

.text-link:hover, .footer a:hover { text-decoration: underline; }

.message {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--lime);
  font-size: 12px;
  line-height: 1.6;
}

.message:empty { display: none; }
.message.error { color: var(--danger); }

.folder-drop {
  padding: 35px 20px;
  text-align: center;
  border: 1px dashed #53644b;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at center, #d1f17a08, transparent 65%),
    #111710;
}

.folder-art {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  background: #d1f17a0c;
  border: 1px solid #d1f17a2b;
  border-radius: 19px;
  font-size: 30px;
}

.folder-drop h3 { margin: 0; font-size: 19px; }
.folder-drop > p:not(.microcopy) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px auto 20px;
  max-width: 420px;
}

.folder-drop .microcopy { margin-top: 13px; }

.count-badge { color: var(--lime); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111710;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin: 9px 0 4px;
  font: 600 29px 'Space Grotesk', sans-serif;
}

.stat-note { color: #7f8c79; font-size: 10px; }

.empty-state {
  text-align: center;
  padding: 32px 15px;
  border: 1px dashed #34402f;
  border-radius: 13px;
}

.empty-symbol { color: var(--lime); font-size: 26px; }
.empty-state h3 { margin: 10px 0 5px; font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 12px; }

.file-list { display: grid; gap: 9px; }

.file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, 180px);
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111710;
}

.file-card-main { display: flex; align-items: center; gap: 11px; min-width: 0; }

.file-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #263024;
  border-radius: 10px;
  font-size: 17px;
}

.file-info { min-width: 0; }
.file-name {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.file-detail { margin-top: 5px; color: var(--muted); font-size: 10px; }

.file-card select {
  width: 100%;
  padding: 10px;
  font-size: 11px;
}

.organize-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 19px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.organize-footer strong { font-size: 12px; }
.organize-footer .microcopy { margin-bottom: 0; }

.manifesto {
  padding: 58px 20px;
  text-align: center;
}

.manifesto-icon { font-size: 35px; margin-bottom: 15px; }

.manifesto h2 {
  margin: 12px 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
}

.manifesto > p:last-child {
  max-width: 510px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 0 28px;
  border-top: 1px solid #ffffff12;
  color: var(--muted);
  font-size: 10px;
}

.footer-brand { color: var(--text); font-size: 15px; }
.footer a { text-decoration: none; }

@media (max-width: 650px) {
  .topbar { height: 65px; padding: 0 5%; }
  .topbar-label { font-size: 8px; letter-spacing: .6px; }
  .shell { width: 92%; }
  .hero { padding: 58px 0 42px; }
  h1 { letter-spacing: -3px; }
  .dashboard { padding: 19px; border-radius: 15px; }
  .section-heading { gap: 8px; }
  .step-icon { width: 35px; height: 35px; }
  .ai-panel { padding: 14px; }
  .ai-panel-top { flex-wrap: wrap; }
  .status-badge { margin-left: 54px; }
  .token-row { flex-direction: column; }
  .token-row .button { width: 100%; }
  .stats { gap: 7px; }
  .stat-card { padding: 11px 9px; }
  .stat-card strong { font-size: 24px; }
  .stat-label { font-size: 8px; letter-spacing: .4px; }
  .stat-note { font-size: 9px; }
  .file-card { grid-template-columns: 1fr; }
  .file-card select { margin-top: 2px; }
  .organize-footer { align-items: stretch; flex-direction: column; }
  .organize-footer .button { width: 100%; }
  .footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.file-card {
  grid-template-columns: 20px minmax(0, 1fr) minmax(125px, 180px);
}

.file-check {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
  cursor: pointer;
}

@media (max-width: 650px) {
  .file-card {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .file-card select {
    grid-column: 2;
  }
}
