:root {
  --bg-main: #09090b;
  /* Deep dark background */
  --bg-surface: #18181b;
  /* Light-dark for cards/navbar */
  --bg-surface-hover: #27272a;

  --text-primary: #f4f4f5;
  /* High-contrast crisp white */
  --text-muted: #a1a1aa;
  /* Subtle gray text */

  --accent: #3b82f6;
  /* Vibrant blue tech accent */
  --accent-glow: rgba(59, 130, 246, 0.15);
  --border-color: #27272a;
  /* Clean modern borders */

  --radius-lg: 12px;
  --radius-md: 8px;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  background-color: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.logo span {
  color: var(--accent);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 24px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text-primary);
}

/* HERO */
.hero {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* SEARCH UPGRADE */
.search-container {
  max-width: 540px;
  margin: 0 auto 24px auto;
}

#toolSearch {
  width: 100%;
  padding: 14px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

#toolSearch:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.btn.primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background-color: #2563eb;
}

.btn.secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn.secondary:hover {
  background-color: var(--bg-surface-hover);
}

/* TOOLS SECTION */
.tools {
  padding: 40px 0;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #3f3f46;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

/* Card inner design updates */
.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background-color: var(--border-color);
  color: var(--text-muted);
}

.badge.lk {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

/* FEATURES */
.features {
  padding: 60px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.features .card {
  background-color: rgba(24, 24, 27, 0.4);
  border: 1px solid transparent;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feat-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.features h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: #09090b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 16px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

/* Mobile Responsive Customization */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-content {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }

  nav a {
    margin: 0 12px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links a {
    margin: 0 8px;
  }
}

/* Custom style extensions for the enhanced features layout */
.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.features .card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.features .card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

.feat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.features h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feat-highlight {
  color: #3b82f6;
  /* Vibrant Blue */
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

.features p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feat-list {
  list-style: none;
  padding: 0;
  margin-top: auto;
  /* Pushes list to the bottom so cards align perfectly */
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.feat-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.feat-list li:last-child {
  margin-bottom: 0;
}

.feat-list li::before {
  content: "✓";
  color: #3b82f6;
  font-weight: bold;
}