/* GitOps Risk Control — business case study */

:root {
  --bg:           #ffffff;
  --bg-alt:       #f7f8fa;
  --bg-soft:      #f1f3f6;

  --border:       #e5e7eb;
  --border-soft:  #eef0f3;

  --ink:          #0f1729;
  --text:         #1f2937;
  --text-dim:     #4b5563;
  --text-muted:   #6b7280;

  --navy:         #0f2942;
  --navy-2:       #1e3a5f;
  --accent:       #4c6c93;
  --accent-soft:  #eef2f7;

  --rule:         #d8dde4;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: var(--navy-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy-2);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

::selection { background: var(--navy); color: #fff; }

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Eyebrow / labels */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand:hover { color: var(--navy); text-decoration: none; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 4px;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 4px 12px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 120px;
  background-image:
    linear-gradient(180deg, rgba(15, 41, 66, 0.78), rgba(15, 41, 66, 0.62)),
    url("../img/bg_hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 24px;
  max-width: 18ch;
  color: #fff;
}
.hero .lede {
  color: rgba(255, 255, 255, 0.9);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 60ch;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover {
  border-color: var(--navy-2);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}

/* Sections */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
}
section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 20px;
  max-width: 24ch;
}

.lede-sm {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 62ch;
  line-height: 1.6;
}

.sub-title {
  font-size: 1.35rem;
  margin: 48px 0 14px;
}

p {
  margin: 0 0 18px;
  color: var(--text);
  max-width: 64ch;
}

/* Pull quote */
.pull-quote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--navy);
  padding: 12px 0 12px 24px;
  margin: 32px 0 48px;
  max-width: 60ch;
  line-height: 1.5;
}
.pull-quote em {
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
}

/* Phases */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.phase {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 24px;
}
section.alt .phase {
  background: #fff;
}
.phase-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.phase h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.phase p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
  max-width: none;
}
.phase-goal {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
}

/* Strategies */
.strategies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}
.strategy {
  border-left: 2px solid var(--navy);
  padding: 4px 0 4px 20px;
}
.strategy h4 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.strategy p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
  max-width: none;
}

/* Figure */
.figure {
  margin: 28px 0;
  text-align: center;
}
.figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.figure figcaption {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Tables */
.table-wrap {
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow-x: auto;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.steps > li {
  margin-bottom: 40px;
}
.step-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-head h4 {
  margin: 4px 0 6px;
  font-size: 1.15rem;
}
.step-head p {
  color: var(--text-dim);
  margin: 0;
  max-width: 58ch;
}

/* Video */
.video-wrap {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 28px 0;
  aspect-ratio: 16/9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}
.video-placeholder .play {
  font-size: 22px;
  color: var(--navy);
  border: 1px solid var(--rule);
  background: #fff;
  width: 56px; height: 56px;
  line-height: 52px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 12px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: #fff;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--text-dim); }

@media (max-width: 640px) {
  .hero { padding: 48px 0 72px; }
  section { padding: 56px 0; }
  .container { padding: 0 22px; }
  .pull-quote { font-size: 1.1rem; }
  th, td { padding: 12px 14px; }
  .step-head { gap: 14px; }
  .step-num { width: 30px; height: 30px; font-size: 14px; }
}
