/* ByteConnect Pro — Core Styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bc-font-sans);
  font-size: var(--bc-fs-base);
  line-height: var(--bc-lh-normal);
  color: var(--bc-text);
  background: var(--bc-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--bc-duration-fast) var(--bc-ease);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bc-font-display);
  color: var(--bc-heading);
  line-height: var(--bc-lh-tight);
  font-weight: var(--bc-fw-bold);
  letter-spacing: -0.02em;
}

p {
  color: var(--bc-text-secondary);
}

.container {
  width: min(100% - 2.5rem, var(--bc-container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, var(--bc-container-wide));
  margin-inline: auto;
}

.section {
  padding-block: var(--bc-space-section);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--bc-radius-full);
  background: rgba(var(--bc-primary-rgb), 0.08);
  color: var(--bc-primary);
  font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-semibold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: var(--bc-fs-4xl);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.section-title.wide {
  max-width: 28ch;
}

.section-desc {
  font-size: var(--bc-fs-lg);
  max-width: 52ch;
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-title,
.section-head.center .section-desc {
  margin-inline: auto;
}

.text-gradient {
  background: var(--bc-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: var(--bc-z-loader);
  padding: 0.75rem 1.25rem;
  background: var(--bc-primary);
  color: #fff;
  border-radius: var(--bc-radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ========== Loading Screen ========== */
.bc-loader {
  position: fixed;
  inset: 0;
  z-index: var(--bc-z-loader);
  display: grid;
  place-items: center;
  background: var(--bc-bg);
  transition: opacity 0.5s var(--bc-ease), visibility 0.5s;
}

.bc-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bc-loader__inner {
  text-align: center;
}

.bc-loader__logo {
  font-family: var(--bc-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.bc-loader__logo > img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bc-loader__logo span span {
  color: var(--bc-primary);
}

.bc-loader__bar {
  width: 160px;
  height: 4px;
  border-radius: var(--bc-radius-full);
  background: rgba(var(--bc-primary-rgb), 0.15);
  overflow: hidden;
  margin-inline: auto;
}

.bc-loader__bar > i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--bc-gradient-primary);
  animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--bc-radius-sm);
  font-weight: var(--bc-fw-semibold);
  font-size: var(--bc-fs-sm);
  line-height: 1;
  transition: transform var(--bc-duration-fast) var(--bc-ease),
    box-shadow var(--bc-duration) var(--bc-ease),
    background var(--bc-duration) var(--bc-ease),
    color var(--bc-duration) var(--bc-ease),
    border-color var(--bc-duration) var(--bc-ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--bc-primary);
  outline-offset: 3px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--bc-gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--bc-primary-rgb), 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(var(--bc-primary-rgb), 0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--bc-bg-elevated);
  color: var(--bc-heading);
  border: 1px solid var(--bc-border-strong);
  box-shadow: var(--bc-shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--bc-primary);
  color: var(--bc-primary);
  box-shadow: var(--bc-shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--bc-heading);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(var(--bc-primary-rgb), 0.06);
  color: var(--bc-primary);
}

.btn-white {
  background: #fff;
  color: var(--bc-primary);
  box-shadow: var(--bc-shadow-md);
}

.btn-lg {
  padding: 1.05rem 1.85rem;
  font-size: var(--bc-fs-base);
  border-radius: var(--bc-radius-md);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: var(--bc-fs-xs);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--bc-radius-sm);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--bc-z-sticky);
  height: var(--bc-header-h);
  display: flex;
  align-items: center;
  background: var(--bc-bg-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--bc-duration) var(--bc-ease),
    box-shadow var(--bc-duration) var(--bc-ease),
    height var(--bc-duration) var(--bc-ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--bc-border);
  box-shadow: var(--bc-shadow-sm);
  height: 68px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--bc-container-wide));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--bc-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--bc-heading);
  z-index: 2;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.brand span {
  color: var(--bc-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.65rem 0.9rem;
  border-radius: var(--bc-radius-xs);
  font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-medium);
  color: var(--bc-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover,
.nav-link.is-active,
.nav-item:hover > .nav-link {
  color: var(--bc-primary);
  background: rgba(var(--bc-primary-rgb), 0.06);
}

.nav-item {
  position: relative;
}

.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  translate: -50% 0;
  width: min(900px, 90vw);
  padding: 1.75rem;
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--bc-duration) var(--bc-ease);
  pointer-events: none;
  z-index: var(--bc-z-mega);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.25rem;
}

