:root {
  --bg: #f6f8fb;
  --ink: #13223a;
  --ink-soft: #42556f;
  --accent: #0d7a6f;
  --accent-2: #ff8a3d;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(19, 34, 58, 0.12);
  --code-bg: #0f1726;
  --code-ink: #d8e1f0;
  --shadow: 0 20px 40px rgba(17, 32, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
}

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.bg-orb-1 {
  background: radial-gradient(circle at center, #0d7a6f 0%, rgba(13, 122, 111, 0) 70%);
  left: -180px;
  top: -120px;
}

.bg-orb-2 {
  background: radial-gradient(circle at center, #ff8a3d 0%, rgba(255, 138, 61, 0) 70%);
  right: -180px;
  top: 40%;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 1.8rem 1.2rem;
  border-right: 1px solid var(--panel-border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.93), rgba(242, 247, 255, 0.84));
  backdrop-filter: blur(10px);
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.tagline {
  color: var(--ink-soft);
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
}

.toc {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.35rem;
}

.toc a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  transition: all 180ms ease;
}

.toc a:hover,
.toc a.active {
  color: var(--ink);
  background: rgba(13, 122, 111, 0.11);
}

.content {
  padding: 2rem clamp(1rem, 2vw, 2rem) 4rem;
  max-width: 1060px;
}

.hero {
  background: linear-gradient(140deg, #ffffff, #f3fbff 45%, #fff8f2);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: clamp(1.3rem, 2.5vw, 2.3rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  margin-top: 0.25rem;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}

.subtitle {
  color: var(--ink-soft);
  max-width: 72ch;
  margin-top: 0.9rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  border: 1px solid rgba(19, 34, 58, 0.15);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.stats-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stats-grid article {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.8rem;
}

.stats-grid h3 {
  font-size: 0.9rem;
}

.stats-grid p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.panel {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.45rem);
  box-shadow: 0 10px 20px rgba(20, 33, 53, 0.06);
}

.panel h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.panel p {
  margin-top: 0.55rem;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 0.68rem;
  border-bottom: 1px solid rgba(19, 34, 58, 0.1);
  font-size: 0.9rem;
}

th {
  background: rgba(13, 122, 111, 0.07);
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

.code-block-wrap {
  position: relative;
  margin-top: 0.8rem;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  border: 1px solid rgba(216, 225, 240, 0.3);
  background: rgba(26, 35, 52, 0.95);
  color: #d9e2f3;
  border-radius: 8px;
  padding: 0.3rem 0.52rem;
  font-size: 0.75rem;
  cursor: pointer;
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 13px;
  border: 1px solid rgba(216, 225, 240, 0.14);
  padding: 1.05rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0;
}

.extension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.extension-grid article {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.85rem;
}

.extension-grid ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.extension-grid li {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.shots {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.shots img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 24px rgba(17, 31, 54, 0.14);
}

.timeline {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.timeline li {
  margin-top: 0.45rem;
}

details {
  margin-top: 0.55rem;
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.8);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-bottom: 0;
}

.resource-list {
  margin-top: 0.5rem;
}

.resource-list li {
  margin-top: 0.4rem;
}

.resource-list a {
  color: #07567f;
}

.footer {
  margin-top: 1.2rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    padding: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .toc {
    display: none;
  }

  .toc.open {
    display: grid;
    margin-top: 0.7rem;
  }

  .content {
    padding: 1rem;
  }

  .stats-grid,
  .extension-grid,
  .shots {
    grid-template-columns: 1fr;
  }
}
