/* ==========================================================================
   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: 2px solid var(--black);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px 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: 2px solid var(--black);
  margin: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 67px;
  background: var(--white);
  border-bottom: 2px 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;
}

.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;
}

/* 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: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.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-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(--gray-200);
}

/* ==========================================================================
   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;
}

.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 .display-serif {
  display: block;
  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-bottom: 40px;
}

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

/* 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(--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);
  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;
}

/* ==========================================================================
   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: 960px) {
  .features-grid-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border: none;
  padding: 32px;
  position: relative;
  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)));
  transition:
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard),
    background-color var(--motion-base) var(--ease-standard);
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid 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)));
  pointer-events: none;
}

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

.feature-card:hover::before {
  border-color: var(--black);
}

.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-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-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;
}

/* ==========================================================================
   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-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);
}

/* ==========================================================================
   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);
}

.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 */
@media (max-width: 640px) {
  .comp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comp-table {
    min-width: 560px;
  }
}

/* ==========================================================================
   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: 0;
  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);
  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: 2px 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: 20px;
  }

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

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

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

  /* 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;
}

.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);
}

.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: 1fr 1fr;
    gap: 64px;
  }
}

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

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

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

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

/* ---- Gateway Architecture Diagram ---- */
.gateway-diagram {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 245, 51, 0.12);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 520px;
}

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

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

.gw-node-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gw-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s;
}

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

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

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

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

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

.gw-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

@media (max-width: 640px) {
  .gateway-diagram {
    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;
  }
}

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

.bento-card {
  border: 1px solid var(--black);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  position: relative;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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;
  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;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .bento-grid {
    grid-template-columns: repeat(2, 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;
  clip-path: var(--clip-btn);
  transition: background 0.3s, border-color 0.3s;
}

.pipeline-step:hover .pipeline-icon {
  background: var(--lime);
}

.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: 767px) {
  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

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

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

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

  .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);
}
