/* biabaguru.com — RedwoodJS-inspired, Red full-stack framework style */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  --red-100: #fee2e2;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --green-500: #22c55e;
  --bg-900: #1a0a0a;
  --bg-800: #1f0e0e;
  --bg-700: #2a1010;
  --bg-600: #3b1414;
  --surface: #2a1414;
  --surface-2: #341818;
  --border: #5c2020;
  --border-light: #7a2a2a;
  --text-primary: #f5e9e9;
  --text-secondary: #d4a8a8;
  --text-muted: #a87070;
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Arial, sans-serif;
  background: var(--bg-900);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { display: block; flex-shrink: 0; }
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface); }
.nav-lang { border: 1px solid var(--border); margin-left: 8px; }
.nav-cta {
  background: var(--red-700);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--red-600); transform: translateY(-1px); }
.nav-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}
.nav-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-800);
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav-cta-mobile {
  margin-top: 8px;
  background: var(--red-700);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

/* ---- HERO ---- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-600);
  border: 1px solid var(--border-light);
  color: var(--red-400);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-accent {
  color: var(--red-500);
  display: block;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  background: var(--red-700);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(185,28,28,0.35);
}
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(185,28,28,0.5); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: var(--surface); border-color: var(--red-700); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--red-500); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--red-400);
  letter-spacing: -0.02em;
}
.stat-item span { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: block; }

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-wrap { width: 100%; max-width: 440px; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-700);
  border-bottom: 1px solid var(--border);
}
.hc-dot { width: 12px; height: 12px; border-radius: 50%; }
.hc-red { background: #ff5f57; }
.hc-yellow { background: #febc2e; }
.hc-green { background: #28c840; }
.hc-title { font-size: 12px; color: var(--text-muted); margin-left: 6px; font-family: monospace; }
.hc-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.hc-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.hc-label { color: var(--text-muted); }
.hc-val { color: var(--text-secondary); font-weight: 500; text-align: right; }
.hc-green-text { color: #22c55e; }
.hc-amber-text { color: var(--amber-400); }
.hc-divider { height: 1px; background: var(--border); }
.hc-cta-wrap { display: flex; justify-content: center; }
.hc-btn {
  background: var(--red-700);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}
.hc-btn:hover { background: var(--red-600); }

/* ---- GET STARTED ---- */
.getstarted {
  background: var(--bg-800);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}
.gs-inner { max-width: var(--max-w); margin: 0 auto; }
.gs-heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.gs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.gs-card:hover { border-color: var(--red-700); transform: translateY(-3px); }
.gs-icon { margin-bottom: 16px; }
.gs-card h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.gs-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.gs-link {
  background: none;
  border: none;
  color: var(--red-500);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.gs-link:hover { color: var(--red-400); text-decoration: underline; }

/* ---- FEATURES ---- */
.features {
  padding: 80px 24px;
}
.feat-inner { max-width: var(--max-w); margin: 0 auto; }
.feat-header {
  text-align: center;
  margin-bottom: 56px;
}
.feat-header h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.feat-header p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.feat-card:hover { border-color: var(--red-700); box-shadow: 0 0 0 1px var(--red-900); }
.feat-icon { margin-bottom: 16px; }
.feat-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ---- SPLIT ---- */
.split-section {
  background: var(--bg-800);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.split-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-badge {
  display: inline-block;
  background: var(--bg-600);
  border: 1px solid var(--border-light);
  color: var(--red-400);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.split-text h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}
.split-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }
.split-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.split-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-secondary); }
.split-list li svg { flex-shrink: 0; margin-top: 2px; }
.split-btn { min-width: 200px; }

/* Security panel */
.security-panel {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.sp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.sp-badge-ok {
  margin-left: auto;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
}
.sp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.sp-label { color: var(--text-muted); width: 60px; flex-shrink: 0; }
.sp-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-700);
  border-radius: 3px;
  overflow: hidden;
}
.sp-fill { height: 100%; background: var(--red-700); border-radius: 3px; transition: width .6s; }
.sp-fill-orange { background: #f97316; }
.sp-fill-green { background: #22c55e; }
.sp-pct { color: var(--text-secondary); font-size: 12px; font-weight: 600; width: 48px; text-align: right; }
.sp-events {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-event { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.sp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sp-dot-green { background: #22c55e; box-shadow: 0 0 6px #22c55e66; }
.sp-dot-amber { background: var(--amber-400); box-shadow: 0 0 6px #fbbf2466; }

/* ---- PLATFORMS ---- */
.platforms { padding: 80px 24px; }
.plat-inner { max-width: var(--max-w); margin: 0 auto; }
.plat-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.plat-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 44px; max-width: 560px; }
.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.plat-card:hover { border-color: var(--red-700); transform: translateY(-4px); }
.plat-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.plat-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.plat-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.plat-btn {
  width: 100%;
  border: 1px solid var(--border-light);
  background: var(--bg-700);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.plat-btn:hover { border-color: var(--red-700); background: var(--surface); }

/* ---- STATS BAND ---- */
.stats-band {
  background: var(--red-900);
  border-top: 1px solid var(--red-800);
  border-bottom: 1px solid var(--red-800);
  padding: 48px 24px;
}
.sb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.sb-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 16px;
}
.sb-item strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.sb-item span { font-size: 13px; color: rgba(255,255,255,0.7); }
.sb-sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ---- FAQ ---- */
.faq { padding: 80px 24px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--red-700); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  gap: 12px;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--red-500);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-q::-webkit-details-marker { display: none; }
.faq-a {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-a p { padding-top: 16px; }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--bg-700);
  border-top: 1px solid var(--border);
  padding: 80px 24px;
}
.cta-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band-text h2 {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}
.cta-band-text p { font-size: 16px; color: var(--text-secondary); max-width: 520px; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band-btn { white-space: nowrap; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-900);
  border-top: 1px solid var(--border);
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 320px; }
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-col li a:hover { color: var(--red-400); }
.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color .2s;
  font-family: inherit;
}
.footer-link-btn:hover { color: var(--red-400); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.footer-lang a { color: var(--text-muted); text-decoration: none; font-size: 12px; }
.footer-lang a:hover { color: var(--red-400); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .split-inner { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu { display: flex; }
  .hero { padding: 48px 16px 40px; }
  .hero-h1 { font-size: 38px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .gs-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .sb-inner { gap: 0; }
  .sb-sep { display: none; }
  .sb-item { min-width: 50%; }
}

@media (max-width: 480px) {
  .hero { padding: 36px 16px 32px; }
  .hero-h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-item strong { font-size: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; }
  .getstarted, .features, .split-section, .platforms, .faq, .cta-band { padding: 48px 16px; }
  .faq-q { font-size: 14px; padding: 16px 18px; }
  .cta-band-actions .btn-primary,
  .cta-band-actions .btn-ghost { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
