/* Cache Rocket Test — aligned with cacherocket.com */

:root {
  --cr-bg: #f8fafc;
  --cr-surface: #ffffff;
  --cr-ink: #0f172a;
  --cr-muted: #64748b;
  --cr-line: #e2e8f0;
  --cr-accent: #4f46e5;
  --cr-accent-hover: #4338ca;
  --cr-accent-soft: #e0e7ff;
  --cr-cyan: #06b6d4;
  --cr-violet: #7c3aed;
  --cr-test: #c2410c;
  --cr-test-bg: #fff7ed;
  --cr-test-line: #fdba74;
  --cr-radius: 14px;
  --cr-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(79, 70, 229, 0.08);
  --cr-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --cr-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cr-header-offset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cr-font);
  color: var(--cr-ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #e0e7ff 0%, transparent 55%),
    radial-gradient(900px 360px at 100% 0%, #cffafe 0%, transparent 50%),
    var(--cr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cr-accent);
  text-decoration: none;
}

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

.screen-reader-text,
.cr-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cr-skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cr-ink);
  color: #fff;
}

.cr-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Test environment banner */
.cr-test-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #9a3412, #c2410c 40%, #ea580c);
  color: #fff7ed;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.cr-test-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0;
}

.cr-test-banner__pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fdba74;
  box-shadow: 0 0 0 0 rgba(253, 186, 116, 0.7);
  animation: cr-pulse 1.8s ease-out infinite;
}

.cr-test-banner__label {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.cr-test-banner__sep {
  opacity: 0.55;
}

.cr-test-banner__text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes cr-pulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 186, 116, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(253, 186, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 186, 116, 0); }
}

/* Header — not sticky; the TEST banner stays the persistent signal */
.cr-site-header {
  position: relative;
  z-index: 900;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid var(--cr-line);
}

.cr-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem 0;
}

.cr-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cr-brand__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  min-width: 0;
}

.cr-brand__link:hover {
  color: inherit;
}

.cr-brand__logo,
.custom-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.custom-logo-link {
  display: flex;
}

.cr-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.cr-brand__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-brand__tag {
  font-size: 0.75rem;
  color: var(--cr-muted);
}

.cr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cr-badge--test {
  background: var(--cr-test-bg);
  color: var(--cr-test);
  border: 1px solid var(--cr-test-line);
}

.cr-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cr-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cr-nav__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--cr-ink);
  font-weight: 600;
  font-size: 0.925rem;
}

.cr-nav__list a:hover,
.cr-nav__list .current-menu-item > a {
  background: var(--cr-accent-soft);
  color: var(--cr-accent);
}

.cr-nav-toggle {
  display: none;
  border: 1px solid var(--cr-line);
  background: var(--cr-surface);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.cr-nav-toggle__bars,
.cr-nav-toggle__bars::before,
.cr-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--cr-ink);
  border-radius: 2px;
  content: "";
  transition: transform 0.2s ease;
}

.cr-nav-toggle__bars::before {
  transform: translateY(-6px);
}

.cr-nav-toggle__bars::after {
  transform: translateY(4px);
}

/* Buttons */
.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  font-size: 0.925rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cr-btn:hover {
  transform: translateY(-1px);
}

.cr-btn--primary {
  background: var(--cr-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.cr-btn--primary:hover {
  background: var(--cr-accent-hover);
  color: #fff;
}

.cr-btn--secondary,
.cr-btn--ghost {
  background: var(--cr-surface);
  color: var(--cr-ink);
  border-color: var(--cr-line);
}

.cr-btn--secondary:hover,
.cr-btn--ghost:hover {
  background: #f1f5f9;
  color: var(--cr-ink);
}

.cr-btn--small {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

/* Hero */
.cr-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.cr-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cr-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, black, transparent);
}

.cr-hero__blob {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(48px);
  animation: cr-blob 14s infinite;
}

.cr-hero__blob--a {
  left: -4rem;
  top: 2rem;
  background: rgba(165, 180, 252, 0.45);
}

.cr-hero__blob--b {
  right: -2rem;
  top: 8rem;
  background: rgba(103, 232, 249, 0.35);
  animation-delay: 2s;
}

@keyframes cr-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.cr-hero__grid-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.cr-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.85rem;
  font-weight: 600;
}

.cr-hero__title {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.cr-hero__accent {
  display: block;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cr-hero__lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--cr-muted);
  font-size: 1.05rem;
}

.cr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cr-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.cr-hero__meta li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}

.cr-panel {
  border: 1px solid var(--cr-line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cr-surface);
  box-shadow: var(--cr-shadow);
}

.cr-panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.cr-panel__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f87171;
}

.cr-panel__chrome span:nth-child(2) { background: #fbbf24; }
.cr-panel__chrome span:nth-child(3) { background: #34d399; }

.cr-panel__chrome code {
  margin-left: 0.5rem;
  font-family: var(--cr-mono);
  font-size: 0.75rem;
  color: var(--cr-muted);
  background: #fff;
  border: 1px solid var(--cr-line);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

.cr-panel__body {
  padding: 1.25rem;
}

.cr-panel__live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cr-accent);
}

.cr-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.cr-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.cr-panel__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.9rem;
}

.cr-panel__list span { color: var(--cr-muted); }
.cr-panel__list strong { font-weight: 700; }

.cr-panel__note {
  margin: 1rem 0 0;
  color: var(--cr-muted);
  font-size: 0.9rem;
}

