/* ==========================================================================
   ZStrike — Carrot-inspired Layout
   Light, clean, geometric, bold typography
   ========================================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --lime: #d4f533;
  --lime-light: #edffa3;
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gray-100: #f0f0ee;
  --gray-200: #e2e2de;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --accent-red: #ef4444;
  --accent-green: #10b981;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --clip-btn: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  --clip-corner: 8px;
  --transition-bg: background-color 0.25s ease, color 0.25s ease;

  /* Motion tokens */
  --motion-fast: 120ms;
  --motion-base: 250ms;
  --motion-slow: 600ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- Focus-visible system ---- */
:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

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

.display-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
}

/* ---- Layout Helpers ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 120px 0;
  }
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--black);
  margin: 0;
}

.section-alt {
  background: var(--off-white);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 67px;
  background: var(--white);
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: center;
  transition: background var(--motion-base) var(--ease-standard);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--lime);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  clip-path: var(--clip-btn);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Desktop dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  background: var(--gray-100);
  opacity: 1;
}

.nav-cta {
  display: none;
  gap: 12px;
  align-items: center;
  margin-left: 24px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition:
    var(--transition-bg),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
  clip-path: var(--clip-btn);
}

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background: var(--gray-800);
}

.btn-lime {
  background: var(--lime);
  color: var(--black);
}

.btn-lime:hover {
  background: var(--lime-light);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  clip-path: none;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

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

.btn[disabled],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform var(--motion-base) var(--ease-standard), opacity var(--motion-base) var(--ease-standard);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 0.875rem;
  }
}

/* Mobile menu */
body.menu-open {
  overflow: hidden;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  top: 67px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-standard);
}

.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-dropdown {
  border-bottom: 2px solid var(--black);
}

.mobile-dropdown-toggle {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mobile-dropdown-toggle svg {
  transition: transform 0.2s;
}

.mobile-dropdown-toggle.active svg {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  gap: 8px;
}

.mobile-dropdown-menu.active {
  display: flex;
}

.mobile-dropdown-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 8px 0;
  opacity: 0.7;
}

.mobile-menu > a {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid var(--black);
}

/* ==========================================================================
   Hero Section — Lime background, dotted pattern, bold headline
   ========================================================================== */
.hero {
  margin-top: 67px;
  background: var(--lime);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 67px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none;
  opacity: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.45;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  display: block;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

.hero-content {
  max-width: 820px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-inner {
  display:flex;
  gap: 12px;
}

.hero-title .display-serif {
  display: inline;
  color: var(--black);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--gray-800);
  max-width: 560px;
  line-height: 1.7;
  margin-inline: auto;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions-mobile {
  display: none;
  order: 2;
}

/* Decorative SVG in hero */
.hero-decoration {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 400px;
  height: 400px;
  opacity: 0.12;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero .container {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

/* ==========================================================================
   Manifesto / Statement Section
   ========================================================================== */
.statement {
  background: var(--off-white);
}

.statement-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.statement-headline {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  line-height: 1.25;
  margin-bottom: 24px;
}

.statement-headline .highlight {
  background: var(--lime) !important;
  padding: 0 8px;
  display: inline;
}

.statement-body {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.125rem);
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* Why Ziri Exists */
.why-ziri {
  background: var(--white);
}

.why-ziri-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.why-ziri-inner h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  margin-bottom: 20px;
}

.why-ziri-inner p {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.125rem);
  color: var(--gray-600);
  line-height: 1.8;
}

.why-ziri-inner p + p {
  margin-top: 16px;
}

/* What Ziri Is / Is Not Callout (inside .why-ziri) */
.why-ziri .callout-grid {
  margin-top: 48px;
}

.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.callout-col {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--gray-200);
}

.callout-col h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.callout-is h3 {
  color: var(--black);
}

.callout-is-not h3 {
  color: var(--gray-600);
}

.callout-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.callout-col ul li {
  font-size: 0.95rem;
  color: var(--gray-600);
  padding-left: 24px;
  position: relative;
}

.callout-is ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.callout-is-not ul li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
}

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

/* Extensible by Design */
.extensible {
  background: var(--white);
}

.extensible-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.extensible-inner h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  margin-bottom: 8px;
}

.extensible-lead {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.extensible-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.extensible-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
}

.extensible-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.extensible-item strong {
  display: block;
  font-size: 0.925rem;
  margin-bottom: 4px;
}

