/* babiacore.com — render.com-inspired dark/teal cloud-platform style */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a1628;
  --bg2: #0d1f3c;
  --bg3: #112240;
  --teal: #00d4aa;
  --teal2: #00b894;
  --blue: #00a3ff;
  --text: #e2e8f0;
  --muted: #6b8aad;
  --border: #1e3a5f;
  --card: #0f1e35;
  --radius: 12px;
  --max: 1120px;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-img { width: 36px; height: 36px; flex-shrink: 0; }
.nav-brand { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal);
  color: var(--bg) !important;
  font-size: 14px; font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  border: none; cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal2); text-decoration: none; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 96px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,170,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 30%, rgba(0,163,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,170,.1);
  border: 1px solid rgba(0,212,170,.3);
  color: var(--teal);
  font-size: 13px; font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #fff;
  max-width: 860px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--teal); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 56px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #0a1628;
  font-size: 16px; font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
  min-height: 48px;
}
.btn-primary:hover { opacity: .92; transform: translateY(-2px); text-decoration: none; color: #0a1628; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text);
  font-size: 16px; font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  min-height: 48px;
}
.btn-secondary:hover { border-color: var(--teal); background: rgba(0,212,170,.06); text-decoration: none; color: var(--text); transform: translateY(-2px); }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.hero-stat span { font-size: 13px; color: var(--muted); }

/* ─── SECTION BASE ─── */
section { padding: 80px 24px; }
.container { max-width: var(--max); margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-desc {
  font-size: 17px; color: var(--muted);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 48px;
}

/* ─── PLATFORMS ─── */
.platforms { background: var(--bg2); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.platform-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.platform-icon {
  width: 48px; height: 48px;
  background: rgba(0,212,170,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.platform-icon svg { width: 26px; height: 26px; }
.platform-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.platform-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.platform-tag {
  display: inline-block;
  background: rgba(0,212,170,.08);
  border: 1px solid rgba(0,212,170,.2);
  color: var(--teal);
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}

/* ─── STEPS ─── */
.steps { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}
.step { position: relative; }
.step-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--bg);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.step h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ─── FEATURES BENTO ─── */
.features { background: var(--bg2); }
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color .2s;
}
.bento-card:hover { border-color: rgba(0,212,170,.4); }
.bento-card.wide { grid-column: 1 / -1; }
.bento-card.tall { grid-row: span 2; }
.feature-icon {
  width: 44px; height: 44px;
  margin-bottom: 16px;
  color: var(--teal);
}
.bento-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.bento-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.bento-list {
  list-style: none; margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.bento-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.bento-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ─── TRUST / SECURITY ─── */
.trust { background: var(--bg); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.trust-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-val { font-size: 36px; font-weight: 800; color: var(--teal); display: block; margin-bottom: 6px; }
.trust-label { font-size: 14px; color: var(--muted); }

/* ─── DEPLOY / CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, rgba(0,212,170,.12) 0%, rgba(0,163,255,.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.8px; }
.cta-band p { font-size: 17px; color: var(--muted); margin-bottom: 40px; }
.cta-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ─── FAQ ─── */
.faq { background: var(--bg2); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 16px; font-weight: 600; color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color .2s;
}
.faq-q:hover { color: var(--teal); }
.faq-q svg { flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide, .bento-card.tall { grid-column: unset; grid-row: unset; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { letter-spacing: -0.5px; }
  .hero-stats { gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
