/* ============================================================
   ELVO static SEO pages — shared stylesheet
   Used by /about, /services, /faq, /templates and /contact.
   Dark theme, Inter Tight, restrained accent gradient.
   ============================================================ */

:root {
  --bg: #04040a;
  --bg-soft: #060610;
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --card: #0d0d16;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: linear-gradient(90deg, #8b7bff, #ff91a3, #5fdcff);
  --accent-solid: #8b7bff;
  --link: #cfc9ff;
  --max-width: 1080px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(60% 32% at 50% 0%, rgba(139, 123, 255, 0.1), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(207, 201, 255, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

:focus-visible {
  outline: 2px solid #5fdcff;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #8b7bff;
  color: #04040a;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(28px, 5vw, 48px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.05rem, 5.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 28px;
  max-width: 72ch;
  color: #c9c9d3;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  line-height: 1.6;
}

.lede strong {
  color: var(--text);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(26px, 4.5vw, 44px) 0;
}

.section > h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section > p {
  max-width: 74ch;
  margin: 0 0 16px;
  color: var(--muted);
}

.section > p strong,
.card strong,
.faq-item strong {
  color: var(--text);
}

.answer {
  position: relative;
  max-width: 78ch;
  margin: 0 0 18px;
  padding: 20px 24px 20px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px var(--radius) var(--radius) 4px;
  color: #d7d7df;
}

.answer::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

ul.clean {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

ul.clean li {
  position: relative;
  max-width: 74ch;
  padding-left: 22px;
  color: var(--muted);
}

ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-solid);
}

ol.steps {
  display: grid;
  gap: 14px;
  max-width: 78ch;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps li {
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}

ol.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent);
  color: #07070d;
  font-size: 0.85rem;
  font-weight: 700;
}

ol.steps li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
  margin: 4px 0 8px;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.design-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.text-link {
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 201, 255, 0.4);
}

/* ---------- Tags ---------- */

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9c9d3;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  color: #07070d;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(139, 123, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  color: #07070d;
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(139, 123, 255, 0.4);
}

.btn.ghost {
  color: var(--text);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--accent) border-box;
  box-shadow: none;
}

.btn.ghost:hover {
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(139, 123, 255, 0.35), 0 10px 30px rgba(139, 123, 255, 0.18);
}

.btn.small {
  padding: 9px 16px;
  font-size: 0.86rem;
}

/* ---------- Tables ---------- */

.table-wrap {
  margin: 6px 0 18px;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  padding: 14px 16px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody td {
  color: var(--muted);
}

tbody td:first-child,
tbody td strong {
  color: var(--text);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 6px;
}

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  padding-top: 10px;
}

.faq-item h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.faq-item p {
  max-width: 78ch;
  margin: 0 0 12px;
  color: var(--muted);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item .answer {
  margin-bottom: 14px;
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  margin: clamp(36px, 6vw, 64px) 0 0;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 130% at 50% 0%, rgba(139, 123, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.cta p {
  position: relative;
  max-width: 62ch;
  margin: 0 auto 22px;
  color: var(--muted);
}

.cta-actions {
  position: relative;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(56px, 9vw, 110px);
  padding-top: clamp(36px, 6vw, 64px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand p {
  max-width: 40ch;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-heading {
  margin: 4px 0 14px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 24px 26px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    gap: 4px 16px;
  }

  .nav .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 18px;
  }

  h1 {
    font-size: 1.95rem;
  }

  .answer {
    padding: 18px 18px 18px 22px;
  }

  .card {
    padding: 18px;
  }

  ol.steps li {
    padding: 16px 16px 16px 58px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
