:root {
  --accent: #00ffff;
  --accent2: #7f5af0;
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c27;
  --text: #e0e0e0;
  --muted: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 2rem;
}

.navbar-brand h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}

.navbar-toggler {
  border-color: rgba(0, 255, 255, 0.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.offcanvas {
  background: var(--surface) !important;
  color: var(--text);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.offcanvas-title {
  font-weight: 700;
  color: #fff;
}

.btn-close {
  filter: invert(1);
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 0 !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.nav-item h5 {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* animated mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(0, 255, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(127, 90, 240, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.hero-icon {
  flex-shrink: 0;
}

/* ── BADGE PILLS ── */
.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge-pill {
  background: var(--surface2);
  border: 1px solid rgba(0, 255, 255, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ── INFO SECTION ── */
.info-section {
  padding: 5rem 2rem;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-inner {
  max-width: 900px;
  margin: 0 auto;
}

.info-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.metric-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.metric-card:hover {
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-3px);
}

.metric-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.metric-card ul {
  list-style: none;
  padding: 0;
}

.metric-card ul li {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-card ul li:last-child {
  border-bottom: none;
}

/* ── ALGORITHMS GRID ── */
.algos-section {
  padding: 5rem 2rem;
}

.algos-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.8rem;
}

.algos-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.algos-section .sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.algos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.algo-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.algo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.06), rgba(127, 90, 240, 0.06));
  opacity: 0;
  transition: opacity 0.22s;
}

.algo-card:hover {
  border-color: rgba(0, 255, 255, 0.4);
  color: var(--accent);
  transform: translateY(-4px);
}

.algo-card:hover::before {
  opacity: 1;
}

.algo-card .algo-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(127, 90, 240, 0.12);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  flex-shrink: 0;
}

.algo-card .arrow {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
  color: var(--accent);
  font-size: 1rem;
}

.algo-card:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-icon {
    display: none;
  }

  .badge-row {
    justify-content: center;
  }

  .algos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .algos-grid {
    grid-template-columns: 1fr;
  }
}

/* accent span utility */
.cyan {
  color: var(--accent);
}