:root {
  --ndg-bg: #ffffff;
  --ndg-surface: #ffffff;
  --ndg-surface-2: #f8fafc;
  --ndg-border: #e5e7eb;
  --ndg-text: #0f172a;
  --ndg-muted: #64748b;
  --ndg-accent: #2563eb;
  --ndg-green: #16a34a;
  --ndg-blue: #2563eb;
  --ndg-red: #dc2626;
  --ndg-radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ndg-bg);
  color: var(--ndg-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.ndg-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.ndg-front-hero {
  padding: 82px 0 60px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.ndg-front-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: 32px;
  align-items: center;
}

.ndg-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ndg-front h1 {
  margin: 0 0 16px;
  max-width: 820px;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.ndg-front p {
  color: #64748b;
  font-size: 17px;
}

.ndg-front-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ndg-button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.ndg-button-primary { background: #2563eb; color: #fff; }
.ndg-button-secondary { background: #fff; color: #0f172a; border: 1px solid #e5e7eb; }

.ndg-front-card,
.ndg-tool-grid article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .06);
}

.ndg-front-card {
  padding: 22px;
}

.ndg-front-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.ndg-front-card li + li {
  margin-top: 8px;
}

.ndg-front-section {
  padding: 64px 0;
  background: #fff;
}

.ndg-front-section--soft {
  background: #f8fafc;
}

.ndg-auth-card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  padding: 18px;
}

.ndg-auth-tabs {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  padding: 4px;
}

.ndg-auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
}

.ndg-auth-tabs button.is-active {
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .10);
  color: #2563eb;
}

.ndg-auth-message {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.ndg-auth-message.is-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ndg-auth-message.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ndg-auth-grid {
  display: block;
}

.ndg-auth-panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: none;
  padding: 16px;
}

.ndg-auth-panel.is-active {
  display: block;
}

.ndg-auth-panel h2 {
  font-size: 22px;
  margin: 4px 0 14px;
}

.ndg-auth-label {
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-auth-panel label {
  color: #334155;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 10px 0 6px;
}

.ndg-auth-panel input,
.ndg-auth-panel select {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  color: #0f172a;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.ndg-auth-panel .ndg-button {
  border: 0;
  cursor: pointer;
  margin-top: 14px;
  width: 100%;
}

.ndg-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.ndg-check {
  align-items: center;
  display: flex !important;
  gap: 8px;
  margin-top: 10px !important;
}

.ndg-check input {
  min-height: auto;
  width: auto;
}

.ndg-auth-note {
  font-size: 12px !important;
  margin: 10px 0 0;
}

.ndg-hp {
  display: none;
}

.ndg-section-title {
  max-width: 760px;
  margin-bottom: 24px;
}

.ndg-section-title span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-section-title h2 {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.18;
}

.ndg-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ndg-tool-grid article {
  padding: 18px;
}

.ndg-tool-grid h3 {
  margin: 0 0 8px;
}

.ndg-tool-grid p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  .ndg-front-hero__grid,
  .ndg-tool-grid {
    grid-template-columns: 1fr;
  }

  .ndg-form-row {
    grid-template-columns: 1fr;
  }

  .ndg-front h1 {
    font-size: 36px;
  }
}
