/* =========================================================================
   BT Cash — Public Site Stylesheet
   Homepage, login, register.
   ========================================================================= */

:root {
  --primary:   #f7931a;
  --primary-2: #e07d05;
  --purple:    #7c3aed;
  --blue:      #2563eb;
  --green:     #16a34a;
  --red:       #dc2626;

  --bg:        #ffffff;
  --bg-alt:    #f7f8fc;
  --ink:       #0f172a;
  --muted:     #64748b;
  --border:    #e5e9f2;
  --card:      #ffffff;

  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow:    0 12px 40px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.12);

  --radius:    14px;
  --radius-lg: 20px;

  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: none; color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 900; letter-spacing: -0.02em; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(247,147,26,.35);
}
.btn.primary:hover { box-shadow: 0 12px 32px rgba(247,147,26,.45); }
.btn.ghost { background: transparent; }
.btn.ghost-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.btn.ghost-light:hover { background: rgba(255,255,255,.25); }
.btn.large { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
.btn.full { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.site-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 20px; color: var(--ink);
  text-decoration: none;
}
.site-brand img {
  width: 38px; height: 38px; border-radius: 10px; object-fit: contain;
}
.site-brand b { color: var(--primary); }
.site-nav {
  display: flex; gap: 22px; margin-left: auto;
}
.site-nav a {
  color: var(--muted); font-weight: 700; font-size: 14px;
}
.site-nav a:hover { color: var(--ink); }
.site-actions { display: flex; gap: 8px; align-items: center; }
.site-burger {
  display: none; background: none; border: 0; font-size: 22px;
  cursor: pointer; color: var(--ink);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(247,147,26,.18), transparent 60%),
    radial-gradient(700px 400px at -10% 40%, rgba(124,58,237,.14), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafbff 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(247,147,26,.12);
  color: var(--primary-2);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-cta.center { justify-content: center; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 18px;
  list-style: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 13px; font-weight: 600;
}

/* Hero card */
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform .3s;
}
.hero-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-card-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: #f7f8fc;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.hero-card-title {
  margin-left: auto; font-size: 11px; color: var(--muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.hero-card-body { padding: 22px; }
.hero-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.hero-row:last-of-type { border-bottom: 0; }
.hero-row .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-row .value { font-size: 20px; font-weight: 900; }
.hero-row .value.green { color: var(--green); }
.hero-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px; margin: 14px 0 0;
}
.hero-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 4px 4px 0 0;
  opacity: .85;
  animation: barPulse 3s ease-in-out infinite;
}
.hero-bars span:nth-child(2n) { background: linear-gradient(180deg, var(--purple), #5b21b6); }
.hero-bars span:nth-child(3n) { animation-delay: .4s; }
.hero-bars span:nth-child(2n) { animation-delay: .8s; }
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.08); }
}
.hero-card-foot {
  margin-top: 16px;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700;
}

/* ---------------- Stats strip ---------------- */
.stats-strip {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 40px 0;
  color: #fff;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-num {
  font-size: 34px; font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat-lbl { color: #cbd5e1; font-size: 13px; font-weight: 700; letter-spacing: .5px; }

/* ---------------- Sections ---------------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted); font-size: 16px; margin: 0;
}

/* ---------------- Feature grid ---------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #ffd9a8;
}
.feature-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff4e5, #ffe0b3);
  border-radius: 14px;
  font-size: 26px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------- Steps ---------------- */
.step-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.step {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 900;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(247,147,26,.35);
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------------- Pricing ---------------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 32px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 24px 60px rgba(247,147,26,.22);
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-12px); }
.price-tag {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
  letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap;
}
.price-card h3 { font-size: 20px; margin-bottom: 14px; }
.price-amount {
  display: flex; justify-content: center; align-items: baseline;
  gap: 4px; margin-bottom: 22px;
}
.price-currency { font-size: 22px; font-weight: 900; color: var(--muted); }
.price-num { font-size: 48px; font-weight: 900; }
.price-period { color: var(--muted); font-size: 13px; font-weight: 700; }
.price-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  text-align: left; flex: 1;
}
.price-features li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px; color: var(--ink);
}
.price-features li:last-child { border-bottom: 0; }

/* ---------------- FAQ ---------------- */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.faq[open] {
  border-color: #ffd9a8;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px; color: var(--primary);
  transition: transform .2s;
}
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

/* ---------------- CTA ---------------- */
.cta-section {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: #fff;
  margin-bottom: 12px;
}
.cta-inner p {
  color: #cbd5e1;
  font-size: 16px;
  margin: 0 0 26px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .site-brand {
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  color: #94a3b8; font-size: 14px; margin: 0;
  max-width: 320px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #94a3b8; font-size: 14px;
  padding: 5px 0;
}
.footer-col a:hover { color: #fbbf24; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12px; color: #64748b;
  gap: 12px; flex-wrap: wrap;
}

/* ---------------- Auth pages ---------------- */
.site-auth {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(247,147,26,.15), transparent 60%),
    radial-gradient(700px 400px at -10% 40%, rgba(124,58,237,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafbff 100%);
  min-height: 100vh;
}
.auth-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 22px; color: var(--ink);
  margin-bottom: 22px;
}
.auth-brand img { width: 40px; height: 40px; border-radius: 10px; }
.auth-brand b { color: var(--primary); }
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
}
.auth-card.wide { max-width: 560px; }
.auth-card h1 {
  font-size: 24px; margin-bottom: 6px;
}
.auth-card .muted {
  color: var(--muted); font-size: 14px;
  margin: 0 0 22px;
}
.auth-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 600;
}
.auth-alert.error { background: #fff1f2; color: #be123c; border: 1px solid #fecaca; }
.auth-form label {
  display: block; margin-bottom: 14px;
}
.auth-form label > span {
  display: block;
  font-size: 12px; font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(247,147,26,.15);
}
.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 6px 0 20px;
  font-size: 13px; color: var(--muted);
}
.auth-check { display: flex; align-items: center; gap: 6px; margin: 0; }
.auth-row a { font-weight: 700; }
.auth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.auth-grid label.full { grid-column: 1 / -1; }
.auth-hint {
  font-size: 12px; color: var(--muted);
  margin: 8px 0 18px;
}
.auth-foot {
  text-align: center;
  margin: 22px 0 0;
  font-size: 14px; color: var(--muted);
}
.auth-foot a { font-weight: 800; }
.auth-legal {
  margin-top: 22px;
  font-size: 11px; color: var(--muted);
  text-align: center;
  max-width: 400px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { transform: none; max-width: 480px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 750px) {
  .site-nav { display: none; }
  .site-burger { display: inline-block; }
  .site-header-inner { gap: 12px; }
  .site-actions .btn.ghost { display: none; }
  .site-actions .btn.primary { padding: 9px 14px; font-size: 13px; }

  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 12px;
    margin: 0;
  }
  .site-header.nav-open .site-nav a {
    font-size: 15px; padding: 8px 0;
  }

  .hero { padding: 50px 0 60px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-num { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .auth-card { padding: 26px 22px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-grid label.full { grid-column: auto; }
}