*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
  color: #e5e7eb;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  color: #e5e7eb;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-link:hover {
  opacity: 1;
}

/* Tools dropdown */
.nav-item {
  position: relative;
}

.nav-tools-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: #e5e7eb;
  opacity: 0.9;
}

.nav-tools-toggle:hover {
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.7rem;
  padding: 0.4rem 0.55rem;
  display: none;
  min-width: 190px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.95);
}

.nav-dropdown a {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.88rem;
  color: #e5e7eb;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: rgba(37, 99, 235, 0.3);
}

/* hover on desktop */
@media (min-width: 768px) {
  .nav-item.nav-tools:hover .nav-dropdown {
    display: block;
  }
}

/* when opened via JS (mobile) */
.nav-item.nav-tools.open .nav-dropdown {
  display: block;
  position: static;
  box-shadow: none;
  margin-top: 0.35rem;
}

/* Menu button */
.menu-toggle {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero general */
.hero {
  padding: 4.2rem 1.25rem 3.4rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin-bottom: 1.4rem;
  border-radius: 32px;
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.7),
    0 0 80px rgba(129, 140, 248, 0.55);
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 0.5rem;
  color: #cbd5f5;
  font-size: 1.1rem;
}

.hero-copy {
  margin: 1rem auto 1.5rem;
  max-width: 520px;
  color: #9ca3af;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Page-specific hero titles */
.hero-title-small {
  font-size: 2.1rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  color: #020617;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.btn.full {
  width: 100%;
}

/* Sections */
.section {
  padding: 2.7rem 1.25rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-header h2 {
  font-size: 1.7rem;
  margin: 0 0 0.3rem;
  color: #e5e7eb;
}

.section-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.95rem;
}

/* Tools grid */
.tools-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.tools-grid-home .tool-card {
  cursor: pointer;
}

.tool-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1rem;
  padding: 1.4rem 1.35rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.7);
}

.tool-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.tool-desc {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.tool-card.tool-link {
  text-decoration: none;
  color: inherit;
}

.tool-card.tool-link:hover {
  border-color: #38bdf8;
}

/* Forms / results */
.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.55rem 0.75rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.tool-result {
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  color: #9ca3af;
  font-size: 0.85rem;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}

/* Steps & roadmap */
.steps-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}

.step {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.roadmap-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}

.roadmap-item {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.roadmap-item ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* About */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #9ca3af;
}

.about-content p + p {
  margin-top: 0.7rem;
}

.about-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #a5b4fc;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.9rem 1.25rem 1.1rem;
  background: #020617;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  margin-left: 0.9rem;
}

/* Layout for tool pages */
.tool-page-main {
  padding: 2.5rem 1.25rem 3rem;
}

.tool-page-inner {
  max-width: 960px;
  margin: 0 auto;
}

.tool-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}

/* Bigger screens */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-page-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    align-items: flex-start;
  }
}

/* Mobile nav open */
.nav.nav-open {
  position: absolute;
  top: 52px;
  right: 1.1rem;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.9rem;
  padding: 0.55rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.9);
}

.nav.nav-open .nav-item {
  margin-bottom: 0.35rem;
}