/*
 * Bukkii Design System — bk-core.css v1.0
 * Shared tokens, layout, nav, footer, components
 * Import in every page: <link rel="stylesheet" href="../assets/bk-core.css">
 */

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  /* Brand */
  --blue:        #1DA1F2;
  --blue-dark:   #0d8dd8;
  --blue-light:  #e8f6fe;
  --pink:        #F05B72;
  --pink-dark:   #d94560;
  --purple:      #7c3aed;
  --green:       #22c55e;
  --amber:       #f59e0b;

  /* Neutrals */
  --dark:        #0f1923;
  --dark2:       #1a2535;
  --gray:        #6b7a8d;
  --gray-mid:    #9aa5b4;
  --gray-light:  #f4f7fb;
  --white:       #ffffff;

  /* Gradients */
  --gradient:      linear-gradient(135deg, #1DA1F2 0%, #0d6efd 50%, #7c3aed 100%);
  --gradient-pink: linear-gradient(135deg, #F05B72 0%, #ff8c42 100%);
  --gradient-dark: linear-gradient(135deg, #0f1923 0%, #1a2535 100%);

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(15,25,35,.08);
  --shadow-sm: 0 2px 8px  rgba(29,161,242,.10);
  --shadow-md: 0 8px 32px rgba(29,161,242,.15);
  --shadow-lg: 0 20px 60px rgba(29,161,242,.20);

  /* Radius */
  --r-sm: 10px;
  --r:    20px;
  --r-lg: 32px;
  --r-xl: 48px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography */
  --font: 'Be Vietnam Pro', sans-serif;
  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.8rem;
  --text-5xl:  3.5rem;

  /* Motion */
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --dur-fast: 150ms;
  --dur:      250ms;
  --dur-slow: 400ms;

  /* Nav height */
  --nav-h: 72px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); background: var(--white); color: var(--dark); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-pink { background: var(--gradient-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── SECTION BASE ─────────────────────────────────────────── */
.bk-section { padding: var(--space-3xl) 5%; }
.bk-section--dark  { background: var(--dark);       color: var(--white); }
.bk-section--gray  { background: var(--gray-light); }
.bk-section--white { background: var(--white); }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}
.section-eyebrow--dark { color: rgba(255,255,255,.5); }
.section-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.section-title {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  font-weight: 900; line-height: 1.15; max-width: 640px;
}
.section-title--center { margin: 0 auto; }
.section-desc {
  font-size: var(--text-base); color: var(--gray); line-height: 1.75;
  max-width: 560px; margin-top: 12px;
}
.section-desc--center { margin-left: auto; margin-right: auto; }
.section-desc--light   { color: rgba(255,255,255,.6); }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); color: var(--gray);
  padding: calc(var(--nav-h) + 24px) 5% 0;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .5; }

/* ── NAV ──────────────────────────────────────────────────── */
.bk-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29,161,242,.08);
  transition: box-shadow var(--dur) var(--ease);
}
.bk-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo .wordmark {
  font-size: var(--text-xl); font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-logo .sub { font-size: var(--text-xs); color: var(--gray); font-weight: 600; letter-spacing: .05em; }

/* Nav links + dropdown */
.nav-center { display: flex; align-items: center; gap: var(--space-xl); }
.nav-links  { display: flex; align-items: center; gap: var(--space-xl); list-style: none; }
.nav-links a, .nav-dropdown-trigger {
  font-size: var(--text-sm); font-weight: 600; color: var(--dark);
  text-decoration: none; transition: color var(--dur-fast);
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover, .nav-dropdown-trigger:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: white; border-radius: var(--r); padding: 10px;
  box-shadow: 0 16px 48px rgba(15,25,35,.12), 0 0 0 1px rgba(0,0,0,.05);
  min-width: 180px; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--r-sm); font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; color: var(--dark); transition: background var(--dur-fast);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--gray-light); color: var(--blue); }
