/*
Theme Name: SearchAI v3
Theme URI: https://www.searchai.test
Author: SearchAI
Description: Dark branded theme for SearchAI v3, with a static network hero.
Version: 3.18.0
Requires at least: 7.1
Tested up to: 7.1.4
Requires PHP: 8.3
Text Domain: searchai-v3
*/

:root {
  --bg: #050505;
  --card: #0b0b0b;
  --accent: #c6ff00;
  --accent-deep: #a2ff00;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --light: #f3f6ef;
  --ink: #111111;
  --header: 84px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.accent {
  color: var(--accent-deep);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 12px 28px;
  background: #050505;
  border-bottom: 1px solid rgba(198, 255, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  min-height: 60px;
  margin: 0 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-brand img,
.site-brand .custom-logo {
  width: 36px;
  height: 36px;
  display: block;
}

.site-brand span {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 16px;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: rgba(220, 220, 220, 0.78);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item:not(.menu-cta) > a,
.nav-menu .current_page_item:not(.menu-cta) > a {
  color: var(--accent);
}

.nav-menu .current-menu-item:not(.menu-cta) > a,
.nav-menu .current_page_item:not(.menu-cta) > a {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-menu .menu-cta {
  margin-left: clamp(10px, 1.2vw, 24px);
}

.nav-menu .menu-cta > a,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.nav-menu .menu-cta > a::after,
.hero-cta::after {
  content: "→";
  font-weight: 500;
}

.nav-menu .menu-cta > a,
.hero-cta-light {
  background: var(--accent);
  color: #081400;
}

.nav-menu .menu-cta > a:hover,
.hero-cta:hover {
  text-decoration: none;
  box-shadow: 0 0 18px rgba(198, 255, 0, 0.45);
  transform: translateY(-1px);
}

.hero-cta-dark {
  background: #0a0a0a;
  border-color: rgba(198, 255, 0, 0.55);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid color-mix(in srgb, #f3f4f6 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #f3f4f6 8%, transparent);
  color: #f3f4f6;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.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;
}

.site-main {
  width: 100%;
  margin: 0;
}

body:not(.home) {
  padding-top: var(--header);
}

body:not(.home) .site-main {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto 4rem;
}

.has-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050505;
}

.grid-floor {
  position: absolute;
  right: -25%;
  bottom: 0;
  left: -25%;
  z-index: 0;
  height: 46%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(198, 255, 0, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, 0.4) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(320px) rotateX(60deg) translateY(8%);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 88%);
  box-shadow: 0 -80px 120px rgba(198, 255, 0, 0.12);
}

.hero {
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.22) 0%, rgba(5, 5, 5, 0.16) 42%, rgba(5, 5, 5, 0.12) 100%);
}

.hero.has-bg .grid-floor {
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 1rem;
  width: min(1240px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 7.5rem 0 6.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 42.5rem;
  padding: 2.15rem 2.35rem 2.25rem;
  border-radius: 1.25rem;
  background: rgba(5, 5, 5, 0.6);
}

.hero-eyebrow,
.block-kicker,
.block-cta .hero-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-support {
  margin: 0 0 1.1rem;
  color: var(--accent-deep);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
}

.hero-body {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.hero-body p {
  margin: 0 0 0.85rem;
}

.hero-body p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero .hero-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual img {
  width: min(560px, 100%);
  height: auto;
  display: block;
}

.block {
  position: relative;
  z-index: 1;
  padding: 5.25rem 1.5rem;
  scroll-margin-top: 96px;
}

.block h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.block-body,
.block-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.block-body p {
  margin: 0 0 1rem;
}

.block-body p:last-child {
  margin-bottom: 0;
}

.block-snapshot {
  background: var(--light);
  color: var(--ink);
}

.block-snapshot .block-kicker {
  color: #5b8a00;
}

.block-snapshot h2 {
  color: var(--ink);
}

.block-snapshot .accent {
  color: #5f9b00;
}

.block-snapshot .block-body {
  color: #3c3c3c;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.snapshot-action {
  padding-left: 2.5rem;
  border-left: 1px solid rgba(17, 17, 17, 0.12);
}

.block-snapshot .hero-actions {
  margin-top: 1.4rem;
}

.why-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.block-kicker-ruled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.block-kicker-ruled::before,
.block-kicker-ruled::after {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--accent);
}

.block-why h2 {
  margin-bottom: 1.1rem;
}

.block-why .block-body {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.block-why .hero-actions {
  justify-content: center;
}

.block-why-aside {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  width: min(760px, 100%);
  margin: 2.4rem auto 0;
  padding: 1.35rem 1.5rem;
  text-align: left;
  background: rgba(8, 12, 0, 0.55);
  border: 1px solid rgba(198, 255, 0, 0.38);
  border-radius: 1.15rem;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--accent);
  border: 1px solid rgba(198, 255, 0, 0.35);
  border-radius: 0.85rem;
}

.block-why-aside h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.block-cta {
  padding: 6.5rem 1.5rem 7.5rem;
  text-align: center;
}

.block-cta .block-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
}

.block-cta h2 {
  margin-bottom: 1rem;
}

.block-cta .hero-actions {
  justify-content: center;
}

.entry,
.empty-state {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 1.25rem;
  border: 1px solid rgba(162, 255, 0, 0.12);
}

.site-footer {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-top {
  padding-bottom: 1.4rem;
}

.footer-bottom {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-tagline,
.footer-copy {
  margin: 0;
}

.footer-menu,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-legal a,
.footer-social a {
  color: var(--muted);
  text-decoration: none;
}

.footer-menu a:hover,
.footer-legal a:hover,
.footer-social a:hover,
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: rgba(0, 0, 0, 0.92);
  }

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

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-menu a {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 500;
    padding: 10px 0;
  }

  .nav-menu .menu-cta {
    margin: 16px 0 0;
  }

  .nav-menu .menu-cta > a {
    font-size: 16px;
  }

  .hero-inner,
  .snapshot-grid,
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    min-height: 0;
    padding: 7rem 0 4rem;
  }

  .hero-copy {
    max-width: none;
    padding: 1.5rem 1.35rem 1.6rem;
  }

  .snapshot-action {
    padding-left: 0;
    border-left: 0;
  }

  .hero-visual img {
    width: min(420px, 100%);
  }

  .block-why-aside,
  .footer-brand {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
