:root {
  --njx-bg: #f7f8fa;
  --njx-surface: #ffffff;
  --njx-surface-alt: #f8fafc;
  --njx-text: #0f172a;
  --njx-muted: #475569;
  --njx-line: #dbe1e8;
  --njx-accent: #0f766e;
  --njx-accent-2: #0ea5e9;
  --njx-warm: #d97706;
  --njx-radius: 14px;
  --njx-shadow: 0 8px 28px rgb(15 23 42 / 8%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--njx-text);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  line-height: 1.45;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.topbar a {
  text-decoration: none;
  color: var(--njx-text);
  border: 1px solid var(--njx-line);
  background: var(--njx-surface);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.topbar a:hover {
  border-color: #94a3b8;
}

.njx-hero,
.njx-section {
  padding: 56px 0;
}

.njx-hero {
  border-block: 1px solid var(--njx-line);
  background: var(--njx-surface);
}

.njx-section--soft {
  background: var(--njx-surface-alt);
}

.njx-section--dark {
  background: #0f172a;
  color: #fff;
  border-radius: var(--njx-radius);
}

.njx-container {
  max-width: 1000px;
  margin: 0 auto;
}

.njx-container--wide {
  max-width: 1080px;
}

.njx-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #b7e4d7;
  background: #edfdf6;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.njx-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
}

.njx-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--njx-muted);
  font-size: 1.05rem;
}

.njx-subtitle--light {
  margin-inline: auto;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.njx-grid {
  display: grid;
  gap: 18px;
}

.njx-grid--2 {
  grid-template-columns: 1fr;
}

.njx-grid--3 {
  grid-template-columns: 1fr;
}

.njx-grid--4 {
  grid-template-columns: 1fr;
}

.njx-card {
  border: 1px solid var(--njx-line);
  border-radius: var(--njx-radius);
  background: var(--njx-surface);
  padding: 22px;
  box-shadow: var(--njx-shadow);
}

.njx-card--featured {
  border-color: #86efac;
}

.njx-card-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.njx-price {
  margin: 0 0 10px;
  color: #047857;
  font-size: 1.9rem;
  font-weight: 800;
}

.njx-meta {
  margin: 0 0 12px;
  color: var(--njx-muted);
  font-size: 0.93rem;
}

.njx-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.njx-list li + li {
  margin-top: 6px;
}

.njx-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.njx-actions--centered {
  max-width: 320px;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--njx-line);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--njx-text);
  background: var(--njx-surface);
  cursor: pointer;
}

.btn--primary {
  color: #fff;
  border-color: var(--njx-accent);
  background: linear-gradient(135deg, var(--njx-accent), var(--njx-accent-2));
}

.btn--secondary {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.njx-tool-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.njx-tool-link:hover .njx-card-title {
  color: #b45309;
}

.njx-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--njx-warm);
}

.njx-icon svg {
  width: 24px;
  height: 24px;
}

.njx-step {
  border: 1px solid var(--njx-line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.njx-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.njx-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border: 1px solid var(--njx-line);
  border-radius: var(--njx-radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--njx-shadow);
}

.njx-field {
  display: block;
}

.njx-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

input,
select {
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}

.njx-result {
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  padding: 18px;
}

.njx-note {
  margin: 0;
  color: var(--njx-muted);
  font-size: 0.92rem;
}

.njx-note--light {
  margin-top: 18px;
  color: #cbd5e1;
}

.njx-center {
  text-align: center;
}

.njx-mb-md {
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .njx-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .njx-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .njx-field--wide,
  .njx-form-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .njx-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
