
:root {
  --bg: #02040a;
  --bg-elevated: #050816;
  --border-subtle: #1f2937;
  --accent: #f97316;
  --accent-blue: #38bdf8;
  --accent-soft: rgba(249,115,22,0.18);
  --accent-soft-2: rgba(56,189,248,0.18);
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --radius-lg: 18px;
  --shadow-soft: 0 22px 50px rgba(0,0,0,0.8);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(249,115,22,0.16) 0, transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56,189,248,0.12) 0, transparent 55%),
    #02040a;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAV + LOGO */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.92);
  border-bottom: 1px solid rgba(31,41,55,0.9);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 25% 0%, #ffffff 0, transparent 45%),
    linear-gradient(135deg, #020617, #0b1120 35%, #111827 58%, #020617 100%);
  position: relative;
  box-shadow: 0 0 26px rgba(249,115,22,0.8);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.5);
}

.logo-edge {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 26px rgba(248,250,252,0.06);
}

.logo-grid {
  position: absolute;
  inset: 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.logo-cell {
  border-radius: 4px;
  background: radial-gradient(circle at 30% 25%, rgba(249,250,251,0.18), rgba(15,23,42,1));
}

.logo-cell:nth-child(2),
.logo-cell:nth-child(3) {
  background: radial-gradient(circle at 10% 0%, rgba(249,115,22,0.85), rgba(15,23,42,1));
}

.logo-stripe {
  position: absolute;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(248,250,252,0.95), transparent);
  top: 55%;
  transform: translateX(-70%) rotate(-18deg);
  opacity: 0.7;
  animation: logoStripeMove 3.6s linear infinite;
}

.logo-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #f97316 0, #ea580c 45%, transparent 65%);
  right: 5px;
  bottom: 5px;
  box-shadow: 0 0 18px rgba(249,115,22,0.9);
}

@keyframes logoStripeMove {
  0% { transform: translateX(-90%) rotate(-18deg); opacity: 0.3; }
  50% { opacity: 0.9; }
  100% { transform: translateX(10%) rotate(-18deg); opacity: 0.6; }
}

.logo-text-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-sub);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-sub);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link.active {
  color: #fef3c7;
  border-bottom-color: var(--accent);
}

.nav-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-network {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.95);
  font-size: 11px;
  color: var(--text-sub);
  background: rgba(15,23,42,0.88);
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(75,85,99,0.9);
  overflow: hidden;
  font-size: 11px;
}

.lang-btn {
  padding: 4px 9px;
  background: transparent;
  color: var(--text-sub);
  border: none;
  cursor: pointer;
}

.lang-btn.active {
  background: rgba(15,23,42,0.95);
  color: #fefce8;
}

/* Buttons */

.btn-ghost {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75,85,99,0.9);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.btn-primary {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #000;
  background: linear-gradient(90deg,#f97316,#facc15);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 26px rgba(249,115,22,0.85);
  white-space: nowrap;
}

.btn-primary-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 14px rgba(22,163,74,0.95);
}

.btn-primary-big {
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #000;
  background: linear-gradient(90deg,#f97316,#facc15);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 30px rgba(249,115,22,0.95);
  white-space: nowrap;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary-big:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(249,115,22,1);
}

/* Layout */

.main {
  flex: 1;
  padding: 26px 20px 36px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero with animated illustration */

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,1.1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 11px;
  color: var(--text-sub);
  max-width: 480px;
}

.hero-visual {
  position: relative;
  min-height: 260px;
}

.hero-panel {
  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(248,250,252,0.06) 0, transparent 60%),
    linear-gradient(135deg,#020617,#020617 40%,#020617 100%);
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  overflow: hidden;
}

.panel-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.panel-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.95);
  background: rgba(15,23,42,0.96);
}

.panel-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.5);
  color: #bbf7d0;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 8px;
}

.mini-card {
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.95);
  background: #020617;
  padding: 9px 10px;
  font-size: 11px;
}

.mini-label {
  color: var(--text-sub);
  margin-bottom: 3px;
}

.mini-value {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mini-foot {
  font-size: 10px;
  color: var(--text-sub);
}

/* Animated orbs & scan line */

.orb,
.orb-secondary {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.orb {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(249,115,22,0.4), transparent 65%);
  right: -35px;
  top: -35px;
  opacity: 0.9;
  animation: orbFloat 6s ease-in-out infinite alternate;
}

.orb-secondary {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 65%);
  left: -40px;
  bottom: -40px;
  opacity: 0.7;
  animation: orbFloat2 7s ease-in-out infinite alternate;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0, rgba(248,250,252,0.06) 48%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.0;
  animation: scanMove 4.2s linear infinite;
}

