/* Skip link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --birzont-charcoal: #2d2d30;
  --birzont-mint: #62ef99;
  --birzont-blue: #33a5fe;

  --neutral-000: #ffffff;
  --neutral-050: #fafafb;
  --neutral-100: #f4f5f7;
  --neutral-200: #e7e8eb;
  --neutral-500: #7a7b82;
  --neutral-800: #2d2d30;
  --neutral-900: #1b1c1f;

  --color-ink-900: #2d2d30;
  --color-ink-700: rgba(45, 45, 48, 0.72);
  --color-ink-500: rgba(45, 45, 48, 0.56);
  --color-ink-200: rgba(45, 45, 48, 0.12);
  --color-ink-100: rgba(45, 45, 48, 0.07);
  --color-mint-100: rgba(98, 239, 153, 0.14);
  --color-blue-100: rgba(51, 165, 254, 0.12);
  --color-cream-100: #f7f8fa;

  --container-max: 1200px;
  --radius-button: 12px;
  --radius-card: 20px;
  --radius-panel: 24px;
  --shadow-card: 0 8px 28px rgba(5, 6, 7, 0.07);
  --shadow-header: 0 8px 28px rgba(5, 6, 7, 0.06);

  --font-sans: Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  font-family: var(--font-sans) !important;
}

/* Light SaaS foundation (brand website default) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-page: var(--neutral-000);
    --bg-section-light: var(--color-cream-100);
    --bg-section-dark: var(--neutral-000);
    --bg-card: var(--neutral-000);
    --text-primary: #000000;
    --text-muted: rgba(0, 0, 0, 0.55);
    --text-on-dark: #000000;
    --text-on-dark-muted: rgba(0, 0, 0, 0.55);
    --border-subtle: rgba(0, 0, 0, 0.14);
    --border-on-dark: rgba(0, 0, 0, 0.14);
    --border-visible: rgba(0, 0, 0, 0.14);
    --glass-on-dark: rgba(45, 45, 48, 0.03);
  }
}

/* Header — light sticky bar */
.site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--color-ink-100);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .site-logo-wordmark {
  filter: none !important;
}

.site-header nav a,
.site-header [href="https://birzont.ai"] {
  color: var(--color-ink-700) !important;
}

.site-header nav a:hover,
.site-header [href="https://birzont.ai"]:hover {
  color: var(--birzont-charcoal) !important;
}

.site-header [data-menu-toggle] {
  color: var(--birzont-charcoal) !important;
  border-color: var(--color-ink-200) !important;
  background: var(--neutral-050) !important;
}

.site-header [data-mobile-menu] {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: var(--color-ink-100) !important;
}

.site-header [data-mobile-menu] a {
  color: var(--color-ink-700) !important;
}

/* Buttons — charcoal primary */
a.btn-glow.gradient-cta,
.btn-glow.gradient-cta,
#hero a.btn-glow.gradient-cta,
#hero a.btn-glow.gradient-cta span,
#beta-form button.btn-glow.gradient-cta,
#beta-form button.btn-glow.gradient-cta span,
header a.btn-glow.gradient-cta,
header a.btn-glow.gradient-cta span {
  background: var(--birzont-charcoal) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-button) !important;
  box-shadow: none !important;
}

a.btn-glow.gradient-cta:hover,
.btn-glow.gradient-cta:hover,
#hero a.btn-glow.gradient-cta:hover,
#beta-form button.btn-glow.gradient-cta:hover {
  background: var(--neutral-900) !important;
  color: #ffffff !important;
}

a.btn-glow.border-white\/20,
#hero a.btn-glow.border-white\/20,
#hero a.btn-glow.border-white\/20 span {
  background: #ffffff !important;
  color: var(--birzont-charcoal) !important;
  border: 1px solid var(--color-ink-200) !important;
  border-radius: var(--radius-button) !important;
}

a.btn-glow.border-white\/20:hover,
#hero a.btn-glow.border-white\/20:hover {
  background: var(--color-cream-100) !important;
}

/* Hero — 2 column */
#hero.hero-redesign {
  background: linear-gradient(180deg, #fafafb 0%, #ffffff 55%, #f7f8fa 100%) !important;
  color: var(--birzont-charcoal) !important;
  min-height: 0;
  padding-top: 112px !important;
  padding-bottom: 48px !important;
}