.mega-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--bc-radius-sm);
  transition: background var(--bc-duration-fast) var(--bc-ease);
}

.mega-item:hover {
  background: rgba(var(--bc-primary-rgb), 0.06);
}

.mega-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bc-gradient-card);
  color: var(--bc-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.mega-item__title {
  font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-semibold);
  color: var(--bc-heading);
  margin-bottom: 0.15rem;
}

.mega-item__desc {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--bc-radius-sm);
  display: grid;
  place-items: center;
  color: var(--bc-text-secondary);
  background: rgba(var(--bc-primary-rgb), 0.06);
  transition: color var(--bc-duration-fast), background var(--bc-duration-fast);
}

.theme-toggle:hover {
  color: var(--bc-primary);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--bc-radius-sm);
  display: grid;
  place-items: center;
  background: rgba(var(--bc-primary-rgb), 0.08);
  color: var(--bc-primary);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--bc-z-overlay);
  background: var(--bc-bg-elevated);
  padding: 5.5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--bc-duration) var(--bc-ease);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--bc-border);
  font-weight: var(--bc-fw-medium);
  color: var(--bc-heading);
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 3rem 0 5rem;
  overflow: hidden;
  background: var(--bc-gradient-hero);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(var(--bc-primary-rgb), 0.35);
  top: -120px;
  right: 10%;
}

.hero__orb--2 {
  width: 320px;
  height: 320px;
  background: rgba(var(--bc-accent-rgb), 0.3);
  bottom: 5%;
  left: -80px;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 240px;
  height: 240px;
  background: rgba(var(--bc-secondary-rgb), 0.28);
  top: 40%;
  right: -60px;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-full);
  box-shadow: var(--bc-shadow-xs);
  font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-medium);
  color: var(--bc-text-secondary);
  margin-bottom: 1.5rem;
}

.hero__badge i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bc-gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
}

.hero__title {
  font-size: var(--bc-fs-5xl);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero__text {
  font-size: var(--bc-fs-lg);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--bc-fs-sm);
  color: var(--bc-text-muted);
}

.hero__avatars {
  display: flex;
}

.hero__avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bc-bg);
  background: var(--bc-gradient-primary);
  margin-left: -10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero__avatars span:first-child {
  margin-left: 0;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard Mockup */
.dash-mock {
  width: min(100%, 540px);
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-xl);
  box-shadow: var(--bc-shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.dash-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bc-border);
  background: linear-gradient(90deg, rgba(var(--bc-primary-rgb), 0.04), transparent);
}

.dash-mock__dots {
  display: flex;
  gap: 0.35rem;
}

.dash-mock__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D0D5DD;
}