.extensible-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

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

/* ==========================================================================
   Feature Cards — 3-column grid
   ========================================================================== */
.features-grid {
  background: var(--white);
}

.features-grid-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature Rows — stat + description */
.features-section {
  background: var(--white);
}

.feature-rows {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-200);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-stat {
  flex-shrink: 0;
  width: 120px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  text-align: center;
}

.feature-stat-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

.feature-stat svg {
  stroke: var(--black);
}

.feature-row-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}

.feature-row-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .feature-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 28px 0;
  }

  .feature-stat {
    width: auto;
    font-size: 2.5rem;
  }
}

.feature-card {
  border: none;
  padding: 32px;
  position: relative;
  background: var(--black);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  transition:
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    background-color var(--motion-base) var(--ease-standard);
  cursor: pointer;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  z-index: 1;
  pointer-events: none;
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 0px var(--lime);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  clip-path: var(--clip-btn);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   Split Sections — Image + Text alternating
   ========================================================================== */
.split {
  background: var(--white);
}

.split.split-alt {
  background: var(--off-white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.split-grid.reverse .split-visual {
  order: 2;
}

.split-grid.reverse .split-content {
  order: 1;
}

@media (max-width: 767px) {
  .split-grid.reverse .split-visual {
    order: 0;
  }
  .split-grid.reverse .split-content {
    order: 0;
  }
  .split-grid .split-content {
    order: -1;
  }
}

.split-visual {
  position: relative;
}

.split-visual-inner {
  background: var(--off-white);
  border: 2px solid var(--gray-200);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  padding: 32px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-content h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  margin-bottom: 16px;
}

.split-content p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.split-content .checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.split-content .checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.split-content .checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--lime);
  clip-path: polygon(25% 46%, 40% 60%, 75% 25%, 82% 32%, 40% 74%, 18% 52%);
  margin-top: 2px;
}

/* ==========================================================================
   Unified Dual Code Section
   ========================================================================== */
.dual-code {
  background: var(--white);
}

.dual-code-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .dual-code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

/* Force single-column layout when only one card is active */
.dual-code-grid.dual-code-grid-single {
  grid-template-columns: 1fr;
}

.dual-code-grid.dual-code-grid-single > * {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dual-code-card {
  border: 2px solid var(--black);
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  padding: 20px;
  transition: transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
}

.dual-code-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0px var(--lime);
}

.dual-code-head {
  margin-bottom: 14px;
}

.dual-code-head h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.dual-code-card .split-visual-inner {
  border: 2px solid var(--gray-200);
  margin-bottom: 14px;
}

.dual-code-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.dual-code-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.dual-code-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--lime);
  clip-path: polygon(25% 46%, 40% 60%, 75% 25%, 82% 32%, 40% 74%, 18% 52%);
  margin-top: 2px;
}

/* Authorize Anywhere checklist */
.authorize-anywhere-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  max-width: min(100%, 760px);
  margin: 0 auto;
}

.authorize-anywhere-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.authorize-anywhere-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--lime);
  clip-path: polygon(25% 46%, 40% 60%, 75% 25%, 82% 32%, 40% 74%, 18% 52%);
  margin-top: 2px;
}

/* ==========================================================================
   Terminal / Code Block
   ========================================================================== */
