/* babialab.com — purple low-code platform style (appsmith.com skeleton) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:    #0F0726;
  --bg-dark:    #160D3A;
  --bg-card:    #1E1033;
  --bg-panel:   #2D1B69;
  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --purple-400: #A78BFA;
  --purple-300: #C4B5FD;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;
  --text-white: #FFFFFF;
  --text-light: #E9D5FF;
  --text-muted: #9CA3AF;
  --text-dim:   #6B7280;
  --green:      #10B981;
  --red:        #EF4444;
  --gold:       #F59E0B;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { color: var(--text-light); line-height: 1.7; }
a  { text-decoration: none; color: var(--purple-400); }
a:hover { color: var(--purple-300); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ─── Gradients / Backgrounds ────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg {
  background: linear-gradient(180deg, #160D3A 0%, #0F0726 100%);
}
.purple-glow {
  position: relative;
}
.purple-glow::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 7, 38, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 32px; width: auto; }
.nav-logo-text {
  font-size: 1.25rem; font-weight: 700; color: var(--text-white);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem; color: var(--text-light); font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple-300); }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.btn { cursor: pointer; border: none; font-family: inherit; font-weight: 600; border-radius: var(--radius); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-sm { font-size: 0.875rem; padding: 8px 20px; }
.btn-md { font-size: 0.95rem; padding: 12px 28px; }
.btn-lg { font-size: 1rem; padding: 14px 36px; border-radius: var(--radius-lg); }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid rgba(124,58,237,0.4); }
.btn-ghost:hover { border-color: var(--purple-400); color: var(--purple-300); }
.btn-primary { background: var(--purple-600); color: #fff; box-shadow: 0 0 20px rgba(124,58,237,0.4); }
.btn-primary:hover { background: var(--purple-500); transform: translateY(-1px); box-shadow: 0 4px 24px rgba(124,58,237,0.5); }
.btn-outline { background: transparent; color: var(--purple-300); border: 1.5px solid var(--purple-600); }
.btn-outline:hover { background: rgba(124,58,237,0.12); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-light); border-radius: 2px; }

/* ─── Hero ───────────────────────────────────────── */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--purple-300);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { max-width: 820px; margin: 0 auto 24px; }
.hero-desc { max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; color: var(--text-light); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 64px; }
.hero-img-wrap {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.25);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(124,58,237,0.15);
}
.hero-img-wrap img { width: 100%; height: auto; display: block; }

/* ─── Logo Band ───────────────────────────────────── */
.logo-band {
  padding: 48px 24px;
  border-top: 1px solid rgba(124,58,237,0.12);
  border-bottom: 1px solid rgba(124,58,237,0.12);
}
.logo-band-inner { max-width: 1200px; margin: 0 auto; }
.logo-band p {
  text-align: center;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 32px;
}
.logo-band-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 40px 64px;
}
.logo-band-item {
  font-size: 1rem; font-weight: 700; color: var(--text-dim);
  opacity: 0.55; letter-spacing: 0.05em; transition: opacity 0.2s;
}
.logo-band-item:hover { opacity: 0.9; color: var(--purple-300); }

/* ─── Section: Features (3-up cards like appsmith) ── */
.features-intro {
  text-align: center; max-width: 700px; margin: 0 auto 64px;
}
.features-intro h2 { margin-bottom: 16px; }
.features-intro p { font-size: 1.05rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.45); transform: translateY(-4px); }
.feature-card-img { width: 100%; height: auto; display: block; }
.feature-card-body { padding: 28px; }
.feature-card-tag {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--purple-400); margin-bottom: 10px;
}
.feature-card-body h3 { margin-bottom: 10px; color: var(--text-white); }
.feature-card-body p { font-size: 0.9rem; color: var(--text-muted); }

/* ─── Stats Band ─────────────────────────────────── */
.stats-band { background: var(--bg-dark); padding: 72px 24px; }
.stats-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; text-align: center;
}
.stat-item {}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: linear-gradient(135deg, #C4B5FD, #7C3AED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ─── Section: Two-col alternating (appsmith style) ─ */
.split-section { padding: 100px 24px; }
.split-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-inner.reverse { direction: rtl; }
.split-inner.reverse > * { direction: ltr; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1rem; }
.split-text ul { list-style: none; margin-bottom: 32px; }
.split-text ul li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; color: var(--text-light); font-size: 0.95rem;
}
.split-text ul li::before {
  content: ''; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(124,58,237,0.2);
  border: 1.5px solid var(--purple-500);
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23A78BFA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.1);
}
.split-img img { width: 100%; height: auto; display: block; }

/* ─── Testimonials ───────────────────────────────── */
.testimonials { background: var(--bg-dark); padding: 100px 24px; }
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-header h2 { margin-bottom: 12px; }
.testimonials-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s;
}
.testimonial-card:hover { border-color: rgba(124,58,237,0.4); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid rgba(124,58,237,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--purple-300);
  flex-shrink: 0;
}
.author-name { font-weight: 600; color: var(--text-white); font-size: 0.9rem; }
.author-role { font-size: 0.8rem; color: var(--text-dim); }

/* ─── Security / Trust ───────────────────────────── */
.security { padding: 100px 24px; }
.security-inner { max-width: 1200px; margin: 0 auto; }
.security-header { text-align: center; margin-bottom: 60px; }
.security-header h2 { margin-bottom: 12px; }
.security-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.security-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.security-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(124,58,237,0.15);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.security-card h4 { color: var(--text-white); margin-bottom: 8px; font-size: 1rem; }
.security-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Steps ──────────────────────────────────────── */
.steps { background: var(--bg-dark); padding: 100px 24px; }
.steps-header { text-align: center; margin-bottom: 60px; }
.steps-header h2 { margin-bottom: 12px; }
.steps-list {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 28px;
  position: relative;
}
.step-left {
  display: flex; flex-direction: column; align-items: center;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  flex-shrink: 0; position: relative; z-index: 1;
}
.step-line {
  width: 2px; flex: 1;
  background: linear-gradient(to bottom, var(--purple-600), rgba(124,58,237,0.1));
  margin: 4px 0;
  min-height: 48px;
}
.step-row:last-child .step-line { display: none; }
.step-content { padding: 12px 0 48px; }
.step-content h3 { margin-bottom: 8px; color: var(--text-white); }
.step-content p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── CTA Section ────────────────────────────────── */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box {
  position: relative; z-index: 1;
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  max-width: 860px; margin: 0 auto;
  box-shadow: 0 0 80px rgba(124,58,237,0.12);
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { max-width: 520px; margin: 0 auto 36px; color: var(--text-muted); font-size: 1.05rem; }
.cta-box-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-note { margin-top: 20px; font-size: 0.82rem; color: var(--text-dim); }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(124,58,237,0.15);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 28px; width: auto; }
.footer-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text-white); }
.footer-brand p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--purple-300); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(124,58,237,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-dim); }
.footer-lang { font-size: 0.82rem; color: var(--text-dim); display: flex; gap: 8px; }
.footer-lang a { color: var(--text-dim); transition: color 0.2s; }
.footer-lang a:hover { color: var(--purple-300); }
.footer-lang .active { color: var(--purple-400); font-weight: 600; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .split-inner { grid-template-columns: 1fr; gap: 40px; }
  .split-inner.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 80px 20px 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 48px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-list { max-width: 100%; }
}
@media (max-width: 390px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
  .hero-badge { font-size: 0.78rem; }
  .stat-num { font-size: 1.8rem; }
}
