:root {
  color-scheme: dark;

  /* Brand fonts */
  --font-head: "Cuprum", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  /* Cuprum is required across all marketing materials, body copy included. */
  --font-body: "Cuprum", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Brand colors (per GlueOps brand guide) */
  --accent-yellow: #f7d21c;
  --accent-yellow-deep: #f4c624;
  --accent-green: #1a8c44;
  --accent-green-deep: #084218;

  /* Dark grounds (hybrid: reference darkness, brand-tinted) */
  --bg: #081210;
  --bg-soft: #0d1b1e; /* brand Rich Black */
  --bg-card: rgba(9, 35, 39, 0.92); /* brand Soft Black, alpha */

  --text: #fbfdfb; /* brand Light */
  --muted: #d2d7df; /* brand Mid */
  --stroke: rgba(251, 253, 251, 0.09);

  --radius-lg: 32px;
  --radius-md: 18px;
  --glow-yellow: rgba(247, 210, 28, 0.55);

  font-family: var(--font-body);
  background-color: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at 18% 0%,
      rgba(247, 210, 28, 0.16),
      transparent 42%
    ),
    radial-gradient(circle at 82% 0%, rgba(26, 140, 68, 0.28), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  line-height: 1.65;
  padding: 0 2rem 3rem;
}

@media (max-width: 600px) {
  body {
    padding: 0 1.25rem 2rem;
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Headings use Cuprum, brand tracking -50 (~ -0.05em) */
h1,
h2,
h3,
.metric,
.proof-metric,
.price {
  font-family: var(--font-head);
  letter-spacing: -0.05em;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  /* Brand guide: clear space equal to 25% of logo height on all sides */
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(251, 253, 251, 0.22);
}

.logo-mark {
  display: block;
  width: 56px;
  height: 56px;
  background: transparent;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background-color: rgba(247, 210, 28, 0.18);
}

/* ---------- Buttons ---------- */
.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.primary-link {
  background: var(--accent-green);
  color: var(--text);
  border: 2px solid var(--accent-green);
  box-shadow: 0 10px 30px rgba(26, 140, 68, 0.35);
}

.primary-link:hover {
  background: rgba(26, 140, 68, 0.15);
  color: var(--accent-green);
  box-shadow: none;
  transform: translateY(-1px);
}

.primary-link.big {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.ghost-link {
  background: transparent;
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
}

.ghost-link:hover {
  background: var(--accent-yellow);
  color: #081210;
  transform: translateY(-1px);
}

/* ---------- Section helpers ---------- */
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  font-family: var(--font-head);
  font-weight: 600;
}

.eyebrow.center {
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  max-width: 820px;
  margin: 0.6rem auto 2.5rem;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0 3.5rem;
  border-bottom: 1px solid var(--stroke);
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  margin: 0.5rem 0 1.1rem;
  line-height: 1.05;
}

.hero-text .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--accent-yellow) 0%,
    var(--accent-yellow-deep) 70%
  );
  box-shadow: 0 0 12px var(--glow-yellow);
}

.hero-card {
  background: linear-gradient(155deg, var(--bg-card), rgba(8, 66, 24, 0.6));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
  align-self: start;
}

.card-eyebrow {
  color: var(--accent-yellow);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}

.hero-card h2 {
  font-size: 1.6rem;
  margin: 0.4rem 0 0.9rem;
}

.hero-card p {
  color: var(--muted);
  margin: 0;
}

.card-metrics {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.metric {
  display: block;
  font-size: 1.7rem;
  color: var(--accent-yellow);
}

.card-metrics p {
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
}

/* ---------- Problem ---------- */
.problem,
.proof,
.how {
  padding: 4rem 0;
  border-bottom: 1px solid var(--stroke);
}

.problem-grid,
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.problem-step,
.how-step {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 1.8rem;
}

.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-green);
  letter-spacing: 0.1em;
}

.problem-step h3,
.how-step h3 {
  font-size: 1.25rem;
  margin: 0.6rem 0 0.6rem;
}

.problem-step p,
.how-step p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Proof ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.proof-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: linear-gradient(
    165deg,
    rgba(26, 140, 68, 0.12),
    rgba(13, 27, 30, 0.85)
  );
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.proof-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 210, 28, 0.6);
}

