:root {
  --nx-primary: #2563eb;
  --nx-primary-dark: #1d4ed8;
  --nx-accent: #8b5cf6;
  --nx-accent-soft: #c4b5fd;
  --nx-dark: #0f172a;
  --nx-dark-soft: #16233b;
  --nx-text: #0f172a;
  --nx-text-soft: #475569;
  --nx-white: #ffffff;
  --nx-border: rgba(15, 23, 42, 0.08);
  --nx-border-light: rgba(255, 255, 255, 0.12);
  --nx-bg: #f8fbff;
  --nx-bg-soft: #eef4ff;
  --nx-surface: #ffffff;
  --nx-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --nx-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.16);
  --nx-radius: 24px;
  --nx-radius-sm: 16px;
  --nx-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #8b5cf6 100%);
  --nx-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--nx-text);
  background: linear-gradient(180deg, #08111f 0%, #10203c 520px, #f8fbff 520px, #f8fbff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow-container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: transparent;
}

.section-dark {
  background: linear-gradient(180deg, #101d34 0%, #0f172a 100%);
  color: #e7eefc;
}

.section-soft {
  background: linear-gradient(180deg, #f3f7ff 0%, #eef4ff 100%);
}

.section-cta {
  padding-top: 0;
  padding-bottom: 96px;
}

.topbar {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(8, 17, 31, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--nx-white);
}

.brand-copy strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--nx-gradient);
  position: relative;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.brand-mark::before {
  width: 18px;
  height: 6px;
}

.brand-mark::after {
  width: 6px;
  height: 18px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nx-white);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.58);
  z-index: 1090;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  margin: 0;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--nx-gradient);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.28);
}

.button-primary:hover {
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.34);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.section-light .button-secondary,
.section-soft .button-secondary,
.page-card .button-secondary {
  color: var(--nx-text);
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.header-cta {
  min-height: 48px;
  padding-inline: 22px;
}

.hero-section {
  color: #ffffff;
  padding: 72px 0 48px;
  position: relative;
  overflow: clip;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-section::before {
  width: 340px;
  height: 340px;
  background: rgba(37, 99, 235, 0.26);
  top: -80px;
  right: 12%;
}

.hero-section::after {
  width: 260px;
  height: 260px;
  background: rgba(139, 92, 246, 0.22);
  bottom: -30px;
  left: 6%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nx-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stat {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.card {
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow);
  border: 1px solid var(--nx-border);
}

.hero-card,
.mini-card,
.metrics-card,
.info-card,
.cta-panel,
.section-dark .card {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--nx-shadow-strong);
  color: #f8fbff;
}

.hero-card,
.metrics-card,
.info-card,
.cta-panel,
.page-card,
.post-card,
.service-card,
.reason-card,
.compact-card {
  padding: 28px;
}

.hero-card h3,
.metrics-card h3,
.info-card h3 {
  margin: 14px 0 16px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe7ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.feature-list-dark li {
  color: rgba(255, 255, 255, 0.88);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--nx-accent-soft);
  transform: translateY(-50%);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mini-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.35;
}

.logo-strip {
  padding: 14px 0 34px;
}

.logo-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.logo-strip-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.section-heading {
  margin-bottom: 26px;
  max-width: 780px;
}

.section-heading h2,
.page-intro h1,
.page-card h1,
.post-card h2,
.entry-title {
  margin: 14px 0 12px;
  color: var(--nx-text);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-dark .section-heading h2,
.section-dark .section-copy,
.section-dark .bullet-item strong,
.section-dark .bullet-item span,
.section-dark .metric-row,
.section-dark .metric-row strong,
.section-dark .info-card p,
.section-dark .post-card h2,
.section-dark .entry-title {
  color: #f8fbff;
}

.post-card .entry-title,
.post-card h2.entry-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-copy,
.section-intro,
.bullet-item span,
.service-card p,
.reason-card p,
.page-card,
.post-card,
.entry-content,
.page-intro p {
  color: var(--nx-text-soft);
}

.section-dark .service-card p,
.section-dark .reason-card p,
.section-dark .entry-content {
  color: rgba(255, 255, 255, 0.8);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card h3,
.reason-card h3,
.compact-card strong,
.bullet-item strong,
.footer-title,
.widget-title {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--nx-primary-dark);
}

.text-link:hover {
  text-decoration: underline;
}

.two-column-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px 40px;
  align-items: start;
}

.stack-column {
  display: grid;
  gap: 18px;
}

.bullet-grid {
  display: grid;
  gap: 16px;
}

.bullet-item {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bullet-item strong,
.bullet-item span {
  display: block;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
}

.showcase-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  align-content: start;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-group span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  font-weight: 700;
}

.light-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--nx-text);
  box-shadow: var(--nx-shadow);
}

