:root {
  --nc-red: #e10028;
  --nc-red-dark: #b8001f;
  --nc-red-soft: #fde8ec;
  --nc-ink: #141418;
  --nc-ink-mid: #3a3a44;
  --nc-muted: #6e6e7a;
  --nc-line: #e2e0dc;
  --nc-cream: #f6f4f1;
  --nc-white: #ffffff;
  --nc-teal: #00838f;
  --nc-teal-soft: #e0f4f6;
  --nc-max: 76rem;
  --nc-radius: 10px;
  --nc-radius-lg: 16px;
  --nc-font: "DM Sans", system-ui, -apple-system, sans-serif;
  --nc-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nc-shadow: 0 4px 22px rgba(20, 20, 24, 0.07);
  --nc-shadow-lg: 0 18px 48px rgba(20, 20, 24, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--nc-font);
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--nc-ink);
  background: var(--nc-cream);
}

a {
  color: var(--nc-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--nc-red-dark); }

img { max-width: 100%; height: auto; display: block; }

/* --- Site shell --- */
.nc-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nc-skip {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.nc-skip:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  padding: 0.55rem 1rem; background: var(--nc-ink); color: #fff; z-index: 400;
  border-radius: var(--nc-radius);
}

/* --- Top header --- */
.nc-header {
  background: var(--nc-ink);
  color: #d8d8e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nc-header__row {
  max-width: var(--nc-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nc-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  flex-shrink: 0;
}
.nc-brand:hover { color: #fff; }
.nc-brand img { width: 40px; height: 40px; border-radius: 9px; }

.nc-navtoggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.nc-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.nc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.nc-nav a {
  display: block;
  padding: 0.42rem 0.72rem;
  color: #b8b8c4;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--nc-radius);
  transition: background 120ms, color 120ms;
}
.nc-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nc-nav a[aria-current="page"] {
  background: var(--nc-red);
  color: #fff;
  font-weight: 700;
}

.nc-nav__cta {
  margin-left: 0.65rem;
  padding: 0.48rem 1rem;
  background: var(--nc-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nc-nav__cta:hover { background: #006974; color: #fff !important; }

.nc-ribbon {
  background: rgba(225, 0, 40, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 1.5rem;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  text-align: center;
}
.nc-ribbon a { color: #ff9fb0; font-weight: 600; text-decoration: none; }
.nc-ribbon a:hover { color: #fff; }

.nc-topbar {
  background: var(--nc-white);
  border-bottom: 1px solid var(--nc-line);
  padding: 0.55rem 1.5rem;
  font-size: 0.82rem;
  color: var(--nc-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 100%;
}
.nc-topbar a { color: var(--nc-red); font-weight: 700; text-decoration: none; }

.nc-main {
  flex: 1;
  width: 100%;
  max-width: var(--nc-max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3.5rem;
}

/* --- Breadcrumb --- */
.nc-crumb {
  padding: 0.85rem 0 0.45rem;
  font-size: 0.82rem;
  color: var(--nc-muted);
}
.nc-crumb a { color: var(--nc-muted); text-decoration: none; }
.nc-crumb a:hover { color: var(--nc-red); }
.nc-crumb span { color: var(--nc-ink); font-weight: 600; }

/* --- Buttons --- */
.nc-btn {
  display: inline-block;
  padding: 0.62rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms, box-shadow 120ms, background 120ms;
}
.nc-btn--primary {
  background: var(--nc-red);
  color: #fff;
  border-color: var(--nc-red);
  box-shadow: 0 6px 18px rgba(225, 0, 40, 0.28);
}
.nc-btn--primary:hover { background: var(--nc-red-dark); color: #fff; transform: translateY(-1px); }
.nc-btn--outline {
  background: transparent;
  color: var(--nc-ink);
  border-color: var(--nc-line);
}
.nc-btn--outline:hover { border-color: var(--nc-red); color: var(--nc-red); }
.nc-btn--light {
  background: #fff;
  color: var(--nc-red);
  border-color: #fff;
}
.nc-btn--light:hover { background: var(--nc-red-soft); color: var(--nc-red-dark); }
.nc-btn--teal {
  background: var(--nc-teal);
  color: #fff;
  border-color: var(--nc-teal);
}
.nc-btn--teal:hover { background: #006974; color: #fff; }

/* --- Hero --- */
.nc-hero {
  margin: 0 -1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(128deg, var(--nc-ink) 0%, #22222c 55%, var(--nc-red-dark) 100%);
  border-radius: 0 0 var(--nc-radius-lg) var(--nc-radius-lg);
  overflow: hidden;
  box-shadow: var(--nc-shadow-lg);
}
.nc-hero__copy {
  padding: 2.75rem 2rem 2.75rem 2.5rem;
  color: #ececef;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nc-hero__tag {
  display: inline-block;
  font-family: var(--nc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9fb0;
  margin-bottom: 0.75rem;
}
.nc-hero__title {
  font-size: clamp(1.65rem, 3.1vw, 2.5rem);
  line-height: 1.16;
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 800;
}
.nc-hero__text { margin: 0 0 1.45rem; color: #b4b4be; max-width: 38rem; }
.nc-hero__acts { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.nc-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 65% 35%, rgba(225, 0, 40, 0.22), transparent 62%);
}
.nc-hero__visual img { border-radius: var(--nc-radius-lg); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }

/* --- Keyword pills --- */
.nc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.65rem;
}
.nc-pill {
  font-family: var(--nc-mono);
  font-size: 0.72rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  color: var(--nc-ink-mid);
}

/* --- Notice panel --- */
.nc-notice-panel {
  background: var(--nc-teal-soft);
  border: 1px solid #b8e4ea;
  border-left: 4px solid var(--nc-teal);
  border-radius: var(--nc-radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  color: var(--nc-ink-mid);
}
.nc-notice-panel strong { color: var(--nc-ink); }

/* --- Stats strip --- */
.nc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.nc-stats__item {
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 1.15rem 0.85rem;
  text-align: center;
}
.nc-stats__item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--nc-red);
  margin-bottom: 0.2rem;
}
.nc-stats__item span { font-size: 0.8rem; color: var(--nc-muted); }

/* --- Card grid --- */
.nc-grid {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.nc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nc-grid--4 { grid-template-columns: repeat(4, 1fr); }

.nc-card {
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 1.4rem 1.35rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  transition: box-shadow 140ms, border-color 140ms, transform 140ms;
}
.nc-card:hover {
  box-shadow: var(--nc-shadow);
  border-color: var(--nc-red-soft);
  transform: translateY(-2px);
  color: inherit;
}
.nc-card__thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--nc-radius);
  margin-bottom: 0.25rem;
  background: var(--nc-cream);
}
.nc-card__icon { width: 40px; height: 40px; }
.nc-card h3 { margin: 0; font-size: 1.05rem; color: var(--nc-ink); }
.nc-card p { margin: 0; font-size: 0.9rem; color: var(--nc-muted); flex: 1; }
.nc-card__link { font-size: 0.82rem; font-weight: 700; color: var(--nc-red); }

/* --- Split layout --- */
.nc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.nc-rail {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 1.3rem 1.25rem;
  box-shadow: var(--nc-shadow);
}
.nc-rail h2 { margin: 0 0 0.7rem; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--nc-muted); }
.nc-rail ul { margin: 0; padding: 0; list-style: none; }
.nc-rail li { margin-bottom: 0.38rem; }
.nc-rail a { font-size: 0.88rem; text-decoration: none; color: var(--nc-ink-mid); }
.nc-rail a:hover { color: var(--nc-red); }

/* --- Sections --- */
.nc-section { margin-bottom: 2.35rem; }
.nc-section__head {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  color: var(--nc-ink);
}
.nc-section__sub { margin: 0 0 1.2rem; color: var(--nc-muted); font-size: 0.95rem; }

.nc-panel {
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 1.3rem 1.45rem;
  margin-bottom: 0.85rem;
}
.nc-panel h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.nc-panel p { margin: 0; color: var(--nc-muted); font-size: 0.92rem; }
.nc-panel--accent {
  border-left: 4px solid var(--nc-red);
  background: linear-gradient(90deg, var(--nc-red-soft), var(--nc-white) 28%);
}

.nc-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.nc-steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--nc-line);
  position: relative;
}
.nc-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1rem;
  width: 2rem; height: 2rem;
  background: var(--nc-red); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.nc-steps li:last-child { border-bottom: 0; }
.nc-steps h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.nc-steps p { margin: 0; color: var(--nc-muted); font-size: 0.92rem; }

/* --- FAQ --- */
.nc-faq { max-width: 50rem; }
.nc-faq details {
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.nc-faq summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}
.nc-faq summary::-webkit-details-marker { display: none; }
.nc-faq details[open] summary { border-bottom: 1px solid var(--nc-line); color: var(--nc-red); }
.nc-faq__body { padding: 1rem 1.15rem; color: var(--nc-muted); font-size: 0.92rem; }
.nc-faq__body p { margin: 0; }

/* --- Table --- */
.nc-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.nc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  font-size: 0.9rem;
}
.nc-table caption {
  text-align: left;
  font-weight: 700;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}
.nc-table th, .nc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--nc-line);
  text-align: left;
}
.nc-table th { background: var(--nc-cream); font-weight: 700; }
.nc-table tr:last-child td { border-bottom: 0; }

/* --- Forms --- */
.nc-form {
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 1.5rem;
  max-width: 28rem;
}
.nc-field { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--nc-ink-mid); }
.nc-input, .nc-select, .nc-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: var(--nc-cream);
}
.nc-input:focus, .nc-select:focus, .nc-textarea:focus {
  outline: 2px solid var(--nc-red-soft);
  border-color: var(--nc-red);
}
.nc-textarea { min-height: 6rem; resize: vertical; }
.nc-alert {
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--nc-radius);
  margin-bottom: 1rem;
  background: var(--nc-red-soft);
  color: var(--nc-red-dark);
}
.nc-alert--ok { background: #e6f7f0; color: #0d6b4a; }

/* --- Page header --- */
.nc-pagehead {
  padding: 1.35rem 0 1.25rem;
  border-bottom: 1px solid var(--nc-line);
  margin-bottom: 1.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.nc-pagehead__text h1,
.nc-pagehead > h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.2;
}
.nc-pagehead__text p,
.nc-pagehead > p { margin: 0; color: var(--nc-muted); max-width: 42rem; }
.nc-pagehead__img img { border-radius: var(--nc-radius-lg); box-shadow: var(--nc-shadow); max-width: 220px; }

/* --- Prose --- */
.nc-prose h2 { font-size: 1.2rem; margin: 1.65rem 0 0.6rem; }
.nc-prose h3 { font-size: 1.05rem; margin: 1.15rem 0 0.45rem; }
.nc-prose p, .nc-prose li { color: var(--nc-ink-mid); font-size: 0.95rem; }
.nc-prose ul, .nc-prose ol { padding-left: 1.35rem; }
.nc-prose li { margin-bottom: 0.35rem; }

/* --- CTA band --- */
.nc-band {
  background: var(--nc-ink);
  color: #d0d0d8;
  border-radius: var(--nc-radius-lg);
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}
.nc-band h2 { margin: 0 0 0.5rem; color: #fff; font-size: 1.28rem; }
.nc-band p { margin: 0 0 1.15rem; font-size: 0.92rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.nc-footer {
  background: var(--nc-white);
  border-top: 1px solid var(--nc-line);
  padding: 2rem 1.5rem;
  margin-top: auto;
}
.nc-footer__grid {
  max-width: var(--nc-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 1.5rem;
}
.nc-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  color: var(--nc-muted);
}
.nc-footer ul { list-style: none; margin: 0; padding: 0; }
.nc-footer li { margin-bottom: 0.32rem; }
.nc-footer a { font-size: 0.88rem; text-decoration: none; color: var(--nc-ink-mid); }
.nc-footer a:hover { color: var(--nc-red); }
.nc-footer__brand p { margin: 0; font-size: 0.88rem; color: var(--nc-muted); line-height: 1.55; }
.nc-footer__copy {
  max-width: var(--nc-max);
  margin: 1.35rem auto 0;
  font-size: 0.78rem;
  color: var(--nc-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--nc-line);
}

/* --- Login page --- */
.nc-auth {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.nc-authbox {
  background: var(--nc-white);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 2rem;
  box-shadow: var(--nc-shadow);
}
.nc-authbox h2 { margin: 0 0 0.35rem; font-size: 1.22rem; }
.nc-authbox > p { margin: 0 0 1.2rem; color: var(--nc-muted); font-size: 0.9rem; }

/* --- Cookie notice --- */
.nc-cookie {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 26rem;
  margin-left: auto;
  background: var(--nc-ink);
  color: #c8c8d0;
  padding: 1rem 1.15rem;
  border-radius: var(--nc-radius-lg);
  box-shadow: var(--nc-shadow-lg);
  z-index: 200;
  font-size: 0.85rem;
}
.nc-cookie p { margin: 0 0 0.75rem; }
.nc-cookie a { color: #ff9fb0; }
.nc-cookie__acts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nc-cookie .nc-btn--light { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
.nc-cookie .nc-btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.3); font-size: 0.8rem; padding: 0.45rem 0.9rem; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .nc-navtoggle { display: block; }
  .nc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nc-ink);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--nc-shadow-lg);
  }
  .nc-nav.nc-nav--open { display: flex; }
  .nc-nav ul { flex-direction: column; width: 100%; }
  .nc-nav a { padding: 0.65rem 0.85rem; }
  .nc-nav__cta { margin: 0.65rem 0 0; text-align: center; }
  .nc-header { position: relative; }
  .nc-header__row { position: relative; flex-wrap: wrap; }
  .nc-hero { grid-template-columns: 1fr; }
  .nc-hero__visual { padding: 0 1.5rem 1.5rem; }
  .nc-split { grid-template-columns: 1fr; }
  .nc-rail { position: static; }
  .nc-grid--4, .nc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nc-auth { grid-template-columns: 1fr; }
  .nc-footer__grid { grid-template-columns: 1fr 1fr; }
  .nc-stats { grid-template-columns: repeat(2, 1fr); }
  .nc-pagehead { grid-template-columns: 1fr; }
  .nc-pagehead__img { display: none; }
}

@media (max-width: 540px) {
  .nc-grid--4, .nc-grid--2, .nc-grid--3 { grid-template-columns: 1fr; }
  .nc-footer__grid { grid-template-columns: 1fr; }
  .nc-main { padding: 0 1rem 2.5rem; }
  .nc-hero { margin: 0 -1rem 1.65rem; }
  .nc-stats { grid-template-columns: 1fr; }
}