.proof-metric {
  display: block;
  font-size: 2.8rem;
  color: var(--accent-yellow);
  line-height: 1;
}

.proof-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.8rem 0 0.2rem;
}

.proof-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.proof-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 2rem auto 0;
  max-width: 600px;
}

/* ---------- Split (two-sided pitch) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: linear-gradient(
    135deg,
    rgba(244, 198, 36, 0.08),
    rgba(8, 66, 24, 0.3)
  );
}

.split h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--accent-yellow);
}

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

.split-stack {
  grid-column: 1 / -1;
  border-top: 1px solid var(--stroke);
  padding-top: 1.6rem;
}

.stack-label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.stack-list {
  color: var(--text);
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.stack-note {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  margin: 4rem 0 3rem;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      circle at 35% 20%,
      rgba(247, 210, 28, 0.2),
      transparent
    ),
    radial-gradient(circle at 85% 10%, rgba(26, 140, 68, 0.25), transparent),
    var(--bg-card);
  border: 1px solid var(--stroke);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.7rem;
}

.cta-text p {
  color: var(--muted);
  margin: 0;
}

.cta-form {
  display: flex;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.35);
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
}

.cta-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
}

.cta-form input::placeholder {
  color: rgba(251, 253, 251, 0.5);
}

.cta-form input:focus {
  outline: none;
}

.cta-form button {
  border: 2px solid var(--accent-yellow);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: #081210;
  background: var(--accent-yellow);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-form button:hover {
  background: rgba(247, 210, 28, 0.12);
  color: var(--accent-yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Footer ---------- */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .cta-form button {
    width: 100%;
  }
}

/* ---------- What-we-do line under the hero lede ---------- */
.definition {
  margin: 1.1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-green);
  color: var(--text);
  font-size: 1rem;
  max-width: 540px;
}

/* ---------- Migration video ---------- */
.proof-video {
  margin: 2.5rem auto 0;
  max-width: 760px;
  text-align: center;
}

.proof-video h3 {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.proof-video p {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Focus visibility ---------- */
/* .cta-form input clears its own outline, so focus is shown on the pill. */
.cta-form:focus-within {
  border-color: var(--accent-yellow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ---------- Inner pages: shared page heading ---------- */
.page-head {
  max-width: 820px;
  padding: 2rem 0 3rem;
}

.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0.5rem 0 1.1rem;
}

.page-head .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
}

.page-head .lede a,
.prose a {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---------- Articles: posts ported from the old site, and legal text ---------- */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.article h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin: 0.5rem 0 1.5rem;
}

.article-feature {
  margin: 0 0 2rem;
}

/* Long URLs and code in ported bodies must wrap, not widen the page. */
.prose {
  overflow-wrap: anywhere;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5 {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 2.2rem 0 0.8rem;
}

.prose h2 {
  font-size: 1.7rem;
}

.prose h3 {
  font-size: 1.4rem;
}

.prose h4,
.prose h5 {
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong,
.prose b {
  color: var(--text);
}

.prose li {
  margin: 0.35rem 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 2.2rem 0;
}

.prose figure {
  margin: 2rem 0;
}

/* Diagrams were drawn for a white page; several have transparent grounds. */
.article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: #fff;
}

.prose figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--accent-green);
}

.prose blockquote p,
.prose blockquote h4 {
  color: var(--text);
  margin: 0.6rem 0;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(251, 253, 251, 0.08);
}

.prose pre {
  overflow-x: auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  line-height: 1.5;
}

.prose pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
  white-space: pre;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  overflow-wrap: normal;
}

.prose th,
.prose td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--font-head);
  color: var(--text);
  white-space: nowrap;
}

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

.article-cta {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-cta p {
  margin: 0;
}

/* ---------- Blog index ---------- */
.post-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 1rem;
}

.post-list a {
  display: block;
  padding: 1.5rem 1.8rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: border-color 0.2s ease;
}

.post-list a:hover {
  border-color: rgba(247, 210, 28, 0.6);
}

.post-list h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0.3rem 0 0.5rem;
}

.post-list p {
  margin: 0;
  color: var(--muted);
}

.post-date {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.footer-links {
  flex-wrap: wrap;
}
