/*
 * Gajae Code — Website Design System
 * Red-claw dark theme. Plain CSS, no build step.
 */

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  /* Brand — red-claw primary */
  --accent: #ff5347;
  --accent-light: #ff8275;
  --accent-dark: #cf2a23;
  --accent-rgb: 255, 83, 71;

  /* Secondary — blue-crab */
  --crab: #4ea1ff;
  --crab-light: #7cc0ff;

  /* Surfaces */
  --bg-primary: #0c0a09;
  --bg-secondary: #14100e;
  --bg-tertiary: #1d1714;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #fdf6f3;
  --text-secondary: #c2b3ab;
  --text-tertiary: #8c7d76;

  /* Lines */
  --border: #2a2018;
  --border-strong: #3a2c23;

  /* Type */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --max-width: 1200px;
  --radius: 16px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 26px 56px rgba(0, 0, 0, 0.42);
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

code,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 45%, #ffd9b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================================
   3. Layout helpers
   ============================================================ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.25rem;
  position: relative;
}

.section--tight {
  padding: 4rem 1.25rem;
}

.section__header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.bg-alt {
  background: var(--bg-secondary);
}

.bg-alt-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 30px -8px rgba(var(--accent-rgb), 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -8px rgba(var(--accent-rgb), 0.65);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

/* ============================================================
   5. Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.72));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(12, 10, 9, 0.9);
  border-bottom-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav__logo:hover {
  color: var(--text-primary);
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 18px -6px rgba(var(--accent-rgb), 0.7);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link--cta {
  color: var(--accent-light);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav__hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 95;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 820px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 1.75rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .nav__links.active {
    right: 0;
  }

  .nav__link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav__links .btn {
    width: 100%;
    margin-top: 1.25rem;
  }
}

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 1.25rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(var(--accent-rgb), 0.16) 0%, transparent 42%),
    radial-gradient(ellipse at 85% 30%, rgba(78, 161, 255, 0.1) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(var(--accent-rgb), 0.08) 0%, transparent 45%),
    var(--bg-primary);
}

.hero__content {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__text > * {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.hero__text > *:nth-child(1) { animation-delay: 0.05s; }
.hero__text > *:nth-child(2) { animation-delay: 0.15s; }
.hero__text > *:nth-child(3) { animation-delay: 0.25s; }
.hero__text > *:nth-child(4) { animation-delay: 0.35s; }
.hero__text > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.hero__tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.pill strong {
  color: var(--accent-light);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInScale 1s ease 0.4s forwards;
  position: relative;
}

.hero__illustration {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero__illustration img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.hero__illustration::before {
  content: '';
  position: absolute;
  inset: -8% -8% -8% -8%;
  background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), 0.28), transparent 62%);
  filter: blur(34px);
  z-index: -1;
  animation: orbitFloat 9s ease-in-out infinite;
}

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.04); }
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero__description { margin-left: auto; margin-right: auto; }
  .hero__pills, .hero__cta { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__illustration { max-width: 380px; }
}

/* ============================================================
   7. Terminal block
   ============================================================ */
.terminal {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%), rgba(10, 8, 7, 0.86);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal__dots {
  display: flex;
  gap: 0.45rem;
}
.terminal__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal__dots span:nth-child(1) { background: #ff5f56; }
.terminal__dots span:nth-child(2) { background: #ffbd2e; }
.terminal__dots span:nth-child(3) { background: #27c93f; }

.terminal__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.terminal__body {
  padding: 1.15rem 1.2rem;
  overflow-x: auto;
}

.terminal__body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.85;
  color: #ffe7e2;
}

.terminal__body .tok-comment { color: var(--text-tertiary); }
.terminal__body .tok-prompt { color: var(--accent-light); }
.terminal__body .tok-cmd { color: #fff; }
.terminal__body .tok-flag { color: var(--crab-light); }

/* ============================================================
   8. Cards & grids
   ============================================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%), rgba(22, 17, 14, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), var(--accent-dark));
  box-shadow: 0 14px 26px -8px rgba(var(--accent-rgb), 0.5);
  margin-bottom: 1.2rem;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.card__text {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.card__text code {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-light);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.86em;
}

/* Step cards (shape · act · prove) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: rgba(22, 17, 14, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.45);
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  text-transform: uppercase;
}

.pillar__title {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.75rem;
}

.pillar__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   9. Workflow / flow diagram
   ============================================================ */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flow__step {
  flex: 1 1 180px;
  min-width: 170px;
  background: rgba(22, 17, 14, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.flow__step h4 {
  font-family: var(--font-mono);
  color: var(--accent-light);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.flow__step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.flow__arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); justify-content: center; }
}

/* ============================================================
   10. Architecture layers
   ============================================================ */
.layers {
  display: grid;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}

.layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: rgba(22, 17, 14, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.3s ease;
}

.layer:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.layer__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.layer__name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.layer__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  .layer { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ============================================================
   11. Install steps
   ============================================================ */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.install-step__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 0.7rem;
}

/* Code block (copyable) */
.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.code-block__dots {
  display: flex;
  gap: 6px;
}
.code-block__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-block__dots span:nth-child(1) { background: #ff5f56; }
.code-block__dots span:nth-child(2) { background: #ffbd2e; }
.code-block__dots span:nth-child(3) { background: #27c93f; }

.code-block__copy {
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.code-block__copy:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.code-block__copy.copied {
  color: #27c93f;
  border-color: #27c93f;
}

.code-block__body {
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
  color: var(--text-primary);
}

.code-block__body code {
  white-space: pre;
}

/* ============================================================
   12. Tables (skills / agents)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(22, 17, 14, 0.7);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

table.data th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.02);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data td code {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-light);
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  font-size: 0.85em;
}

table.data tbody tr:hover,
table.data tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* ============================================================
   13. Safety / proof callout
   ============================================================ */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.safety-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: rgba(22, 17, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.safety-item__mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-light);
  font-size: 1.1rem;
}

.safety-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.safety-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================================
   14. CTA band
   ============================================================ */
.cta-band {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.18), transparent 60%),
    rgba(22, 17, 14, 0.9);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ============================================================
   15. Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 3rem 1.5rem 2.25rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand .nav__logo {
  margin-bottom: 0.8rem;
}

.footer__brand p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
}

.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.footer__col a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ============================================================
   16. Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
