@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
  /* bg scale */
  --bg-1000: #0c0d0d;
  --bg-950:  #111212;
  --bg-900:  #161717;
  --bg-850:  #1b1c1c;
  --bg-800:  #1f2020;
  --bg-750:  #242525;
  --bg-700:  #2a2b2b;
  --bg-650:  #2f3030;
  --bg-600:  #333434;

  /* steel-blue accent scale */
  --blue-1:  #a6bcc3;  /* default link / icon color */
  --blue-2:  #6b8f9b;  /* hover */
  --blue-3:  #97b1b9;
  --blue-4:  #92c8d2;  /* gradient stop, light */
  --blue-5:  #4b676c;  /* deep */
  --blue-6:  #202c2f;  /* near-bg */

  /* text */
  --text:       #ffffff;
  --text-dim:   #a3a3a3;
  --text-faint: #737373;

  /* state */
  --danger: #ef4444;
  --warn:   #f59e0b;
  --ok:     #16c265;

  /* type */
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: 'Satoshi', Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; background: var(--bg-1000); }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-1000);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--blue-1); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-2); }

code, .mono { font-family: var(--mono); font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--bg-800); margin: 0; }

::selection { background: var(--blue-5); color: var(--text); }

/* ============ FLOATING PILL NAV ============ */
.bar {
  position: relative;
  z-index: 100;
  padding: 30px 40px 0;
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1024px;
  margin: 0 auto;
}
.bar-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.bar-brand:hover { color: var(--blue-1); }

.bar-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 28px;
  border-radius: 18px;
  background: radial-gradient(1161.83% 494.55% at 50% 49.09%, #111212 5.32%, #1c1b1b 30.31%);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
}
.bar-pill a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
.bar-pill a:hover { border-bottom-color: var(--bg-600); }
.bar-pill a.active { color: var(--blue-1); }

.bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #5865f2;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.bar-cta:hover { opacity: 0.92; }

@media (max-width: 720px) {
  .bar { padding: 20px 16px 0; }
  .bar-pill { gap: 18px; padding: 10px 18px; }
  .bar-pill a { font-size: 14px; }
}

/* ============ LAYOUT ============ */
.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 64px 24px; }

.section { padding: 36px 0; }
.section + .section { border-top: 1px solid var(--bg-800); }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

/* ============ TYPE ============ */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.lede { color: var(--text-dim); font-size: 15px; max-width: 580px; line-height: 1.6; }

.h1-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.h1-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-850);
  border-radius: 999px;
  color: var(--blue-1);
}
.icon-circle svg { width: 22px; height: 22px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-900);
  color: var(--text);
  border: 1px solid var(--bg-750);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--bg-750); border-color: var(--bg-700); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--blue-5); border-color: var(--blue-5); color: var(--text); }
.btn-primary:hover { background: var(--blue-2); border-color: var(--blue-2); color: var(--bg-1000); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--bg-900); border-color: var(--bg-800); }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  background: var(--bg-900);
  border: 1px solid var(--bg-750);
  color: var(--blue-3);
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-icon:hover { background: var(--bg-750); box-shadow: 0 0 0 2px var(--bg-750); }
.btn-icon svg { width: 22px; height: 22px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }

/* ============ BOXES ============ */
.box {
  background: var(--bg-900);
  border: 1px solid var(--bg-800);
  border-radius: 14px;
  padding: 20px;
}

