:root {
  --bg: #050b0b;
  --bg-2: #071413;
  --bg-3: #0d1d22;
  --surface: #0f2024;
  --surface-2: #11282b;
  --text: #f4fff7;
  --muted: #a9bebc;
  --muted-2: #d3dfdc;
  --line: rgba(126, 240, 154, 0.18);
  --line-2: rgba(78, 210, 230, 0.2);
  --lime: #b6ff3d;
  --lime-2: #52e070;
  --cyan: #58e0e7;
  --gold: #f2d16b;
  --danger: #ff7f8f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: min(1140px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 4%, rgba(88, 224, 231, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(182, 255, 61, 0.12), transparent 25rem),
    linear-gradient(180deg, #040909 0%, var(--bg) 34%, #061011 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--lime);
}

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

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

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

.screen-reader-text:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  z-index: 1000;
  background: var(--lime);
  color: #041009;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: var(--container);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.custom-logo-link,
.site-logo-img {
  display: block;
}

.custom-logo,
.site-logo-img {
  width: auto;
  max-width: 210px;
  max-height: 48px;
  object-fit: contain;
}

.site-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(182, 255, 61, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(182, 255, 61, 0.18), rgba(88, 224, 231, 0.1));
  color: var(--lime);
  box-shadow: inset 0 0 18px rgba(182, 255, 61, 0.12);
}

.site-logo-text {
  overflow: hidden;
  max-width: 14rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: rgba(182, 255, 61, 0.09);
  color: var(--lime);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 40, 43, 0.9);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--lime);
}

.site-main {
  min-height: 70vh;
}

.hero-portal {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0 24px;
}

.hero-portal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.hero-portal__copy {
  position: relative;
  min-height: 520px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(182, 255, 61, 0.11), transparent 32%),
    linear-gradient(160deg, rgba(17, 40, 43, 0.92), rgba(7, 20, 19, 0.94));
  box-shadow: var(--shadow);
}

.hero-portal__copy::after {
  content: "";
  position: absolute;
  inset: auto 34px 30px auto;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--cyan));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.hero-portal h1,
.page-hero h1,
.archive-hero h1,
.not-found h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-portal__lead {
  max-width: 760px;
  margin: 24px 0;
  color: var(--muted-2);
  font-size: 19px;
  line-height: 1.85;
}

.button,
.search-form button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #061109;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button--primary,
.search-form button,
.wp-block-button__link {
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  box-shadow: 0 10px 28px rgba(82, 224, 112, 0.24);
}

.button--secondary {
  border: 1px solid var(--line);
  background: rgba(182, 255, 61, 0.08);
  color: var(--lime);
}

.button:hover,
.search-form button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  color: #061109;
}

.hero-portal__button {
  min-width: 180px;
  margin: 4px 0 22px;
}

.hero-portal__note {
  max-width: 760px;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
}

.hero-portal__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-portal__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  border: 1px solid rgba(182, 255, 61, 0.3);
  border-radius: 8px;
  background: rgba(5, 11, 11, 0.82);
  backdrop-filter: blur(10px);
}

.hero-panel span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.portal-strip {
  width: var(--container);
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.portal-strip a {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 32, 36, 0.86);
  color: var(--text);
  font-weight: 800;
}

.portal-strip a:hover {
  border-color: rgba(182, 255, 61, 0.55);
  background: rgba(182, 255, 61, 0.08);
}

.portal-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--lime);
  font-size: 12px;
}

.section-wrap {
  width: var(--container);
  margin: 0 auto 56px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2,
.longform-shell h2,
.page-content h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

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

.feature-card,
.post-card,
.page-content > .wp-block-group,
.longform-shell .wp-block-group,
.wp-block-yoast-faq-block .schema-faq-section,
.longform-shell .faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 40, 43, 0.92), rgba(9, 22, 22, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card h3,
.post-card h2,
.page-content h3,
.longform-shell h3 {
  margin: 18px 18px 8px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
}

.feature-card p {
  margin: 0 18px 20px;
  color: var(--muted);
}

.longform-shell,
.page-shell {
  width: var(--container);
  margin: 0 auto 68px;
}

.longform-shell__inner,
.page-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13, 29, 34, 0.94), rgba(7, 17, 17, 0.98)),
    var(--bg-2);
}

.longform-shell h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.longform-shell h2,
.page-content h2 {
  position: relative;
  margin-top: 42px;
  padding-top: 18px;
}

.longform-shell h2::before,
.page-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.longform-shell h3,
.page-content h3 {
  margin-left: 0;
  color: var(--lime);
}

.longform-shell p,
.page-content p,
.longform-shell li,
.page-content li {
  color: var(--muted-2);
}

.longform-shell a,
.page-content a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgba(182, 255, 61, 0.4);
  text-underline-offset: 3px;
}

.longform-shell ul,
.longform-shell ol,
.page-content ul,
.page-content ol {
  padding-left: 1.3rem;
}

.longform-shell figure,
.page-content figure {
  margin: 28px 0;
}

.longform-shell .wp-block-image img,
.page-content .wp-block-image img,
.featured-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.longform-shell figcaption,
.page-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-table table,
.longform-shell table,
.page-content table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.wp-block-table th,
.wp-block-table td,
.longform-shell th,
.longform-shell td,
.page-content th,
.page-content td {
  padding: 14px;
  border-bottom: 1px solid rgba(169, 190, 188, 0.12);
  color: var(--muted-2);
  text-align: left;
  vertical-align: top;
}