.terminal-block {
  background: var(--black);
  color: var(--white);
  border-radius: 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-bar .dot-r { background: #ff5f57; }
.terminal-bar .dot-y { background: #febc2e; }
.terminal-bar .dot-g { background: #28c840; }

.terminal-body {
  padding: 20px;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.t-prompt { color: var(--lime); }
.t-cmd { color: var(--white); }
.t-dim { color: var(--gray-400); }
.t-accent { color: var(--lime); }
.t-success { color: var(--accent-green); }
.t-string { color: #fbbf24; }
.t-keyword { color: #818cf8; }
.t-comment { color: var(--gray-400); font-style: italic; }

/* ==========================================================================
   How It Works — 4-column grid
   ========================================================================== */
.how-it-works {
  background: var(--off-white);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--black);
  border: 2px solid var(--black);
}

@media (min-width: 640px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .how-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .how-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  transition:
    background var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard);
  cursor: default;
}

.how-card:hover {
  background: var(--lime);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px var(--black);
}

.how-card-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.how-card h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.how-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.how-card:hover p {
  color: var(--gray-800);
}

/* ---- PARC Explainer Cards ---- */
.parc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.parc-card {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard);
}

.parc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.parc-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.parc-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.parc-card .parc-aka {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 12px;
}

.parc-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.parc-examples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.parc-examples code {
  display: block;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--gray-800);
}

@media (max-width: 900px) {
  .parc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Control Plane
   ========================================================================== */
.cp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.cp-manage {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cp-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  border-radius: 8px;
}

.cp-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--black);
}

.cp-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.cp-audit {
  background: var(--black);
  color: var(--white);
  padding: 36px;
  border-radius: 12px;
}

.cp-audit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cp-audit-header svg {
  stroke: var(--lime);
  flex-shrink: 0;
}

.cp-audit-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.cp-audit-lead {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cp-audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-audit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.cp-audit-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--lime);
  clip-path: polygon(25% 46%, 40% 60%, 75% 25%, 82% 32%, 40% 74%, 18% 52%);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .cp-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cp-audit {
    padding: 28px;
  }

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

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.comparison-section {
  background: var(--white);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--black);
}

.comp-table th,
.comp-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 2px solid var(--gray-200);
}

/* Center last three columns (ZStrike, Centralized, DIY) */
.comp-table th:nth-child(n + 2),
.comp-table td:nth-child(n + 2) {
  text-align: center;
}

.comp-table th {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--off-white);
  border-bottom: 2px solid var(--black);
}

.comp-table th.zs-col {
  background: var(--lime);
}

.comp-table td.zs-col {
  background: rgba(212, 245, 51, 0.08);
}

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

.comp-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.check {
  color: #0d7a57;
  font-weight: 700;
  font-size: 1.125rem;
}

.cross {
  color: var(--gray-400);
  font-size: 1.125rem;
}

/* Responsive table — card layout on mobile */
@media (max-width: 640px) {
  .comp-table {
    border: none;
  }

  .comp-table thead {
    display: none;
  }

  .comp-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .comp-table tr {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
  }

  .comp-table td {
    border-bottom: none;
  }

  /* Capability name — full-width top row of each card */
  .comp-table td:first-child {
    width: 100%;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    padding: 12px 16px;
  }

  /* Three value cells — equal-width row beneath */
  .comp-table td:nth-child(n+2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    text-align: center;
  }

  /* Column labels via ::before (replaces hidden thead) */
  .comp-table td:nth-child(n+2)::before {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
  }

  .comp-table td:nth-child(2)::before {
    content: 'ZStrike';
    color: var(--black);
  }

  .comp-table td:nth-child(3)::before {
    content: 'Centralized';
  }

  .comp-table td:nth-child(4)::before {
    content: 'DIY';
  }

  .comp-table td.zs-col {
    background: rgba(212, 245, 51, 0.10);
  }

  .comp-table tbody tr:hover {
    background: none;
  }
}

/* ==========================================================================
   Contact / CTA Section — Beige background
   ========================================================================== */
.cta-section {
  background: var(--black);
  color: var(--white);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  margin-bottom: 16px;
  color: var(--white);
}

.cta-inner p {
  color: var(--gray-400);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder {
  color: var(--gray-400);
}

.cta-form input:focus {
  border-color: var(--lime);
}

.cta-form input:invalid:not(:placeholder-shown) {
  border-color: var(--accent-red);
}

.cta-form .btn {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cta-form {
    flex-direction: column;
    gap: 12px;
  }
  .cta-form input {
    width: 100%;
  }
  .cta-form .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-text .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--lime);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  clip-path: var(--clip-btn);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a:hover {
  color: var(--lime);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header .highlight {
  background: var(--lime) !important;
  padding: 0 6px;
}

/* ==========================================================================
   Cedar Policy Preview (inside split)
   ========================================================================== */
.policy-preview {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  white-space: pre;
}

.policy-preview .kw { color: #818cf8; font-weight: 600; }
.policy-preview .str { color: #fbbf24; }
.policy-preview .attr { color: var(--accent-green); }
.policy-preview .cmt { color: var(--gray-400); font-style: italic; }

/* ==========================================================================
   Code vs Policy comparison (inside split)
   ========================================================================== */
.code-chaos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-snippet {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gray-200);
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
}

.code-snippet .file-loc {
  font-size: 0.6875rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.snippet-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--accent-red);
  font-family: var(--font-sans);
  margin-top: 8px;
}

/* ==========================================================================
   Before / After Comparison
   ========================================================================== */
.before-after {
  background: var(--white);
}

.ba-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .ba-comparison {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }
}

/* Panels */
.ba-panel {
  border: 2px solid var(--gray-200);
  overflow: hidden;
}

.ba-before {
  border-color: rgba(239, 68, 68, 0.25);
}

.ba-after {
  border-color: rgba(16, 185, 129, 0.25);
}

.ba-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 2px solid var(--gray-200);
}

