/* ============================================
   Blog Site — Linear / Modern Design System
   ============================================ */

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --bg-deep: #020203;
  --bg-base: #050506;
  --bg-elevated: #0a0a0c;
  --bg-input: #0F0F12;

  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.03);

  --fg: #EDEDEF;
  --fg-muted: #8A8F98;
  --fg-subtle: rgba(255, 255, 255, 0.60);

  --accent: #5E6AD2;
  --accent-bright: #6872D9;
  --accent-glow: rgba(94, 106, 210, 0.3);
  --accent-subtle: rgba(94, 106, 210, 0.15);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(94, 106, 210, 0.30);

  /* Shadows */
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 2px 20px rgba(0,0,0,0.4), 0 0 40px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 40px rgba(0,0,0,0.5), 0 0 80px rgba(94,106,210,0.1);
  --shadow-accent: 0 0 0 1px rgba(94,106,210,0.5), 0 4px 12px rgba(94,106,210,0.3), inset 0 1px 0 0 rgba(255,255,255,0.2);
  --shadow-inset-highlight: inset 0 1px 0 0 rgba(255,255,255,0.08);

  /* Spacing */
  --section-padding: 128px;
  --container-max: 1200px;
  --sidebar-width: 220px;

  /* Transitions */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-entrance: 600ms;

  /* Radius */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-expo);
}

a:hover {
  color: var(--accent-bright);
}

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

::selection {
  background: var(--accent-glow);
  color: var(--fg);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Background System — Layered Ambient Lighting
   ============================================ */

.bg-layered {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Layer 1 — Base Gradient */
.bg-layered::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, #0a0a0f 0%, #050506 50%, #020203 100%);
}

/* Layer 2 — Noise Texture */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

/* Layer 3 — Animated Gradient Blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  will-change: transform;
}

.bg-blob--primary {
  width: 900px;
  height: 1400px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  animation: blobFloat 10s ease-in-out infinite;
}

.bg-blob--secondary {
  width: 600px;
  height: 800px;
  top: 20%;
  left: -100px;
  background: radial-gradient(circle, rgba(120, 80, 200, 0.5) 0%, transparent 70%);
  opacity: 0.10;
  animation: blobFloat 8s ease-in-out infinite reverse;
}

.bg-blob--tertiary {
  width: 500px;
  height: 700px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, rgba(80, 120, 220, 0.5) 0%, transparent 70%);
  opacity: 0.08;
  animation: blobFloat 9s ease-in-out infinite 2s;
}

.bg-blob--bottom {
  width: 800px;
  height: 400px;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.06;
  animation: blobPulse 6s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes blobPulse {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.10; }
}

/* Layer 4 — Grid Overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--duration-normal) var(--ease-expo);
}

.nav--scrolled {
  background: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 400;
  transition: color var(--duration-fast) var(--ease-expo);
}

.nav__link:hover {
  color: var(--fg);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-accent);
  transition: all var(--duration-fast) var(--ease-expo);
}

.nav__cta:hover {
  background: var(--accent-bright);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent), 0 8px 24px var(--accent-glow);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  transition: opacity var(--duration-normal) var(--ease-expo), transform var(--duration-normal) var(--ease-expo);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-family: 'Inter', monospace;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blobPulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-accent {
  background: linear-gradient(90deg, var(--accent), #8B8FE0, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ============================================
   Main Content Layout
   ============================================ */

.main-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  position: relative;
}

/* ============================================
   Blog Timeline
   ============================================ */

.timeline {
  position: relative;
  padding-bottom: 80px;
}

/* The vertical timeline line */
.timeline__line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), var(--accent-glow), var(--border));
  opacity: 0.5;
}

/* Time group header (year-month) */
.timeline__group {
  position: relative;
  padding-left: 40px;
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.timeline__group-label {
  position: absolute;
  left: -8px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.timeline__dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: all var(--duration-fast) var(--ease-expo);
}

.timeline__dot--active {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline__date {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  font-family: 'Inter', monospace;
}

/* ============================================
   Blog Card
   ============================================ */

.blog-card {
  position: relative;
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: all var(--duration-normal) var(--ease-expo);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Mouse spotlight effect */
.blog-card__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-expo);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.blog-card:hover .blog-card__spotlight {
  opacity: 1;
}

/* Top highlight line */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  z-index: 2;
}

.blog-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-normal) var(--ease-expo);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.02);
}

.blog-card__image-wrapper {
  overflow: hidden;
  position: relative;
}

.blog-card__image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-elevated), transparent);
  pointer-events: none;
}

