/* Landing page layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.theme-toggle:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hero */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  text-align: center;
  background: var(--hero-glow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 20% 40%, rgba(124, 58, 237, 0.12), transparent 70%),
    radial-gradient(ellipse 35% 45% at 80% 30%, rgba(37, 99, 235, 0.10), transparent 70%);
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 16ch;
  margin-inline: auto;
}

.hero-sub {
  margin: 1.25rem auto 2rem;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Features */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 32rem;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--pro) 40%, var(--border));
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Pricing */
.pricing {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--pro) 55%, var(--border));
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 1.25rem;
  background: var(--pro);
  color: var(--pro-fg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0.75rem 0;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-card ul {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.price-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

/* Tools catalog (grouped feature cards) */
.tools-catalog {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.tools-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.features-grid--dense {
  grid-template-columns: repeat(3, 1fr);
}

.features-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.feature-icon--purple { background: #7c3aed; color: #fff; }
.feature-icon--violet { background: #8b5cf6; color: #fff; }
.feature-icon--blue { background: #2563eb; color: #fff; }
.feature-icon--indigo { background: #4f46e5; color: #fff; }
.feature-icon--teal { background: #0d9488; color: #fff; }
.feature-icon--orange { background: #ea580c; color: #fff; }
.feature-icon--amber { background: #d97706; color: #fff; }
.feature-icon--red { background: #dc2626; color: #fff; }
.feature-icon--pink { background: #db2777; color: #fff; }
.feature-icon--slate { background: #334155; color: #fff; }
.feature-icon--gray { background: #64748b; color: #fff; }

/* Report form in footer */
.report-section {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.report-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.report-header h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.report-header p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0;
  font-size: 0.9375rem;
}

.report-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.report-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.report-field select,
.report-field textarea,
.report-field input {
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.report-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.report-field select:focus,
.report-field textarea:focus,
.report-field input:focus {
  outline: 2px solid color-mix(in srgb, var(--pro) 45%, transparent);
  outline-offset: 1px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.report-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 1.2em;
  margin: 0;
}

.report-status.is-ok { color: var(--success); }
.report-status.is-err { color: var(--danger); }

@media (max-width: 860px) {
  .features-grid--dense {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .features-grid--dense {
    grid-template-columns: repeat(2, 1fr);
  }
}