.ba-before .ba-panel-header {
  background: rgba(239, 68, 68, 0.04);
  border-bottom-color: rgba(239, 68, 68, 0.15);
}

.ba-after .ba-panel-header {
  background: rgba(16, 185, 129, 0.04);
  border-bottom-color: rgba(16, 185, 129, 0.15);
}

.ba-panel-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.ba-panel-body {
  padding: 16px;
}

/* Code snippets (before) */
.ba-snippet {
  background: var(--off-white);
  border: 2px solid var(--gray-200);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.65;
  overflow-x: auto;
}

.ba-snippet:last-child {
  margin-bottom: 0;
}

.ba-file-loc {
  font-size: 0.625rem;
  color: var(--gray-400);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.ba-code {
  margin: 0;
  white-space: pre;
}

.ba-code code {
  font-family: inherit;
}

/* Syntax highlighting */
.hl-kw { color: #6d28d9; font-weight: 600; }
.hl-str { color: #b45309; }
.hl-attr { color: var(--accent-green); }
.hl-cmt { color: var(--gray-400); font-style: italic; }

/* Policy block (after) */
.ba-policy-block {
  background: var(--black);
  padding: 20px;
  overflow-x: auto;
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
}

.ba-policy {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre;
}

.ba-policy code {
  font-family: inherit;
}

.ba-policy .hl-kw { color: #a78bfa; }
.ba-policy .hl-str { color: #fbbf24; }
.ba-policy .hl-attr { color: #34d399; }
.ba-policy .hl-cmt { color: rgba(255, 255, 255, 0.35); }

/* Problems list */
.ba-problems {
  padding: 12px 20px;
  border-top: 2px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-problem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #b91c1c;
}

.ba-warn-icon {
  flex-shrink: 0;
}

/* Benefits list */
.ba-benefits {
  padding: 12px 20px;
  border-top: 2px solid rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--accent-green);
}

.ba-check-icon {
  flex-shrink: 0;
  font-weight: 700;
}

/* Center arrow */
.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 16px 0;
}

@media (min-width: 960px) {
  .ba-arrow {
    padding: 0;
    margin-top: 160px;
  }
}

@media (max-width: 959px) {
  .ba-arrow svg {
    transform: rotate(90deg);
  }
}

.ba-arrow-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ==========================================================================
   Badge / Pill
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: var(--clip-btn);
}

.badge-lime {
  background: var(--lime);
  color: var(--black);
}

.badge-black {
  background: var(--black);
  color: var(--white);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  clip-path: none;
}

/* ==========================================================================
   Scenario evaluation strip
   ========================================================================== */
.eval-strip {
  background: var(--black);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  margin-top: 24px;
}

.eval-strip .eval-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.eval-entity {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 4px;
}

.eval-entity.principal { background: rgba(129, 140, 248, 0.2); color: #a5b4fc; }
.eval-entity.action { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.eval-entity.resource { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.eval-arrow {
  color: var(--gray-400);
}

.eval-result {
  margin-left: auto;
  padding: 4px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  clip-path: var(--clip-btn);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-slow) var(--ease-standard), transform var(--motion-slow) var(--ease-standard);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Mobile — extra padding & spacing
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section-pad {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .hero .container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .ziri-hero-grid .hero-content > .hero-actions {
    display: none;
  }

  .ziri-hero-grid .hero-actions-mobile {
    display: flex;
    flex-direction: column;
  }

  /* Feature cards */
  .feature-card {
    padding: 24px;
  }

  /* Split sections */
  .split-grid {
    gap: 32px;
  }

  .split-content h2 {
    font-size: 1.375rem;
  }

  .split-content .checklist {
    margin-bottom: 24px;
  }

  /* Before / After */
  .ba-comparison {
    gap: 20px;
  }

  .ba-panel-body {
    padding: 12px;
  }

  .ba-snippet {
    padding: 10px 12px;
    font-size: 0.6875rem;
  }

  .ba-policy-block {
    padding: 14px;
  }

  .ba-policy {
    font-size: 0.6875rem;
  }

  /* How it works */
  .how-card {
    padding: 24px 20px;
  }

  /* Comparison table */
  .comp-table th,
  .comp-table td {
    padding: 12px 14px;
    font-size: 0.8125rem;
  }

  /* CTA */
  .cta-inner h2 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    gap: 32px;
  }

  /* Buttons */
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  /* Statement */
  .statement-headline {
    font-size: 1.375rem;
  }

  .statement-body {
    font-size: 0.9375rem;
  }

  /* Terminal blocks */
  .terminal-body {
    padding: 14px;
    font-size: 0.75rem;
  }

  /* Eval strip */
  .eval-strip {
    padding: 14px 16px;
    gap: 10px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Ziri Product Page
   ========================================================================== */

/* ---- Dark Hero Variant ---- */
.hero-dark {
  background: var(--black);
  color: var(--white);
}

.hero-dark::before {
  background-image: radial-gradient(circle, var(--lime) 1px, transparent 1px);
  opacity: 0.04;
}

.github-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.github-star-badge:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.hero-dark .hero-title {
  color: var(--white);
}

.hero-dark .hero-subtitle {
  color: var(--gray-400);
  max-width: 520px;
}

.hero-dark .hero-title .display-serif {
  color: var(--lime);
  display: inline;
  white-space: nowrap;
}

.hero-dark .hero-title {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.5rem);
}

.hero-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.hero-dark .btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ---- Ziri Hero Grid ---- */
.ziri-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .ziri-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
  }
}

.ziri-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

@media (max-width: 959px) {
  .ziri-hero-visual {
    order: 0;
    order: 1;
  }
}

/* ---- Ziri Brand Mark ---- */

/* Oversized watermark — fills the hero background, zero layout space */
.hero-dark::after {
  content: 'Ziri';
  position: absolute;
  bottom: -8%;
  right: -3%;
  font-family: var(--font-display);
  font-size: clamp(16rem, 32vw, 40rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(212, 245, 51, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Brand heading — outlined base with gradient fill wipe + soft glow */
.ziri-title-brand {
  display: block;
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  padding-bottom: 12px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
  -webkit-text-fill-color: transparent;
  border-style: solid;
  border-width: 0 0 1px 0;
  border-image: linear-gradient(90deg, var(--lime), rgba(212, 245, 51, 0.2), transparent) 1;
  width: fit-content;
  animation: ziriGlowIn 1.2s ease 1s forwards;
}

/* Gradient fill — wipes in from left, then very subtle shimmer */
.ziri-title-brand::before {
  content: 'Ziri';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    120deg,
    var(--lime) 0%,
    var(--lime-light) 40%,
    var(--lime-light) 60%,
    var(--lime) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: ziriFillWipe 1s var(--ease-standard) 0.3s forwards,
             ziriShimmer 12s ease-in-out 1.8s infinite;
}

@keyframes ziriFillWipe {
  to { clip-path: inset(0 0 0 0); }
}

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

@keyframes ziriGlowIn {
  from { filter: drop-shadow(0 0 0 rgba(212, 245, 51, 0)); }
  to { filter: drop-shadow(0 0 20px rgba(212, 245, 51, 0.12)); }
}

@media (max-width: 959px) {
  .hero-dark::after {
    font-size: clamp(10rem, 28vw, 16rem);
    bottom: -3%;
    right: -5%;
  }
  .ziri-title-brand {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
}

/* ---- Code Pill (one-liner in hero) ---- */
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--lime);
  margin-bottom: 32px;
  transition: background var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard);
}

.code-pill .prompt {
  color: var(--gray-400);
}

.code-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--lime);
  transform: translateY(-1px);
}

/* ---- Gateway Architecture Diagram ---- */
.gateway-diagram {
  --gw-scale: 0.82;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(212, 245, 51, 0.25);
  padding: calc(32px * var(--gw-scale)) calc(24px * var(--gw-scale));
  display: flex;
  align-items: center;
  gap: calc(16px * var(--gw-scale));
  width: 100%;
  max-width: 520px;
  box-shadow: 10px 10px 0px rgba(212, 245, 51, 0.12);
}

.gateway-diagram::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  z-index: 0;
  pointer-events: none;
}

.gateway-diagram > * {
  position: relative;
  z-index: 1;
}

.gw-col {
  flex: 1;
  min-width: 0;
}

.gw-label {
  font-size: calc(0.625rem * var(--gw-scale));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: calc(12px * var(--gw-scale));
  text-align: center;
}

.gw-node-stack {
  display: flex;
  flex-direction: column;
  gap: calc(8px * var(--gw-scale));
}

.gw-node {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(6px * var(--gw-scale));
  padding: calc(8px * var(--gw-scale)) calc(10px * var(--gw-scale));
  display: flex;
  align-items: center;
  gap: calc(8px * var(--gw-scale));
  font-size: calc(0.6875rem * var(--gw-scale));
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color var(--motion-base) var(--ease-standard),
              background var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard);
}

.gw-node:hover {
  border-color: var(--lime);
  background: rgba(212, 245, 51, 0.06);
  transform: translateY(-2px);
}

.gw-node svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Protection Ring around AI Agent */
.gw-protection-ring {
  position: relative;
  padding: 6px;
  border: 2px solid rgba(212, 245, 51, 0.5);
  border-radius: 10px;
  background: rgba(212, 245, 51, 0.04);
  box-shadow: 0 0 12px rgba(212, 245, 51, 0.15),
              inset 0 0 8px rgba(212, 245, 51, 0.05);
  animation: protectionPulse 3s ease-in-out infinite;
}

.gw-protection-ring .gw-node {
  margin: 0;
}

.gw-protection-label {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--black);
  padding: 0 6px;
  white-space: nowrap;
}