@keyframes orbFloat {
  0% { transform: translate3d(0,0,0); opacity: 0.7; }
  100% { transform: translate3d(-10px,10px,0); opacity: 1; }
}
@keyframes orbFloat2 {
  0% { transform: translate3d(0,0,0); opacity: 0.6; }
  100% { transform: translate3d(8px,-8px,0); opacity: 0.9; }
}
@keyframes scanMove {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 0.9; }
  60% { opacity: 0.6; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* Sections & cards */

.section {
  margin-bottom: 32px;
}

.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 520px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.card {
  border-radius: 18px;
  border: 1px solid rgba(31,41,55,0.95);
  background: rgba(5,8,22,0.98);
  padding: 14px 14px 13px;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: rgba(249,115,22,0.9);
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(15,23,42,0.9);
}

.card-tag {
  font-size: 10px;
  color: var(--text-sub);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
}

.card-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid rgba(55,65,81,0.95);
  color: var(--text-sub);
}

.card-body {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 10px;
  min-height: 52px;
}

.card-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.card-link {
  color: #fed7aa;
}

.card-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249,115,22,0.3), transparent 70%);
  right: -40px;
  top: -40px;
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.card-glow.blue {
  background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 70%);
  left: -45px;
  top: auto;
  bottom: -45px;
}

/* Footer */

footer {
  border-top: 1px solid rgba(31,41,55,0.95);
  padding: 14px 20px 18px;
  font-size: 11px;
  color: var(--text-sub);
  text-align: center;
}

/* Responsive */

@media (max-width: 960px) {
  .nav-center { display: none; }
  .hero { grid-template-columns: minmax(0,1fr); }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-2 { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 640px) {
  .nav-inner { padding-inline: 14px; }
  .main { padding-inline: 14px; }
  .hero-title { font-size: 26px; }
  .grid-3 { grid-template-columns: minmax(0,1fr); }
}


/* Wallet modal styles (shared) */
.wallet-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,0.75);
  display:flex; justify-content:center; align-items:center; z-index:9999;
}
.wallet-modal{
  background:#0b0f19; border:1px solid #374151; padding:20px 18px 16px; border-radius:14px;
  width:270px; text-align:center; box-shadow:0 22px 40px rgba(0,0,0,0.85);
}
.wallet-modal h3{
  margin:0 0 10px; font-size:15px;
}
.wallet-modal p{
  margin:0 0 8px; font-size:11px; color:var(--text-sub);
}
.wallet-btn{
  width:100%; margin:6px 0; padding:9px 10px; border-radius:8px; border:none;
  background:linear-gradient(90deg,#f97316,#facc15); cursor:pointer; font-weight:700;
  font-size:13px; color:#000;
}
.wallet-btn span{
  font-size:11px; display:block; opacity:0.8;
}
.wallet-close{
  margin-top:8px; padding:6px 12px; background:#111827; border:none; border-radius:999px;
  color:#e5e7eb; cursor:pointer; font-size:11px;
}

/* Metrics & bar panel for BP Token / Airdrop */
.metric-board{
  border-radius:18px;
  border:1px solid rgba(31,41,55,0.95);
  background:rgba(5,8,22,0.98);
  padding:14px 16px 14px;
}
.metric-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:8px;
}
.metric-label{
  font-size:11px;
  color:var(--text-sub);
}
.metric-number{
  font-size:16px;
  font-weight:700;
}
.metric-sub{
  font-size:10px;
  color:var(--text-sub);
}
.bar-rows{
  margin-top:10px;
}
.bar-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.bar-name{
  font-size:11px;
  color:var(--text-sub);
  min-width:80px;
}
.bar-track{
  flex:1;
  height:6px;
  border-radius:999px;
  background:#020617;
  border:1px solid rgba(31,41,55,0.9);
  overflow:hidden;
}
.bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#f97316,#facc15);
}
.bar-value{
  font-size:10px;
  color:var(--text-sub);
  min-width:40px;
  text-align:right;
}


/* Hero beam + particle background enhancements */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-beam-layer {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0.8;
}

.hero-beam {
  position:absolute;
  width:160%;
  height:160%;
  left:-30%;
  top:-40%;
  background:
    radial-gradient(circle at 10% 20%, rgba(56,189,248,0.1), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(248,250,252,0.12), transparent 55%),
    linear-gradient(120deg, rgba(59,130,246,0.25), transparent 60%);
  mix-blend-mode:screen;
  filter:blur(8px);
  animation: heroBeamDrift 22s linear infinite;
}

.hero-particles {
  position:absolute;
  inset:0;
  overflow:hidden;
}

