:root {
  --site-width: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0d;
  color: #f5f5f5;
}

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

.site {
  min-height: 100vh;
}

/* ===== GLOBAL NAV ===== */

.topbar {
  border-bottom: 1px solid #1f1f24;
  background: linear-gradient(to bottom, #121216, #0b0b0d);
}

.topbar-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a,
.dropdown-toggle {
  color: #d5d5dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #17171c;
  border: 1px solid #2a2a31;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.dropdown-menu a,
.dropdown-menu span {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e6e6eb;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #23232a;
}

.dropdown-menu span {
  color: #7f7f89;
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* ===== HERO ===== */

.hero {
  padding: 72px 24px 36px;
  border-bottom: 1px solid #1e1e22;
  background: linear-gradient(to bottom, #121216, #0b0b0d);
}

.hero-inner {
  max-width: var(--site-width);
  margin: 0 auto;
}

.eyebrow {
  color: #9b9ba3;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.05;
  max-width: 800px;
}

.subtext {
  margin: 0;
  max-width: 760px;
  color: #b4b4bc;
  font-size: 18px;
  line-height: 1.6;
}

/* ===== MAIN LAYOUT ===== */

.main {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ===== TOOL CARDS ===== */

.tool-card {
  display: block;
  border: 1px solid #232329;
  border-radius: 18px;
  overflow: hidden;
  background: #121216;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #3a3a44;
}

.tool-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a20;
  color: #d5d5dc;
  font-size: 22px;
  font-weight: bold;
}

.tool-content {
  padding: 20px;
  min-height: 180px;
}

.tool-content h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.tool-content p {
  margin: 0 0 14px;
  color: #b4b4bc;
  line-height: 1.6;
}

.tool-link {
  display: inline-block;
  color: #ffffff;
  font-weight: bold;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {
  .topbar-inner,
  .hero-inner,
  .main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 16px;
  }

  h1 {
    font-size: 34px;
  }

  .subtext {
    font-size: 16px;
  }

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