#hero.hero-redesign h1,
#hero.hero-redesign p,
#hero.hero-redesign .hero-eyebrow,
#hero.hero-redesign .hero-support {
  color: inherit !important;
}

#hero.hero-redesign .hero-eyebrow {
  color: var(--birzont-blue) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#hero.hero-redesign h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em;
  color: var(--birzont-charcoal) !important;
  text-align: left;
}

#hero.hero-redesign .hero-desc {
  max-width: 540px;
  color: var(--color-ink-700) !important;
  text-align: left;
}

#hero.hero-redesign .hero-support {
  color: var(--color-ink-500) !important;
  font-size: 0.875rem;
  text-align: left;
}

#hero.hero-redesign .hero-cta-row {
  justify-content: flex-start;
}

#hero .hero-panel {
  border: 1px solid var(--color-ink-100);
  border-radius: var(--radius-panel);
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(5, 6, 7, 0.1);
  padding: 1.25rem;
}

#hero .hero-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#hero .hero-flow-row {
  display: grid;
  gap: 0.65rem;
}

#hero .hero-flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--color-ink-100);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--birzont-charcoal);
  background: var(--neutral-050);
}

#hero .hero-flow-item[data-tone="blue"] {
  border-color: rgba(51, 165, 254, 0.28);
  background: var(--color-blue-100);
}

#hero .hero-flow-item[data-tone="mint"] {
  border-color: rgba(98, 239, 153, 0.35);
  background: var(--color-mint-100);
}

#hero .hero-flow-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-ink-500);
}

#hero .hero-flow-item[data-tone="blue"] .hero-flow-meta {
  color: var(--birzont-blue);
}

#hero .hero-flow-item[data-tone="mint"] .hero-flow-meta {
  color: #1a9a5a;
}

@media (max-width: 1023px) {
  #hero.hero-redesign {
    padding-top: 96px !important;
    min-height: 0;
  }

  #hero.hero-redesign h1,
  #hero.hero-redesign .hero-desc,
  #hero.hero-redesign .hero-support,
  #hero.hero-redesign .hero-eyebrow {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #hero.hero-redesign .hero-cta-row {
    justify-content: center;
  }
}

/* Proof strip — nested inside #problem, no section seam */
#problem {
  background: var(--neutral-000) !important;
}

#proof.proof-band,
#proof {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

#proof .proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  color: var(--color-ink-700);
  font-size: 0.875rem;
}

#proof .proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-ink-100);
  background: var(--neutral-050);
  padding: 0.4rem 0.8rem;
  font-weight: 500;
}

#proof .proof-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--birzont-mint);
}

/* Section headers */
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--birzont-blue);
  margin-bottom: 0.75rem;
}

/* Product demo label */
#product .demo-caption {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink-500);
}

/* Use-case cards — title→cards gap matches #output-examples (mt-16) */
#use-cases .use-case-grid {
  margin-top: 4rem;
}

#use-cases .use-case-card {
  border-radius: 28px;
  overflow: hidden;
}

/* Vision */
#vision {
  background: var(--birzont-charcoal) !important;
  color: #ffffff !important;
}

#vision h2,
#vision p,
#closing-cta h2,
#closing-cta p {
  color: #ffffff !important;
}

#vision .section-eyebrow,
#closing-cta .section-eyebrow {
  color: var(--birzont-mint) !important;
}

#vision .vision-muted,
#closing-cta p.mt-5 {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Product / form — theme-aware surfaces */
#product .text-white\/90,
#product .text-white\/85,
#product .text-white\/70,
#product h3,
#product .engine-step span {
  color: var(--text-primary) !important;
}

#product .text-white\/50,
#product .text-white\/40 {
  color: var(--text-muted) !important;
}

#product .border-white\/10,
#product .rounded-3xl.border {
  border-color: var(--border-subtle) !important;
}

#product .bg-white\/10 {
  background: var(--bg-card) !important;
}

#product .engine-step {
  background: var(--glass-on-dark) !important;
  border-color: var(--border-subtle) !important;
}

#product .pipeline-step {
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

#beta-form label,
#beta-form p,
#beta-form .beta-form-field,
#beta-form .beta-form-select,
#beta-form .beta-form-textarea {
  color: var(--text-primary) !important;
}

