:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --text: #0f1115;
  --muted: #69707d;
  --accent: #0a84ff;
  --accent-2: #34c759;
  --border: #e7e8ea;
  --shadow: 0 18px 50px rgba(15, 17, 21, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1080px;
  --font: "SF Pro Display", "SF Pro Text", "Neue Haas Grotesk", "Helvetica Neue", "Nimbus Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #ffffff 0%, #f2f4f7 45%, #f6f7f8 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 247, 248, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0a84ff 0%, #5ac8fa 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.hero {
  padding: 60px 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 30px 0 20px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

.post-hero {
  padding: 40px 0 20px;
}

.post-content {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
  line-height: 1.75;
}

.post-content h2 {
  margin-top: 30px;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--muted);
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 520px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-row {
  margin-bottom: 16px;
}

.footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 80px);
}

.admin-nav {
  border-right: 1px solid var(--border);
  padding: 20px;
  background: #f7f8fa;
}

.admin-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-nav a.active {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow);
}

.admin-content {
  padding: 30px;
}

.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.5s ease forwards;
  animation-delay: calc(var(--i, 1) * 0.05s);
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.notice {
  background: #f0f7ff;
  border: 1px solid #d7e9ff;
  padding: 12px 16px;
  border-radius: 12px;
  color: #1b3c70;
  font-size: 14px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
