:root {
  --ink: #17202f;
  --muted: #5a6576;
  --paper: #f7f8fb;
  --white: #ffffff;
  --line: #d8dee8;
  --navy: #071527;
  --green: #2e8b57;
  --teal: #0d8a8f;
  --blue: #2667b5;
  --violet: #7357b8;
  --orange: #cb6f24;
  --gold: #b38a12;
  --red: #bd3f4d;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(22, 32, 47, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 7vw, 92px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 12, 24, 0.92) 0%, rgba(5, 12, 24, 0.74) 45%, rgba(5, 12, 24, 0.34) 100%),
    url("../docs/assets/venkat-enterprise-layers-clean.svg") right center / contain no-repeat,
    #06111f;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
}

.hero-text {
  max-width: 660px;
  margin: 26px 0 0;
  color: #dce6f2;
  font-size: clamp(18px, 2.1vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.two-column,
.benefits-layout,
.contact-layout,
.comparison-layout,
.concept-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.framework-image,
.gap-image {
  width: 100%;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.layer-grid,
.pattern-grid,
.use-case-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.layer-card,
.pattern-grid article,
.use-case,
.resource-card,
.comparison-list article,
.feedback-panel {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.band .pattern-grid article,
.band .feedback-panel {
  background: #fbfcfe;
}

.layer-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--white);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.verified span { background: var(--green); }
.event span { background: var(--teal); }
.spatial span { background: var(--blue); }
.knowledge span { background: var(--violet); }
.orchestration span { background: var(--orange); }
.trust span { background: var(--gold); }

.layer-card p,
.pattern-grid p,
.use-case p,
.resource-card p,
.comparison-list p {
  margin: 0;
  color: var(--muted);
}

.use-case a,
.resource-card a,
.article-list a,
.profile-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--white);
  background: var(--navy);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-list {
  display: grid;
  gap: 16px;
}

.check-list,
.risk-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.risk-list li {
  padding: 14px 16px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
}

.risk-list li {
  border-left-color: var(--orange);
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list a {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c6ceda;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.github-comments {
  min-height: 180px;
  margin-top: 22px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #cbd6e7;
  background: var(--navy);
  font-weight: 700;
}

.author-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 12, 24, 0.94), rgba(12, 40, 57, 0.86)),
    #06111f;
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.author-photo-wrap {
  width: min(100%, 360px);
}

.author-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 32%;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.author-intro h1 {
  color: var(--white);
}

.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.bio-lead {
  max-width: 920px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
}

.bio-lead a,
.author-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.author-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-card.wide {
  grid-column: 1 / -1;
}

.author-card h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

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

.author-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(rgba(5, 12, 24, 0.9), rgba(5, 12, 24, 0.82)),
      url("../docs/assets/venkat-framework-for-agentic-ai.svg") center bottom / 92% auto no-repeat,
      #06111f;
    padding-bottom: 320px;
  }

  .two-column,
  .benefits-layout,
  .contact-layout,
  .comparison-layout,
  .concept-layout,
  .layer-grid,
  .pattern-grid,
  .use-case-grid,
  .resource-grid,
  .author-layout,
  .author-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .author-photo-wrap {
    max-width: 320px;
  }
}

@media (max-width: 540px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-inline: 16px;
    padding-bottom: 250px;
  }

  .nav {
    gap: 8px 12px;
    font-size: 13px;
  }
}
