:root {
  --night: #07111f;
  --night-2: #0b1728;
  --ink: #111827;
  --muted: #667587;
  --line: #dbe4ec;
  --panel: #ffffff;
  --paper: #f6f9fb;
  --cyan: #24d6c8;
  --blue: #45a5ff;
  --brand-primary: linear-gradient(135deg, #28e0d4 0%, #20c6c4 42%, #2f7df6 100%);
  --brand-primary-shadow: 0 18px 42px rgba(36, 214, 200, .28);
  --emerald: #30c781;
  --amber: #f5a524;
  --violet: #8b5cf6;
  --shadow: 0 28px 80px rgba(7, 17, 31, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  padding-top: 76px;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(22px, 4vw, 64px);
  color: rgba(255, 255, 255, .86);
  background: rgba(7, 17, 31, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 205px;
  height: 100%;
}

.logo-mark {
  width: 205px;
  height: 52px;
  flex: 0 0 205px;
  margin-top: 0;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.topbar .brand .logo-mark > .brand-logo-image {
  width: 205px !important;
  height: 52px !important;
  max-width: 205px !important;
  max-height: 52px !important;
  object-fit: contain;
  display: block;
  position: static !important;
}

.logo-depth {
  fill: rgba(1, 9, 19, .76);
}

.logo-h-core {
  fill: var(--cyan);
}

.logo-five-core {
  fill: #f8fbff;
}

.logo-accent {
  fill: var(--amber);
}

.logo-flow {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand svg {
  filter:
    drop-shadow(0 8px 18px rgba(36, 214, 200, .24))
    drop-shadow(0 0 18px rgba(69, 165, 255, .12));
}

.brand-logo-image {
  filter: none;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  gap: 6px;
  height: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 16px;
  color: #c9d5e2;
  font-size: 14px;
  font-weight: 760;
}

.nav-item > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease, color .2s ease;
}

.nav-item:hover > a {
  color: #fff;
}

.nav-item:hover > a::after {
  color: var(--cyan);
  transform: translateY(1px) rotate(225deg);
}

.dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 286px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(10, 22, 38, .96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.dropdown a {
  display: block;
  padding: 12px 13px;
  border-radius: 12px;
  color: #d8e4ef;
}

.dropdown a:hover {
  background: rgba(36, 214, 200, .09);
}

.dropdown strong,
.dropdown span {
  display: block;
}

.dropdown strong {
  color: #fff;
  font-size: 14px;
}

.dropdown span {
  margin-top: 4px;
  color: #8fa3b7;
  font-size: 12px;
  line-height: 1.45;
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(36, 214, 200, .82);
  border-radius: 11px;
  color: #04111f;
  background: var(--brand-primary);
  box-shadow: var(--brand-primary-shadow), inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 14px;
  font-weight: 820;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.top-action:hover {
  transform: translateY(-1px);
  border-color: rgba(135, 245, 238, .95);
  box-shadow: 0 22px 48px rgba(36, 214, 200, .34), inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.language-switcher {
  position: relative;
  z-index: 60;
}

.language-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  color: #d9e6f2;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
}

.language-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(10, 22, 38, .97);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.language-switcher.open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  color: #c9d5e2;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 760;
}

.language-menu button:hover,
.language-menu button.active {
  color: #fff;
  background: rgba(36, 214, 200, .14);
}

.hero {
  position: relative;
  min-height: 560px;
  display: block;
  padding: 76px clamp(22px, 5vw, 76px) 132px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .98), rgba(7, 17, 31, .88)),
    linear-gradient(135deg, #07111f, #0f2136 58%, #0b1728);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 76px 0 0 0;
  opacity: .55;
  background:
    linear-gradient(rgba(36, 214, 200, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 165, 255, .13) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 880;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1380px;
  margin: 0 auto;
  font-size: clamp(46px, 6vw, 84px);
  line-height: .98;
  letter-spacing: 0;
}

.hero h1::first-line {
  color: #fff;
}

.hero-lede {
  max-width: 1380px;
  margin: 22px auto 0;
  color: #aab8c8;
  font-size: 20px;
  line-height: 1.7;
}

.hero-metrics {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}

.hero-metrics div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: rgba(9, 22, 38, .78);
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
}

.metric-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-icon.image {
  color: var(--cyan);
}

.metric-icon.text {
  color: var(--emerald);
}

.metric-icon.audio {
  color: var(--blue);
}

.metric-icon.debug {
  color: var(--amber);
}

.metric-icon.font {
  color: var(--violet);
}

.metric-copy {
  min-width: 0;
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.hero-metrics div:nth-child(1) strong {
  color: var(--cyan);
}

.hero-metrics div:nth-child(2) strong {
  color: var(--emerald);
}

.hero-metrics div:nth-child(3) strong {
  color: var(--blue);
}

.hero-metrics div:nth-child(4) strong {
  color: var(--amber);
}

.hero-metrics div:nth-child(5) strong {
  color: var(--violet);
}

.metric-copy > span {
  display: block;
  margin-top: 8px;
  color: #aab8c8;
  font-size: 13px;
  line-height: 1.45;
}

.tool-finder {
  position: relative;
  z-index: 5;
  margin-top: -92px;
  padding: 28px clamp(22px, 5vw, 76px) 72px;
  background: #fff;
  border-top: 1px solid rgba(36, 214, 200, .2);
  box-shadow: 0 -22px 70px rgba(7, 17, 31, .18);
}

.finder-head {
  display: none;
}

.finder-head h2,
.content-band h2,
.seo-section h2,
.faq h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.finder-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.search-wrap {
  position: relative;
  max-width: 1380px;
  margin: 0 auto 12px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #172033;
  border-radius: 50%;
  transform: translateY(-50%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  border-radius: 99px;
  background: #172033;
  transform: rotate(45deg);
}

.search-wrap input {
  width: 100%;
  min-height: 74px;
  padding: 0 240px 0 62px;
  border: 1px solid rgba(36, 214, 200, .52);
  border-radius: 18px;
  outline: none;
  color: #111827;
  background: #fff;
  box-shadow: 0 18px 50px rgba(36, 214, 200, .13);
  font-size: 18px;
}

.search-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(36, 214, 200, .16), 0 24px 70px rgba(36, 214, 200, .16);
}

.search-hint {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #7a8796;
  font-size: 13px;
  transform: translateY(-50%);
}

.filter-row {
  max-width: 1380px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
}

.filter-row button {
  min-height: 40px;
  min-width: 90px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5e6d80;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.filter-row button:hover,
.filter-row button.active {
  color: #fff;
  border-color: #0f172a;
  background: #0f172a;
  transform: translateY(-1px);
}

.tool-grid {
  max-width: 1380px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.tool-card {
  position: relative;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
  animation: cardIn .32s ease both;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
  border-color: rgba(36, 214, 200, .7);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .1);
  transform: translateY(-3px);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent, var(--cyan));
}

.tool-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tool-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-dark, #087f5b);
  background: color-mix(in srgb, var(--accent, var(--cyan)) 16%, white);
  font-weight: 900;
}

.tool-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent-dark, #087f5b);
  background: color-mix(in srgb, var(--accent, var(--cyan)) 13%, white);
  font-size: 12px;
  font-weight: 820;
}

.tool-card h3 {
  margin: 20px 0 8px;
  font-size: 21px;
}

.tool-card p {
  margin: 0;
  color: #526174;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 18px;
  padding-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--accent-dark, #087f5b);
  background: color-mix(in srgb, var(--accent, var(--cyan)) 12%, white);
  font-size: 12px;
  font-weight: 740;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 820;
}

.tool-link.available {
  color: #fff;
  border-color: #0f172a;
  background: #0f172a;
}

.tool-link span {
  color: var(--accent, var(--cyan));
  font-size: 18px;
}

.empty-state {
  max-width: 1380px;
  margin: 18px auto 0;
  color: var(--muted);
}

.ad-section {
  padding: 28px clamp(22px, 5vw, 76px);
  background: #fff;
}

.ad-section.muted {
  background: #eef7f6;
}

.ad-slot {
  max-width: 1180px;
  min-height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px dashed #a9bdc8;
  border-radius: 14px;
  color: #667587;
  background:
    linear-gradient(135deg, rgba(36, 214, 200, .05), rgba(69, 165, 255, .05)),
    #f8fbfc;
  font-size: 13px;
}

.impact-section {
  padding: 76px clamp(22px, 5vw, 76px);
  background: #eef7f6;
}

.impact-head {
  max-width: 980px;
  margin-bottom: 28px;
}

.impact-head h2 {
  max-width: 820px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.impact-head p:not(.section-label) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #526174;
  font-size: 17px;
  line-height: 1.72;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.impact-grid article,
.seo-grid article,
.faq-list article {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .05);
}

.impact-grid article {
  min-height: 240px;
  padding: 22px;
  background: #fff;
}

.impact-grid span {
  display: block;
  color: #526174;
  font-size: 13px;
  font-weight: 780;
}

.impact-grid strong {
  display: block;
  margin: 18px 0 16px;
  color: #0f172a;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.impact-grid article:nth-child(1) strong {
  color: var(--cyan);
}

.impact-grid article:nth-child(2) strong {
  color: var(--blue);
}

.impact-grid article:nth-child(3) strong {
  color: var(--violet);
}

.impact-grid article:nth-child(4) strong {
  color: var(--amber);
}

.seo-grid h3,
.faq-list h3 {
  margin: 0 0 8px;
}

.impact-grid p,
.seo-grid p,
.faq-list p {
  margin: 0;
  color: #526174;
  line-height: 1.68;
}

.seo-section,
.faq {
  padding: 78px clamp(22px, 5vw, 76px);
  background: #fff;
}

.section-head {
  max-width: 1120px;
  margin-bottom: 28px;
}

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

.seo-grid article {
  padding: 24px;
}

.faq {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 34px;
  background: #0f172a;
}

.faq h2 {
  color: #fff;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list article {
  padding: 22px;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}

.faq-list h3 {
  color: #fff;
}

.faq-list p {
  color: #aab8c8;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(22px, 5vw, 76px);
  color: #91a1b4;
  background: #07111f;
}

.footer span:first-child {
  color: #fff;
  font-weight: 850;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@media (max-width: 1120px) {
  .topbar {
    gap: 18px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .impact-grid,
  .faq {
    grid-template-columns: 1fr;
  }

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

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .topbar {
    position: fixed;
    height: 76px;
    padding: 16px;
  }

  .brand {
    min-width: 0;
  }

  .top-action {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: 58px 18px 52px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .tool-grid,
  .seo-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
  }

  .hero-metrics div {
    grid-template-columns: 30px 1fr;
    gap: 9px;
    padding: 12px;
  }

  .hero-metrics div:last-child {
    grid-column: 1 / -1;
  }

  .metric-icon {
    width: 29px;
    height: 29px;
  }

  .metric-icon svg {
    width: 19px;
    height: 19px;
  }

  .hero-metrics strong {
    font-size: 14px;
  }

  .metric-copy > span {
    font-size: 12px;
  }

  .tool-finder {
    margin-top: -18px;
  }

  .search-wrap input {
    min-height: 66px;
    padding-right: 20px;
  }

  .search-hint {
    display: none;
  }

  .tool-finder,
  .impact-section,
  .ad-section,
  .seo-section,
  .faq {
    padding-left: 18px;
    padding-right: 18px;
  }

  .finder-head {
    align-items: start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
}
