/* ==========================================================================
   SECTIONS: one block per page section, in the same order as index.html
   Hero · Services · Process · FAQ · Contact
   ========================================================================== */

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(10, 11, 24, .55);
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  margin: 26px 0 22px;
  max-width: 850px;
}

.hero p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 560px;
}

/* a soft dark halo keeps the text readable where it crosses the 3D logo */
.hero h1,
.hero p.lead {
  text-shadow: 0 2px 28px rgba(7, 11, 22, .9);
}

/* gradient words have see-through letters, so a shadow would show through and dull them */
.hero h1 .gradient-text {
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(51, 85, 255, .35));
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 46px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  width: fit-content;
}

.stats b {
  display: block;
  font-family: 'Space Grotesk';
  font-size: 36px;
}

.stats span {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 14px;
}

.scroll-hint:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollHint 1.8s infinite;
}

@keyframes scrollHint {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- services: filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -30px 0 40px;
}

.filter-tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}

.filter-tabs button:hover {
  color: var(--text);
}

.filter-tabs button.is-active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* ---------- services: 3D tilt cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.service-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  /* a dark tint instead of a backdrop blur: blur over the moving 3D background is redrawn every frame */
  background: linear-gradient(var(--card), var(--card)), rgba(7, 8, 18, .6);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .15s ease-out, border-color .3s;
  overflow: hidden;
}

.js .service-card.reveal.is-visible {
  transition: transform .15s ease-out, border-color .3s, opacity .9s;
}

.service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 0%), rgba(51, 85, 255, .18), transparent 45%);
  opacity: 0;
  transition: .3s;
}

.service-card:hover {
  border-color: rgba(51, 85, 255, .45);
}

.service-card:hover:before {
  opacity: 1;
}

.service-card.is-hidden {
  display: none;
}

.service-card.is-highlighted {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 44px -8px rgba(56, 214, 255, .7);
}

.service-card h3 {
  font-size: 21px;
  margin: 20px 0 10px;
  transform: translateZ(30px);
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  min-height: 72px;
  transform: translateZ(20px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(56, 214, 255, .15), rgba(51, 85, 255, .15));
  border: 1px solid var(--line);
  transform: translateZ(40px);
}

.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.tags span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #b9bfd3;
}

.service-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  transform: translateZ(25px);
}

.eta {
  font-size: 12.5px;
  color: var(--cyan);
}

/* ---------- process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  padding: 30px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
}

.step:before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: 'Space Grotesk';
  font-size: 44px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
}

.step h4 {
  font-size: 19px;
  margin: 12px 0 8px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- faq ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 0 22px;
  transition: border-color .3s;
}

.faq-list details[open] {
  border-color: rgba(51, 85, 255, .45);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 30px 20px 0;
  font-weight: 600;
  font-size: 16.5px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--cyan);
  transition: .3s;
}

.faq-list details[open] summary:after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  color: var(--muted);
  font-size: 15px;
  padding: 0 0 20px;
}

/* ---------- contact / quote form ---------- */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 56px;
  border-radius: 30px;
  border: 1px solid var(--line);
  /* tinted glass without a backdrop blur, which would be redrawn on every scroll frame */
  background: linear-gradient(135deg, rgba(51, 85, 255, .16), rgba(56, 214, 255, .05)), rgba(7, 11, 22, .72);
}

/* Zerix mark above the form text; it floats gently and the blue band glows */
.contact-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.contact-brand .logo-mark {
  width: 46px;
  animation: markFloat 5s ease-in-out infinite;
}

.contact-brand .logo-slash {
  filter: drop-shadow(0 0 8px rgba(51, 85, 255, .85));
}

@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.contact-box h2 {
  font-size: clamp(32px, 4vw, 50px);
}

.contact-box p {
  color: var(--muted);
  margin-top: 16px;
}

form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 13, .6);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: .2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(51, 85, 255, .2);
}

select option {
  background: #0a0c18;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  display: none;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #86efac;
  font-size: 14.5px;
}

.form-message--error {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .4);
  color: #fca5a5;
}

.form-message.is-shown {
  display: block;
}
