/* Empire 14 — Bybit-style homepage (layout inspired by bybit.com/en) */
.bybit-landing {
  --bb-bg: #000000;
  --bb-bg-elevated: #101014;
  --bb-bg-card: #16181c;
  --bb-border: #25282c;
  --bb-text: #ffffff;
  --bb-text-dim: #adb1b8;
  --bb-text-muted: #71757a;
  --bb-accent: #f7a600;
  --bb-accent-hover: #ffc35c;
  --bb-green: #20b26c;
  --bb-red: #ef454a;
  --bb-max: 1280px;
  --bb-header: 64px;
  background: var(--bb-bg);
  color: var(--bb-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html.bybit-landing[data-theme="light"] {
  --bb-bg: #f5f7fa;
  --bb-bg-elevated: #ffffff;
  --bb-bg-card: #ffffff;
  --bb-border: #e6e8eb;
  --bb-text: #121214;
  --bb-text-dim: #5e626a;
  --bb-text-muted: #81858c;
}

html.bybit-landing[data-theme="light"] .bb-header {
  background: rgba(255, 255, 255, 0.92);
}

html.bybit-landing[data-theme="light"] .bb-promo {
  background: linear-gradient(90deg, #eef0f3 0%, #e6e8eb 100%);
}

html.bybit-landing[data-theme="light"] .bb-phone-mock {
  border-color: #d5d8dc;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12);
}

html.bybit-landing[data-theme="light"] .bb-phone-screen {
  background: #f0f2f5;
}

html.bybit-landing[data-theme="light"] .bb-footer {
  background: #fff;
}

html.bybit-landing[data-theme="light"] .bb-markets th {
  background: #f5f7fa;
}

.bybit-landing a { color: inherit; text-decoration: none; }
.bybit-landing * { box-sizing: border-box; }

.bb-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--bb-border);
  background: transparent;
  color: var(--bb-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.bb-icon-btn:hover {
  border-color: var(--bb-accent);
  color: var(--bb-accent);
}

.bb-wrap {
  width: min(100% - 32px, var(--bb-max));
  margin: 0 auto;
}

/* Promo bar */
.bb-promo {
  background: linear-gradient(90deg, #1a1d21 0%, #25282c 100%);
  border-bottom: 1px solid var(--bb-border);
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
  color: var(--bb-text-dim);
}

.bb-promo strong { color: var(--bb-accent); }

/* Header */
.bb-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--bb-header);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bb-border);
}

.bb-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.bb-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.bb-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.bb-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-text-dim);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.bb-nav a:hover { color: var(--bb-text); background: rgba(255, 255, 255, 0.06); }

.bb-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.bb-btn-login {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bb-text);
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  background: transparent;
  transition: border-color 0.15s;
}

.bb-btn-login:hover { border-color: var(--bb-text-dim); }

.bb-btn-signup {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--bb-accent);
  border-radius: 8px;
  border: none;
  transition: background 0.15s;
}

.bb-btn-signup:hover { background: var(--bb-accent-hover); }

.bb-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.bb-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bb-text);
}

/* Hero */
.bb-hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}

.bb-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(247, 166, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.bb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.bb-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.bb-hero-sub {
  font-size: 1.125rem;
  color: var(--bb-text-dim);
  margin: 0 0 28px;
  max-width: 480px;
  line-height: 1.6;
}

.bb-hero-bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(247, 166, 0, 0.12);
  border: 1px solid rgba(247, 166, 0, 0.35);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-accent);
  margin-bottom: 24px;
}

.bb-signup-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin-bottom: 20px;
  border: 1px solid var(--bb-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bb-bg-elevated);
}

.bb-signup-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--bb-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.bb-signup-form input::placeholder { color: var(--bb-text-muted); }

.bb-signup-form button {
  padding: 14px 24px;
  background: var(--bb-accent);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.bb-signup-form button:hover { background: var(--bb-accent-hover); }

.bb-hero-note {
  font-size: 12px;
  color: var(--bb-text-muted);
}

.bb-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bb-phone-mock {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, #1e2126 0%, #101014 100%);
  border-radius: 36px;
  border: 3px solid #2a2d32;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.bb-phone-screen {
  height: 100%;
  border-radius: 24px;
  background: #0d0f12;
  padding: 20px 16px;
  overflow: hidden;
}

.bb-phone-balance {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 4px;
}

.bb-phone-change { font-size: 13px; color: var(--bb-green); font-weight: 600; }

.bb-phone-list { margin-top: 20px; }

.bb-phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bb-border);
  font-size: 13px;
}

