:root {
  --ns-base: #f8fafc;
  --ns-text: #0f172a;
  --ns-text-soft: #475569;
  --ns-text-muted: #64748b;
  --ns-yellow: #fbbf24;
  --ns-blue: #2563eb;
  --ns-blue-mid: #1d4ed8;
  --ns-blue-deep: #1e3a8a;
  --ns-topbar: #f1f5f9;
  --ns-silver: #cbd5e1;
  --ns-gray-200: #e2e8f0;
  --ns-gray-300: #cbd5e1;
  --ns-on-blue-divider: rgba(255, 255, 255, 0.2);
  --ns-on-blue-muted: #bfdbfe;
  --ns-on-blue-soft: #93c5fd;
  --ns-white: #ffffff;
  --shadow-portal: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ns-base);
  color: var(--ns-text);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--ns-silver);
  background: var(--ns-topbar);
  color: var(--ns-text-soft);
  font-size: 0.75rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--ns-white);
  background: linear-gradient(90deg, var(--ns-blue), var(--ns-blue-mid));
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-mark {
  width: 2.5rem;
  color: var(--ns-yellow);
  flex: 0 0 auto;
}

.brand-title {
  margin: 0;
  color: var(--ns-white);
  font-family: "Merriweather", serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  margin-top: 0.3rem;
  color: var(--ns-on-blue-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-cta {
  padding: 0.8rem 1.35rem;
  color: var(--ns-blue-deep);
  background: var(--ns-yellow);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px);
}

.hero-banner {
  height: clamp(4.5rem, 10vw, 7.75rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ns-silver);
  background: var(--ns-white);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero {
  border-bottom: 1px solid var(--ns-silver);
  background: var(--ns-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ns-yellow);
  color: var(--ns-blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.intro h2,
.panel-card h3 {
  margin: 0;
  font-family: "Merriweather", serif;
}

.hero-copy h1 {
  margin-bottom: 1.5rem;
  color: var(--ns-blue-deep);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.18;
}

.hero-copy p {
  max-width: 43rem;
  margin: 0 0 2rem;
  color: var(--ns-text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary {
  color: var(--ns-white);
  background: var(--ns-blue);
  box-shadow: var(--shadow-portal);
}

.btn-secondary {
  border: 1px solid var(--ns-blue);
  color: var(--ns-blue);
  background: var(--ns-white);
}

.btn-secondary:hover {
  color: var(--ns-white);
  background: var(--ns-blue);
}

.hero-graphic {
  min-height: 20rem;
  opacity: 0.9;
}

.stats {
  border-top: 1px solid var(--ns-blue-mid);
  border-bottom: 1px solid var(--ns-blue-mid);
  background: var(--ns-blue);
  color: var(--ns-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.75rem 0;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ns-yellow);
  font-family: "Merriweather", serif;
  font-size: 2.25rem;
}

.stat span {
  color: var(--ns-on-blue-muted);
  font-weight: 500;
}

.intro {
  border-bottom: 1px solid var(--ns-silver);
  background: var(--ns-white);
}

.intro-inner {
  max-width: 52rem;
  padding: 5rem 0;
  text-align: center;
}

.intro h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.4;
  color: transparent;
  background: linear-gradient(90deg, var(--ns-blue), var(--ns-blue-mid));
  -webkit-background-clip: text;
  background-clip: text;
}

.intro p {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--ns-text-soft);
  font-size: 1.05rem;
}

.modal-card h3,
.feedback-result h3,
.feedback-loading h3 {
  margin: 0;
  color: var(--ns-blue-deep);
  font-size: 2rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal:target {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid var(--ns-gray-200);
  border-radius: 1rem;
  background: var(--ns-white);
  box-shadow: var(--shadow-portal);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.feedback-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.75rem;
  border: 1px solid var(--ns-gray-200);
  border-radius: 1rem;
  background: var(--ns-white);
  box-shadow: var(--shadow-portal);
  overflow: hidden;
}

.video-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  padding: 1rem;
  border-radius: 1rem;
  background: var(--ns-white);
  box-shadow: var(--shadow-portal);
}

.video-frame {
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: var(--ns-text-muted);
  font-size: 2rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ns-text);
}

.panel-copy {
  margin: 0.9rem 0 1.8rem;
  color: var(--ns-text-soft);
}

.feedback-card {
  text-align: center;
}

.feedback-loading,
.feedback-result {
  display: grid;
  justify-items: center;
}

.feedback-loading {
  overflow: hidden;
  max-height: 16rem;
  opacity: 1;
  animation: feedback-loading-collapse 0.35s ease 1.8s forwards;
}

.feedback-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
  animation: feedback-result-reveal 0.35s ease 1.8s forwards;
}

.feedback-actions {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1rem;
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 2rem;
  font-weight: 700;
}

.spinner {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border: 4px solid #dbeafe;
  border-top-color: var(--ns-blue);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.modal-switch {
  margin: 1.4rem 0 0;
  color: var(--ns-text-soft);
  text-align: center;
  font-size: 0.95rem;
}

.modal-switch a {
  margin-left: 0.35rem;
  color: var(--ns-blue);
  font-weight: 700;
}

.mock-form {
  display: grid;
  gap: 1rem;
}

.mock-form label > span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.mock-form input[type="text"] {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ns-gray-300);
  border-radius: 0.5rem;
  background: var(--ns-white);
  color: var(--ns-text);
}

.mock-form input[type="text"]::placeholder {
  color: #94a3b8;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ns-text-soft);
  font-size: 0.84rem;
}

.checkbox-row input {
  margin-top: 0.15rem;
}

.btn-block {
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0;
  color: var(--ns-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--ns-gray-200);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--ns-gray-300);
  border-radius: 0.5rem;
  background: var(--ns-white);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.social-icon {
  width: 1.25rem;
  flex: 0 0 auto;
}

.site-footer {
  border-top: 8px solid var(--ns-yellow);
  background: var(--ns-blue-deep);
  color: var(--ns-on-blue-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 1.5rem;
}

.footer-title {
  font-size: 1.3rem;
}

.footer-subtitle {
  color: var(--ns-on-blue-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links span:hover {
  color: var(--ns-white);
}

.footer-bottom {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--ns-on-blue-divider);
  text-align: center;
  font-size: 0.78rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes feedback-loading-collapse {
  to {
    opacity: 0;
    max-height: 0;
    margin: 0;
    transform: scale(0.98);
  }
}

@keyframes feedback-result-reveal {
  to {
    max-height: 24rem;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 3.5rem 0 4rem;
  }

  .hero-graphic {
    display: none;
  }

  .stats-grid {
    gap: 1.5rem;
  }

  .footer-inner,
  .topbar-inner {
    display: grid;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .topbar {
    display: none;
  }

  .nav {
    min-height: 4.25rem;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .nav-cta,
  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-grid {
    gap: 1.5rem;
    padding: 3rem 0 3.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .intro-inner {
    padding: 3.5rem 0;
  }

  .modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-card,
  .feedback-shell,
  .video-shell {
    padding: 1.4rem;
    width: 100%;
    max-height: 90vh;
    border-radius: 1rem 1rem 0.75rem 0.75rem;
  }

  .feedback-icon {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.6rem;
  }
}
