/* Bagana AI product page — matches index monochrome system */

.bagana-ai-page {
  --bai-bg: #ffffff;
  --bai-bg-soft: #f5f5f5;
  --bai-bg-dark: #0a0a0a;
  --bai-ink: #111111;
  --bai-muted: #737373;
  --bai-line: #e8e9ea;
  --bai-radius: 24px;
  --bai-radius-sm: 16px;
  --bai-max: 1180px;
  color: var(--bai-ink);
  background: var(--bai-bg);
  font-family: var(--font-sans);
  line-height: 1.55;
}

.bagana-ai-page *,
.bagana-ai-page *::before,
.bagana-ai-page *::after {
  box-sizing: border-box;
}

.bagana-ai-page a {
  color: inherit;
  text-decoration: none;
}

.bagana-ai-page a.bai-btn-primary,
.bagana-ai-page .bai-btn-primary {
  background: #111 !important;
  color: #f5f5f5 !important;
  border-color: #111 !important;
}

.bagana-ai-page a.bai-btn-primary:hover,
.bagana-ai-page .bai-btn-primary:hover {
  background: #333 !important;
  border-color: #333 !important;
  color: #f5f5f5 !important;
}

.bagana-ai-page a.bai-btn-ghost,
.bagana-ai-page .bai-btn-ghost {
  color: #111 !important;
}

.bagana-ai-page a.bai-btn-light,
.bagana-ai-page .bai-btn-light {
  background: #fff !important;
  color: #111 !important;
}

.bagana-ai-page a.bai-btn-light:hover,
.bagana-ai-page .bai-btn-light:hover {
  background: #f0f0f0 !important;
  color: #111 !important;
}

.bagana-ai-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bai-wrap {
  width: min(100% - 40px, var(--bai-max));
  margin-inline: auto;
}

.bai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bai-muted);
  margin: 0 0 14px;
}

.bai-kicker::before {
  content: "//";
  color: #404040;
}

.bai-h1,
.bai-h2,
.bai-h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bai-ink);
}

.bai-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.bai-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}

.bai-h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.bai-lead {
  margin: 18px 0 0;
  color: var(--bai-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.bai-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bai-btn-primary {
  background: #111;
  color: #f5f5f5;
  border-color: #111;
}

.bai-btn-primary:hover {
  background: #333;
  border-color: #333;
}

.bai-btn-ghost {
  background: transparent;
  color: #111;
  border-color: #d4d4d4;
}

.bai-btn-ghost:hover {
  border-color: #111;
}

.bai-btn-light {
  background: #fff;
  color: #111;
}

.bai-btn-light:hover {
  background: #f0f0f0;
}

/* Header */
.bai-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bai-line);
}

.bai-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.bai-logo img {
  height: 40px;
  width: auto;
}

.bai-nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.bai-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bai-nav > li {
  position: relative;
  list-style: none;
}

.bai-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.bai-nav a:hover,
.bai-nav a.is-active {
  color: #525252;
}

.bai-product-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--bai-line);
  border-radius: 999px;
  background: #fafafa;
}

.bai-product-switch a {
  font-size: 12px;
  font-weight: 600;
  color: #737373;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.bai-product-switch a:hover {
  color: #111;
}

.bai-product-switch a.is-active {
  background: #111;
  color: #f5f5f5;
}

.bai-header-cta {
  display: inline-flex;
}

.bai-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bai-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.bai-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
}

.bai-menu-toggle span::before,
.bai-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}

.bai-menu-toggle span::before {
  top: -6px;
}

.bai-menu-toggle span::after {
  top: 6px;
}

/* Hero */
.bai-hero {
  padding: 72px 0 56px;
  background:
    linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.bai-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.bai-hero-visual {
  border-radius: var(--bai-radius);
  overflow: hidden;
  border: 1px solid var(--bai-line);
  background: #111;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.bai-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(8%);
}

/* Sections */
.bai-section {
  padding: 88px 0;
}

.bai-section-soft {
  background: var(--bai-bg-soft);
}

.bai-section-dark {
  background: var(--bai-bg-dark);
  color: #f5f5f5;
}

.bai-section-dark .bai-h2,
.bai-section-dark .bai-h3,
.bai-section-dark .bai-kicker {
  color: #f5f5f5;
}

.bai-section-dark .bai-kicker::before {
  color: #a3a3a3;
}

.bai-section-dark .bai-lead,
.bai-section-dark .bai-card p,
.bai-section-dark .bai-step p {
  color: #a3a3a3;
}

.bai-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  align-items: end;
}

/* Feature / product cards */
.bai-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bai-card {
  background: #fff;
  border: 1px solid var(--bai-line);
  border-radius: var(--bai-radius);
  padding: 28px 26px;
  height: 100%;
}

.bai-section-dark .bai-card {
  background: #141414;
  border-color: #262626;
}

.bai-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.bai-section-dark .bai-card-icon {
  background: #f5f5f5;
  color: #111;
}

.bai-card p {
  margin: 12px 0 0;
  color: var(--bai-muted);
  font-size: 0.98rem;
}

.bai-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bai-intro-panel {
  border-radius: var(--bai-radius);
  border: 1px solid var(--bai-line);
  background: #fff;
  padding: 32px;
}

.bai-intro-panel strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.bai-intro-panel p {
  margin: 0;
  color: var(--bai-muted);
}