.bb-phone-row span:last-child { font-weight: 600; }

/* Ticker */
.bb-ticker-wrap {
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
  background: var(--bb-bg-elevated);
  overflow: hidden;
  padding: 12px 0;
}

.bb-ticker {
  display: flex;
  gap: 40px;
  animation: bb-scroll 40s linear infinite;
  width: max-content;
}

.bb-ticker:hover { animation-play-state: paused; }

@keyframes bb-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bb-tick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--bb-text-dim);
}

.bb-tick strong { color: var(--bb-text); font-weight: 600; }

.bb-tick .up { color: var(--bb-green); }
.bb-tick .down { color: var(--bb-red); }

/* Sections */
.bb-section {
  padding: 72px 0;
}

.bb-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.bb-section-desc {
  color: var(--bb-text-dim);
  margin: 0 0 40px;
  font-size: 15px;
}

.bb-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bb-product-card {
  background: var(--bb-bg-card);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.bb-product-card:hover {
  border-color: rgba(247, 166, 0, 0.4);
  transform: translateY(-2px);
}

.bb-product-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.bb-product-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: var(--bb-text-dim);
  line-height: 1.55;
}

.bb-product-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bb-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Stats */
.bb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
}

.bb-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--bb-text);
}

.bb-stat span {
  font-size: 13px;
  color: var(--bb-text-muted);
}

/* Markets table */
.bb-markets {
  background: var(--bb-bg-elevated);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  overflow: hidden;
}

.bb-markets table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bb-markets th {
  text-align: left;
  padding: 14px 20px;
  color: var(--bb-text-muted);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--bb-border);
  background: rgba(0, 0, 0, 0.3);
}

.bb-markets td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bb-border);
}

.bb-markets tr:last-child td { border-bottom: none; }

.bb-coin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.bb-coin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* Trade platforms */
.bb-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bb-platform {
  text-align: center;
  padding: 32px 24px;
  background: var(--bb-bg-card);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
}

.bb-platform h4 { margin: 16px 0 8px; font-size: 16px; }
.bb-platform p { margin: 0; font-size: 13px; color: var(--bb-text-dim); }

.bb-qr-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding: 32px;
  background: var(--bb-bg-card);
  border: 1px solid var(--bb-border);
  border-radius: 16px;
}

.bb-qr {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}

/* Community */
.bb-community {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, rgba(247, 166, 0, 0.06));
}

.bb-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.bb-socials a {
  padding: 10px 20px;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-text-dim);
}

.bb-socials a:hover { border-color: var(--bb-accent); color: var(--bb-accent); }

/* CTA */
.bb-cta {
  text-align: center;
  padding: 80px 24px;
}

.bb-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.bb-cta p { color: var(--bb-text-dim); margin: 0 0 28px; }

.bb-btn-lg {
  display: inline-block;
  padding: 16px 48px;
  background: var(--bb-accent);
  color: #000;
  font-weight: 800;
  font-size: 16px;
  border-radius: 10px;
}

.bb-btn-lg:hover { background: var(--bb-accent-hover); }

/* Footer */
.bb-footer {
  border-top: 1px solid var(--bb-border);
  padding: 56px 0 32px;
  background: #000;
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.bb-footer h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bb-text-muted);
  margin: 0 0 16px;
}

.bb-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-footer li { margin-bottom: 10px; }

.bb-footer a {
  font-size: 13px;
  color: var(--bb-text-dim);
}

.bb-footer a:hover { color: var(--bb-accent); }

.bb-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--bb-border);
  font-size: 12px;
  color: var(--bb-text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Mobile drawer */
.bb-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.bb-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.bb-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--bb-bg-elevated);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

.bb-drawer.open .bb-drawer-panel { transform: translateX(0); }

.bb-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--bb-border);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .bb-nav { display: none; }
  .bb-menu-btn { display: flex; }
  .bb-hero-grid { grid-template-columns: 1fr; }
  .bb-hero-visual { display: none; }
  .bb-products { grid-template-columns: 1fr 1fr; }
  .bb-stats { grid-template-columns: 1fr 1fr; }
  .bb-platforms { grid-template-columns: 1fr; }
  .bb-footer-grid { grid-template-columns: 1fr 1fr; }
  .bb-qr-block { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .bb-products { grid-template-columns: 1fr; }
  .bb-signup-form { flex-direction: column; }
  .bb-signup-form button { width: 100%; }
  .bb-btn-login { display: none; }
  .bb-footer-grid { grid-template-columns: 1fr; }
}