.blog-card__body {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'Inter', monospace;
  letter-spacing: 0.02em;
}

.blog-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--fg);
  transition: color var(--duration-fast) var(--ease-expo);
}

.blog-card:hover .blog-card__title {
  color: white;
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: all var(--duration-fast) var(--ease-expo);
}

.blog-card__read-more:hover {
  gap: 10px;
}

.blog-card__read-time {
  font-size: 12px;
  color: var(--fg-subtle);
}

/* Card without image variant */
.blog-card--text {
  padding: 24px;
}

.blog-card--text .blog-card__body {
  padding: 0;
}

/* ============================================
   Sidebar — Time Navigation
   ============================================ */

.sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar__section {
  margin-bottom: 32px;
}

.sidebar__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: 'Inter', monospace;
}

.sidebar__nav {
  list-style: none;
  position: relative;
}

.sidebar__nav::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.sidebar__nav-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
}

.sidebar__nav-item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: var(--bg-base);
  transition: all var(--duration-fast) var(--ease-expo);
  z-index: 1;
}

.sidebar__nav-item--active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.sidebar__nav-link {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-expo);
  cursor: pointer;
}

.sidebar__nav-link:hover {
  color: var(--fg);
}

.sidebar__nav-item--active .sidebar__nav-link {
  color: var(--fg);
  font-weight: 500;
}

.sidebar__nav-count {
  font-size: 11px;
  color: var(--fg-subtle);
  margin-left: 6px;
}

/* Sidebar card */
.sidebar__card {
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.sidebar__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.sidebar__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.sidebar__card-text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================
   Loading Indicator
   ============================================ */

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  gap: 8px;
}

.loader__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: loaderBounce 1.4s var(--ease-expo) infinite;
}

.loader__dot:nth-child(2) { animation-delay: 0.16s; }
.loader__dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes loaderBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   Blog Post Page
   ============================================ */

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.post__header {
  margin-bottom: 48px;
  text-align: center;
}

.post__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'Inter', monospace;
}

.post__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post__cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.post__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-muted);
}

.post__content h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.post__content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.post__content p {
  margin-bottom: 20px;
}

.post__content img {
  border-radius: var(--radius-md);
  margin: 32px 0;
  border: 1px solid var(--border);
}

.post__content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-glow);
  text-underline-offset: 3px;
}

.post__content code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  border: 1px solid var(--border);
}

.post__content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.post__content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post__content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 24px 0;
  background: var(--surface-glass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--fg-subtle);
  font-style: italic;
}

.post__content ul, .post__content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post__content li {
  margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  color: var(--fg-subtle);
  font-size: 13px;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  color: var(--fg-muted);
  font-size: 13px;
}

.footer__link:hover {
  color: var(--fg);
}

/* ============================================
   Animations — Entrance
   ============================================ */

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-entrance) var(--ease-expo),
              transform var(--duration-entrance) var(--ease-expo);
}

.animate-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-in:nth-child(1) { transition-delay: 0ms; }
.animate-in:nth-child(2) { transition-delay: 80ms; }
.animate-in:nth-child(3) { transition-delay: 160ms; }
.animate-in:nth-child(4) { transition-delay: 240ms; }
.animate-in:nth-child(5) { transition-delay: 320ms; }
.animate-in:nth-child(6) { transition-delay: 400ms; }

/* ============================================
   Back to top
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-expo);
  z-index: 50;
  backdrop-filter: blur(12px);
}

.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--surface-hover);
  color: var(--fg);
  border-color: var(--border-hover);
}

/* ============================================
   API / Upload Page
   ============================================ */

.api-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.api-page h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.api-page h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--fg);
}

.api-page p {
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.api-page code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid var(--border);
}

.api-page pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.api-page pre code {
  background: none;
  border: none;
  padding: 0;
}

.api-endpoint {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.api-method {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', monospace;
  letter-spacing: 0.05em;
}

.api-method--post {
  background: rgba(76, 175, 80, 0.15);
  color: #66BB6A;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.api-method--get {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.api-method--delete {
  background: rgba(239, 83, 80, 0.15);
  color: #EF5350;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.api-url {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: var(--fg);
  margin-left: 12px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .timeline__group {
    padding-left: 32px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .hero {
    padding: 120px 16px 48px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .blog-card__image {
    height: 160px;
  }

  .blog-card__body {
    padding: 16px;
  }

  .blog-card__title {
    font-size: 17px;
  }

  .timeline__group {
    padding-left: 28px;
    margin-bottom: 32px;
  }

  .timeline__group-label {
    left: -6px;
  }

  .timeline__dot {
    width: 13px;
    height: 13px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