/* Marquee */
.bai-marquee {
  margin-top: 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.bai-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: bai-marquee 40s linear infinite;
}

.bai-marquee-track.reverse {
  animation-direction: reverse;
  margin-top: 12px;
}

.bai-chip {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--bai-line);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

@keyframes bai-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* How it works */
.bai-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bai-step {
  border: 1px solid #262626;
  border-radius: var(--bai-radius);
  padding: 28px 26px;
  background: #141414;
}

.bai-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a3a3a3;
  margin-bottom: 14px;
}

.bai-step p {
  margin: 12px 0 0;
  color: #a3a3a3;
}

.bai-step-visual {
  margin-top: 22px;
  border-radius: var(--bai-radius-sm);
  overflow: hidden;
  border: 1px solid #262626;
  background: #0a0a0a;
}

.bai-step-visual img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 18px;
  filter: grayscale(1) invert(1);
  opacity: 0.9;
}

/* Pricing */
.bai-pricing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.bai-price-card {
  border: 1px solid var(--bai-line);
  border-radius: var(--bai-radius);
  background: #fff;
  padding: 32px 28px;
}

.bai-price-card.featured {
  background: #111;
  color: #f5f5f5;
  border-color: #111;
}

.bai-price-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bai-muted);
  margin: 0 0 8px;
}

.bai-price-card.featured .bai-price-label {
  color: #a3a3a3;
}

.bai-price-amount {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

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

.bai-price-card.featured .bai-price-note {
  color: #a3a3a3;
}

.bai-price-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bai-price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bai-line);
  font-size: 14px;
}

.bai-price-card.featured .bai-price-list li {
  border-top-color: #333;
}

.bai-price-list span:last-child {
  color: var(--bai-muted);
  text-align: right;
}

.bai-price-card.featured .bai-price-list span:last-child {
  color: #a3a3a3;
}

.bai-price-card .bai-btn {
  margin-top: 28px;
  width: 100%;
}

/* Footer — matched to index structure */
.bai-footer {
  background: #0a0a0a;
  color: #f5f5f5;
  padding: 0 0 28px;
}

.bai-footer-cta {
  border-bottom: 1px solid #262626;
}

.bai-footer-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  align-items: stretch;
  min-height: 280px;
}

.bai-footer-cta-left {
  padding: 64px 0 64px 0;
  padding-right: 40px;
  border-right: 1px solid #262626;
}

.bai-footer-cta-left .bai-h2 {
  color: #f5f5f5;
  max-width: 14ch;
  margin: 0;
}

.bai-footer-cta-left p {
  margin: 16px 0 0;
  color: #a3a3a3;
  max-width: 42ch;
}

.bai-footer-cta-right {
  overflow: hidden;
  background: #111;
}

.bai-footer-cta-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
  min-height: 280px;
}

.bai-footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 48px 0 36px;
  border-bottom: 1px solid #262626;
}

.bai-footer-meta-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid #262626;
}

.bai-footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.bai-footer-col-wide h4 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: #f5f5f5;
  max-width: 18ch;
  line-height: 1.25;
}

.bai-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bai-footer-col a,
.bai-footer-col p {
  margin: 0;
  color: #f5f5f5;
  font-size: 15px;
  line-height: 1.5;
}

.bai-footer-col a:hover {
  color: #a3a3a3;
}

.bai-footer-col p + p {
  margin-top: 8px;
}

.bai-footer-subscribe {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.bai-footer-subscribe input {
  flex: 1 1 180px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #404040;
  background: #141414;
  color: #f5f5f5;
  padding: 0 18px;
  font: inherit;
}

.bai-footer-subscribe input::placeholder {
  color: #737373;
}

.bai-footer-subscribe-btn {
  min-width: 96px;
}

.bai-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bai-footer-logo-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 48px;
}

.bai-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  color: #737373;
  font-size: 14px;
}

.bai-footer-bottom p {
  margin: 0;
  color: #737373;
}

.bai-footer-bottom strong {
  color: #f5f5f5;
  font-weight: 600;
}

.bai-footer-bottom a {
  color: #a3a3a3;
}

.bai-footer-bottom a:hover {
  color: #f5f5f5;
}

.bai-footer-logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
}

@media (max-width: 980px) {
  .bai-hero-grid,
  .bai-intro,
  .bai-pricing,
  .bai-footer-cta-grid,
  .bai-footer-main,
  .bai-footer-meta-row {
    grid-template-columns: 1fr;
  }

  .bai-footer-cta-left {
    border-right: none;
    padding-right: 0;
    padding-bottom: 40px;
  }

  .bai-footer-logo-col {
    justify-content: flex-start;
  }

  .bai-grid-3,
  .bai-steps {
    grid-template-columns: 1fr;
  }

  .bai-nav-wrap {
    display: none;
  }

  .bai-nav-wrap.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--bai-line);
    padding: 18px 20px 22px;
    gap: 18px;
    z-index: 40;
  }

  .bai-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .bai-product-switch {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }

  .bai-menu-toggle {
    display: inline-flex;
  }

  .bai-header-inner {
    position: relative;
  }

  .bai-header-cta {
    display: none;
  }

  .bai-h1 {
    max-width: none;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .bai-grid-3,
  .bai-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
