/* biaX Global Landing — design tokens (app_colors.dart SSOT + spec §2) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --bg-page: #060810;
  --bg-card: #0d1220;
  --bg-nested: #111827;
  --border: #1a2448;
  --border-strong: #1e2d4a;
  --text-primary: #f0f4ff;
  --text-secondary: #3a4a7a;
  --text-tertiary: #3a4a7a;
  --accent-label: #3a5aaa;
  --accent: #0044ee;
  --neon: #0055ff;
  --success: #00cc88;
  --danger: #ff4455;
  --on-accent: #ffffff;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 20px;

  --max-content: 72rem;
  --max-prose: 45rem;
  --header-h: 4.5rem;
  --page-pad-x: clamp(1rem, 4vw, 1.5rem);
  --section-pad-y: clamp(3.5rem, 8vw, 5.5rem);
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --reveal-duration: 0.55s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 2px solid var(--neon);
  --focus-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-stagger > *,
  .hero-stagger > *,
  .hero-badge-dot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.9375rem, 2.8vw, 1rem);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 68, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 68, 238, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p,
li,
dd {
  overflow-wrap: anywhere;
}

a {
  color: var(--accent-label);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--neon);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 400;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: var(--bg-page);
  border-bottom: 0.5px solid var(--bg-nested);
}

.site-header__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  font-weight: 200;
  font-size: 1.375rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.wordmark-x {
  color: var(--neon);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-inline {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-inline a {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-inline a:hover,
.nav-inline a[aria-current='page'] {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-cta {
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-inline {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.75rem var(--page-pad-x) 1rem;
    background: var(--bg-page);
    border-bottom: 0.5px solid var(--bg-nested);
  }

  .nav-inline.is-open {
    display: flex;
  }

  .nav-inline a {
    padding: 0.75rem 0;
    border-bottom: 0.5px solid var(--bg-nested);
  }

  .nav-cta {
    margin: 0.75rem 0 0;
    width: 100%;
    text-align: center;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--on-accent);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--neon);
  color: var(--text-primary);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--block {
  width: 100%;
}

/* —— Section layout —— */
.landing {
  flex: 1;
}

.section-block {
  padding: var(--section-pad-y) var(--page-pad-x);
}

.section-block__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-label);
  margin-bottom: 0.75rem;
}

.section-title {
  font-weight: 200;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-sub {
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

/* —— Hero —— */
.hero {
  padding: clamp(3rem, 10vw, 6rem) var(--page-pad-x) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.hero__title {
  font-weight: 200;
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero__title-neon {
  color: var(--neon);
}

.hero__sub {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.hero-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.hero-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.hero-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.hero-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.hero-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }

/* —— Stat row —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--page-pad-x) var(--section-pad-y);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-card__value {
  display: block;
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--neon);
  margin-bottom: 0.35rem;
}

.stat-card__label {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.feature-card__icon {
  font-size: 1.5rem;
  color: var(--neon);
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.feature-card__title {
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.feature-card__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Comparison table —— */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-nested);
}

.compare-table th {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:not(:first-child) {
  text-align: center;
  width: 22%;
}

.compare-yes {
  color: var(--success);
  font-weight: 400;
}

.compare-no {
  color: var(--danger);
  font-weight: 400;
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border: 2px solid var(--neon);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card__tier {
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.pricing-card__price {
  font-weight: 200;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.pricing-card__price span {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-card__features li {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 0.5px solid var(--bg-nested);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin: 0 auto;
  }
}

/* —— About —— */
.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
  max-width: 40rem;
}

.about-section p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* —— Waitlist —— */
.waitlist-section {
  text-align: center;
}

.waitlist-section .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-form__row {
  display: flex;
  gap: 0.5rem;
}

.waitlist-form__input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 300;
  font-size: 0.9375rem;
}

.waitlist-form__input::placeholder {
  color: var(--text-secondary);
}

.waitlist-form__msg {
  font-size: 0.875rem;
  font-weight: 300;
  min-height: 1.25rem;
}

.waitlist-form__msg--success {
  color: var(--success);
}

.waitlist-form__msg--error {
  color: var(--danger);
}

@media (max-width: 640px) {
  .waitlist-form__row {
    flex-direction: column;
  }
}

/* —— Footer —— */
.site-footer {
  border-top: 0.5px solid var(--bg-nested);
  padding: 2rem var(--page-pad-x);
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.site-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text-primary);
}

.site-footer__company {
  text-align: right;
  line-height: 1.6;
}

.site-footer__company a {
  color: var(--accent-label);
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__company {
    text-align: center;
  }

  .site-footer__links {
    justify-content: center;
  }
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* —— Prose (legal pages) —— */
.prose {
  flex: 1;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 2.5rem var(--page-pad-x) 4rem;
  line-height: 1.75;
}

.page-title {
  font-weight: 200;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--bg-nested);
}

.prose section {
  margin-bottom: 2rem;
}

.prose h2 {
  font-weight: 400;
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.prose h3 {
  font-weight: 400;
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-primary);
}

.prose ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.prose p {
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.prose ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  color: var(--accent-label);
}

/* —— Support page —— */
.support-page {
  max-width: var(--max-content);
}

.support-hero {
  margin-bottom: 2rem;
}

.support-lead {
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0;
}

.support-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.support-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 300;
  font-size: 0.875rem;
  cursor: pointer;
}

.support-tab[aria-selected='true'] {
  border-color: var(--neon);
  color: var(--text-primary);
}

.support-panel[hidden] {
  display: none;
}

.support-search {
  margin-bottom: 1rem;
}

.support-search__input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 300;
}

.faq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.faq-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 300;
  cursor: pointer;
}

.faq-chip--active {
  border-color: var(--neon);
  color: var(--text-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item__summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 400;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  color: var(--neon);
  flex-shrink: 0;
}

.faq-item__body {
  padding: 0 1.25rem 1rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item__body p {
  margin: 0;
}

.support-empty {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}

.inquiry-form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.inquiry-input,
.inquiry-textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 300;
  font-size: 0.9375rem;
}

.inquiry-textarea {
  resize: vertical;
  min-height: 8rem;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.notice-table th,
.notice-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 0.5px solid var(--bg-nested);
}

.notice-table th {
  color: var(--text-secondary);
  font-weight: 400;
}

/* —— 404 —— */
.page-404 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--page-pad-x);
}

.page-404 h1 {
  font-weight: 200;
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.page-404 p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}
