/* babiahub.com — Deep Dark + Cyan Serverless theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:    #080c16;
  --bg-surface: #0d1424;
  --bg-card:    #111827;
  --bg-card2:   #0f1a2e;
  --cyan:       #00d4ff;
  --cyan-dim:   #00a8cc;
  --cyan-glow:  rgba(0,212,255,0.15);
  --cyan-glow2: rgba(0,212,255,0.06);
  --text:       #e8edf5;
  --text-muted: #8090a8;
  --text-dim:   #4a5568;
  --border:     rgba(0,212,255,0.12);
  --border-dim: rgba(255,255,255,0.06);
  --green:      #00e5a0;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --font-mono:  'JetBrains Mono','Fira Code','Courier New',monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem,5vw,3.6rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.6rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.5rem); }
p  { color: var(--text-muted); line-height: 1.75; }
a  { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ─── NAVIGATION ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,22,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; outline: none;
  transition: all .2s; white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--cyan);
  color: #000;
}
.btn-primary:hover {
  background: #22e0ff;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--cyan-glow2);
  border-color: var(--cyan);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  min-height: 52px;
}
.btn-xl {
  padding: 16px 36px;
  font-size: 16px;
  min-height: 56px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%),
              var(--bg-base);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--cyan); }

.hero-sub {
  font-size: clamp(1rem,2vw,1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 2rem; font-weight: 800;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ─── TICKER BAND ─── */
.ticker-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 12px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex; gap: 48px;
  animation: ticker 30s linear infinite;
  width: max-content;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-size: 13px; font-weight: 600;
}
.ticker-name { color: var(--text-muted); }
.ticker-price { color: var(--text); font-family: var(--font-mono); }
.ticker-chg-up { color: var(--green); }
.ticker-chg-dn { color: #ff4d6d; }

/* ─── SECTION COMMONS ─── */
section { position: relative; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-muted); max-width: 560px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin: 0 auto; }

/* ─── FEATURES GRID ─── */
.features {
  padding: 96px 0;
  background: var(--bg-base);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  transition: background .2s;
}
.feature-card:hover { background: #151d2e; }

.feature-icon {
  width: 44px; height: 44px;
  background: var(--cyan-glow);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── PLATFORM SHOWCASE ─── */
.platform {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.platform-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.platform-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(0,212,255,0.05);
}
.platform-terminal {
  background: #06090f;
  border-bottom: 1px solid var(--border-dim);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title { font-size: 12px; color: var(--text-dim); margin-left: 8px; font-family: var(--font-mono); }
.platform-code {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}
.code-line { display: block; }
.c-comment { color: #4a5568; }
.c-key    { color: #00d4ff; }
.c-str    { color: #00e5a0; }
.c-num    { color: #f59e0b; }
.c-dim    { color: #6b7280; }
.c-white  { color: #e8edf5; }

.platform-text { }
.platform-text h2 { margin-bottom: 20px; }
.platform-text p  { margin-bottom: 24px; }

.platform-checklist {
  list-style: none; margin-bottom: 36px;
  display: flex; flex-direction: column; gap: 12px;
}
.platform-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-muted);
}
.check-icon {
  flex-shrink: 0; width: 18px; height: 18px;
  background: rgba(0,229,160,0.1);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-icon svg { width: 10px; height: 10px; stroke: var(--green); stroke-width: 2.5; fill: none; }

/* ─── SECURITY SECTION ─── */
.security {
  padding: 96px 0;
  background: var(--bg-base);
}
.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.security-text h2 { margin-bottom: 20px; }
.security-text p { margin-bottom: 32px; }

.security-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 24px;
}
.metric-card:hover { border-color: rgba(0,212,255,0.2); }
.metric-num {
  font-size: 1.8rem; font-weight: 800;
  color: var(--cyan);
  font-family: var(--font-mono);
  display: block; margin-bottom: 4px;
}
.metric-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ─── DOWNLOAD SECTION ─── */
.download {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 16px;
  margin-top: 48px;
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}
.dl-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,212,255,0.08);
}
.dl-card-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  background: var(--cyan-glow);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.dl-card-icon svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-card h3 { font-size: 1rem; margin-bottom: 6px; }
.dl-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.dl-card .btn { width: 100%; justify-content: center; }

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, #060c1a 0%, #0a1428 50%, #060c1a 100%);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,212,255,0.07) 0%, transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 40px; font-size: 1.05rem; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-dim);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px; color: var(--text-muted);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-dim);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); }
.footer-lang {
  font-size: 12px; color: var(--text-muted);
}
.footer-lang a { color: var(--cyan); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .platform-inner, .security-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .security-metrics { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
}

@media (max-width: 420px) {
  .download-grid { grid-template-columns: 1fr; }
  .security-metrics { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}

/* ─── EN PAGE SPECIFIC ─── */
.lang-en body {
  font-size: 15px;
}
