/* babiatech.com — dark code-editor theme, inspired by zed.dev */
:root {
  --bg:       #0d1117;
  --bg2:      #161b22;
  --bg3:      #21262d;
  --border:   #30363d;
  --accent:   #388bfd;
  --accent2:  #58a6ff;
  --accent3:  #1f6feb;
  --text:     #c9d1d9;
  --text2:    #8b949e;
  --text-hi:  #f0f6fc;
  --green:    #3fb950;
  --yellow:   #d29922;
  --radius:   6px;
  --radius-lg:12px;
  --max-w:    1200px;
  --font-mono: 'JetBrains Mono','Fira Code','Cascadia Code',monospace;
  --font-sans: -apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,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-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text-hi);
  text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a { color: var(--text2); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text-hi); text-decoration: none; }
.nav-cta {
  background: var(--accent3); color: #fff !important;
  padding: 7px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; transition: background .2s;
  display: inline-block; cursor: pointer; border: none;
}
.nav-cta:hover { background: var(--accent2) !important; text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); margin: 4px 0; border-radius: 2px;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at 50% 30%, rgba(56,139,253,0.22) 0%, transparent 70%);
}
.hero-content {
  position: relative; text-align: center;
  max-width: 860px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(56,139,253,0.12); border: 1px solid rgba(56,139,253,0.3);
  color: var(--accent2); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 28px;
  text-transform: uppercase; letter-spacing: .05em;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; color: var(--text-hi);
  line-height: 1.18; margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--accent2); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2); max-width: 640px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent3); color: #fff;
  padding: 13px 30px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: background .2s, transform .1s; line-height: 1;
  min-height: 44px;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); text-decoration: none; }
.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); color: var(--text);
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: 1px solid var(--border); cursor: pointer;
  transition: background .2s, border-color .2s; min-height: 44px;
}
.btn-secondary:hover { background: var(--bg2); border-color: var(--accent2); text-decoration: none; }

/* ── CODE WINDOW ── */
.code-window {
  margin: 64px auto 0; max-width: 760px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(56,139,253,.08);
}
.code-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.code-filename {
  margin-left: 8px; font-size: 12px; color: var(--text2);
  font-family: var(--font-mono);
}
.code-filename span { color: var(--accent2); }
.code-body { padding: 20px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; overflow-x: auto; }
.line { display: flex; gap: 16px; white-space: pre; }
.ln { color: #3d444d; user-select: none; min-width: 24px; text-align: right; }
.kw { color: #ff7b72; } /* keyword */
.fn { color: #d2a8ff; } /* function */
.str { color: #a5d6ff; } /* string */
.cm { color: #6e7681; font-style: italic; } /* comment */
.nu { color: #79c0ff; } /* number */
.op { color: var(--text2); } /* operator */
.var { color: var(--text-hi); }

/* ── STATS STRIP ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--text-hi); display: block;
  margin-bottom: 4px;
}
.stat-num em { color: var(--accent2); font-style: normal; }
.stat-label { font-size: 13px; color: var(--text2); }

/* ── FEATURES ── */
.features { padding: 88px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--text-hi); line-height: 1.25;
}
.section-desc { font-size: 15px; color: var(--text2); margin-top: 12px; max-width: 540px; margin-inline: auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: var(--accent3); transform: translateY(-2px); }
.feat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(56,139,253,0.12); display: flex;
  align-items: center; justify-content: center; margin-bottom: 18px;
}
.feat-icon svg { width: 22px; height: 22px; stroke: var(--accent2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-title { font-size: 15px; font-weight: 700; color: var(--text-hi); margin-bottom: 10px; }
.feat-body { font-size: 13.5px; color: var(--text2); line-height: 1.65; }

/* ── PLATFORM SECTION ── */
.platform { padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.platform-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.platform-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800;
  color: var(--text-hi); margin-bottom: 18px; line-height: 1.3;
}
.platform-text p { font-size: 14.5px; color: var(--text2); margin-bottom: 28px; line-height: 1.75; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--text2);
}
.pill svg { width: 14px; height: 14px; stroke: var(--accent2); fill: none; stroke-width: 2; }
.platform-visual {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  font-family: var(--font-mono); font-size: 12px; overflow: hidden;
}
.pv-tab {
  display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.pv-tab span {
  padding: 4px 12px; border-radius: 4px 4px 0 0; font-size: 11px; color: var(--text2); cursor: default;
}
.pv-tab span.active { background: var(--bg3); color: var(--text-hi); }
.pv-rows { display: flex; flex-direction: column; gap: 8px; }
.pv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: var(--bg3); border-radius: var(--radius);
}
.pv-coin { font-weight: 700; color: var(--text-hi); }
.pv-price { color: var(--text2); font-size: 11px; }
.pv-chg { font-size: 11px; font-weight: 600; }
.up { color: var(--green); } .dn { color: #f85149; }

/* ── DOWNLOAD ── */
.download { padding: 80px 0; }
.dl-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.dl-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.dl-card:hover { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(56,139,253,.1); }
.dl-os-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; background: var(--bg3);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
}
.dl-os-icon svg { width: 28px; height: 28px; fill: var(--accent2); }
.dl-card h3 { font-size: 15px; font-weight: 700; color: var(--text-hi); margin-bottom: 8px; }
.dl-card p { font-size: 13px; color: var(--text2); margin-bottom: 22px; line-height: 1.6; }
.btn-dl {
  display: inline-block; width: 100%; padding: 11px 0;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: background .2s, border-color .2s;
  min-height: 44px;
}
.btn-dl:hover { background: var(--bg); border-color: var(--accent2); color: var(--accent2); text-decoration: none; }

/* ── TRUST BAR ── */
.trust { padding: 64px 0; border-top: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.trust-ic {
  width: 48px; height: 48px; background: rgba(56,139,253,.1);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
}
.trust-ic svg { width: 24px; height: 24px; stroke: var(--accent2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-label { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.trust-sub { font-size: 12px; color: var(--text2); }

/* ── CTA SECTION ── */
.cta-section {
  padding: 96px 0; text-align: center;
  background: linear-gradient(to bottom, var(--bg), var(--bg2));
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
  color: var(--text-hi); margin-bottom: 16px;
}
.cta-section p { font-size: 15px; color: var(--text2); margin-bottom: 36px; }
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand-name { font-size: 17px; font-weight: 700; color: var(--text-hi); }
.footer-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--text-hi); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: var(--text2); transition: color .2s; }
.footer-col a:hover { color: var(--text-hi); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text2);
}
.footer-bottom a { color: var(--text2); }
.footer-bottom a:hover { color: var(--text-hi); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .platform-inner { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dl-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px; z-index: 200;
  }
  .hero { padding: 60px 0 48px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary,.btn-secondary { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-row { flex-direction: column; align-items: center; }
  .platform-visual { display: none; }
}
