/* BII Technology — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #14141c;
  --surface-2: #191922;
  --border: #24242f;
  --text: #f2f1f5;
  --muted: #9a97a8;
  --accent: #6c5cf0;
  --accent-2: #4cc9f0;
  --danger: #ef6a6a;
  --success: #4ade80;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-width: 0;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em 0;
}

p { margin: 0 0 1em 0; color: var(--muted); }

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

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-2);
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

/* ---------- Nav ---------- */
.site-nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent-2); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05050a !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05050a;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  max-width: 160vw;
  background: radial-gradient(ellipse at center, rgba(108, 92, 240, 0.35), rgba(76, 201, 240, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 260px; height: 260px; background: rgba(108, 92, 240, 0.28); top: -60px; left: 6%; animation: floatA 14s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; background: rgba(76, 201, 240, 0.22); top: 60px; right: 8%; animation: floatB 17s ease-in-out infinite; }
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(26px, 32px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-22px, 26px); }
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 820px;
  margin: 18px auto 20px;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.1rem;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero entrance */
.hero .mono, .hero h1, .hero p.lead, .hero-ctas {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero .mono { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero p.lead { animation-delay: 0.3s; }
.hero-ctas { animation-delay: 0.44s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 320px;
  max-width: 150vw;
  background: radial-gradient(ellipse at center, rgba(108, 92, 240, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
.page-hero .wrap { position: relative; }
.page-hero .mono, .page-hero h1, .page-hero p {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.page-hero .mono { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.16s; }
.page-hero p { animation-delay: 0.3s; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid-5 .reveal:nth-child(1) { transition-delay: 0s; }
.grid-5 .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid-5 .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid-5 .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid-5 .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid-5 .reveal:nth-child(6) { transition-delay: 0.4s; }
.steps .reveal:nth-child(1) { transition-delay: 0s; }
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero .mono, .hero h1, .hero p.lead, .hero-ctas,
  .page-hero .mono, .page-hero h1, .page-hero p,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .mono { display: block; margin-bottom: 12px; }

/* ---------- Service cards ---------- */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(108,92,240,0.5); transform: translateY(-3px); }
.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent-2);
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.94rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}

/* ---------- How it works band ---------- */
.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step { min-width: 0; }
.step .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}
.step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; margin: 0; }

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 36px;
}
.pill-note .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ---------- Closing CTA ---------- */
.cta-band {
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); max-width: 560px; margin: 0 auto 16px; }
.cta-band p { max-width: 480px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.88rem; color: var(--muted); }
.footer-copy { font-size: 0.85rem; color: var(--muted); }

/* ---------- Generic content pages (About/Privacy/Terms/FAQ) ---------- */
.page-hero {
  padding: 70px 0 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); font-size: 0.98rem; }
.prose ul { padding-left: 1.2em; }
.legal-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
}
.legal-note p { margin: 0; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-q .plus {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--accent-2);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 680px;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding-top 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  opacity: 1;
  padding-top: 12px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}
textarea { resize: vertical; min-height: 120px; }
.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--success); }
.form-msg.error { background: rgba(239, 106, 106, 0.1); border: 1px solid rgba(239, 106, 106, 0.3); color: var(--danger); }

.contact-direct {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 80px 0 60px; }
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 rgba(37, 211, 102, 0.5);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}
@media (max-width: 640px) {
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}
