@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c20;
  --stroke: #2a2a30;
  --stroke-strong: #3a3a42;
  --text: #ececee;
  --muted: #8a8a96;
  --primary: #f0c040;
  --primary-2: #d4a82e;
  --success: #40c880;
  --warning: #f0c040;
  --danger: #e84040;
  --info: #4080f0;
  --shadow: 0 18px 60px rgba(0, 0, 0, .42);
  --radius: 14px;
  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-h: 'Instrument Serif', Georgia, serif;
  --font-m: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1120px;
}

* { box-sizing: border-box }
html, body { height: 100% }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(240,192,64,.08), transparent 60%),
    radial-gradient(560px 320px at 88% 10%, rgba(240,192,64,.04), transparent 55%),
    linear-gradient(180deg, #0a0a0b 0%, #09090b 55%, #08080a 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
}
.brand {
  display: flex;
  gap: 0;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.brand__name {
  font-family: var(--font-m);
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav__link:hover, .nav__link--active { color: var(--text) }
.nav__btn {
  text-decoration: none;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .06em;
  font-weight: 700;
  color: #0a0a0b;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(240, 192, 64, .16);
}

.page { padding: 44px 0 68px }
.page__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start }
.hero__title,
.hero-panel__title,
.card__title,
.info-card__value,
.stack-row__value {
  letter-spacing: -.02em;
}
.hero__title {
  font-family: var(--font-h);
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.08;
  font-weight: 400;
  margin: 0 0 14px;
}
.hero__text { color: var(--muted); line-height: 1.72; max-width: 640px }
.badges { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px }
.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-m);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(240, 192, 64, .08);
  border: 1px solid rgba(240, 192, 64, .18);
  color: var(--primary);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(20,20,22,.96), rgba(18,18,20,.96));
  box-shadow: var(--shadow);
}
.eyebrow {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.hero-panel__title {
  font-family: var(--font-h);
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 400;
}
.hero-panel__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 720px;
}
.hero-panel__meta { display: grid; gap: 14px; align-content: start }
.hero-stat {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px 18px;
}
.hero-stat__label {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-stat__value {
  font-family: var(--font-m);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

.card {
  background: linear-gradient(180deg, rgba(20,20,22,.96), rgba(18,18,20,.96));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card__title {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}
.card__title--sm { font-size: 22px }
.card__subtitle {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-gap { height: 18px }
.form { display: grid; gap: 14px }
.field { display: grid; gap: 7px }
.field__label {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field__input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  font-family: var(--font);
}
.field__input:focus {
  border-color: rgba(240, 192, 64, .55);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, .10);
}
.row { display: flex; gap: 0; flex-wrap: wrap }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px) }
.btn--primary {
  color: #0a0a0b;
  border-color: transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.btn--secondary { background: rgba(255,255,255,.03) }
.btn--ghost { background: transparent; color: var(--muted) }
.btn--ghost:hover, .btn--secondary:hover { border-color: var(--primary); color: var(--primary) }
.btn--sm { padding: 9px 12px; border-radius: 10px; font-size: 14px }
.btn:disabled, .btn--disabled { opacity: .55; pointer-events: none }

.note {
  border-left: 2px solid var(--primary);
  background: rgba(240, 192, 64, .06);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-size: 13px;
}
.auth-links { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px }
.auth-links a { color: var(--primary); text-decoration: none; font-weight: 600 }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .05em;
  border: 1px solid var(--stroke-strong);
}
.pill--muted { background: rgba(255,255,255,.04); color: var(--text) }
.pill--success { background: rgba(64,200,128,.10); border-color: rgba(64,200,128,.28); color: var(--success) }
.pill--warning { background: rgba(240,192,64,.10); border-color: rgba(240,192,64,.28); color: var(--warning) }
.pill--danger { background: rgba(232,64,64,.10); border-color: rgba(232,64,64,.28); color: var(--danger) }
.pill--info { background: rgba(64,128,240,.10); border-color: rgba(64,128,240,.28); color: var(--info) }

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, .12);
}
.table { width: 100%; border-collapse: collapse; min-width: 760px }
.table th, .table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-m);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table tbody tr { transition: background .15s ease }
.table tbody tr:hover { background: rgba(255,255,255,.03) }
.table tbody tr:hover td { background: transparent }
.table tbody tr td .btn--ghost,
.table tbody tr td .btn--sm { background: transparent }

.file-cell { display: grid; gap: 4px }
.file-cell__name { font-weight: 700; line-height: 1.45 }
.file-cell__meta {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-m);
  word-break: break-all;
}
.empty {
  border: 1px dashed var(--stroke-strong);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}
.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  padding: 18px 0 26px;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.footer__muted { color: var(--muted); font-size: 13px }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 380px;
  background: rgba(18,18,20,.96);
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 600;
}
.toast.show { opacity: 1; transform: translateY(0) }
.drop {
  border: 1px dashed var(--stroke-strong);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  display: block;
}
.drop input { display: none }
.drop.dragover {
  border-color: rgba(240,192,64,.7);
  box-shadow: 0 0 0 3px rgba(240,192,64,.10);
}
.drop__inner { display: grid; gap: 8px; text-align: center; padding: 18px }
.drop__title { font-weight: 700; font-size: 16px }
.drop__hint { color: var(--muted); font-size: 13px; line-height: 1.35 }
.top-actions { display: flex; gap: 0; flex-wrap: wrap }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.info-card {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.info-card__label {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.info-card__value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}
.info-card__mono, .table__mono, .stack-row__mono {
  font-family: var(--font-m);
  font-size: 12px;
  word-break: break-all;
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
.stack-list { display: grid; gap: 14px }
.stack-row {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke);
}
.stack-row:last-child { border-bottom: none; padding-bottom: 0 }
.stack-row__label {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack-row__value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.codeblock {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  font-family: var(--font-m);
}

@media (max-width:980px) {
  .page__grid, .hero-panel, .details-grid, .two-col { grid-template-columns: 1fr }
  .nav { justify-content: flex-end }
}
@media (max-width:640px) {
  .container { padding: 0 16px }
  .card { padding: 18px }
  .header__inner { min-height: 58px }
  .table { min-width: 680px }
}
