/* Hermes for Creators — Why AI Matters explainer site */
:root {
  --navy: #002244;
  --green: #69BE28;
  --blue: #005C9C;
  --navy-muted: #1a3a5c;
  --text: #002244;
  --text-muted: #3d5a73;
  --bg: #ffffff;
  --surface: #f4f7fa;
  --border: #d8e2ec;
  --green-soft: rgba(105, 190, 40, 0.12);
  --shadow: 0 2px 12px rgba(0, 34, 68, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 34, 68, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --max: 1080px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--green); }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--green);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-brand:hover { color: var(--green); }

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(105, 190, 40, 0.2);
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-header {
  padding: 3rem 0 2rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-header .thesis {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

.page-header .thesis strong { color: var(--blue); }

.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

/* ── Hero ── */
.hero {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-content h1 .accent { color: var(--green); }

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}

.hero-visual img { width: 100%; }

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 3px solid var(--green);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(105, 190, 40, 0.35);
}

.btn-primary:hover { color: var(--navy); box-shadow: 0 4px 16px rgba(105, 190, 40, 0.45); }

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary:hover { color: var(--green); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover { background: var(--blue); color: #fff; }

/* ── Concept cards ── */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.concept-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.concept-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}

.concept-card .card-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.concept-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.concept-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
}

.concept-card .card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 0.25rem;
}

.concept-card:hover .card-link { color: var(--green); }

/* ── Cards & panels ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.card p:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.highlight-box {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.highlight-box blockquote {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
}

/* ── Checklists ── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 4px;
  background: var(--bg);
}

.checklist li.done::before {
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23002244' d='M4.5 9L1.5 6l1-1 2 2 5-5 1 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── Code & prompts ── */
.code-block {
  position: relative;
  background: var(--navy);
  color: #e8f0f8;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(105, 190, 40, 0.2);
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}

.copy-btn:hover { background: var(--green); color: var(--navy); }
.copy-btn.copied { background: var(--green); color: var(--navy); }

/* ── Steps ── */
.steps { counter-reset: step; }

.step {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

tr:hover td { background: var(--green-soft); }

/* ── Ladder / tiers ── */
.ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.ladder-tier {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.ladder-tier.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.ladder-tier .tier-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.ladder-tier h4 {
  margin: 0.35rem 0 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}

.ladder-tier ul {
  text-align: left;
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.88rem;
}

.site-footer a { color: var(--green); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img { width: 28px; border-radius: 5px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* ── Related links ── */
.related-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 0 1rem;
  }

  .hero-visual { order: -1; max-height: 220px; }
  .hero-visual img { object-fit: cover; height: 220px; width: 100%; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 3px solid var(--green);
    box-shadow: var(--shadow-lg);
  }

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

  .ladder { grid-template-columns: 1fr; }

  .concept-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .page-header { padding: 2rem 0 1.25rem; }
}
