/* bavyx.com — deep-blue full-stack framework style (remix.run inspired) */

:root {
  --bg:         #0f1117;
  --bg2:        #161b27;
  --bg3:        #1e2538;
  --accent:     #3b82f6;
  --accent2:    #60a5fa;
  --accent3:    #1d4ed8;
  --text:       #e8ecf4;
  --muted:      #8b95aa;
  --border:     #252d3d;
  --radius:     10px;
  --nav-h:      64px;
  --max-w:      1120px;
  --font:       'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}
.logo-wrap img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-ghost {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent2); }
.btn-primary {
  padding: 9px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent3); transform: translateY(-1px); }

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(29,78,216,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 20px;
  background: rgba(59,130,246,0.08);
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 840px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
.btn-lg-primary {
  background: var(--accent);
  color: #fff;
}
.btn-lg-primary:hover { background: var(--accent3); }
.btn-lg-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border) !important;
}
.btn-lg-ghost:hover { border-color: var(--accent) !important; }

/* ─── STATS BAR ─────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 32px 24px;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: 13px;
  color: var(--muted);
}

/* ─── PLATFORM SECTION ──────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(59,130,246,0.12);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ─── PLATFORM GRID ─────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.platform-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.platform-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.platform-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── WHY SECTION ───────────────────────────────────── */
.why-section {
  padding: 80px 24px;
  background: var(--bg2);
}
.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-visual {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 32px;
}
.code-block {
  background: #0b0f1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #a3b3cc;
  overflow: hidden;
}
.code-block .kw { color: #60a5fa; }
.code-block .str { color: #86efac; }
.code-block .cmt { color: #4b5573; font-style: italic; }
.code-block .fn { color: #fbbf24; }
.why-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.why-feature p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── SECURITY SECTION ──────────────────────────────── */
.security-section {
  padding: 80px 24px;
}
.security-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.sec-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.sec-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 8px;
}
.sec-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(59,130,246,0.1);
  color: var(--accent2);
  border: 1px solid rgba(59,130,246,0.2);
}

/* ─── DOWNLOAD CTA BAND ─────────────────────────────── */
.cta-band {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta-band p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.3); }
.btn-dl-primary { background: var(--accent); color: #fff; }
.btn-dl-primary:hover { background: var(--accent3); }
.btn-dl-ghost { background: var(--bg3); color: var(--text); border: 1.5px solid var(--border) !important; }
.btn-dl-ghost:hover { border-color: var(--accent) !important; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  padding: 56px 24px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-wrap {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom .disclaimer {
  font-size: 0.75rem;
  color: #5a6070;
  max-width: 600px;
  text-align: right;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 72px 20px 60px; }
  .platform-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .disclaimer { text-align: left; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-row { flex-direction: column; align-items: center; }
}
@media (max-width: 390px) {
  :root { font-size: 15px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
}