/* Sections / layout */
.cr-section {
  padding: 3.5rem 0;
}

.cr-section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--cr-line);
}

.cr-section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.cr-section__eyebrow,
.cr-woo-product-badge {
  margin: 0 0 0.5rem;
  color: var(--cr-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cr-section__title,
.cr-page-banner__title,
.cr-article__title,
.cr-empty__title {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
}

.cr-section__title { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.cr-section__desc,
.cr-page-banner__desc,
.cr-empty__text {
  margin: 0.75rem 0 0;
  color: var(--cr-muted);
}

.cr-section__actions {
  margin-top: 1.75rem;
}

.cr-page-banner {
  padding: 2.5rem 0 1.5rem;
}

.cr-page-banner__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.no-sidebar .cr-layout,
.cr-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.cr-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cr-card {
  display: flex;
  flex-direction: column;
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cr-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cr-shadow);
}

.cr-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  overflow: hidden;
}

.cr-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cr-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  opacity: 0.7;
}

.cr-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
}

.cr-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--cr-muted);
  font-size: 0.8rem;
}

.cr-card__meta a { color: inherit; }

.cr-card__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cr-card__title a { color: inherit; }
.cr-card__title a:hover { color: var(--cr-accent); }

.cr-card__excerpt {
  color: var(--cr-muted);
  font-size: 0.92rem;
}

.cr-card__excerpt p { margin: 0; }

.cr-card__more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Article / prose */
.cr-article__header {
  padding: 2.5rem 0 1rem;
}

.cr-article__header-inner {
  max-width: 760px;
}

.cr-article__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cr-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--cr-muted);
  font-size: 0.925rem;
}

.cr-article__media {
  margin: 1.5rem 0 0;
  border-radius: var(--cr-radius);
  overflow: hidden;
  border: 1px solid var(--cr-line);
}

.cr-article__media img {
  width: 100%;
}

.cr-prose {
  max-width: 760px;
}

.cr-prose--page {
  max-width: 820px;
  padding-bottom: 3.5rem;
}

.cr-prose > *:first-child { margin-top: 0; }

.cr-prose h2,
.cr-prose h3,
.cr-prose h4 {
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cr-prose pre,
.cr-prose code {
  font-family: var(--cr-mono);
}

.cr-prose pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}

.cr-prose :not(pre) > code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.cr-callout {
  padding: 1.1rem;
  border-radius: var(--cr-radius);
  border: 1px solid var(--cr-test-line);
  background: var(--cr-test-bg);
  margin-bottom: 1.25rem;
}

.cr-callout__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-test);
}

.cr-callout__text {
  margin: 0.45rem 0 0.9rem;
  color: #9a3412;
  font-size: 0.9rem;
}

.cr-widget {
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.cr-widget__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.cr-widget ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cr-empty {
  padding: 2rem;
  border: 1px dashed var(--cr-line);
  border-radius: var(--cr-radius);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.cr-empty--full {
  padding: 5rem 0;
}

.cr-empty .cr-btn {
  margin-top: 1.25rem;
}

.cr-post-nav .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.cr-post-nav a,
.navigation.pagination a,
.navigation.pagination .current {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--cr-line);
  background: var(--cr-surface);
  color: inherit;
  max-width: 100%;
}

.navigation.pagination .current {
  background: var(--cr-accent-soft);
  color: var(--cr-accent);
  font-weight: 700;
}

.cr-comments {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cr-line);
}

.cr-search {
  display: flex;
  gap: 0.5rem;
}

.cr-search__input,
.cr-comment-form input[type="text"],
.cr-comment-form input[type="email"],
.cr-comment-form input[type="url"],
.cr-comment-form textarea {
  width: 100%;
  border: 1px solid var(--cr-line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

/* Footer */
.cr-site-footer {
  position: relative;
  margin-top: 2rem;
  border-top: 1px solid var(--cr-line);
  background: rgba(248, 250, 252, 0.9);
}

.cr-site-footer__glow {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.6), transparent);
}

.cr-site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
}

.cr-site-footer__brand {
  display: flex;
  gap: 0.9rem;
}

.cr-site-footer__logo {
  width: 36px;
  height: 36px;
}

.cr-site-footer__title {
  margin: 0;
  font-weight: 800;
}

.cr-site-footer__desc {
  margin: 0.4rem 0 0;
  color: var(--cr-muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.cr-site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cr-site-footer__list a {
  color: #334155;
  font-weight: 600;
  font-size: 0.925rem;
}

.cr-site-footer__list a:hover {
  color: var(--cr-accent);
}

.cr-site-footer__bottom {
  padding: 1rem 0 1.75rem;
  border-top: 1px solid var(--cr-line);
  color: var(--cr-muted);
  font-size: 0.85rem;
}

.cr-site-footer__bottom a {
  color: inherit;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 960px) {
  .cr-hero__grid-layout,
  .cr-layout,
  .cr-site-footer__inner,
  .cr-cards {
    grid-template-columns: 1fr;
  }

  .cr-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cr-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .cr-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid var(--cr-line);
    box-shadow: var(--cr-shadow);
  }

  .cr-nav.is-open {
    display: flex;
  }

  .cr-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .cr-site-header {
    position: relative;
  }

  .cr-site-header__inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .cr-cards {
    grid-template-columns: 1fr;
  }

  .cr-test-banner__sep,
  .cr-brand__tag {
    display: none;
  }

  .cr-hero {
    padding-top: 2.5rem;
  }
}