.dash-mock__dots i:nth-child(1) { background: #F04438; }
.dash-mock__dots i:nth-child(2) { background: #F79009; }
.dash-mock__dots i:nth-child(3) { background: #12B76A; }

.dash-mock__body {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 340px;
}

.dash-sidebar {
  background: var(--bc-bg-soft);
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  border-right: 1px solid var(--bc-border);
}

.dash-sidebar button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--bc-text-muted);
  transition: all var(--bc-duration-fast);
}

.dash-sidebar button.is-active,
.dash-sidebar button:hover {
  background: var(--bc-gradient-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(var(--bc-primary-rgb), 0.35);
}

.dash-main {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wallet-card {
  background: var(--bc-gradient-wallet);
  color: #fff;
  border-radius: var(--bc-radius-md);
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.wallet-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -40px;
  right: -30px;
}

.wallet-card__label {
  font-size: var(--bc-fs-xs);
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.wallet-card__balance {
  font-family: var(--bc-font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.wallet-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--bc-fs-xs);
  opacity: 0.9;
}

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-mini {
  background: var(--bc-bg-soft);
  border-radius: var(--bc-radius-sm);
  padding: 0.85rem;
}

.stat-mini__label {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
  margin-bottom: 0.25rem;
}

.stat-mini__value {
  font-weight: 700;
  color: var(--bc-heading);
  font-size: var(--bc-fs-sm);
}

.stat-mini__change {
  font-size: 0.7rem;
  color: var(--bc-success);
  margin-top: 0.2rem;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: var(--bc-radius-xs);
  background: rgba(var(--bc-primary-rgb), 0.03);
}

.tx-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: rgba(var(--bc-primary-rgb), 0.12);
  color: var(--bc-primary);
}

.tx-item__info {
  flex: 1;
  min-width: 0;
}

.tx-item__info strong {
  display: block;
  font-size: var(--bc-fs-xs);
  color: var(--bc-heading);
}

.tx-item__info span {
  font-size: 0.65rem;
  color: var(--bc-text-muted);
}

.tx-item__amount {
  font-size: var(--bc-fs-xs);
  font-weight: 700;
}

.tx-item__amount.in { color: var(--bc-success); }
.tx-item__amount.out { color: var(--bc-heading); }

/* Floating phone */
.phone-mock {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 170px;
  background: var(--bc-bg-dark);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--bc-shadow-xl);
  z-index: 3;
  animation: floatY 7s ease-in-out infinite reverse;
  border: 3px solid #1F2937;
}

.phone-mock__notch {
  width: 64px;
  height: 8px;
  background: #000;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 8px;
}

.phone-mock__screen {
  background: linear-gradient(160deg, #1A2332, #101828);
  border-radius: 20px;
  padding: 0.85rem;
  min-height: 260px;
  color: #fff;
}

.phone-mock__balance {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.phone-mock__amount {
  font-family: var(--bc-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.phone-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
}

.phone-actions i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(59, 91, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.phone-nav span {
  font-size: 0.55rem;
  opacity: 0.55;
}

.phone-nav span.is-active {
  opacity: 1;
  color: var(--bc-accent);
}

.float-card {
  position: absolute;
  background: var(--bc-bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--bc-shadow-md);
  z-index: 4;
  animation: floatY 5s ease-in-out infinite;
}

.float-card--left {
  left: -20px;
  top: 18%;
  animation-delay: -1.5s;
}

.float-card--bottom {
  left: 8%;
  bottom: 8%;
  animation-delay: -3s;
}

.float-card strong {
  display: block;
  font-size: var(--bc-fs-sm);
  color: var(--bc-heading);
}

.float-card span {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
}

.float-card .up {
  color: var(--bc-success);
  font-weight: 700;
  font-size: var(--bc-fs-xs);
}

/* ========== Partners ========== */
.partners {
  padding: 2.5rem 0;
  border-block: 1px solid var(--bc-border);
  background: var(--bc-bg-elevated);
  overflow: hidden;
}

.partners__label {
  text-align: center;
  font-size: var(--bc-fs-sm);
  color: var(--bc-text-muted);
  margin-bottom: 1.5rem;
  font-weight: var(--bc-fw-medium);
}

.partners-track {
  display: flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--bc-text-muted);
  opacity: 0.7;
  white-space: nowrap;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.partner-logo i {
  font-size: 1.35rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== Stats ========== */
.stats-section {
  background: var(--bc-bg-dark);
  color: #fff;
  overflow: hidden;
}

.stats-section .section-label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bc-accent);
}

.stats-section .section-title {
  color: #fff;
}

.stats-section .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bc-radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: transform var(--bc-duration) var(--bc-ease),
    background var(--bc-duration) var(--bc-ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}

.stat-card__value {
  font-family: var(--bc-font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  background: linear-gradient(90deg, #fff, var(--bc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card__label {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--bc-fs-sm);
}

/* ========== Feature Cards ========== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--bc-shadow-xs);
  transition: transform var(--bc-duration) var(--bc-ease),
    box-shadow var(--bc-duration) var(--bc-ease),
    border-color var(--bc-duration) var(--bc-ease);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bc-shadow-md);
  border-color: rgba(var(--bc-primary-rgb), 0.25);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bc-gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 10px 24px rgba(var(--bc-primary-rgb), 0.3);
}

.feature-card h3 {
  font-size: var(--bc-fs-xl);
  margin-bottom: 0.55rem;
}

.feature-card p {
  font-size: var(--bc-fs-sm);
  margin: 0;
}

.feature-card.large {
  background: var(--bc-gradient-dark);
  color: #fff;
  border: none;
}

.feature-card.large h3,
.feature-card.large p {
  color: rgba(255, 255, 255, 0.92);
}

.feature-card.large p {
  color: rgba(255, 255, 255, 0.7);
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  transition: all var(--bc-duration) var(--bc-ease);
}

.service-chip:hover {
  border-color: rgba(var(--bc-primary-rgb), 0.35);
  box-shadow: var(--bc-shadow-sm);
  transform: translateY(-2px);
}

.service-chip i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--bc-primary-rgb), 0.1);
  color: var(--bc-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.service-chip strong {
  display: block;
  font-size: var(--bc-fs-sm);
  color: var(--bc-heading);
}

.service-chip span {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
}

/* ========== API / Code ========== */
.api-section {
  background: var(--bc-bg-soft);
}

.api-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.code-window {
  background: #0B1220;
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-window__bar span:nth-child(1) { background: #F04438; }
.code-window__bar span:nth-child(2) { background: #F79009; }
.code-window__bar span:nth-child(3) { background: #12B76A; }

.code-window__title {
  margin-left: auto;
  font-size: var(--bc-fs-xs);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--bc-font-mono);
}

.code-window pre {
  padding: 1.35rem;
  overflow-x: auto;
  font-family: var(--bc-font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #E4E7EC;
  margin: 0;
}

.code-window .c-key { color: #7DD3FC; }
.code-window .c-str { color: #86EFAC; }
.code-window .c-num { color: #FCD34D; }
.code-window .c-comment { color: #64748B; }

.api-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.api-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.api-list i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(18, 183, 106, 0.12);
  color: var(--bc-success);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.api-list strong {
  display: block;
  color: var(--bc-heading);
  font-size: var(--bc-fs-sm);
}

.api-list span {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--bc-primary), var(--bc-accent));
  opacity: 0.3;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.25rem;
  position: relative;
}

.timeline-item__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bc-gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--bc-fs-sm);
  box-shadow: 0 8px 20px rgba(var(--bc-primary-rgb), 0.35);
  position: relative;
  z-index: 1;
}

.timeline-item__content {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--bc-shadow-xs);
}

.timeline-item__content h3 {
  font-size: var(--bc-fs-lg);
  margin-bottom: 0.4rem;
}

.timeline-item__content p {
  font-size: var(--bc-fs-sm);
  margin: 0;
}

/* ========== Pricing ========== */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  padding: 0.35rem;
  border-radius: var(--bc-radius-full);
  margin-bottom: 2.5rem;
}

.pricing-toggle button {
  padding: 0.55rem 1.15rem;
  border-radius: var(--bc-radius-full);
  font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-semibold);
  color: var(--bc-text-secondary);
  transition: all var(--bc-duration-fast);
}

.pricing-toggle button.is-active {
  background: var(--bc-gradient-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--bc-primary-rgb), 0.35);
}

.pricing-toggle .save {
  font-size: var(--bc-fs-xs);
  color: var(--bc-success);
  font-weight: 700;
  margin-left: 0.25rem;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

.price-card {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-xl);
  padding: 2rem;
  position: relative;
  box-shadow: var(--bc-shadow-xs);
  transition: transform var(--bc-duration) var(--bc-ease),
    box-shadow var(--bc-duration) var(--bc-ease);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bc-shadow-md);
}

.price-card.is-popular {
  border-color: transparent;
  background:
    linear-gradient(var(--bc-bg-elevated), var(--bc-bg-elevated)) padding-box,
    var(--bc-gradient-primary) border-box;
  border: 2px solid transparent;
  box-shadow: var(--bc-shadow-md);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  translate: -50% 0;
  background: var(--bc-gradient-primary);
  color: #fff;
  font-size: var(--bc-fs-xs);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--bc-radius-full);
  white-space: nowrap;
}

.price-card__name {
  font-size: var(--bc-fs-xl);
  margin-bottom: 0.35rem;
}

.price-card__desc {
  font-size: var(--bc-fs-sm);
  margin-bottom: 1.25rem;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.price-card__price strong {
  font-family: var(--bc-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bc-heading);
}

.price-card__price span {
  color: var(--bc-text-muted);
  font-size: var(--bc-fs-sm);
}

.price-card__note {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
  margin-bottom: 1.5rem;
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--bc-fs-sm);
  color: var(--bc-text-secondary);
}

.price-card__features i {
  color: var(--bc-success);
  margin-top: 0.2rem;
}

.price-card .btn {
  width: 100%;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  transition: border-color var(--bc-duration-fast);
}

.faq-item.is-open {
  border-color: rgba(var(--bc-primary-rgb), 0.35);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-weight: var(--bc-fw-semibold);
  color: var(--bc-heading);
  font-size: var(--bc-fs-base);
}

.faq-item__q i {
  color: var(--bc-primary);
  transition: transform var(--bc-duration) var(--bc-ease);
}

.faq-item.is-open .faq-item__q i {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--bc-duration-slow) var(--bc-ease);
}

.faq-item__a-inner {
  padding: 0 1.35rem 1.25rem;
  font-size: var(--bc-fs-sm);
  color: var(--bc-text-secondary);
}

.faq-item.is-open .faq-item__a {
  max-height: 240px;
}

/* ========== Testimonials ========== */
.testimonial-card {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-xl);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--bc-shadow-xs);
}

.testimonial-card__stars {
  color: #FDB022;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: var(--bc-fs-base);
  margin-bottom: 1.5rem;
  color: var(--bc-text);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bc-gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.testimonial-card__author strong {
  display: block;
  color: var(--bc-heading);
  font-size: var(--bc-fs-sm);
}

.testimonial-card__author span {
  font-size: var(--bc-fs-xs);
  color: var(--bc-text-muted);
}

.swiper-testimonials {
  padding-bottom: 3rem !important;
}

.swiper-pagination-bullet {
  background: var(--bc-primary) !important;
}

/* ========== App Download ========== */
.app-section {
  overflow: hidden;
}

.app-banner {
  background: var(--bc-gradient-dark);
  border-radius: var(--bc-radius-xl);
  padding: 3rem 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.app-banner::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(var(--bc-primary-rgb), 0.25);
  filter: blur(40px);
  right: -100px;
  top: -100px;
}

.app-banner__content {
  position: relative;
  z-index: 1;
}

.app-banner h2 {
  color: #fff;
  font-size: var(--bc-fs-3xl);
  margin-bottom: 0.75rem;
}

.app-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.75rem;
  max-width: 40ch;
}

.app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--bc-radius-sm);
  color: #fff;
  transition: background var(--bc-duration-fast);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.store-btn small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
}