.wp-block-table th,
.longform-shell th,
.page-content th {
  background: rgba(182, 255, 61, 0.08);
  color: var(--lime);
}

.wp-block-quote {
  margin: 28px 0;
  padding: 20px;
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: rgba(182, 255, 61, 0.06);
  color: var(--muted-2);
}

.toc-panel {
  margin: 28px 0 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 11, 11, 0.45);
}

.toc-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
}

.toc-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding-left: 1.1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.faq-card {
  padding: 18px;
}

.faq-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
}

.faq-card p {
  margin: 0;
}

.wp-block-yoast-faq-block .schema-faq-section {
  margin: 14px 0;
  padding: 18px;
}

.wp-block-yoast-faq-block .schema-faq-question {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.wp-block-yoast-faq-block .schema-faq-answer {
  margin-bottom: 0;
}

.page-hero,
.archive-hero,
.not-found {
  width: var(--container);
  margin: 0 auto;
  padding: 58px 0 28px;
}

.page-hero h1,
.archive-hero h1,
.not-found h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.site-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-breadcrumbs a {
  color: var(--lime);
}

.site-breadcrumbs span:last-child {
  color: var(--muted-2);
}

.archive-description {
  max-width: 760px;
  color: var(--muted);
}

.archive-grid {
  width: var(--container);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  overflow: hidden;
}

.post-card__media {
  display: block;
  background: var(--surface);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body {
  padding: 18px;
}

.post-card h2 {
  margin: 6px 0 8px;
  font-size: 21px;
}

.post-card__meta {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
}

.post-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.search-form {
  display: flex;
  max-width: 680px;
  margin-top: 22px;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 40, 43, 0.92);
  color: var(--text);
  font: inherit;
}

.not-found {
  min-height: 60vh;
}

.empty-state {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030807;
}

.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 28px;
  padding: 44px 0 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
}

.site-brand--footer {
  margin-bottom: 16px;
}

.footer-contact {
  color: var(--lime);
  font-weight: 800;
}

.site-footer .menu,
.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .menu a {
  display: inline-flex;
  min-height: 34px;
  color: var(--muted-2);
}

.site-footer__bottom {
  border-top: 1px solid rgba(169, 190, 188, 0.12);
}

.site-footer__bottom p {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-contact-list a {
  color: var(--lime);
}

.floating-contact {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 60;
  transform: translateY(-50%);
}

.floating-contact__toggle {
  display: none;
}

.floating-contact__panel {
  width: 238px;
  padding: 16px;
  border: 1px solid rgba(182, 255, 61, 0.34);
  border-radius: 8px;
  background: rgba(5, 14, 15, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.floating-contact__panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 16px;
}

.floating-contact__panel p,
.floating-contact__panel address {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.floating-contact__actions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.floating-contact__actions a,
.floating-contact__actions span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 40, 43, 0.9);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.floating-contact__actions a:hover {
  border-color: rgba(182, 255, 61, 0.6);
  background: rgba(182, 255, 61, 0.1);
  color: var(--lime);
}

.nav-links,
.pagination {
  width: var(--container);
  margin: 0 auto 60px;
}

.nav-links a,
.nav-links span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 3px 6px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-2);
}

.nav-links .current,
.page-numbers.current {
  background: var(--lime);
  color: #061109;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 65px 0 auto 0;
    display: none;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 11, 0.97);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .menu {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: 6px;
    padding: 12px 0 18px;
  }

  .site-nav a {
    width: 100%;
  }

  .hero-portal__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero-portal__copy,
  .hero-portal__media,
  .hero-portal__media img {
    min-height: auto;
  }

  .hero-portal__media img {
    aspect-ratio: 16 / 10;
  }

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

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

  .floating-contact {
    right: 12px;
  }

  .floating-contact__toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(182, 255, 61, 0.45);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    color: #061109;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(82, 224, 112, 0.24);
  }

  .floating-contact__panel {
    position: absolute;
    right: 0;
    top: 54px;
    display: none;
  }

  .floating-contact__panel.is-open {
    display: block;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 22px, 1140px);
  }

  body {
    font-size: 16px;
  }

  .site-header__inner {
    min-height: 58px;
  }

  .custom-logo,
  .site-logo-img {
    max-width: 168px;
    max-height: 42px;
  }

  .hero-portal {
    padding-top: 26px;
  }

  .hero-portal__copy {
    padding: 24px;
  }

  .hero-portal__lead {
    font-size: 17px;
  }

  .hero-portal__button {
    width: 100%;
  }

  .portal-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .portal-strip a {
    min-width: 154px;
    scroll-snap-align: start;
  }

  .feature-grid,
  .archive-grid,
  .toc-panel ol,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .longform-shell__inner,
  .page-content {
    padding: 22px;
  }

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

  .search-form button {
    width: 100%;
  }

  .site-footer__inner {
    padding-top: 32px;
  }

  .floating-contact {
    top: 50%;
    right: 11px;
    bottom: auto;
    transform: translateY(-50%);
  }

  .floating-contact__panel {
    top: 50%;
    right: 54px;
    bottom: auto;
    width: min(282px, calc(100vw - 22px));
    transform: translateY(-50%);
  }
}
