/* biabaflow.com — NestJS-inspired red/dark framework style */
:root {
  --red: #e0234e;
  --red-dark: #b91c3d;
  --red-light: #ff3d6e;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-section: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a8a8b3;
  --text-muted: #6b7280;
  --border: rgba(255,255,255,0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); color: var(--text-primary); }
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
  background: var(--bg-dark);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 50%, rgba(224,35,78,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(224,35,78,0.12);
  border: 1px solid rgba(224,35,78,0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--red-light);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--red); }
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hero-card-title {
  font-size: 13px;
  color: var(--text-muted);
  font-family: monospace;
}
.code-line {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
  padding: 2px 0;
}
.code-keyword { color: #c792ea; }
.code-string { color: #c3e88d; }
.code-fn { color: #82aaff; }
.code-comment { color: #546e7a; }
.code-red { color: var(--red-light); }

/* ── Section generic ── */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

/* ── Features grid ── */
.features-bg { background: var(--bg-section); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(224,35,78,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(224,35,78,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { color: var(--red); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Split section ── */
.split-section {
  padding: 80px 24px;
}
.split-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.split-panel {
  padding: 56px 48px;
}
.split-dark { background: #0d0d0d; }
.split-red { background: var(--red); }
.split-panel h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.split-panel p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0.85;
}
.split-red p { opacity: 0.9; }

/* ── Download section ── */
.download-bg { background: var(--bg-section); }
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}
.platform-card:hover { border-color: rgba(224,35,78,0.4); }
.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(224,35,78,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-card h3 { font-size: 16px; font-weight: 600; }
.platform-card p { font-size: 13px; color: var(--text-secondary); }

/* ── Stats band ── */
.stats-band {
  background: var(--red);
  padding: 56px 24px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; opacity: 0.85; }

/* ── Security section ── */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.security-list { display: flex; flex-direction: column; gap: 20px; }
.security-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.security-item:hover { border-color: rgba(224,35,78,0.3); }
.security-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(224,35,78,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.security-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.security-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.security-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.security-shield {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(224,35,78,0.2) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, #1a0008 0%, #0a0a0a 50%, #0d0005 100%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(224,35,78,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer ── */
.footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-secondary); }

/* ── Mobile hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .security-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 20px; min-height: auto; }
  .hero h1 { font-size: 30px; }
  .split-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 24px; }
  .split-panel { padding: 36px 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .platforms { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 8px; }
}

/* ── Nav mobile expanded ── */
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
  z-index: 99;
}
