/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 8px;
  margin-left: 32px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}
.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-soft);
}
.hero-stats b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* ============ Sections ============ */
.section {
  padding: 80px 24px;
}
.section-alt { background: var(--bg-soft); }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-soft);
  font-size: 17px;
}

/* ============ Tools grid ============ */
.tools-featured {
  max-width: var(--max-w);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.tools-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  display: block;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .tool-icon {
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.tool-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tool-card p {
  font-size: 14px;
  color: var(--text-soft);
}
.tool-card-featured {
  padding: 28px;
}
.tool-card-featured .tool-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.tool-card-featured h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.tool-card-featured p {
  font-size: 14.5px;
}

/* ============ Features ============ */
.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  text-align: left;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ============ Pricing ============ */
.pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.price-card {
  position: relative;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.ribbon {
  position: absolute;
  top: 0;
  right: 16px;
  transform: translateY(-50%);
  padding: 4px 12px;
  background: var(--grad);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.price span {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price small {
  color: var(--text-soft);
  font-size: 14px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 14px;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
