/* ==========================================================================
   Castor — Marketing site design system
   Editor: LEONARD-IT/GTEK-IT · Apache-2.0
   Brand tokens: navy #0A2540 · docker blue #2496ED · teal #13A688 · beaver #8B5E3C
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0a2540;
  --navy-700: #123157;
  --navy-600: #1b4071;
  --docker: #2496ed;
  --docker-600: #1a7fd0;
  --docker-050: #e9f4fe;
  --teal: #13a688;
  --teal-600: #0f8a71;
  --teal-050: #e6f6f1;
  --beaver: #8b5e3c;
  --beaver-050: #f4ece4;

  /* Neutrals */
  --ink: #0a2540;
  --ink-2: #33445c;
  --ink-3: #5b6b80;
  --muted: #7a889b;
  --line: #e6eaf0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef2f8;
  --white: #ffffff;

  /* Accent gradients */
  --grad-hero: radial-gradient(1200px 700px at 78% -8%, rgba(36, 150, 237, 0.28), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(19, 166, 136, 0.22), transparent 55%),
    linear-gradient(160deg, #07203c 0%, #0a2540 45%, #0c2c50 100%);
  --grad-cta: radial-gradient(800px 500px at 85% 110%, rgba(19, 166, 136, 0.35), transparent 60%),
    radial-gradient(700px 460px at 10% -20%, rgba(36, 150, 237, 0.32), transparent 55%),
    linear-gradient(135deg, #0a2540 0%, #0d3160 100%);
  --grad-text: linear-gradient(92deg, #2496ed 0%, #13a688 100%);

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(10, 37, 64, 0.06);
  --sh-sm: 0 2px 8px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
  --sh-md: 0 10px 30px -12px rgba(10, 37, 64, 0.18), 0 4px 10px -6px rgba(10, 37, 64, 0.1);
  --sh-lg: 0 30px 60px -22px rgba(10, 37, 64, 0.28), 0 10px 24px -12px rgba(10, 37, 64, 0.14);
  --sh-glow: 0 24px 60px -20px rgba(36, 150, 237, 0.45);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1180px;
  --maxw-narrow: 880px;
  --nav-h: 68px;
  --space-section: clamp(64px, 9vw, 128px);
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--docker-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--docker);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 3px solid var(--docker);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: var(--space-section);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-2);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   4. Typography utilities
   --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--docker-600);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-text);
}
.section-head--left .eyebrow,
.eyebrow--center {
  /* centered eyebrows look better without the rule offset */
}

.h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
}
.h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}
.h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-3);
  line-height: 1.7;
}

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted {
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
  will-change: transform;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--docker) 0%, var(--docker-600) 100%);
  box-shadow: var(--sh-glow);
}
.btn--primary:hover {
  box-shadow: 0 28px 64px -18px rgba(36, 150, 237, 0.6);
}

.btn--cta {
  --btn-bg: linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 100%);
  box-shadow: 0 20px 48px -18px rgba(19, 166, 136, 0.55);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover {
  border-color: var(--docker);
  --btn-fg: var(--docker-600);
  box-shadow: var(--sh-sm);
}

.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}
.btn--lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center {
  justify-content: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--docker-600);
}
.textlink svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.textlink:hover svg {
  transform: translateX(3px);
}