.hero-particle-dot {
  position:absolute;
  width:3px;
  height:3px;
  border-radius:999px;
  background:rgba(248,250,252,0.85);
  box-shadow:0 0 8px rgba(248,250,252,0.9);
  opacity:0.08;
  animation: particleDrift 18s linear infinite;
}

.hero-particle-dot:nth-child(2n) {
  opacity:0.12;
  animation-duration:24s;
}

.hero-particle-dot:nth-child(3n) {
  opacity:0.16;
  animation-duration:30s;
}

@keyframes heroBeamDrift {
  0% { transform:translate3d(0,0,0) rotate(0deg); }
  50% { transform:translate3d(-8%,6%,0) rotate(5deg); }
  100% { transform:translate3d(0,0,0) rotate(0deg); }
}

@keyframes particleDrift {
  0% { transform:translate3d(0,0,0); }
  50% { transform:translate3d(12px,-18px,0); }
  100% { transform:translate3d(0,0,0); }
}

/* Card hover enhancements */
.card {
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(250,204,21,0.5);
  box-shadow:0 18px 40px rgba(15,23,42,0.9);
}
.card:hover .card-glow,
.card:hover .card-glow.blue {
  opacity:1;
}

/* Security page helpers */
.security-list {
  font-size:13px;
  color:var(--text-sub);
  line-height:1.5;
  margin:0;
  padding-left:18px;
}
.security-list li {
  margin-bottom:6px;
}
.security-tag {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(55,65,81,0.9);
  font-size:10px;
  color:var(--text-sub);
}


/* Products dropdown BluePay style */
.nav-item-products { position:relative; }
.nav-dropdown {
  position:absolute;
  top:38px;
  left:0;
  background:rgba(8,10,20,0.92);
  backdrop-filter:blur(8px);
  border:1px solid rgba(45,60,90,0.6);
  border-radius:12px;
  padding:10px 0;
  width:180px;
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px);
  transition:all .18s ease-out;
  z-index:2000;
}
.nav-item-products:hover .nav-dropdown {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.nav-dropdown a {
  display:block;
  padding:8px 16px;
  color:#e5e7eb;
  font-size:13px;
  text-decoration:none;
}
.nav-dropdown a:hover {
  background:rgba(255,165,0,.08);
  color:#fbbf24;
}


/* Fix hero glow clipping */
.hero { overflow: visible !important; position: relative; }
.hero-bg-mask { position:absolute; inset:0; overflow:hidden; border-radius:24px; pointer-events:none; }


/* v8.4 OKX dark gradient background + spacing */
body {
  background:
    radial-gradient(circle at 0% 0%, rgba(15,23,42,0.95) 0, rgba(2,6,23,1) 40%, rgba(2,4,10,1) 100%);
  color: var(--text-main);
}

.section {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 48px;
  }
  .main {
    padding: 20px 16px 32px;
  }
}


/* === v8.4_fixed2: unify homepage hero background (NO layout change) === */
.hero.hero-clean {
  background: radial-gradient(circle at 0% 0%, rgba(15,23,42,0.95) 0%, rgba(2,6,23,1) 40%, rgba(2,4,10,1) 100%) !important;
  backdrop-filter: blur(40px) !important;
}

/* Disable only the VISUAL parts — keep layout */
/* We use opacity 0 instead of display:none */
.hero-bg-mask,
.hero-beam-layer,
.orb,
.orb-secondary,
.hero-beam,
.hero-particles,
.hero-particle-dot {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* ========================================= */
/* 3. 聊天窗口手机端修正 - 限制为 60% */
/* ========================================= */
@media (max-width: 668px) {
  .woot-widget-holder {
    width: 85% !important;        /* 宽度占 85% (太窄了不好打字) */
    height: 60% !important;       /* 高度严格限制为 60% */
    max-height: 600px !important; /* 防止在大屏手机上太长 */
    
    /* 居中定位 */
    left: 7.5% !important;        /* (100% - 85%) / 2 */
    right: auto !important;
    
    bottom: 90px !important;      /* 离底部留出空间 */
    top: auto !important;
    
    border-radius: 16px !important; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
  }

  /* 确保内部 iframe 也同步圆角 */
  .woot-widget-holder iframe {
    border-radius: 16px !important;
  }

  /* 调整启动按钮位置 */
  .woot-widget-bubble {
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
  }
}
/* ========================================= */
/* 4. 醒目特效：给聊天按钮加“呼吸光环” */
/* ========================================= */
@keyframes pulse-glow {
  0% {
    /* 初始状态：光环贴着按钮，颜色是你网站的主题橙色 */
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  70% {
    /* 扩散状态：光环向外扩散 15px，并变得透明 */
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* 应用动画：无限循环，每 2 秒跳一次 */
.woot-widget-bubble {
  animation: pulse-glow 2s infinite !important;
}