/* ============================================================
   BitTool.ai — Public site (landing / pricing) styles
   ============================================================ */

body { font-size: var(--text-md); }

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

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none !important;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
/* margin-left:auto, not a flex:1 spacer elsewhere — the nav that used to push
   this group right is display:none below 720px, which left the actions bunched
   against the logo. On desktop the nav still absorbs the free space, so this
   changes nothing there. */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.mobile-nav-btn { display: none; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-actions .btn-ghost-signin { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 40px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background:
    radial-gradient(600px 360px at 50% 40%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 300px at 62% 30%, rgba(34, 211, 238, 0.07), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-gradient);
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 820px;
  font-size: clamp(2.5rem, 6.5vw, var(--text-5xl));
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
}

/* Hero composer mock */
.hero-composer {
  display: block;
  margin: 40px auto 0;
  max-width: 660px;
  text-align: left;
  text-decoration: none !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: text;
}
.hero-composer:hover { border-color: var(--border-strong); }
.hero-composer .hc-input {
  color: var(--text-3);
  font-size: var(--text-lg);
  padding: 2px 4px 30px;
}
.hero-composer .hc-bar { display: flex; align-items: center; gap: 8px; }
.hero-composer .hc-bar .spacer { flex: 1; }
.hero-composer .hc-icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3);
}
.hero-composer .hc-icon svg { width: 18px; height: 18px; }
.hero-composer .hc-send {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-composer .hc-send svg { width: 18px; height: 18px; }

.hero-chips {
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
.hero-chip:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.hero-chip svg { width: 14px; height: 14px; color: var(--text-3); }

.hero-cta { margin-top: 34px; display: flex; justify-content: center; gap: 12px; }
.hero-trust { margin-top: 16px; font-size: var(--text-sm); color: var(--text-3); }

/* ---------- Demo (workspace preview) ---------- */
.demo { padding: 56px 0 20px; }
.demo-window {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.demo-titlebar .tb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demo-titlebar .tb-title {
  flex: 1; text-align: center;
  font-size: var(--text-xs); color: var(--text-3); font-weight: 500;
}
.demo-body { padding: 26px clamp(18px, 5vw, 48px) 30px; }
.demo-q {
  display: flex;
  justify-content: flex-end;
}
.demo-q-bubble {
  max-width: 78%;
  background: var(--surface-3);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-xs) var(--radius-lg);
  padding: 11px 16px;
  font-size: var(--text-base);
}
.demo-steps { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.demo-step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: var(--text-base);
  color: var(--text-2);
  opacity: 0;
  animation: demo-in 0.5s var(--ease) forwards;
}
.demo-step:nth-child(1) { animation-delay: 0.4s; }
.demo-step:nth-child(2) { animation-delay: 1.1s; }
.demo-step:nth-child(3) { animation-delay: 1.8s; }
.demo-step:nth-child(4) { animation-delay: 2.5s; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-step .ds-ic {
  width: 20px; height: 20px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}
.demo-step .ds-ic svg { width: 12px; height: 12px; }
.demo-step.active .ds-ic { background: var(--accent-soft); color: var(--accent); }
.demo-step.active .ds-ic .spin {
  width: 11px; height: 11px;
  border: 1.8px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: bt-spin 0.9s linear infinite;
}
.demo-progress {
  margin-top: 22px;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}
.demo-progress i {
  display: block; height: 100%;
  width: 0;
  background: var(--brand-gradient);
  border-radius: 2px;
  animation: demo-progress 3.4s var(--ease) 0.4s forwards;
}
@keyframes demo-progress { to { width: 86%; } }
.demo-file {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 550;
  opacity: 0;
  animation: demo-in 0.5s var(--ease) 3.3s forwards;
}
.demo-file svg { width: 17px; height: 17px; color: var(--danger); }

/* ---------- Networks strip ---------- */
.networks { padding: 46px 0 8px; text-align: center; }
.networks p {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}
.network-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  color: var(--text-3);
  font-weight: 600;
  font-size: var(--text-base);
}
.network-list span { display: inline-flex; align-items: center; gap: 7px; opacity: 0.8; }
.network-list svg { width: 15px; height: 15px; }

/* ---------- Stats band ---------- */
.stats-band {
  margin: 40px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px 10px;
  border-block: 1px solid var(--border);
}
@media (max-width: 640px) { .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }
.stat-item { text-align: center; }
.stat-item b {
  display: block;
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item span { display: block; margin-top: 3px; font-size: var(--text-sm); color: var(--text-3); }

/* ---------- Use cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.usecase-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.usecase-head { display: flex; align-items: center; gap: 12px; }
.usecase-head .feature-icon { width: 36px; height: 36px; }
.usecase-head .feature-icon svg { width: 18px; height: 18px; }
.usecase-title { font-size: var(--text-md); font-weight: 650; letter-spacing: -0.01em; }
.usecase-desc { margin-top: 2px; font-size: var(--text-sm); color: var(--text-3); line-height: 1.45; }
.usecase-examples { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.usecase-ex {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
.usecase-ex:hover { border-color: var(--accent); color: var(--text); background: var(--surface); }
.usecase-ex .ue-text { flex: 1; min-width: 0; }
.usecase-ex svg { width: 13px; height: 13px; flex: none; color: var(--text-3); opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.usecase-ex:hover svg { opacity: 1; color: var(--accent-text); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  letter-spacing: -0.025em;
  font-weight: 650;
}
.section-head p { margin-top: 14px; color: var(--text-2); font-size: var(--text-md); line-height: 1.6; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { margin-top: 16px; font-size: var(--text-lg); font-weight: 600; }
.feature-card p { margin-top: 8px; color: var(--text-2); font-size: var(--text-base); line-height: 1.6; }

/* How it works */
.how { background: var(--surface); border-block: 1px solid var(--border); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; padding: 8px 6px; }
.how-num {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: var(--text-sm);
  font-weight: 650;
}
.how-step h3 { margin-top: 16px; font-size: var(--text-lg); }
.how-step p { margin-top: 8px; color: var(--text-2); font-size: var(--text-base); line-height: 1.6; }

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 680px) { .security-grid { grid-template-columns: 1fr; } }
.security-item {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.security-item .si-ic {
  width: 36px; height: 36px; flex: none;
  border-radius: var(--radius-md);
  background: var(--success-soft);
  color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
}
.security-item .si-ic svg { width: 18px; height: 18px; }
.security-item h3 { font-size: var(--text-md); font-weight: 600; }
.security-item p { margin-top: 6px; color: var(--text-2); font-size: var(--text-base); line-height: 1.55; }

/* Pricing components (.plans-grid / .plan-card / .topup-*) live in plans.css
   — shared with the in-app Billing view. */

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--dur) var(--ease); flex: none; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--text-2); font-size: var(--text-base); line-height: 1.62; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 560px;
  background: radial-gradient(600px 320px at 50% 60%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 { font-size: clamp(1.75rem, 4.4vw, var(--text-3xl)); letter-spacing: -0.025em; font-weight: 650; }
.final-cta p { margin-top: 12px; color: var(--text-2); }
.final-cta .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 40px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand p { margin-top: 12px; max-width: 300px; color: var(--text-3); font-size: var(--text-sm); line-height: 1.6; }
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.footer-col ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-2); font-size: var(--text-base); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: var(--text-sm);
}
.footer-bottom .footer-actions { display: flex; align-items: center; gap: 4px; }

/* ---------- Page shells (pricing) ---------- */
.page-hero { padding: 72px 0 12px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.03em; font-weight: 650; }
.page-hero p { margin: 14px auto 0; max-width: 560px; color: var(--text-2); font-size: var(--text-md); line-height: 1.6; }