@keyframes protectionPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(212, 245, 51, 0.15),
                inset 0 0 8px rgba(212, 245, 51, 0.05);
    border-color: rgba(212, 245, 51, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 245, 51, 0.3),
                inset 0 0 12px rgba(212, 245, 51, 0.08);
    border-color: rgba(212, 245, 51, 0.7);
  }
}

.gw-flow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-flow svg {
  width: calc(32px * var(--gw-scale));
  height: auto;
}

.gw-core {
  flex-shrink: 0;
  background: var(--lime);
  color: var(--black);
  padding: calc(16px * var(--gw-scale));
  clip-path: var(--clip-btn);
  text-align: center;
}

.gw-core-label {
  font-size: calc(0.75rem * var(--gw-scale));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: calc(12px * var(--gw-scale));
}

.gw-checks {
  display: flex;
  flex-direction: column;
  gap: calc(4px * var(--gw-scale));
}

.gw-check {
  font-size: calc(0.625rem * var(--gw-scale));
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: calc(6px * var(--gw-scale));
  white-space: nowrap;
}

@media (min-width: 960px) and (max-width: 1320px) {
  .gateway-diagram {
    --gw-scale: 0.78;
  }
}

@media (min-width: 1321px) and (max-width: 1700px) {
  .gateway-diagram {
    --gw-scale: 0.82;
  }
}

