:root {
  --brand-dark: #1a1f2e;
  --brand-darker: #12151f;
  --brand-gold: #f4c430;
  --brand-gold-soft: #fffacd;
  --gray-dark: #808080;
  --gray-mid: #a3a3a3;
  --gray-light: #d3d3d3;
  --card: #252b3b;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8e8e8;
  --text-muted: #9ca3af;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: linear-gradient(145deg, var(--brand-darker) 0%, var(--brand-dark) 45%, #0f1117 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(26, 31, 46, 0.85);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-gold) 0%, #d4a017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1f2e;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-soft), var(--brand-gold));
}

main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  width: 100%;
}

footer {
  border-top: 1px solid var(--card-border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-dark);
}

footer strong { color: var(--gray-mid); font-weight: 500; }

footer a {
  color: var(--brand-gold);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-gold);
  color: #1a1f2e;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  border-color: rgba(244, 196, 48, 0.35);
  color: #fff;
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem;
  max-width: 520px;
}

.panel h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.panel p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.panel ul {
  margin: 0.75rem 0 1.25rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(244, 196, 48, 0.08);
  border: 1px solid rgba(244, 196, 48, 0.2);
  font-size: 0.78rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.note code {
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--brand-gold);
}

.intro {
  margin-bottom: 2rem;
  max-width: 640px;
}

.intro h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.intro p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gold);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: rgba(244, 196, 48, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card:hover::before { opacity: 1; }

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.badge-time {
  background: var(--brand-gold);
  color: #1a1f2e;
}

.badge-private {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #fff;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-meta {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-url {
  font-size: 0.72rem;
  color: var(--brand-gold);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.card-lock {
  font-size: 0.72rem;
  color: var(--gray-dark);
}

.footer-links {
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  main { padding-top: 1.75rem; }
  .brand-text h1 { font-size: 1.15rem; }
}