.store-btn strong {
  font-size: var(--bc-fs-sm);
}

.app-banner__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.app-banner .phone-mock {
  position: relative;
  right: auto;
  bottom: auto;
  animation: none;
}

/* ========== CTA ========== */
.cta-section .cta-box {
  background: var(--bc-gradient-primary);
  border-radius: var(--bc-radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--bc-shadow-glow);
}

.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.cta-box::before {
  width: 280px;
  height: 280px;
  top: -100px;
  left: -60px;
}

.cta-box::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  right: -40px;
}

.cta-box h2 {
  color: #fff;
  font-size: var(--bc-fs-3xl);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  max-width: 48ch;
  margin-inline: auto;
}

.cta-box .hero__cta {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bc-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: var(--bc-fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  max-width: 36ch;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--bc-duration-fast);
}

.footer-social a:hover {
  background: var(--bc-primary);
}

.footer-col h4 {
  color: #fff;
  font-size: var(--bc-fs-sm);
  margin-bottom: 1.15rem;
  font-family: var(--bc-font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: var(--bc-fs-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.3rem 0;
  transition: color var(--bc-duration-fast);
}

.footer-col a:hover {
  color: var(--bc-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--bc-fs-xs);
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  padding: 4rem 0 3rem;
  background: var(--bc-gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: var(--bc-fs-4xl);
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 52ch;
  margin-inline: auto;
  font-size: var(--bc-fs-lg);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--bc-fs-sm);
  color: var(--bc-text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover {
  color: var(--bc-primary);
}

/* ========== Forms ========== */
.form-card {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-xl);
  padding: 2rem;
  box-shadow: var(--bc-shadow-sm);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-semibold);
  color: var(--bc-heading);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bc-border-strong);
  border-radius: var(--bc-radius-sm);
  background: var(--bc-bg);
  transition: border-color var(--bc-duration-fast), box-shadow var(--bc-duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 4px rgba(var(--bc-primary-rgb), 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ========== Misc ========== */
.glass {
  background: var(--bc-bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bc-border);
}

.chart-wrap {
  position: relative;
  height: 80px;
}

.team-grid,
.blog-grid {
  display: grid;
  gap: 1.25rem;
}

.team-card,
.blog-card {
  background: var(--bc-bg-elevated);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-xs);
  transition: transform var(--bc-duration) var(--bc-ease), box-shadow var(--bc-duration);
}

.team-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bc-shadow-md);
}

.team-card__avatar {
  aspect-ratio: 1;
  background: var(--bc-gradient-card);
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--bc-primary);
}

.team-card__body,
.blog-card__body {
  padding: 1.25rem;
}

.blog-card__img {
  aspect-ratio: 16/10;
  background: var(--bc-gradient-primary);
  opacity: 0.9;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page__code {
  font-family: var(--bc-font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  background: var(--bc-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.table-responsive {
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--bc-fs-sm);
}

.docs-table th,
.docs-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bc-border);
  text-align: left;
}

.docs-table th {
  background: var(--bc-bg-soft);
  color: var(--bc-heading);
  font-weight: 600;
}

.endpoint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bc-font-mono);
  font-size: var(--bc-fs-xs);
}

.method {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.method.post { background: rgba(18, 183, 106, 0.15); color: var(--bc-success); }
.method.get { background: rgba(0, 194, 255, 0.15); color: var(--bc-accent); }

.legal-content {
  max-width: 800px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: var(--bc-fs-2xl);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.85rem;
  color: var(--bc-text-secondary);
}

.legal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.contact-info-card {
  background: var(--bc-gradient-dark);
  color: #fff;
  border-radius: var(--bc-radius-xl);
  padding: 2rem;
  height: 100%;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--bc-accent);
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  color: #fff;
  margin-bottom: 0.2rem;
}

.contact-info-item span,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--bc-fs-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