@media (min-width: 1701px) {
  .gateway-diagram {
    --gw-scale: 0.92;
  }
}

.gw-check-icon {
  color: var(--accent-green);
  font-weight: 700;
}

@media (max-width: 640px) {
  .gateway-diagram {
    --gw-scale: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
  }

  .gw-flow {
    transform: rotate(90deg);
  }

  .gw-node-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gw-node {
    flex: 0 0 auto;
  }

  .gw-core {
    width: 100%;
  }

  .gw-checks {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .code-pill {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* ---- Bento Feature Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  border: none;
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  position: relative;
  background: var(--black);
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard),
              background-color var(--motion-base) var(--ease-standard);
}

.bento-card,
.bento-card-lg {
  min-width: 0;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, var(--clip-corner) 100%, 0 calc(100% - var(--clip-corner)));
  z-index: 0;
  pointer-events: none;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card:hover {
  transform: none;
  box-shadow: none;
}

.bento-card-lg {
  grid-column: span 2;
}

.bento-card-icon {
  width: 40px;
  height: 40px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  clip-path: var(--clip-btn);
}

.bento-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Mini code block inside bento card */
.bento-code {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

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

  .bento-card-lg {
    grid-column: span 1;
  }

  .bento-card {
    padding: 24px;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Request Pipeline (How it works) ---- */
.pipeline-section {
  background: var(--off-white);
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 180px;
  text-align: center;
}

.pipeline-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard);
}

.pipeline-step:hover .pipeline-icon {
  background: var(--lime);
  transform: translateY(-2px);
}

.pipeline-label {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.pipeline-desc {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  padding-top: 14px;
  flex-shrink: 0;
}

.pipeline-connector svg {
  color: var(--gray-400);
}

@media (max-width: 1100px) and (min-width: 768px) {
  .pipeline {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .pipeline-step {
    flex: 0 1 calc(50% - 12px);
    max-width: none;
  }

  .pipeline-connector {
    display: none;
  }
}

@media (max-width: 767px) {
  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .pipeline-step {
    flex-direction: row;
    text-align: left;
    width: 200px;
    gap: 16px;
  }

  .pipeline-icon {
    flex-shrink: 0;
  }

  .pipeline-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .pipeline-connector {
    padding-top: 0;
    transform: rotate(90deg);
    margin: 4px 0;
  }
}

/* ---- Dark navbar for Ziri page ---- */
.navbar-dark {
  background: var(--black);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .nav-logo {
  color: var(--white);
}

.navbar-dark .nav-links a {
  color: var(--white);
}

.navbar-dark .nav-toggle span {
  background: var(--white);
}

.navbar-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  clip-path: none;
}

.navbar-dark .btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ==========================================================================
   Team Page
   ========================================================================== */

.team-card {
  position: relative;
  background: var(--white);
  text-align: center;
  overflow: hidden;
  cursor: default;
  transition: transform var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px var(--black);
}

/* ---- Photo ---- */
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform var(--motion-slow) var(--ease-standard),
              filter 200ms var(--ease-standard);
}

.team-card:hover .team-photo img,
.team-card.active .team-photo img {
  filter: grayscale(0%);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

/* ---- Info bar below photo ---- */
.team-card-info {
  padding: 20px 16px;
}

.team-card-info h3 {
  font-size: 1.125rem;
  margin-bottom: 2px;
}

.team-card-info p {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ---- Overlay (slides up on hover) ---- */
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--lime);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transform: translateY(100%);
  transition: transform 350ms var(--ease-standard);
  transition-delay: 0s;
}

.team-card:hover .team-card-overlay,
.team-card.active .team-card-overlay {
  transform: translateY(0);
  transition-delay: 400ms;
}

.team-card-overlay h3 {
  font-size: 1.125rem;
  margin-bottom: 2px;
}

.team-overlay-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.team-card-overlay p {
  font-size: 0.8125rem;
  color: var(--black);
  line-height: 1.6;
}

/* ---- LinkedIn link ---- */
.team-linkedin {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 50%;
  transition: background var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}

.team-linkedin:hover {
  background: var(--black);
  color: var(--lime);
}

/* Mobile: tap to toggle */
@media (hover: none) {
  .team-card-overlay {
    transition: transform 300ms var(--ease-standard);
  }
}

/* ==========================================================================
   Manifesto — 2x2 Hero Grid (About page)
   ========================================================================== */
.manifesto-hero {
  padding-top: 60px; /* navbar clearance */
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}

.manifesto-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.manifesto-cell-lime {
  background: var(--lime);
  color: var(--black);
}

.manifesto-cell-dark {
  background: var(--black);
  color: var(--white);
}

.manifesto-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.manifesto-cell-lime .manifesto-number {
  color: var(--gray-800);
}

.manifesto-cell-dark .manifesto-number {
  color: var(--lime);
}

.manifesto-headline {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.manifesto-cell-dark .manifesto-headline {
  color: var(--white);
}

.manifesto-cell-dark .manifesto-headline .display-serif {
  color: var(--lime);
}

.manifesto-body {
  font-size: clamp(0.9375rem, 1vw + 0.25rem, 1.0625rem);
  line-height: 1.7;
  max-width: 420px;
}

.manifesto-cell-lime .manifesto-body {
  color: var(--gray-800);
}

.manifesto-cell-dark .manifesto-body {
  color: var(--gray-400);
}

@media (max-width: 767px) {
  .manifesto-grid {
    min-height: calc(100vh - 60px);
  }

  .manifesto-cell {
    padding: 24px 16px;
  }

  .manifesto-headline {
    font-size: 1.25rem;
  }

  .manifesto-body {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .manifesto-number {
    font-size: 0.625rem;
    margin-bottom: 8px;
  }
}