#beta-form .beta-chip {
  border-color: var(--border-subtle) !important;
  background: var(--glass-on-dark) !important;
  color: var(--text-muted) !important;
}

#beta-form .beta-chip.is-active {
  border-color: rgba(98, 239, 153, 0.45) !important;
  background: rgba(98, 239, 153, 0.16) !important;
  color: var(--text-primary) !important;
}

#closing-cta h2,
#closing-cta p {
  color: #ffffff !important;
}

#closing-cta .btn-glow.gradient-cta {
  background: #ffffff !important;
  color: var(--birzont-charcoal) !important;
}

/* FAQ */
#faq details {
  border: 1px solid var(--color-ink-100);
  border-radius: 16px;
  background: #ffffff;
  padding: 1rem 1.15rem;
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--birzont-charcoal);
  list-style: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq details[open] summary {
  margin-bottom: 0.5rem;
}

#faq details p {
  color: var(--color-ink-700);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Accent color sync to official mint/blue */
.text-\[\#5ee496\],
.text-\[\#5ee496\]\/80 {
  color: var(--birzont-mint) !important;
}

.border-\[\#5ee496\]\/15,
.border-\[\#5ee496\]\/25 {
  border-color: rgba(98, 239, 153, 0.35) !important;
}

.bg-\[\#5ee496\]\/\[0\.04\],
.bg-\[\#5ee496\]\/\[0\.08\] {
  background: var(--color-mint-100) !important;
}

/* ── Theme contrast: borders + text (light black / dark white) ── */

/* Light: black body text; remap white utility classes */
@media (prefers-color-scheme: light) {
  body,
  main {
    color: #000000;
  }

  .text-birzont-black,
  .text-white,
  .text-white\/85,
  .text-white\/90 {
    color: #000000 !important;
  }

  .text-white\/30,
  .text-white\/35,
  .text-white\/40,
  .text-white\/50,
  .text-white\/55,
  .text-white\/60,
  .text-white\/65,
  .text-white\/70,
  .text-black\/55,
  .text-birzont-black\/55,
  .text-birzont-black\/45,
  .text-birzont-black\/70 {
    color: rgba(0, 0, 0, 0.55) !important;
  }

  /* Dark charcoal bands keep white type */
  #vision,
  #vision :is(h2, p, li, span, a),
  #closing-cta,
  #closing-cta :is(h2, p, li, span):not(.gradient-cta *),
  .btn-glow.gradient-cta,
  .btn-glow.gradient-cta span {
    color: #ffffff !important;
  }

  #closing-cta .btn-glow.gradient-cta,
  #closing-cta .btn-glow.gradient-cta span {
    color: #000000 !important;
  }
}

/* Dark: white body text + stronger ink tokens */
@media (prefers-color-scheme: dark) {
  :root {
    --border-visible: rgba(255, 255, 255, 0.24);
    --border-subtle: rgba(255, 255, 255, 0.24);
    --border-on-dark: rgba(255, 255, 255, 0.24);
    --color-ink-100: rgba(255, 255, 255, 0.16);
    --color-ink-200: rgba(255, 255, 255, 0.24);
    --color-ink-500: rgba(255, 255, 255, 0.62);
    --color-ink-700: rgba(255, 255, 255, 0.78);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.62);
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255, 255, 255, 0.62);
  }

  body,
  main {
    color: #ffffff;
  }

  .text-birzont-black,
  .text-white,
  .text-white\/85,
  .text-white\/90,
  .text-black {
    color: #ffffff !important;
  }

  .text-white\/30,
  .text-white\/35,
  .text-white\/40,
  .text-white\/50,
  .text-white\/55,
  .text-white\/60,
  .text-white\/65,
  .text-white\/70,
  .text-black\/55,
  .text-birzont-black\/55,
  .text-birzont-black\/45,
  .text-birzont-black\/70 {
    color: rgba(255, 255, 255, 0.62) !important;
  }

  .site-header {
    background: rgba(43, 43, 42, 0.94) !important;
    border-bottom-color: var(--border-visible) !important;
  }

  .site-header nav a,
  .site-header [href="https://birzont.ai"],
  .site-header [data-mobile-menu] a {
    color: rgba(255, 255, 255, 0.78) !important;
  }

  .site-header nav a:hover,
  .site-header [href="https://birzont.ai"]:hover {
    color: #ffffff !important;
  }

  .site-header [data-menu-toggle] {
    color: #ffffff !important;
    border-color: var(--border-visible) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .site-header [data-mobile-menu] {
    background: rgba(43, 43, 42, 0.98) !important;
    border-color: var(--border-visible) !important;
  }

  #hero.hero-redesign {
    background: linear-gradient(180deg, #242426 0%, #2b2b2a 55%, #222224 100%) !important;
    color: #ffffff !important;
  }

  #hero.hero-redesign h1 {
    color: #ffffff !important;
  }

  #hero.hero-redesign .hero-eyebrow {
    color: var(--birzont-blue) !important;
  }

  #hero.hero-redesign .hero-desc,
  #hero.hero-redesign .hero-support {
    color: rgba(255, 255, 255, 0.68) !important;
  }

  #hero .hero-panel,
  #hero .hero-flow-item {
    background: var(--bg-card) !important;
    border-color: var(--border-visible) !important;
    color: #ffffff !important;
  }

  #problem {
    background: var(--bg-page) !important;
  }

  #proof.proof-band,
  #proof {
    background: transparent !important;
    border: none !important;
  }

  #proof .proof-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-visible) !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  /* Cards that hardcode white fill */
  .bg-white,
  #problem .glass-card-light,
  #use-cases .use-case-card,
  #checklist .rounded-2xl,
  #pricing .rounded-3xl,
  #how-it-works .glass-card-light {
    background: var(--bg-card) !important;
  }

  #faq details {
    background: var(--bg-card) !important;
    border-color: var(--border-visible) !important;
  }

  #faq summary {
    color: #ffffff !important;
  }

  #faq details p {
    color: rgba(255, 255, 255, 0.68) !important;
  }

  footer {
    background: var(--bg-page) !important;
    border-color: var(--border-visible) !important;
    color: #ffffff !important;
  }

  footer p,
  footer a {
    color: rgba(255, 255, 255, 0.55) !important;
  }

  footer a:hover {
    color: #ffffff !important;
  }

  #vision :is(h2, p),
  #closing-cta :is(h2, p) {
    color: #ffffff !important;
  }

  .btn-glow.gradient-cta,
  .btn-glow.gradient-cta span {
    color: #ffffff !important;
  }

  #closing-cta .btn-glow.gradient-cta,
  #closing-cta .btn-glow.gradient-cta span {
    color: #000000 !important;
  }

  /* Active pipeline number stays dark on mint */
  .pipeline-step.is-active .pipeline-step-num {
    color: #2b2b2a !important;
  }
}

