/* ============================================================
   BrandSentra — main.css (Lovable Design System)
   Dark theme: Space Grotesk + Inter, green primary, orange accents
   ============================================================ */

/* --- Design Tokens / CSS Variables --- */
:root {
  /* Primary / Brand */
  --color-primary:       #3bba7e;
  --color-primary-light: #5dd49a;
  --color-primary-dim:   #2f9966;
  --color-primary-glow:  rgba(59, 186, 126, 0.15);

  /* Accent (orange/gold for labels) */
  --color-accent:        #f6a823;
  --color-accent-glow:   rgba(246, 168, 35, 0.12);

  /* Backgrounds */
  --bg-page:             #06070a;
  --bg-surface:          #0c0d12;
  --bg-surface-2:        #0a0b0f;
  --bg-surface-3:        #111219;
  --bg-card:             #0c0d12;
  --bg-card-hover:       #10111a;

  /* Borders */
  --border-subtle:       rgba(255, 255, 255, 0.06);
  --border-default:      rgba(255, 255, 255, 0.10);
  --border-strong:       rgba(255, 255, 255, 0.18);
  --border-primary:      rgba(59, 186, 126, 0.25);
  --border-accent:       rgba(246, 168, 35, 0.25);

  /* Text */
  --text-primary:        #e8ebee;
  --text-secondary:      rgba(232, 235, 238, 0.65);
  --text-muted:          rgba(232, 235, 238, 0.40);
  --text-faint:          rgba(232, 235, 238, 0.20);

  /* Status */
  --color-red:           #ef4444;
  --color-amber:         #f59e0b;
  --color-blue:          #60a5fa;
  --color-purple:        #a78bfa;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  80px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-deep:    0 24px 60px rgba(0,0,0,0.6);
  --shadow-glow:    0 0 60px rgba(59, 186, 126, 0.08);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 48px);  font-weight: 700; line-height: 1.1; }
h3 { font-size: clamp(18px, 2vw, 24px);  font-weight: 600; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.7; }
a  { text-decoration: none; color: inherit; }

/* --- Section label (orange accent) --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--space-4xl) 24px;
  position: relative;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--color-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--color-primary-dim);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 186, 126, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 16px;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.btn-ghost:hover { color: var(--text-primary); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(59, 186, 126, 0.15);
}

/* --- Stat cards --- */
.stat-card {
  text-align: center;
  padding: 24px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Step indicator --- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Icon box --- */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  border: none;
}

/* --- Grid layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.bs-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  section { padding: 48px 16px; }
  h1 { font-size: 28px; line-height: 1.15; }
  h2 { font-size: 24px; line-height: 1.2; }
  .bs-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .platform-badges { gap: 8px; }
  .platform-badge { padding: 8px 14px; font-size: 12px; }
  .security-grid { gap: 10px; }
  .security-badge { min-width: 100px; padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-bar { grid-template-columns: 1fr; }
  .stat-bar-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-bar-item:last-child { border-bottom: none; }
  .cta-section { padding: 32px 20px; }
  .founder-section { padding: 24px 20px; }
  .contact-form { padding: 24px 16px; overflow: hidden; }
  .contact-form .bs-name-row { grid-template-columns: 1fr !important; }
  /* Collapse inline grids on mobile */
  .mob-stack { grid-template-columns: 1fr !important; gap: 24px !important; }
  .mob-stack-2 { grid-template-columns: 1fr 1fr !important; }
}

/* --- Contact Form --- */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-glow);
}
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
}
.contact-form button[type="submit"] {
  width: 100%;
  background: var(--color-primary);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.contact-form button[type="submit"]:hover {
  background: var(--color-primary-dim);
  transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 14px;
}
.footer a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- FAQ --- */

.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 8px;
}
.faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  gap: 16px;
}
.faq-item__trigger-icon {
  color: var(--color-primary);
  font-size: 20px;
  flex-shrink: 0;
}
.faq-item__body {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

/* --- Comparison table --- */
.comparison-table {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  font-size: 14px;
  transition: background 0.2s;
}
.comparison-row:hover { background: rgba(59, 186, 126, 0.04); }
.comparison-row.header {
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Platform badges --- */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Ticker --- */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* --- Dashboard mockup --- */
.mockup-browser {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.mockup-bar {
  background: var(--bg-surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot.red   { background: rgba(239,68,68,0.6); }
.mockup-dot.amber { background: rgba(245,158,11,0.6); }
.mockup-dot.green { background: rgba(59,186,126,0.6); }

/* --- Badge pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-red    { background: rgba(239,68,68,0.12); color: var(--color-red); border: 1px solid rgba(239,68,68,0.2); }
.badge-amber  { background: rgba(245,158,11,0.12); color: var(--color-amber); border: 1px solid rgba(245,158,11,0.2); }
.badge-green  { background: rgba(59,186,126,0.12); color: var(--color-primary); border: 1px solid var(--border-primary); }

/* --- Utility --- */
.text-primary-color { color: var(--color-primary); }
.text-accent-color  { color: var(--color-accent); }
.text-muted         { color: var(--text-muted); }
.text-center        { text-align: center; }
.text-left          { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Hero gradient bg --- */
.hero-gradient {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 186, 126, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(246, 168, 35, 0.04) 0%, transparent 70%);
}

/* --- Section alternate bg --- */
.section-alt {
  background: var(--bg-surface-2);
}

/* ============================================================
   Mobile Hamburger Menu
   ============================================================ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  z-index: 1001;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animate to X when open */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-menu.open {
  display: flex;
  opacity: 1;
}
.nav-mobile-menu a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  width: 100%;
  max-width: 300px;
  text-align: center;
}
.nav-mobile-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.nav-mobile-menu .mobile-menu-divider {
  width: 60px;
  height: 1px;
  background: var(--border-default);
  margin: 12px 0;
}
.nav-mobile-menu .btn-ghost,
.nav-mobile-menu .btn-primary {
  display: block;
  width: 100%;
  max-width: 300px;
  text-align: center;
  margin-top: 4px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
}
