/* ============================================================
   QHHE — qhhe.net
   Brand: purple #6331DA dominant · green #1ebe82 accent (human
   decisions / circuit nodes) · Montserrat · light, airy layouts.
   ============================================================ */

:root {
  --purple: #6331da;
  --purple-deep: #40208f;
  --purple-ink: #2a1560;
  --green: #1ebe82;
  --green-soft: #e9faf3;
  --gray: #7c7a7d;
  --bg-alt: #f4f4f4;
  --ink: #1a1a1a;
  --white: #ffffff;
  --line: #e6e4e9;
  --radius: 6px;
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
}

::selection {
  background: var(--purple);
  color: var(--white);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: var(--purple);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--purple);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--purple) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch:hover {
  background: var(--purple);
  color: var(--white) !important;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}

.kicker .node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 .ask {
  color: var(--ink);
  display: block;
}

.hero h1 .answer {
  color: var(--purple);
  display: block;
  margin-top: 0.15em;
}

.hero .sub {
  margin-top: 28px;
  max-width: 40em;
  font-size: 1.1rem;
  color: var(--gray);
}

.hero .sub strong {
  color: var(--ink);
}

.cta-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(99, 49, 218, 0.28);
}

.btn-primary:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 49, 218, 0.34);
}

.btn-ghost {
  border: 2px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

/* circuit decoration (echoes the logo's traces) */
.circuit {
  position: absolute;
  right: -60px;
  top: 40px;
  width: min(46vw, 560px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 860px) {
  .circuit {
    display: none;
  }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--purple);
  color: var(--white);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 44px;
  padding-right: 44px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 44px;
}

.marquee li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- sections ---------- */

section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-head h2 em {
  font-style: normal;
  color: var(--purple);
}

.section-head p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 1.02rem;
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.1);
}

.service:hover::before {
  transform: scaleX(1);
}

.service .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(99, 49, 218, 0.09);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--purple);
}

.service h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service p {
  font-size: 0.93rem;
  color: var(--gray);
}

.service .human {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.service .human::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 18px;
}

.step .num {
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--purple);
  opacity: 0.85;
  display: block;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step h3 .node {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 8px;
  vertical-align: middle;
}

.step p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- big CTA ---------- */

.cta {
  background: linear-gradient(135deg, var(--purple-ink) 0%, var(--purple) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}

.cta h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cta p {
  margin: 22px auto 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.cta .btn-light {
  margin-top: 40px;
  background: var(--white);
  color: var(--purple);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.cta .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.cta .mail {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.cta .mail a {
  color: var(--white);
  font-weight: 700;
}

.cta .circuit-cta {
  position: absolute;
  left: -40px;
  bottom: -30px;
  width: 340px;
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer img {
  height: 40px;
  width: auto;
}

.site-footer p {
  color: var(--gray);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--gray);
}

.site-footer a:hover {
  color: var(--purple);
}

/* ---------- reveal on load ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .kicker,
  .hero h1,
  .hero .sub,
  .hero .cta-row {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero h1 {
    animation-delay: 0.08s;
  }
  .hero .sub {
    animation-delay: 0.18s;
  }
  .hero .cta-row {
    animation-delay: 0.28s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .site-nav a:not(.lang-switch) {
    display: none;
  }
  section {
    padding: 72px 0;
  }
  .hero {
    padding: 72px 0 64px;
  }
}
