/* AIGovOps Beacon — Reference Architecture Blueprint
   Inherits color palette from the main Beacon site:
   teal #01696f, deep navy #01314c, signal green #2ecc71,
   amber #b87b00, parchment #fef6e0, mist #e6f3f4
*/

:root {
  --teal: #01696f;
  --teal-dark: #014a4f;
  --navy: #01314c;
  --green: #2ecc71;
  --green-dark: #1f9c54;
  --amber: #b87b00;
  --amber-bg: #fef6e0;
  --mist: #e6f3f4;
  --leaf: #e8f5ea;
  --rust: #c0392b;
  --rust-bg: #fde2e0;
  --ink: #0d1f2d;
  --ink-soft: #3a4a5a;
  --line: #d8dee5;
  --bg: #fbfcfc;
  --bg-band: #f3f6f7;
  --max: 1140px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(1,49,76,.08), 0 4px 14px rgba(1,49,76,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code, pre { font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ----- header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-name { font-weight: 700; font-size: 1.05rem; line-height: 1.15; display: flex; flex-direction: column; }
.brand-name .foundation { font-weight: 500; font-size: .78rem; color: var(--ink-soft); }

.nav-actions { display: flex; gap: .35rem; align-items: center; }
.btn-sm { font-size: .85rem; padding: .45rem .8rem; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 999px; font-weight: 600;
  padding: .6rem 1.1rem; transition: all .15s ease;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--mist); text-decoration: none; }

@media (max-width: 820px) { .desktop-only { display: none; } }

/* ----- hero ----- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(46,204,113,.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(1,105,111,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: var(--teal);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1; margin: 0 0 1.2rem;
  max-width: 22ch; font-weight: 700; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--teal); }
.hero .lede { font-size: 1.15rem; max-width: 60ch; color: var(--ink-soft); margin: 0 0 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; padding: 0; margin: 0;
}
.hero-pills li {
  background: #fff; border: 1px solid var(--line);
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .82rem; color: var(--ink-soft); font-weight: 500;
}

/* ----- bands / sections ----- */
.band { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.band-light { background: var(--bg-band); }
.band-dark { background: var(--navy); color: #d9e3ec; border-bottom: 0; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark a { color: var(--green); }

.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6rem; letter-spacing: -0.01em; }
.band-lede { font-size: 1.05rem; max-width: 70ch; color: var(--ink-soft); margin: 0 0 2rem; }
.band-dark .band-lede { color: #a8b8c5; }

/* ----- grids ----- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ----- cards ----- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h3, .card h4 { margin-top: 0; color: var(--navy); }
.card h3 { font-size: 1.1rem; }
.card h4 { font-size: 1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 1.5rem;
}
.card-dark h3 { margin-top: 0; color: var(--green); }

/* ----- stage sections ----- */
.stage { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.stage-head {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 2rem; padding-bottom: 1.2rem;
  border-bottom: 2px solid;
}
.stage-num {
  font-family: 'DM Mono', monospace;
  font-size: 2.2rem; font-weight: 500;
  color: #fff; background: var(--teal);
  width: 64px; height: 64px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stage-head h2 { margin: 0; font-size: 1.8rem; }
.stage-head p { margin: .3rem 0 0; color: var(--ink-soft); }

.stage-design { background: linear-gradient(180deg, #fff, #f8fbfb); }
.stage-design .stage-head { border-bottom-color: var(--teal); }
.stage-design .stage-num { background: var(--teal); }

.stage-deploy { background: linear-gradient(180deg, #fffdf6, #fff); }
.stage-deploy .stage-head { border-bottom-color: var(--amber); }
.stage-deploy .stage-num { background: var(--amber); }

.stage-ops { background: linear-gradient(180deg, #f7fcf8, #fff); }
.stage-ops .stage-head { border-bottom-color: var(--green); }
.stage-ops .stage-num { background: var(--green-dark); }

/* ----- diagrams ----- */
.diagram-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); margin: 1.5rem 0 2rem;
  overflow-x: auto;
}
.mermaid { font-family: 'Inter', sans-serif; }

/* ----- tables ----- */
.evidence-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  font-size: .92rem;
}
.evidence-table th, .evidence-table td {
  text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.evidence-table th {
  background: var(--mist); color: var(--navy);
  font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.evidence-table tr:last-child td { border-bottom: 0; }
.evidence-table code { font-size: .85rem; color: var(--teal-dark); }
.evidence-table.compact th, .evidence-table.compact td {
  padding: .5rem .7rem; font-size: .88rem;
}

/* ----- callouts ----- */
.callout {
  background: var(--mist); border-left: 4px solid var(--teal);
  border-radius: 6px; padding: 1.2rem 1.4rem;
  margin-top: 1.8rem;
}
.callout h4 {
  margin: 0 0 .6rem; color: var(--navy);
  font-size: 1rem;
}
.callout p, .callout li { color: var(--ink); font-size: .95rem; }
.callout-dark {
  background: rgba(46,204,113,.10);
  border-left-color: var(--green);
  color: #d9e3ec;
}
.callout-dark h4 { color: var(--green); }
.callout-dark p { color: #d9e3ec; }

.control-list { list-style: none; padding: 0; margin: 0; }
.control-list li {
  padding: .35rem 0;
  border-bottom: 1px dashed rgba(1,49,76,.15);
  font-size: .92rem;
}
.control-list li:last-child { border-bottom: 0; }

/* ----- lists ----- */
.numbered { padding-left: 1.2rem; }
.numbered li { margin-bottom: .7rem; }
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding-left: 1.6rem; position: relative;
  margin-bottom: .6rem; font-size: .95rem;
}
.check-list li::before {
  content: "▸"; color: var(--teal);
  position: absolute; left: 0; top: 0;
  font-weight: 700;
}
.infra-list { list-style: none; padding: 0; margin: 0; }
.infra-list li {
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .93rem;
}
.infra-list li:last-child { border-bottom: 0; }
.infra-list strong { color: var(--green); }

/* ----- code blocks ----- */
pre.code {
  background: var(--navy); color: #c9d9e6;
  border-radius: var(--radius); padding: 1.2rem;
  overflow-x: auto; font-size: .85rem; line-height: 1.55;
  border: 1px solid rgba(255,255,255,.08);
}
pre.code code { color: inherit; background: none; padding: 0; }
.band-dark pre.code {
  background: #000c17; border-color: rgba(255,255,255,.12);
}
p code, li code, td code {
  background: var(--mist); color: var(--teal-dark);
  padding: .12rem .35rem; border-radius: 4px;
  font-size: .85em;
}
.band-dark p code, .band-dark li code, .band-dark td code {
  background: rgba(255,255,255,.08); color: var(--green);
}

/* ----- download cards ----- */
.dl-card {
  display: block; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 1.3rem;
  color: #d9e3ec; transition: all .15s ease;
}
.dl-card:hover {
  background: rgba(46,204,113,.10);
  border-color: var(--green);
  text-decoration: none; transform: translateY(-2px);
}
.dl-card h3 {
  margin: 0 0 .4rem; color: var(--green);
  font-family: 'DM Mono', monospace; font-size: 1rem;
}
.dl-card p { margin: 0; font-size: .88rem; color: #a8b8c5; }

/* ----- footer ----- */
.site-footer {
  background: var(--navy); color: #a8b8c5;
  padding: 2.5rem 0; font-size: .9rem;
}
.site-footer p { margin: .3rem 0; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--green); }
.site-footer .footnote {
  color: #6c8095; font-size: .82rem; max-width: 70ch;
  margin-top: .8rem; font-style: italic;
}

/* ----- responsive tweaks ----- */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .stage, .band { padding: 2.5rem 0; }
  .stage-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .stage-num { width: 48px; height: 48px; font-size: 1.6rem; }
}
