:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --ink: #1a2333;
  --muted: #667185;
  --accent: #2d5ff4;
  --accent-2: #0f7d6c;
  --accent-soft: rgba(45, 95, 244, 0.12);
  --border: rgba(26, 35, 51, 0.1);
  --shadow: 0 28px 70px rgba(25, 33, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  padding: 24px;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(45, 95, 244, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(15, 125, 108, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f5f0 0%, #f2efe9 100%);
}

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

button,
input {
  font: inherit;
}

.bg-orb {
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.bg-orb-a {
  top: -120px;
  left: -120px;
  background: #2d5ff4;
}

.bg-orb-b {
  right: -140px;
  bottom: -140px;
  background: #0f7d6c;
}

.site-topbar,
.page-shell {
  max-width: 1500px;
  margin: 0 auto;
}

.site-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #7d9cff);
  box-shadow: 0 12px 24px rgba(45, 95, 244, 0.25);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 1.08rem;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #41506a;
  font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover {
  background: rgba(45, 95, 244, 0.12);
  color: var(--accent);
}

.auth-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button,
.solid-button,
.panel button {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border);
}

.solid-button,
.panel button {
  color: white;
  background: linear-gradient(135deg, var(--accent), #446df7);
  box-shadow: 0 12px 24px rgba(45, 95, 244, 0.22);
}

.ghost-button:hover,
.solid-button:hover,
.panel button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.content-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
}

.lede {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  align-content: end;
}

.hero-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.hero-metrics span,
.panel-head p,
.content-head p,
.muted {
  color: var(--muted);
}

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

.sidebar,
.content {
  padding: 18px;
}

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

.panel-head h2,
.content-head h2 {
  font-size: 1.4rem;
}

.panel-head p,
.content-head p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.search {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.search span,
.filter-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 800;
}

.search input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.search input:focus {
  outline: 3px solid rgba(45, 95, 244, 0.14);
  border-color: rgba(45, 95, 244, 0.3);
}

.filter-group + .filter-group {
  margin-top: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.chip.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #446df7);
  box-shadow: 0 10px 20px rgba(45, 95, 244, 0.2);
}

.content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.live-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 125, 108, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(15, 125, 108, 0.16);
  font-weight: 800;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.file-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(18, 26, 38, 0.07);
}

.file-card:hover {
  border-color: rgba(45, 95, 244, 0.25);
  transform: translateY(-1px);
}

.file-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.file-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.file-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(45, 95, 244, 0.08);
  color: #3557c9;
  font-size: 0.79rem;
  font-weight: 700;
}

.tag.alt {
  background: rgba(15, 125, 108, 0.1);
  color: var(--accent-2);
}

.tag.muted {
  background: rgba(102, 113, 133, 0.08);
  color: #536173;
}

.file-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.file-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #446df7);
  color: white;
  font-weight: 800;
}

.file-actions small {
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(45, 95, 244, 0.2);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero,
  .workspace,
  .site-topbar {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .auth-cta {
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    padding: 14px;
  }

  .site-topbar,
  .hero,
  .sidebar,
  .content {
    padding: 16px;
    border-radius: 20px;
  }

  .content-head {
    flex-direction: column;
    align-items: start;
  }

  .file-grid {
    grid-template-columns: 1fr;
  }
}
