/* tj-binance.com — deep indigo/purple identity-SaaS theme (auth0 ref) */
:root {
  --bg: #0a0b14;
  --bg2: #0f1023;
  --bg3: #13152a;
  --surface: #161830;
  --surface2: #1c1f3a;
  --border: rgba(99,102,241,0.18);
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent3: #a5b4fc;
  --purple: #7c3aed;
  --teal: #06b6d4;
  --text: #e8e9f5;
  --text2: #a0a3c4;
  --text3: #6b6f9a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 32px rgba(99,102,241,0.12);
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,20,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
  padding: 0 22px;
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(99,102,241,.5);
}
.btn-primary:hover {
  background: #5254d8;
  box-shadow: 0 4px 24px rgba(99,102,241,.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--accent3); }
.btn-lg {
  font-size: 16px;
  padding: 0 32px;
  min-height: 52px;
  border-radius: 12px;
}
.btn-outline-light {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 0 22px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.btn-outline-light:hover { background: var(--surface); color: var(--text); }

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(99,102,241,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 25%, rgba(124,58,237,.18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 10% 60%, rgba(6,182,212,.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.28);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent3);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}
.hero-h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 20px;
}
.hero-h1 span {
  background: linear-gradient(135deg, var(--accent2), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 48px rgba(0,0,0,.4);
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.hc-red { background: #ef4444; }
.hc-yellow { background: #eab308; }
.hc-green { background: #22c55e; }
.hero-card-title {
  font-size: 13px;
  color: var(--text3);
  margin-left: 4px;
}
.code-block {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  border: 1px solid rgba(255,255,255,.05);
}
.code-kw { color: #c084fc; }
.code-str { color: #86efac; }
.code-prop { color: var(--accent3); }
.code-val { color: #fcd34d; }
.code-comment { color: var(--text3); }
.hero-flow {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.flow-step {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text2);
}
.flow-step strong {
  display: block;
  font-size: 12px;
  color: var(--accent3);
  margin-bottom: 2px;
}
.flow-arrow { color: var(--text3); font-size: 14px; }

/* ---- LOGOS BAND ---- */
.logos-band {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logos-row svg {
  opacity: .4;
  transition: opacity .2s;
  height: 22px;
  width: auto;
}
.logos-row svg:hover { opacity: .7; }

/* ---- FEATURES ---- */
.section { padding: 88px 0; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.section-h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* feature grid 2-col */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.features-split.reverse { direction: rtl; }
.features-split.reverse > * { direction: ltr; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.2);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* dark card panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel-sm { padding: 20px; }
.panel-grad {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(99,102,241,.05) 100%);
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 8px 40px rgba(99,102,241,.1);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}
.card-accent-purple { background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.2); }
.card-accent-teal { background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.2); }
.card-accent-violet { background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.2); }

/* number accent */
.num-accent {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 6px;
  display: block;
}

/* ---- STATS ROW ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.stat-val {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-val span { color: var(--accent2); }
.stat-desc {
  font-size: 14px;
  color: var(--text2);
}

/* ---- INTEGRATIONS ---- */
.integrations-section { background: var(--bg2); }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.int-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s;
}
.int-card:hover { border-color: rgba(99,102,241,.4); }
.int-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.int-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.int-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* ---- SECURITY SECTION ---- */
.security-section { background: var(--bg3); }
.security-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 56px;
  align-items: center;
}
.security-points { display: flex; flex-direction: column; gap: 20px; }
.sec-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sec-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6,182,212,.18);
  border: 1px solid rgba(6,182,212,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.sec-check svg { width: 12px; height: 12px; }
.sec-point h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.sec-point p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}
.security-visual {
  position: relative;
}
.shield-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.shield-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6,182,212,.2), rgba(99,102,241,.2));
  border: 1px solid rgba(99,102,241,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-stat {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.shield-label { font-size: 14px; color: var(--text2); margin-bottom: 20px; }
.shield-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shield-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}
.shield-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px #22c55e;
}

/* ---- FAQ ---- */
.faq-section { background: var(--bg2); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(99,102,241,.35); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
details[open] .faq-q { color: var(--accent3); }
details summary { list-style: none; }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text3);
  transition: transform .2s;
}
details[open] .faq-chevron { transform: rotate(180deg); color: var(--accent2); }
.faq-a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(124,58,237,.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
  padding: 80px 0;
}
.cta-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.cta-sub {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text3);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo-text { font-size: 18px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text3);
  margin-top: 12px;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-split { grid-template-columns: 1fr; gap: 32px; }
  .features-split.reverse { direction: ltr; }
  .cards-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .cta-inner { padding: 60px 0; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .integrations-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* utility */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent2); }

/* tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--accent3);
  font-weight: 500;
}
.tag-teal {
  background: rgba(6,182,212,.1);
  border-color: rgba(6,182,212,.25);
  color: #67e8f9;
}

/* divider */
.divider { width: 40px; height: 3px; background: linear-gradient(to right, var(--accent), var(--purple)); border-radius: 2px; margin: 16px 0; }
