/* Cold Obsidian — Main Stylesheet
 * Brand: assets/brand/color-palette.md + assets/brand/typography.md
 */

/* ── Reset ─────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #e8eaed;
  background-color: #0a0a0f;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: #e8eaed;
  text-decoration: none;
}

/* ── Typography Scale ─────────────────────────────────── */

h1 {
  font-size: 2.625rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

p, li {
  font-size: 1rem;
  line-height: 1.65;
  color: #8a8fa3;
}

small, .text-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #8a8fa3;
}

.text-meta {
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #8a8fa3;
}

/* ── Layout ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 64rem; /* 1024px */
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header / Navigation ──────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e2030;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-mark {
  width: 2.6rem;
  height: 2.6rem;
}

.logo-mark svg path {
  fill: #e8eaed;
}

.logo-word {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #e8eaed;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: #8a8fa3;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e8eaed;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #e8eaed;
  margin: 4px 0;
  transition: 0.2s ease;
}

/* ── Hero Section ─────────────────────────────────────── */

.hero {
  padding: 8rem 0 6rem;
  border-bottom: 1px solid #1e2030;
}

.hero h1 {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: #8a8fa3;
  line-height: 1.5;
  max-width: 40rem;
}

/* ── Sections ─────────────────────────────────────────── */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid #1e2030;
}

.section:last-of-type {
  border-bottom: none;
}

.section + .section {
  /* alternate background subtly */
}

.section:nth-child(even) {
  background-color: #0d0d14;
}

.section h2 {
  margin-bottom: 2rem;
}

.section p {
  max-width: 50ch;
  margin-bottom: 1.25rem;
}

/* ── Feature Grid (homepage "What We Deliver") ───────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item h3 {
  color: #e8eaed;
  margin-bottom: 0.5rem;
}

.feature-item p {
  max-width: none;
}

/* ── Solutions Page ───────────────────────────────────── */

.solutions-intro {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid #1e2030;
}

.solutions-intro p {
  font-size: 1.125rem;
  max-width: 60ch;
}

.module-list,
.service-list {
  list-style: none;
  margin-top: 2rem;
}

.module-list li,
.service-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid #1e2030;
}

.module-list li:first-child,
.service-list li:first-child {
  padding-top: 0;
}

.module-list h3,
.service-list h3 {
  color: #e8eaed;
  margin-bottom: 0.5rem;
}

.source-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}

.source-list li {
  font-size: 0.9375rem;
  color: #8a8fa3;
  padding-left: 1rem;
  position: relative;
}

.source-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #2a2d40;
}

.capability-list {
  list-style: none;
  margin-top: 1.5rem;
}

.capability-list li {
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1e2030;
}

/* ── Team Page ────────────────────────────────────────── */

.team-group {
  margin-bottom: 4rem;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #8a8fa3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1e2030;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.team-member {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.team-member-photo {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 0.125rem;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  color: #e8eaed;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.team-member .title {
  font-size: 0.875rem;
  color: #8a8fa3;
  margin-bottom: 0.75rem;
}

.team-member p {
  font-size: 0.9375rem;
  max-width: none;
}

/* Spare identities — no bios */
.team-spare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-spare .team-member h3 {
  font-size: 0.9375rem;
}

.team-spare .team-member-photo {
  width: 2.5rem;
  height: 2.5rem;
}

.team-spare .team-member .title {
  margin-bottom: 0;
}

/* ── Contact / Careers Pages ─────────────────────────── */

.page-intro {
  padding: 5rem 0 3rem;
}

.page-intro p {
  font-size: 1.125rem;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.contact-emails {
  list-style: none;
}

.contact-emails li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #e8eaed;
  border-bottom: 1px solid #1e2030;
}

.contact-emails a {
  color: #e8eaed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-emails a:hover {
  color: #8a8fa3;
}

.contact-address {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: #8a8fa3;
}

/* ── Text Links (CTA style) ──────────────────────────── */

.text-link {
  display: inline-block;
  font-size: 1rem;
  color: #e8eaed;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: #8a8fa3;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  border-top: 1px solid #1e2030;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: #8a8fa3;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #e8eaed;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #8a8fa3;
}

/* ── 404 Page ─────────────────────────────────────────── */

.error-page {
  padding: 10rem 0;
  text-align: left;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 2rem;
}

/* ── Two-Column Layout (text + image) ─────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin-top: 2rem;
}

.two-col-text p {
  max-width: 50ch;
  margin-bottom: 1.25rem;
}

.two-col-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.two-col-image img {
  width: 480px;
  height: 480px;
  opacity: 0.45;
}

/* ── Diagrams ─────────────────────────────────────────── */

.diagram {
  margin-top: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  padding-top: 1.25rem;
}

/* Diagram 1 — Moral Firewall Flow */
.dg-flow {
  display: flex;
  align-items: stretch;
  min-width: 700px;
  gap: 0;
  margin-top: -0.625rem;
}

.dg-flow-group {
  display: flex;
  align-items: stretch;
  background-color: rgba(26, 58, 92, 0.1);
  border: 1px solid #1a3a5c;
  border-radius: 6px;
  padding: 2rem 0.75rem 1rem;
  gap: 0;
  position: relative;
}

.dg-flow-group-label {
  position: absolute;
  top: 0.875rem;
  left: 1rem;
  font-size: 0.6875rem;
  color: #4a6a8a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: #0d0d14;
  padding: 0 0.5rem;
}

.dg-flow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  min-width: 110px;
}

.dg-flow-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: #8a8fa3;
}

.dg-flow-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dg-flow-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e8eaed;
  margin-bottom: 0.25rem;
}

.dg-flow-desc {
  font-size: 0.75rem;
  color: #8a8fa3;
  line-height: 1.4;
}

.dg-flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  color: #2a2d40;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Diagram 2 — Platform Architecture (Hub-and-Spoke) */
/* Diagram 2 — Platform Architecture (SVG) */
.dg-svg-hub {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

/* Diagram 3 — Deployment Options */
.dg-deploy {
  display: flex;
  gap: 2rem;
  min-width: 500px;
}

.dg-deploy-option {
  flex: 1;
  border: 1px solid #1e2030;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.dg-deploy-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e8eaed;
  margin-bottom: 1rem;
}

.dg-deploy-env {
  border: 1px dashed #2a2d40;
  border-radius: 4px;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}

.dg-deploy-appliance {
  display: inline-block;
  border: 1px solid #1a3a5c;
  background-color: rgba(26, 58, 92, 0.1);
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.dg-deploy-appliance-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e8eaed;
}

.dg-deploy-desc {
  font-size: 0.75rem;
  color: #8a8fa3;
  line-height: 1.4;
}

/* ── Mobile Responsive ────────────────────────────────── */

@media (max-width: 64rem) {
  .container {
    padding: 0 1.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-spare {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #0a0a0f;
    border-bottom: 1px solid #1e2030;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-meta {
    text-align: left;
  }

  .team-spare {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col-image {
    justify-content: flex-start;
    margin-top: -1rem;
  }
}