/* Remap faint Tailwind borders → theme-visible borders site-wide */
.border-white\/10,
.border-white\/15,
.border-white\/20,
.border-black\/10,
.border-black\/15,
.border-birzont-black\/10,
.border-birzont-black\/15 {
  border-color: var(--border-visible) !important;
}

/* Visible borders for common bordered UI across the site */
.pipeline-step,
.pipeline-step-num,
.engine-step,
.agent-result-card,
.agent-result-logo,
.agent-result-tags span,
.agent-btn-primary,
.agent-btn-secondary,
.beta-chip,
.beta-form-field,
.beta-form-select,
.beta-form-textarea,
.before-after-card,
.before-panel,
.after-panel,
.glass-card,
.glass-card-light,
.code-card,
.hero-panel,
.hero-flow-item,
.proof-chip,
.checklist-btn,
#faq details,
#product .rounded-3xl,
#product .rounded-xl,
#beta-form [data-beta-form],
#pricing .rounded-3xl,
#use-cases .use-case-card,
#problem .glass-card-light,
#security .glass-card-light,
#checklist .rounded-2xl,
#how-it-works .glass-card-light,
#output-examples .code-card,
.site-header [data-menu-toggle] {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: var(--border-visible) !important;
}

.pipeline-step.is-active,
.engine-step.is-active,
.agent-result-card.is-ready,
.beta-chip.is-active,
.after-panel {
  border-color: rgba(98, 239, 153, 0.45) !important;
}

#pricing .border-birzont-blue\/30,
#pricing .ring-birzont-blue\/20 {
  border-color: rgba(51, 165, 254, 0.45) !important;
}

.pipeline-step-num {
  border-color: var(--border-visible) !important;
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .pipeline-step-num {
    background: rgba(255, 255, 255, 0.08);
  }
}
