/* ================= ROOT & RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #0b0f1a;
  --bg-soft: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);

  --text-main: #e5e7eb;
  --text-muted: #94a3b8;

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ================= BASE ================= */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at top, #111827, var(--bg-main));
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0 1.5rem;
}

/* ================= GLASS ================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #0ABAB5;
}

.logo span {
  color: #8A2BE2;
}

.nav-menu {
  display: flex;
  gap: 1.8rem;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: 0.25s;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: white;
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 6rem 0 7rem;
  text-align: center;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, var(--primary-glow), transparent 60%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.text-gradient {
  background: linear-gradient(90deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 760px;
  margin: 1.4rem auto 2.4rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ================= BUTTONS ================= */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.3s;
}

.btn-white {
  background: white;
  color: #020617;
}

.btn-white:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: white;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

/* ================= TRUST ================= */
.trust {
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.trust-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.logo-row {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  opacity: 0.8;
}

/* ================= SECTIONS ================= */
.features {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: auto;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
}

.section-header p {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* ================= BENTO ================= */
.bento-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.bento-item {
  padding: 1.6rem;
}

.bento-item h3 {
  margin-bottom: 0.6rem;
}

/* ================= DIRECTORY ================= */
.directory-layout {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

/* Sidebar */
.sidebar {
  padding: 1.4rem;
  position: sticky;
  top: 90px;
  height: fit-content;
}

.search-input {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  border: none;
  margin-bottom: 1.4rem;
  background: rgba(255,255,255,0.08);
  color: white;
}

.sidebar h4 {
  margin: 1.2rem 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  padding: 1.6rem;
  position: relative;
  transition: 0.35s;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  background: rgba(250,204,21,0.15);
  color: #fde68a;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.tool-card h3 {
  margin-bottom: 0.6rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tool-meta {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tool-meta span {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.tool-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-weight: 700;
  color: #c7d2fe;
}

/* ================= CTA ================= */
.cta {
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
}

.cta p {
  margin: 1rem auto 2rem;
  max-width: 520px;
  color: var(--text-muted);
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= WATERMARK ================= */
.demo-watermark {
  position: fixed;
  bottom: 12px;
  right: 14px;
  font-size: 0.65rem;
  opacity: 0.35;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #020617;
    flex-direction: column;
    padding: 1.5rem;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}