.light-card .mini-badge {
  background: var(--nx-gradient-soft);
  color: var(--nx-primary-dark);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  background: linear-gradient(135deg, #0f172a 0%, #162441 50%, #1f2f5c 100%);
}

.cta-panel h2 {
  margin: 14px 0 10px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-intro {
  margin-bottom: 28px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 28px;
}

.content-area {
  min-width: 0;
}

.post-card + .post-card,
.page-card + .page-card {
  margin-top: 20px;
}

.page-card .entry-title,
.post-card .entry-title,
.page-intro h1 {
  color: var(--nx-text);
}

.entry-meta {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

.featured-image {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 18px;
}

.pagination-wrap {
  margin-top: 28px;
}

.pagination .nav-links,
.pagination-wrap .nav-links,
.post-navigation .nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-numbers,
.post-navigation a,
.post-navigation span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-area {
  display: grid;
  gap: 20px;
  align-content: start;
}

.widget {
  padding: 24px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li + li {
  margin-top: 10px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1 1 auto;
}

.search-field {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0 16px;
}

.search-submit {
  min-width: 110px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--nx-gradient);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  background: #0b1322;
  color: rgba(255, 255, 255, 0.84);
  padding: 72px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(180px, 1fr));
  gap: 28px;
}

.footer-branding p {
  color: rgba(255, 255, 255, 0.66);
  margin: 18px 0 0;
}

.footer-contact-list,
.social-links,
.footer-links,
.footer-menu {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.footer-links a,
.footer-menu a,
.social-links a,
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-menu a:hover,
.social-links a:hover,
.footer-contact-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal="left"] {
  transform: translateX(22px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 10px;
  padding: 10px 14px;
  background: #ffffff;
  color: #000000;
  z-index: 10000;
}

.wp-caption,
.gallery-caption,
.bypostauthor {
  color: inherit;
}

@media (max-width: 1180px) {
  .hero-grid,
  .two-column-feature,
  .content-layout,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .footer-top {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  body {
    background: linear-gradient(180deg, #08111f 0%, #10203c 460px, #f8fbff 460px, #f8fbff 100%);
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1110;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100dvh;
    padding: 104px 22px 24px;
    background: #0b1322;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.24);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    overflow-y: auto;
    z-index: 1100;
  }

  .main-navigation.is-open {
    transform: translateX(0);
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .primary-menu a {
    min-height: 50px;
    padding-inline: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .header-cta {
    width: 100%;
  }

  .card-grid-3,
  .card-grid-4,
  .card-grid-2,
  .showcase-card-grid,
  .logo-strip-grid,
  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .topbar {
    display: none;
  }

  .header-inner {
    min-height: 74px;
  }

  .hero-section {
    padding-top: 48px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-actions,
  .cta-actions,
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .hero-stat {
    width: 100%;
  }

  .card-grid-3,
  .card-grid-4,
  .card-grid-2,
  .showcase-card-grid,
  .logo-strip-grid,
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container,
  .narrow-container {
    width: min(100% - 20px, 1240px);
  }

  .hero-card,
  .metrics-card,
  .info-card,
  .cta-panel,
  .page-card,
  .post-card,
  .service-card,
  .reason-card,
  .compact-card,
  .widget {
    padding: 22px;
  }

  .site-footer {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
