/* baquix.com — deep-blue ORM/database theme (Prisma-inspired) */
:root {
  --bg-deep: #0c1220;
  --bg-surface: #111827;
  --bg-card: #1a2236;
  --bg-card2: #1e2a40;
  --accent: #5b7fff;
  --accent-2: #7c9dff;
  --accent-glow: rgba(91,127,255,0.18);
  --accent-dark: #2c4fd9;
  --green: #22d3a0;
  --text-primary: #e8edf8;
  --text-secondary: #8fa3c8;
  --text-muted: #5a6f96;
  --border: rgba(91,127,255,0.14);
  --border-light: rgba(255,255,255,0.06);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.38);
  --shadow-btn: 0 0 24px rgba(91,127,255,0.32);
  --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-w: 1200px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
img, svg { max-width: 100%; display: block; }

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

/* ─── Nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(12,18,32,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo img { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font);
}
.btn-nav:hover { background: var(--accent-glow); color: #fff; }
.btn-nav-fill {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}
.btn-nav-fill:hover { background: var(--accent-dark); box-shadow: var(--shadow-btn); }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91,127,255,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(34,211,160,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,127,255,0.12);
  border: 1px solid rgba(91,127,255,0.28);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.35; } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-2), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 0 36px rgba(91,127,255,0.45); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-glow); }

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0 0;
  border-top: 1px solid var(--border-light);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Schema / Features ─── */
.section { padding: 96px 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.22;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* Feature grid — Prisma-style left text + right schema card */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

/* Schema card */
.schema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.schema-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.schema-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}
.schema-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.schema-dot.red { background: #ff5f57; }
.schema-dot.yellow { background: #ffbd2e; }
.schema-dot.green { background: #28c840; }
.schema-filename {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.code-line { display: block; }
.kw { color: #7aa6ff; }
.ty { color: #82e3c8; }
.st { color: #f7c67f; }
.cm { color: #4a6080; font-style: italic; }
.nm { color: #e8edf8; }
.op { color: #a889f5; }

/* ─── Download grid ─── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}
.dl-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(91,127,255,0.2); }
.dl-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.dl-card p { font-size: 0.88rem; color: var(--text-secondary); flex: 1; line-height: 1.6; }
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}
.btn-dl:hover { background: var(--accent-dark); }

/* ─── Metrics band ─── */
.metrics-band {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.metric-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-accent { color: var(--accent-2); }
.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── Workflow steps ─── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.steps-list::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-2);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-body h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-body p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Security ─── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.sec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.sec-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(91,127,255,0.12);
  border: 1px solid rgba(91,127,255,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.sec-body h3 { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sec-body p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, rgba(91,127,255,0.12) 0%, rgba(34,211,160,0.06) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
.site-footer {
  background: #080e1a;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-logo img { width: 32px; height: 32px; }
.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.78rem; color: #3a4d6a; max-width: 500px; line-height: 1.55; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse { direction: ltr; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 80px 0 64px; }
  .hero-stats { gap: 24px; }
  .dl-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns button { width: 100%; justify-content: center; }
  .steps-list::before { display: none; }
}
