/* ================================================================
   TECH TEMPLATE — AVA Site Builder
   Theme tokens (lines 10–20): override per business, nothing else changes.
   ================================================================ */

/* --- THEME TOKENS ------------------------------------------------- */
:root {
  --c-primary:      #6366f1;
  --c-primary-dark: #4f46e5;
  --c-accent:       #06b6d4;
  --c-accent-hover: #0891b2;
  --c-text:         #e2e8f0;
  --c-text-muted:   #94a3b8;
  --c-bg:           #080b14;
  --c-bg-alt:       #0e1220;
  --c-border:       rgba(255,255,255,0.08);
  --c-white:        #ffffff;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --max-w: 860px;
}

/* --- RESET --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); }
a:hover { color: var(--c-accent-hover); }

/* --- LAYOUT -------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 4.5rem 0; }

/* --- TYPOGRAPHY ---------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font);
  line-height: 1.2;
}
h2 { font-size: 1.875rem; margin-bottom: 1.25rem; color: var(--c-white); }
h3 { font-size: 1.25rem; margin-bottom: .75rem; color: var(--c-text); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- BUTTONS ------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  color: var(--c-white);
  opacity: .9;
  box-shadow: 0 6px 28px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn-outline:hover {
  background: rgba(6,182,212,.1);
  color: var(--c-accent);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* --- HEADER ------------------------------------------------------- */
.site-header {
  background: rgba(8,11,20,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-img { height: 32px; width: auto; }
.site-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
}
.site-title:hover { opacity: .85; color: var(--c-white); }
.header-cta {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { color: var(--c-accent-hover); }
.header-nav {
  border-top: 1px solid var(--c-border);
}
.header-nav ul {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0;
  list-style: none;
  overflow-x: auto;
}
.header-nav a {
  display: block;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] { color: var(--c-white); }

/* --- HERO --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #040610;
  max-height: 580px;
}
.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .82;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,11,20,.15) 0%,
    rgba(8,11,20,.6) 50%,
    rgba(8,11,20,.92) 100%
  );
  display: flex;
  align-items: flex-end;
}
.hero-content {
  padding: 3rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .875rem;
}
.hero-content h1 {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  color: var(--c-white);
  margin-bottom: .875rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  line-height: 1.15;
}
.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* --- INTRO -------------------------------------------------------- */
.intro-section { background: var(--c-bg-alt); }
.intro-section .lead {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  max-width: 720px;
}

/* --- BODY --------------------------------------------------------- */
.content-section { background: var(--c-bg); }
.content-section h3 { color: var(--c-primary); margin-top: 2rem; }
.content-section h3:first-child { margin-top: 0; }
.content-section p { color: var(--c-text); }

/* --- OPTIONAL SECTIONS -------------------------------------------- */
.optional-section { background: var(--c-bg-alt); }
.optional-section:nth-of-type(odd) { background: var(--c-bg); }
.optional-section h3 {
  color: var(--c-accent);
  font-size: 1.375rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(6,182,212,.2);
  margin-bottom: 1.25rem;
}

/* --- HOW IT WORKS ------------------------------------------------- */
.hiw-section { background: var(--c-bg-alt); }
.hiw-section h2 { margin-bottom: 2.5rem; }
.hiw-steps { display: flex; flex-direction: column; gap: 1.75rem; }
.hiw-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.hiw-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: var(--c-white);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.hiw-text h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: .375rem;
}
.hiw-text p { color: var(--c-text-muted); font-size: .9375rem; margin: 0; }

/* --- FAQ ---------------------------------------------------------- */
.faq-section { background: var(--c-bg); }
.faq-section h2 { margin-bottom: 1.75rem; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-alt);
}
summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--c-bg-alt);
  transition: background .12s;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--c-accent);
  flex-shrink: 0;
  line-height: 1;
}
details[open] summary {
  background: rgba(99,102,241,.08);
  border-bottom: 1px solid var(--c-border);
}
details[open] summary::after { content: '−'; }
summary:hover { background: rgba(255,255,255,.04); }
.faq-answer {
  padding: 1.125rem 1.25rem;
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
}
.faq-answer p { margin-bottom: 0; }

/* --- TRUST -------------------------------------------------------- */
.trust-section {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-section h2 { text-align: center; margin-bottom: 2rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.trust-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  transition: border-color .15s, background .15s;
}
.trust-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(99,102,241,.3);
}
.trust-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: .125rem;
}
.trust-label {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--c-white);
  display: block;
  margin-bottom: .25rem;
}
.trust-detail { font-size: .875rem; color: var(--c-text-muted); }
.reviews-slot {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--c-text-muted);
  justify-content: center;
  margin-top: 1.75rem;
}
.stars { color: #f5c518; letter-spacing: .05em; }

/* --- CTA ---------------------------------------------------------- */
.cta-section {
  background: var(--c-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(99,102,241,.14) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section h2 { font-size: 2.125rem; margin-bottom: .875rem; position: relative; }
.cta-section .cta-sub {
  color: var(--c-text-muted);
  margin-bottom: 2.25rem;
  font-size: 1.0625rem;
  position: relative;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-weight: 500;
  font-size: .9375rem;
  color: var(--c-text-muted);
}
.cta-contacts a { color: var(--c-text-muted); text-decoration: none; }
.cta-contacts a:hover { color: var(--c-accent); }

/* --- RELATED ------------------------------------------------------ */
.related-section { background: var(--c-bg-alt); }
.related-section h2 { margin-bottom: 1.5rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  display: block;
  background: rgba(255,255,255,.02);
  transition: border-color .15s, background .15s;
}
.related-card:hover {
  border-color: rgba(6,182,212,.35);
  background: rgba(6,182,212,.05);
}
.related-card strong {
  display: block;
  color: var(--c-white);
  font-size: 1rem;
  margin-bottom: .25rem;
}
.related-card span { color: var(--c-text-muted); font-size: .875rem; }

/* --- FOOTER ------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: 3rem 1.25rem 2rem;
  color: var(--c-text-muted);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-white);
  display: block;
  margin-bottom: .5rem;
}
.footer-tagline { font-size: .875rem; color: var(--c-text-muted); }
.footer-contact { display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; }
.footer-contact a { color: var(--c-text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--c-white); }
.footer-nav h3 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  margin-bottom: .875rem;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .375rem; }
.footer-nav a { color: var(--c-text-muted); text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: var(--c-white); }
.footer-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* --- RESPONSIVE --------------------------------------------------- */
@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .hero-img { height: 320px; }
  .hero-content { padding: 2rem 1.25rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hiw-step { flex-direction: column; gap: .875rem; }
  .hiw-number { width: 40px; height: 40px; font-size: 1rem; }
  .trust-grid { grid-template-columns: 1fr; }
}