/* ============ STATS (kept for index) ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-900);
  border: 1px solid var(--bg-800);
  border-radius: 14px;
  overflow: hidden;
}
.stat { padding: 18px 20px; border-right: 1px solid var(--bg-800); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--mono); font-size: 22px; color: var(--text); letter-spacing: -0.02em; font-weight: 600; }
.stat-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* ============ FEATURE LIST ============ */
.list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.list li {
  padding: 18px 20px;
  background: var(--bg-900);
  border: 1px solid var(--bg-800);
  border-radius: 12px;
  transition: background .15s, border-color .15s;
}
.list li:hover { background: var(--bg-850); border-color: var(--bg-750); }
.list-key { font-family: var(--mono); font-size: 12px; color: var(--blue-1); margin-bottom: 6px; }
.list-title { font-size: 14px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.list-desc { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ============ SHARED CARD GRID (commands + features) ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-900);
  border: 1px solid var(--bg-800);
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--bg-750); }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title-row { display: flex; align-items: center; gap: 12px; }
.card-name {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg-850);
  border: 1px solid var(--bg-800);
  border-radius: 8px;
  color: var(--blue-1);
  flex-shrink: 0;
}
.card-icon svg { width: 16px; height: 16px; }
.card-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.card-desc.empty { font-style: italic; color: var(--text-faint); }
.card-divider { height: 1px; background: var(--bg-800); margin: 0 -22px; }
.card-block { display: flex; flex-direction: column; gap: 8px; }
.block-label {
  font-size: 13px;
  color: var(--blue-1);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.block-empty { font-size: 14px; color: var(--text-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-family: var(--mono);
  font-style: italic;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--bg-850);
  border: 1px solid var(--bg-800);
  border-radius: 8px;
  color: var(--text-dim);
}
.chip-mono { font-style: normal; color: var(--blue-1); }
.perm {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--bg-1000);
  border: 1px solid var(--bg-800);
  border-radius: 8px;
  color: var(--text);
  width: fit-content;
}

.empty-state { text-align: center; padding: 80px 24px; color: var(--text-faint); }
.empty-state h3 { color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }

/* ============ FORMS (dashboard etc) ============ */
.input, .select, .textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-900);
  border: 1px solid var(--bg-800);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--bg-650); background: var(--bg-850); }
.label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.help { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ============ TABLE ============ */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--bg-800); }
.table th { font-weight: 600; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-900); }

/* ============ PILL / BADGES ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-900);
  border: 1px solid var(--bg-800);
  border-radius: 999px;
  color: var(--text-dim);
}
.pill.on { color: var(--ok); border-color: rgba(22, 194, 101, 0.3); }
.pill.off { color: var(--text-faint); }

/* ============ HERO (homepage) ============ */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 60px 0 40px;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 24px; }
}

.hero-title {
  font-size: 50px;
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
  max-width: 30rem;
}
.hero-title .accent { color: var(--blue-1); }

.hero-lede {
  margin-top: 26px;
  max-width: 32rem;
  color: #d4d4d8;
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-actions .btn {
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-actions .btn svg { flex-shrink: 0; }

@media (max-width: 880px) {
  .hero-title { font-size: 36px; }
  .hero-lede { font-size: 15px; }
}

.hero-pills {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .hero-pills { min-height: auto; align-items: center; }
}

.pill-row {
  display: flex;
  width: 100%;
}
.pill-row.left { justify-content: flex-start; }
.pill-row.right { justify-content: flex-end; }
.pill-row.center { justify-content: center; }

.feature-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(32, 44, 47, 0.55) 0%, rgba(33, 33, 33, 0) 50%, rgba(32, 44, 47, 0.55) 100%);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: opacity .5s ease, filter .5s ease, transform .5s ease;
}
.feature-pill .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin-right: 12px;
  border: 1px solid var(--blue-5);
  background: var(--blue-6);
  border-radius: 8px;
  color: var(--blue-1);
}
.feature-pill .ico svg { width: 14px; height: 14px; }
.feature-pill .label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.feature-pill.fading { opacity: 0; filter: blur(6px); transform: translateY(8px); }

.hero-meta {
  text-align: center;
  margin-top: 56px;
  font-size: 15px;
  color: var(--text-faint);
  font-weight: 500;
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* ============ FADE-IN ON SCROLL ============ */
[data-fade] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease;
  will-change: opacity, filter, transform;
}
[data-fade].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--bg-800);
  background: var(--bg-950);
  padding: 40px 24px;
  color: var(--text-faint);
  font-size: 13px;
}
.foot-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot a { color: var(--blue-1); }
.foot a:hover { color: var(--blue-2); }

/* ============ UTIL ============ */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.right { text-align: right; }
.center { text-align: center; }
.gap-sm { gap: 6px; } .gap-lg { gap: 24px; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; } .mb-lg { margin-bottom: 32px; }

@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 40px 16px 80px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--bg-800); }
  .list { grid-template-columns: 1fr; }
  h1, .h1-with-icon { font-size: 24px; }
  .icon-circle { width: 38px; height: 38px; }
  .cmd-row { flex-wrap: wrap; }
  .cmd-desc { flex-basis: 100%; margin-top: 4px; }
}
