/* -------- design tokens (override Bootstrap) -------- */
:root {
  --bs-body-font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
                         "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-font-monospace: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
                       "Liberation Mono", monospace;
}

/* Dark theme accents (applies when <html data-bs-theme="dark">) */
[data-bs-theme="dark"] {
  --bs-primary: #4d8bff;                       /* brighter kubernetes-blue for dark bg */
  --bs-primary-rgb: 77, 139, 255;
  --bs-body-bg: #0b1220;                       /* deep slate */
  --bs-body-color: #e2e8f0;
  --bs-secondary-color: #94a3b8;
  --bs-tertiary-bg: #111a2e;
  --bs-border-color: #1e293b;
  --bs-border-color-translucent: rgba(255, 255, 255, .1);
}

/* smooth anchor jumps */
html { scroll-behavior: smooth; }

/* Extra vertical padding utility used on sections (Bootstrap only has py-5) */
.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
@media (max-width: 991.98px) {
  .py-lg-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

/* Extra horizontal breathing room on non-hero sections.
   Hero keeps Bootstrap's default container padding. */
@media (min-width: 992px) {
  main > section:not(.hero) > .container { padding-inline: 4rem; }
}
@media (min-width: 1400px) {
  main > section:not(.hero) > .container { padding-inline: 6rem; }
}

/* -------- typography accents -------- */
.hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--bs-primary);
}

h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.015em; }

/* inline code chips */
code {
  font-family: var(--bs-font-monospace);
  font-size: .88em;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 5px;
  padding: .05rem .4rem;
  color: var(--bs-primary);
  white-space: nowrap;
}

/* -------- hero -------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  /* Left-to-right dark fade over the image keeps the left-side text readable
     while letting the right side of the image show through cleanly. */
  background-image:
    linear-gradient(90deg,
      rgba(11, 18, 32, .95) 0%,
      rgba(11, 18, 32, .85) 40%,
      rgba(11, 18, 32, .35) 70%,
      rgba(11, 18, 32, 0) 100%),
    url("../img/bg-image.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
  /* On mobile the image sits behind the text; use a stronger flat overlay for legibility. */
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(rgba(11, 18, 32, .9), rgba(11, 18, 32, .85)),
      url("../img/bg-image.jpg");
    background-position: center;
  }
}

.hero-stack li {
  font-family: var(--bs-font-monospace);
  font-size: .8rem;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: .25rem .65rem;
  white-space: nowrap;
}
.hero-svg { max-width: 520px; }

/* -------- navbar polish -------- */
.navbar {
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(11, 18, 32, .85) !important;
}
.navbar .nav-link { color: var(--bs-secondary-color); font-size: .95rem; }
.navbar .nav-link:hover,
.navbar .nav-link.is-active { color: var(--bs-body-color); }

/* -------- images: uniform width, left-aligned -------- */
.site-figure {
  max-width: 1024px;         /* consistent width across the page */
  margin-left: 0;           /* left-aligned, not centered */
  margin-right: 0;
}
.site-figure img {
  width: 100%;
  height: auto;
}

/* -------- benefit / summary bullets -------- */
.cs-benefits li,
.sum-list li {
  position: relative;
  padding-left: 1.5rem;
}
.cs-benefits li::before,
.sum-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: .5rem; height: .5rem;
  background: var(--bs-primary);
  border-radius: 999px;
}

/* -------- JSON code block (dark) -------- */
.demo-code {
  margin: 0;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.demo-code-caption {
  font-family: var(--bs-font-monospace);
  font-size: .8rem;
  color: #94a3b8;
  background: #1e293b;
  padding: .5rem 1rem;
  border-bottom: 1px solid #334155;
  letter-spacing: .02em;
}
.demo-code pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.demo-code code {
  font-family: var(--bs-font-monospace);
  font-size: .88rem;
  color: #e2e8f0;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1.6;
  white-space: pre;
}

/* -------- alert (Time to live URL) -------- */
.demo-ttl { font-size: .95rem; }
.demo-ttl strong { color: var(--bs-body-color); }

/* -------- table polish -------- */
.table > :not(caption) > * > * {
  padding: .8rem 1rem;
}
.table code { background: var(--bs-body-bg); }

/* -------- blockquote question -------- */
.cs-question { margin: 0 0 1rem 0; font-size: 1.05rem; }

/* -------- footer -------- */
.site-footer {
  background: var(--bs-tertiary-bg);
  padding: 2rem 0;
  font-size: .9rem;
  color: var(--bs-secondary-color);
}
.site-footer > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
@media (min-width: 992px) {
  .site-footer > .container { padding-inline: 4rem; }
}
@media (min-width: 1400px) {
  .site-footer > .container { padding-inline: 6rem; }
}
.site-footer a {
  color: var(--bs-secondary-color);
  text-decoration: none;
  transition: color .15s ease-in-out;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--bs-primary); }
.site-footer-copy a { color: var(--bs-body-color); }
.site-footer-top span { display: inline-block; transition: transform .15s ease-in-out; }
.site-footer-top:hover span { transform: translateY(-2px); }

@media (max-width: 575.98px) {
  .site-footer > .container { justify-content: center; text-align: center; }
}
