* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
  line-height: 1.6;
}

/* Dark mode */
body.dark {
  background: #020617;
  color: #e5e7eb;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

body.dark .site-header {
  background: rgba(15, 23, 42, 0.95);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.05rem;
}

.logo-main {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.logo-dot {
  font-size: 0.9rem;
  color: #38bdf8;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav > a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav > a:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* Dropdown */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-dropdown-toggle:hover {
  background: rgba(148, 163, 184, 0.2);
}

.caret {
  font-size: 0.7rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 220px;
  background: #0f172a;
  border-radius: 0.75rem;
  padding: 0.4rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.dark .nav-dropdown-menu {
  background: #020617;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.nav-dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* Header actions */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.35rem 0.7rem;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* FOOTER */

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  color: #e5e7eb;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-logo {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.footer-column a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  text-align: center;
  padding: 0.7rem 1rem 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    font-size: 0.9rem;
    gap: 0.7rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

.page-main {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

/* Hero */
.hero {
  padding: 2.5rem 1.25rem 2rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top left, #38bdf8 0, transparent 55%),
              radial-gradient(circle at bottom right, #6366f1 0, transparent 55%),
              #0f172a;
  color: #e5e7eb;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.hero-content p {
  max-width: 520px;
  font-size: 0.98rem;
  color: #cbd5f5;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  border: 1px solid rgba(226, 232, 240, 0.7);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.4);
}

/* Sections */
.section {
  margin-top: 2.5rem;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.section-header p {
  font-size: 0.95rem;
  color: #6b7280;
}

body.dark .section-header p {
  color: #9ca3af;
}

.section-alt {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 1.25rem;
  padding: 1.6rem 1.25rem;
}

body.dark .section-alt {
  background: rgba(15, 23, 42, 0.9);
}

.section-body p + p {
  margin-top: 0.6rem;
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.tool-card {
  border-radius: 1rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.dark .tool-card {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 280px;
}

body.dark .tool-card p {
  color: #9ca3af;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border-color: #38bdf8;
}

.tool-tag {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
}

body.dark .tool-tag {
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
}

/* FAQ */
.faq {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: #4b5563;
}

body.dark .faq-item p {
  color: #9ca3af;
}

@media (max-width: 640px) {
  .hero {
    padding: 1.8rem 1.1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }
}