/* GitHub star pill */
.gh-star {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: var(--sh-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gh-star:hover {
  border-color: var(--ink-3);
  box-shadow: var(--sh-sm);
}
.gh-star__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 9px 14px;
  color: var(--ink);
}
.gh-star__label svg {
  width: 17px;
  height: 17px;
}
.gh-star__count {
  padding: 9px 13px;
  border-left: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
}

/* ---------------------------------------------------------------------------
   6. Announcement bar
   --------------------------------------------------------------------------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 48px 9px 20px;
  text-align: center;
}
.announce a {
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.announce a:hover {
  text-decoration-color: #fff;
}
.announce__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
}
.announce__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.announce.is-hidden {
  display: none;
}

/* ---------------------------------------------------------------------------
   7. Navbar
   --------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 37, 64, 0.5);
  background: rgba(255, 255, 255, 0.86);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--ink);
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--sh-sm);
  background: #fff;
}
.brand__name {
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav__links a {
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.88);
  padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 600px at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 70% 20%, #000 0%, transparent 75%);
}
.hero__blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -60px;
  background: radial-gradient(circle, rgba(36, 150, 237, 0.7), transparent 70%);
}
.hero__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(19, 166, 136, 0.6), transparent 70%);
  animation-delay: -7s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -24px) scale(1.06);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfe1ff;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(36, 150, 237, 0.14);
  border: 1px solid rgba(36, 150, 237, 0.3);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin: 22px 0 0;
}
.hero h1 .accent {
  background: linear-gradient(92deg, #5db4ff 0%, #4fd6b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
}
.hero__sub strong {
  color: #fff;
  font-weight: 650;
}
.hero__cta {
  margin-top: 30px;
}
.hero__trust {
  margin: 20px 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__trust span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* Hero copy chip (terminal one-liner) */
.cmd-chip {
  margin-top: 26px;
  background: rgba(4, 18, 34, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  overflow: hidden;
  backdrop-filter: blur(4px);
  max-width: 560px;
}
.cmd-chip__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cmd-chip__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.cmd-chip__dot:nth-child(1) {
  background: #ff5f57;
}
.cmd-chip__dot:nth-child(2) {
  background: #febc2e;
}
.cmd-chip__dot:nth-child(3) {
  background: #28c840;
}
.cmd-chip__title {
  margin-left: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}
.cmd-chip__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 16px;
}
.cmd-chip__body pre {
  margin: 0;
  flex: 1;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #d7e6f5;
}
.cmd-chip__body code {
  white-space: pre;
}
.cmd-chip .tok-cmd {
  color: #5db4ff;
}
.cmd-chip .tok-flag {
  color: #4fd6b8;
}
.cmd-chip .tok-str {
  color: #ffd479;
}
.cmd-chip .tok-img {
  color: #fff;
  font-weight: 600;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfe0f1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.copy-btn svg {
  width: 14px;
  height: 14px;
}
.copy-btn.is-copied {
  background: rgba(19, 166, 136, 0.25);
  border-color: rgba(19, 166, 136, 0.5);
  color: #8ff0d6;
}

/* ---------------------------------------------------------------------------
   9. Dashboard mockup
   --------------------------------------------------------------------------- */
.hero__visual {
  position: relative;
}
.dash {
  position: relative;
  background: #fdfefe;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center right;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__visual:hover .dash {
  transform: perspective(1600px) rotateY(-2deg) rotateX(1deg);
}
.dash__shot {
  width: 100%;
  display: block;
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
}
.dash__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash__dot--r {
  background: #ff5f57;
}
.dash__dot--y {
  background: #febc2e;
}
.dash__dot--g {
  background: #28c840;
}
.dash__url {
  margin-left: 10px;
  font-size: 0.74rem;
  color: var(--muted);
  font-family: var(--font-mono);
  background: var(--bg-soft);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
}
.dash__body {
  padding: 18px;
  background: linear-gradient(180deg, #fafcfe 0%, #f4f7fb 100%);
}
.dash__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dash__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-050);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(19, 166, 136, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(19, 166, 136, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(19, 166, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(19, 166, 136, 0);
  }
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 12px 11px;
  box-shadow: var(--sh-xs);
}
.kpi__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.kpi__ic {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex: none;
}
.kpi__ic svg {
  width: 10px;
  height: 10px;
}
.kpi__val {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi__val small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.kpi--blue .kpi__ic {
  background: var(--docker-050);
  color: var(--docker);
}
.kpi--teal .kpi__ic {
  background: var(--teal-050);
  color: var(--teal-600);
}
.kpi--navy .kpi__ic {
  background: #e8eef6;
  color: var(--navy);
}
.kpi--brown .kpi__ic {
  background: var(--beaver-050);
  color: var(--beaver);
}

.dash__charts {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px;
  box-shadow: var(--sh-xs);
}
.panel__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* Donut */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.donut {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--teal) 0 78%, #e3e9f1 78% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: #fff;
  border-radius: 50%;
}
.donut__center {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.05;
}
.donut__num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.donut__lbl {
  font-size: 0.56rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.72rem;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
}
.legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.legend .dot--run {
  background: var(--teal);
}
.legend .dot--stop {
  background: #cdd6e2;
}
.legend b {
  margin-left: auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Bars */
.bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bar {
  display: grid;
  grid-template-columns: 78px 1fr 38px;
  align-items: center;
  gap: 9px;
  font-size: 0.71rem;
}
.bar__name {
  color: var(--ink-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar__track {
  height: 8px;
  background: var(--bg-soft-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--docker), #54aef2);
  width: 0;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar:nth-child(2) .bar__fill {
  background: linear-gradient(90deg, var(--teal), #3fd0b0);
}
.bar:nth-child(3) .bar__fill {
  background: linear-gradient(90deg, var(--navy-600), #3a6db0);
}
.bar:nth-child(4) .bar__fill {
  background: linear-gradient(90deg, var(--beaver), #b58460);
}
.bar__val {
  text-align: right;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Beaver peek badge on hero visual */
.beaver-peek {
  position: absolute;
  bottom: -26px;
  left: -26px;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--sh-lg);
  border: 4px solid #fff;
  background: #fff;
  z-index: 2;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

/* fallback img marker (hidden helper) */
.shot-fallback {
  display: none;
}

/* ---------------------------------------------------------------------------
   10. Works-with strip
   --------------------------------------------------------------------------- */
.works {
  padding-block: clamp(40px, 6vw, 64px);
}
.works__label {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.works__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
}
.works__item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.works__item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.works__item svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.works__sub {
  text-align: center;
  margin: 28px auto 0;
  max-width: 680px;
  color: var(--ink-3);
  font-size: 0.98rem;
}
.works__sub strong {
  color: var(--ink);
  font-weight: 650;
}

/* ---------------------------------------------------------------------------
   11. Feature cards
   --------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-text);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.card:hover::before {
  opacity: 1;
}
.card__ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: var(--sh-xs);
}
.card__ic svg {
  width: 25px;
  height: 25px;
}
.ic-blue {
  background: var(--docker-050);
  color: var(--docker);
}
.ic-teal {
  background: var(--teal-050);
  color: var(--teal-600);
}
.ic-navy {
  background: #e8eef6;
  color: var(--navy);
}
.ic-brown {
  background: var(--beaver-050);
  color: var(--beaver);
}
.card h3 {
  font-size: 1.14rem;
  margin-bottom: 9px;
}
.card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-3);
  line-height: 1.62;
}

/* ---------------------------------------------------------------------------
   12. Orchestrators highlight
   --------------------------------------------------------------------------- */
.orch-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.orch {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0 0 26px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.orch:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}
.orch__top {
  padding: 22px 24px 18px;
  color: #fff;
  position: relative;
}
.orch--docker .orch__top {
  background: linear-gradient(135deg, var(--docker) 0%, #1c7ed0 100%);
}
.orch--swarm .orch__top {
  background: linear-gradient(135deg, var(--teal) 0%, #0e8a71 100%);
}
.orch--k8s .orch__top {
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy) 100%);
}
.orch__logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.orch__logo svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.orch__top h3 {
  color: #fff;
  font-size: 1.2rem;
}
.orch__tag {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.orch__list {
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.orch__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.orch__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.orch--docker .orch__list li::before {
  background-color: var(--docker-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232496ED' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.orch--swarm .orch__list li::before {
  background-color: var(--teal-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313A688' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.orch--k8s .orch__list li::before {
  background-color: #e8eef6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.orch__list li strong {
  color: var(--ink);
  font-weight: 650;
}
.orch-closing {
  text-align: center;
  margin-top: 40px;
  font-size: 1.15rem;
}
.orch-closing strong {
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   13. Comparison table
   --------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.cmp th,
.cmp td {
  padding: 15px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line-2);
}
.cmp thead th {
  position: sticky;
  top: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--line);
  z-index: 1;
}
.cmp thead th.col-castor {
  background: var(--navy);
  color: #fff;
  border-bottom-color: var(--navy);
}
.cmp tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
}
.cmp td.col-castor {
  background: rgba(36, 150, 237, 0.045);
  font-weight: 700;
  color: var(--ink);
}
.cmp tbody tr:hover td,
.cmp tbody tr:hover th {
  background: var(--bg-soft);
}
.cmp tbody tr:hover td.col-castor {
  background: rgba(36, 150, 237, 0.08);
}
.cmp tbody tr:last-child td,
.cmp tbody tr:last-child th {
  border-bottom: 0;
}
.yes {
  color: var(--teal-600);
  font-weight: 800;
}
.no {
  color: #c2ccd9;
  font-weight: 700;
}
.part {
  color: var(--beaver);
  font-size: 0.82rem;
  font-weight: 600;
}
.dim {
  color: var(--muted);
  font-size: 0.84rem;
}
.badge-license {
  display: inline-block;
  background: var(--teal-050);
  color: var(--teal-600);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.cmp-notes {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmp-notes sup {
  color: var(--ink-3);
  font-weight: 700;
}
.cmp-caption {
  margin-top: 14px;
  font-size: 0.84rem;
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   14. Security
   --------------------------------------------------------------------------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pillar {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}
.pillar__ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #e8eef6;
  color: var(--navy);
  display: grid;
  place-items: center;
}
.pillar__ic svg {
  width: 21px;
  height: 21px;
}
.pillar h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.pull-quote {
  margin: 44px auto 0;
  max-width: 820px;
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 28px;
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--docker);
  opacity: 0.35;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---------------------------------------------------------------------------
   15. Install / Quickstart
   --------------------------------------------------------------------------- */
.install-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.code-block {
  background: #0a1f37;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  border: 1px solid #163255;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  background: #081a2e;
  border-bottom: 1px solid #163255;
}
.tab {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 16px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover {
  color: rgba(255, 255, 255, 0.85);
}
.tab[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--docker);
}
.os-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1;
}
.os-tab svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.os-install-note {
  margin: 0;
  padding: 12px 18px 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
}
.code-head__name {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
}
.code-block pre {
  margin: 0;
  padding: 14px 18px 20px;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.7;
  color: #cfe0f1;
  -webkit-overflow-scrolling: touch;
}
.code-block code {
  white-space: pre;
}
.code-block .tok-cmd {
  color: #5db4ff;
}
.code-block .tok-flag {
  color: #4fd6b8;
}
.code-block .tok-str {
  color: #ffd479;
}
.code-block .tok-key {
  color: #8fb8ff;
}
.code-block .tok-cmt {
  color: #6b88a8;
  font-style: italic;
}
.code-block .tok-img {
  color: #fff;
  font-weight: 600;
}
.code-foot {
  border-top: 1px solid #163255;
  background: #081a2e;
}
.code-foot pre {
  padding: 14px 18px;
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.steps li {
  position: relative;
  padding-left: 48px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 0.28em;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
}
.steps li strong {
  color: var(--ink);
}
.steps code {
  background: var(--bg-soft-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.86em;
  color: var(--navy);
}

.callout {
  display: flex;
  gap: 14px;
  background: linear-gradient(180deg, #fff8ee 0%, #fef3e2 100%);
  border: 1px solid #f3dcb8;
  border-left: 4px solid var(--beaver);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.callout__ic {
  font-size: 1.3rem;
  line-height: 1.4;
  flex: none;
}
.callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b4f33;
  line-height: 1.55;
}
.callout strong {
  color: #533a22;
}
.callout code {
  background: rgba(139, 94, 60, 0.12);
  padding: 1px 6px;
  border-radius: 5px;
  color: #533a22;
  font-size: 0.85em;
}

.doc-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.doc-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: var(--sh-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.doc-links a:hover {
  transform: translateX(4px);
  border-color: var(--docker);
  box-shadow: var(--sh-sm);
}
.doc-links a svg:first-child {
  width: 19px;
  height: 19px;
  color: var(--docker-600);
  flex: none;
}
.doc-links a .arr {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   16. Open source / community
   --------------------------------------------------------------------------- */
.os-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 32px;
}
.os-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--sh-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.os-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.os-tile__badge {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.os-tile p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   17. FAQ accordion
   --------------------------------------------------------------------------- */
.faq {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: 12px;
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item[open] {
  border-color: var(--docker);
  box-shadow: var(--sh-sm);
}
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 650;
  font-size: 1.04rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q:hover {
  color: var(--docker-600);
}
.faq__icon {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: background 0.2s ease, transform 0.25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink-2);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::before {
  width: 11px;
  height: 2px;
}
.faq__icon::after {
  width: 2px;
  height: 11px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.faq__item[open] .faq__icon {
  background: var(--docker-050);
}
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
  background: var(--docker);
}
.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.faq__a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq__item[open] .faq__a {
  padding: 0 22px 20px;
  max-height: 420px;
}
.faq__a p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   18. Closing CTA band
   --------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--grad-cta);
  color: #fff;
  text-align: center;
  padding-block: clamp(64px, 9vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 400px at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 50% 30%, #000, transparent 75%);
}
.cta-band__beaver {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 24px;
  box-shadow: var(--sh-lg);
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  animation: bob 5s ease-in-out infinite;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}
.cta-band p {
  max-width: 620px;
  margin: 18px auto 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------
   19. Footer
   --------------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(48px, 6vw, 72px) 0;
  font-size: 0.92rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer__brand .brand {
  color: #fff;
}
.footer__brand .brand__name {
  color: #fff;
}
.footer__tag {
  margin: 16px 0 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer__desc {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}
.footer__col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col a {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 500;
}
.footer__col a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.8);
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.18s ease;
}
.footer__social a:hover {
  background: rgba(255, 255, 255, 0.16);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------------------
   20. Toast
   --------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 120;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast svg {
  width: 18px;
  height: 18px;
  color: #4fd6b8;
}

/* ---------------------------------------------------------------------------
   21. Scroll reveal
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__blob,
  .beaver-peek,
  .cta-band__beaver,
  .dash__live::before {
    animation: none;
  }
  .dash {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   22. Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__sub {
    max-width: 52ch;
  }
  .hero__visual {
    max-width: 640px;
  }
  .dash {
    transform: none;
  }
  .install-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 920px) {
  /* Hide desktop nav bits; show hamburger */
  .nav__links,
  .nav__actions {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }

  /* Open state: one continuous dropdown panel.
     The nav__inner wraps so links + actions stack below the bar in normal flow,
     avoiding any hardcoded offsets / overlap. */
  .nav.is-open .nav__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .nav.is-open .nav__links,
  .nav.is-open .nav__actions {
    display: flex;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    margin: 0 calc(-1 * clamp(20px, 5vw, 40px));
    padding-inline: clamp(20px, 5vw, 40px);
  }
  .nav.is-open .nav__links {
    gap: 2px;
    padding-top: 12px;
    padding-bottom: 8px;
    border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__links a {
    padding: 13px 14px;
    font-size: 1.02rem;
  }
  .nav.is-open .nav__actions {
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
  }
  .nav.is-open .nav__actions .gh-star {
    justify-content: center;
  }
  .nav.is-open .nav__actions .btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .orch-cols {
    grid-template-columns: 1fr;
  }
  .os-tiles {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .feature-grid,
  .sec-grid {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash__charts {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__cta .btn-row {
    width: 100%;
  }
  .beaver-peek {
    width: 70px;
    height: 70px;
    bottom: -18px;
    left: -12px;
  }
  .pull-quote {
    font-size: 1.2rem;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cmd-chip__body pre {
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .works__row {
    gap: 18px 28px;
  }
}

/* ============================================================
   Brand showcase — the Castor logo framed like the dashboard
   "window" (title bar + dots + soft shadow), front and center.
   ============================================================ */
.brand-showcase {
  margin: 0 0 var(--sp-6, 24px) 0;
  max-width: 420px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.10);
  box-shadow: 0 24px 60px -18px rgba(10, 37, 64, 0.45),
              0 4px 14px rgba(10, 37, 64, 0.18);
  overflow: hidden;
  animation: brandFloat 6s ease-in-out infinite;
}
.brand-showcase__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f1f6fc;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}
.brand-showcase__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cbd8e8;
}
.brand-showcase__dot:nth-child(1) { background: #ec6a5e; }
.brand-showcase__dot:nth-child(2) { background: #f4bf4f; }
.brand-showcase__dot:nth-child(3) { background: #61c554; }
.brand-showcase__url {
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #7c93ac;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}
.brand-showcase__body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(36,150,237,0.06), transparent 70%),
    #ffffff;
}
.brand-showcase__logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}
@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-showcase { animation: none; }
}
@media (max-width: 640px) {
  .brand-showcase { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   Hero 2x2 grid layout:
   row 1 = [ logo ] [ headline+paragraph ]
   row 2 = [ CTAs + badges + quickstart ] [ dashboard mockup ]
   ============================================================ */
.hero__inner--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.hero__inner--grid .hero__cell { min-width: 0; }

/* Row 1 */
.hero__cell--logo {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: 460px;
  justify-self: start;
}
.hero__cell--logo .brand-showcase__logo { max-width: 100%; }
.hero__cell--headline {
  grid-column: 2;
  grid-row: 1;
}
.hero__cell--headline .hero__eyebrow { margin-bottom: 14px; }
.hero__cell--headline h1 { margin: 0 0 18px; }
.hero__cell--headline .hero__sub { margin: 0; }

/* Row 2 */
.hero__cell--actions {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.hero__cell--visual {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

/* On small screens, collapse to a single column in a natural reading order:
   logo -> headline -> actions -> dashboard */
@media (max-width: 900px) {
  .hero__inner--grid { grid-template-columns: 1fr; }
  .hero__cell--logo    { grid-column: 1; grid-row: 1; justify-self: center; max-width: 360px; }
  .hero__cell--headline{ grid-column: 1; grid-row: 2; }
  .hero__cell--actions { grid-column: 1; grid-row: 3; }
  .hero__cell--visual  { grid-column: 1; grid-row: 4; }
}

/* Same 3D "hero visual" tilt on the logo card as the dashboard mockup —
   mirrored (logo sits on the LEFT, so origin is center-left and the Y angle
   is positive). It eases upright on hover, exactly like .dash. */
.hero__cell--logo {
  animation: none;            /* drop the vertical float; use the 3D tilt instead */
  transform: perspective(1600px) rotateY(7deg) rotateX(3deg);
  transform-origin: center left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__cell--logo:hover {
  transform: perspective(1600px) rotateY(2deg) rotateX(1deg);
}
@media (max-width: 900px) {
  /* flat (no tilt) when stacked on small screens, like the dashboard does */
  .hero__cell--logo,
  .hero__cell--logo:hover { transform: none; }
}

/* Official color tech logos in the "works with" strip */
.works__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}

/* ---------------------------------------------------------------------------
   23. Community donations
   --------------------------------------------------------------------------- */
.btn--donate {
  color: #fff;
  background: linear-gradient(135deg, #13a688, #0f8a71);
  box-shadow: 0 5px 14px rgba(19, 166, 136, .24);
}
.btn--donate:hover {
  color: #fff;
  background: #0f8a71;
  transform: translateY(-1px);
}
.donate-page a {
  text-decoration: none;
  color: #464feb;
}
.donate-page a:hover { color: #3038c9; }
.donate-page .brand,
.donate-page .donate-nav .btn,
.donate-page .paypal-button,
.donate-page .donate-footer a { color: inherit; }
.donate-nav {
  position: relative;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10, 37, 64, .08);
}
.donate-nav .nav__inner { min-height: var(--nav-h); }
.donate-main { overflow: hidden; }
.donate-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--grad-hero);
}
.donate-glow {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  top: -280px;
  right: 12%;
  border-radius: 50%;
  background: rgba(36, 150, 237, .22);
  filter: blur(90px);
}
.donate-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(36px, 8vw, 100px);
}
.donate-hero__copy { max-width: 620px; }
.donate-kicker,
.donate-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #83e3d2;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.donate-kicker { margin-bottom: 20px; }
.donate-kicker span { color: #ff8b7e; font-size: 1.1rem; }
.donate-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.donate-hero h1 span {
  color: #7fd3ff;
  background: linear-gradient(100deg, #7fd3ff, #75e1c6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.donate-hero__lead {
  max-width: 54ch;
  margin: 0 0 30px;
  color: #c8d9eb;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}
.paypal-form { margin: 0; }
.paypal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 23px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 14px;
  background: #ffc439;
  color: #102c49 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  font: 750 1rem var(--font-sans);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.paypal-button:hover {
  transform: translateY(-2px);
  background: #ffd15e;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .25);
}
.paypal-button svg { width: 24px; height: 24px; fill: currentColor; }
.paypal-button span { margin-left: 5px; font-size: 1.25rem; }
.donate-secure {
  margin: 13px 0 0;
  color: #a9bfd5;
  font-size: .82rem;
}
.donate-secure span { margin-right: 5px; }
.donate-mascot {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .25);
  transform: rotate(2deg);
}
.donate-mascot__halo {
  position: absolute;
  top: 10%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 150, 237, .12), transparent 70%);
}
.donate-mascot img {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
}
.donate-mascot figcaption {
  position: relative;
  margin-top: 4px;
  color: var(--navy);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.donate-content-section {
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
}
.donate-content {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}
.donate-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sh-md);
}
.donate-card__eyebrow { margin-bottom: 14px; color: var(--teal-600); }
.donate-card h2,
.donate-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -.045em;
}
.donate-card p { color: var(--ink-3); }
.donate-impact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.donate-impact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
}
.donate-impact-list li span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-600);
  font-size: .82rem;
  font-weight: 800;
}
.donate-content tr th,
.donate-content tr td {
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
}
.donate-content tr th { background-color: #f5f5f5; }
.donate-card--future blockquote {
  margin: 25px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--docker);
  border-radius: 0 14px 14px 0;
  background: #eff7ff;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}
.donate-cta-section { padding: 0 0 clamp(56px, 8vw, 100px); background: #fff; }
.donate-cta {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: clamp(34px, 6vw, 64px) 24px;
  border-radius: 30px;
  background: var(--grad-cta);
  box-shadow: var(--sh-lg);
  text-align: center;
}
.donate-cta__icon { margin-bottom: 10px; font-size: 2rem; }
.donate-cta .donate-card__eyebrow { color: #83e3d2; }
.donate-cta h2 { max-width: 760px; color: #fff; }
.donate-cta p { margin: 0 0 8px; color: #c8d9eb; }
.donate-cta p strong { color: #fff; }
.donate-cta .paypal-form { margin-top: 24px; }
.paypal-button--light { background: #fff; }
.paypal-button--light:hover { background: #f3f8ff; }
.donate-footer { padding: 22px 0; background: #071a2e; }
.donate-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9fb1c5;
  font-size: .85rem;
}
.donate-footer a { color: #c9d9e8 !important; }
.donate-footer a:hover { color: #fff !important; }
@media (max-width: 760px) {
  .donate-hero__inner,
  .donate-content { grid-template-columns: 1fr; }
  .donate-hero__copy { text-align: center; margin-inline: auto; }
  .donate-mascot { width: min(100%, 400px); margin-inline: auto; }
  .donate-hero__lead { margin-inline: auto; }
  .donate-footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .donate-nav .nav__inner { padding-inline: 18px; }
  .donate-kicker { font-size: .68rem; letter-spacing: .08em; }
  .donate-mascot { padding: 12px; border-radius: 24px; }
  .donate-mascot figcaption { font-size: .65rem; letter-spacing: .08em; }
  .donate-card { border-radius: 18px; }
  .paypal-button { width: 100%; }
}

/* Keep installation steps as normal sentence flow; flex on li splits text and inline strong into separate columns. */
.steps li { display: block; align-items: initial; gap: 0; line-height: 1.55; }