.nav-dropdown-menu a.active { background: var(--blue-light); color: var(--blue); }
.nav-dropdown-menu .menu-icon { font-size: 1rem; }
.chevron { transition: transform var(--dur); }
.nav-dropdown:hover .chevron { transform: rotate(180deg); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; align-items: center;
  background: var(--gray-light); border-radius: 100px; padding: 3px; gap: 2px;
  border: 1px solid rgba(29,161,242,.12);
}
.lang-btn {
  border: none; background: transparent; padding: 5px 12px; border-radius: 100px;
  font-size: var(--text-xs); font-weight: 700; cursor: pointer; color: var(--gray);
  transition: all var(--dur); white-space: nowrap; font-family: var(--font);
}
.lang-btn.active { background: var(--gradient); color: white; box-shadow: 0 2px 8px rgba(29,161,242,.3); }

/* ── Language dropdown select ──────────────────────────── */
.lang-select-wrap {
  position: relative; display: flex; align-items: center;
}
.lang-select-wrap::before {
  content: '🌐';
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: .85rem; pointer-events: none; z-index: 1;
}
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(29,161,242,.2);
  border-radius: 100px;
  padding: 6px 28px 6px 30px;
  font-size: .78rem; font-weight: 700; font-family: var(--font);
  color: var(--dark);
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
  outline: none; min-width: 100px;
}
.lang-select:hover { border-color: rgba(29,161,242,.5); background: white; }
.lang-select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(29,161,242,.2); }
.lang-select option { background: white; color: var(--dark); font-weight: 600; }
.lang-select-wrap::after {
  content: '▾';
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: .65rem; color: var(--dark); pointer-events: none;
}

.btn-nav-cta {
  background: var(--gradient); color: white; border: none;
  border-radius: 100px; padding: 10px 22px;
  font-size: var(--text-sm); font-weight: 700; cursor: pointer;
  transition: transform var(--dur), box-shadow var(--dur);
  font-family: var(--font); text-decoration: none; display: inline-flex; align-items: center;
}
.btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,161,242,.35); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--dark); }

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29,161,242,.12);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 300;
  padding: 8px 24px 24px;
  -webkit-backdrop-filter: blur(20px);
}
.mobile-menu.open { display: block; }
.mobile-menu-links { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-menu-links li a {
  display: block;
  padding: 14px 0;
  font-size: 1rem; font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
}
.mobile-menu-links li a:hover { color: var(--blue); }
.mobile-menu-links li:last-child a { border-bottom: none; }
.mobile-menu-footer {
  display: flex; align-items: center;
  gap: 12px; padding-top: 4px;
}
.lang-select--mobile {
  flex: 1;
  appearance: auto; -webkit-appearance: auto;
  background: white;
  border: 1px solid rgba(29,161,242,.3);
  border-radius: 100px;
  padding: 9px 14px;
  font-size: .9rem; font-weight: 600;
  color: var(--dark);
  font-family: var(--font);
  cursor: pointer; outline: none;
}
.mobile-menu-footer .btn-nav-cta {
  flex: 1; justify-content: center;
  padding: 10px 16px; font-size: .88rem;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 100px; font-family: var(--font); font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform var(--dur), box-shadow var(--dur), background var(--dur);
  white-space: nowrap; border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--gradient); color: white;
  padding: 15px 32px; font-size: var(--text-base);
  box-shadow: 0 8px 24px rgba(29,161,242,.28);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(29,161,242,.4); }

.btn--secondary {
  background: transparent; color: var(--dark);
  border: 2px solid rgba(29,161,242,.25);
  padding: 13px 28px; font-size: var(--text-base);
}
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn--white {
  background: white; color: var(--blue);
  padding: 15px 36px; font-size: var(--text-base);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btn--white:hover { box-shadow: 0 16px 40px rgba(0,0,0,.18); }

.btn--outline-white {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.35);
  padding: 13px 28px; font-size: var(--text-base);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: white; }

.btn--sm { padding: 8px 18px; font-size: var(--text-sm); }
.btn--lg { padding: 18px 40px; font-size: var(--text-lg); }

/* ── TAGS / BADGES ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 100px; padding: 4px 12px;
  font-size: var(--text-xs); font-weight: 700;
}
.badge--blue   { background: var(--blue-light); color: var(--blue); }
.badge--pink   { background: #fef0f2; color: var(--pink); }
.badge--purple { background: #f5f0fe; color: var(--purple); }
.badge--green  { background: #dcfce7; color: #16a34a; }
.badge--amber  { background: #fff7e6; color: #d97706; }
.badge--dark   { background: rgba(255,255,255,.15); color: white; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: white; border-radius: var(--r); padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur), box-shadow var(--dur);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card--dark {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.card--dark:hover { border-color: rgba(29,161,242,.4); }

/* ── CHECK LIST ───────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); font-weight: 500; }
.check-icon {
  width: 20px; height: 20px; min-width: 20px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.check-icon svg { width: 10px; height: 10px; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 5% 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.page-hero--center {
  grid-template-columns: 1fr; text-align: center;
  padding: calc(var(--nav-h) + 80px) 5% 80px;
}
.page-hero--center .section-title,
.page-hero--center .section-desc { margin: 0 auto; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(29,161,242,.07) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(240,91,114,.05) 0%, transparent 60%);
}
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900; line-height: 1.08; margin-bottom: 20px;
}
.hero-desc { font-size: var(--text-lg); color: var(--gray); line-height: 1.7; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: var(--space-xl); flex-wrap: wrap; }
.hero-stat .num {
  font-size: var(--text-3xl); font-weight: 900;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat .lbl { font-size: var(--text-xs); color: var(--gray); font-weight: 500; margin-top: 2px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 48px auto 0; }
.faq-item {
  background: white; border-radius: var(--r); border: 1px solid rgba(29,161,242,.1);
  overflow: hidden; transition: border-color var(--dur);
}
.faq-item.open { border-color: rgba(29,161,242,.3); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer; gap: 16px;
  font-family: var(--font); font-size: var(--text-base); font-weight: 700; color: var(--dark);
  text-align: left;
}
.faq-q .faq-arrow { flex-shrink: 0; transition: transform var(--dur); color: var(--blue); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), padding var(--dur-slow) var(--ease);
  font-size: var(--text-sm); color: var(--gray); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient); color: white;
  padding: var(--space-3xl) 5%; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; margin-bottom: 14px; position: relative; }
.cta-banner p  { font-size: var(--text-lg); opacity: .85; margin-bottom: 36px; position: relative; }
.cta-banner-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-banner-note { margin-top: 20px; font-size: var(--text-sm); opacity: .65; position: relative; }

/* ── FOOTER ───────────────────────────────────────────────── */
.bk-footer { background: #080e18; color: rgba(255,255,255,.55); padding: 64px 5% 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .logo-row { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 14px; }
.footer-brand .logo-row .wordmark { font-size: var(--text-xl); font-weight: 800; color: white; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: var(--text-sm); font-weight: 700; color: white; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: var(--text-xs); color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--dur); }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: var(--text-xs);
}
.footer-bottom a { color: var(--blue); text-decoration: none; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
.bk-fade { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.bk-fade.visible { opacity: 1; transform: translateY(0); }
@keyframes bk-fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes bk-pulse  { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.3)} }

/* ── RESPONSIVE ───────────────────────────────────────────── */
/* ── DESKTOP: always hide mobile menu regardless of JS state ── */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bk-nav { padding: 0 20px; }
  .nav-center, .nav-right { display: none !important; }
  .nav-hamburger { display: flex !important; align-items: center; color: var(--dark); }
  /* Keep CTA button visible inside mobile menu (its class is hidden in nav) */
  .mobile-menu .btn-nav-cta { display: inline-flex !important; }
  .bk-section { padding: 64px 20px; }
  .page-hero { grid-template-columns: 1fr; padding: 100px 20px 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .breadcrumb { padding-left: 20px; padding-right: 20px; }
}
