/* ============================================================
   Virelli Labs — virellilabs.com
   Standalone static site. No build step. No external deps
   beyond a progressively-enhanced Google Font (system fallback).
   ============================================================ */

:root {
  /* Palette (per brand direction) */
  --navy:        #0B1020;
  --navy-2:      #0F172A;
  --slate-900:   #111827;
  --slate-800:   #1E293B;
  --slate-500:   #64748B;
  --slate-300:   #CBD5E1;
  --off-white:   #F8F6F1;
  --white:       #FFFFFF;
  --gold:        #C8A96A;
  --gold-soft:   #BFA46A;
  --blue:        #3B82F6;
  --blue-strong: #2563EB;
  --emerald:     #0F766E;

  /* Semantic */
  --bg:          var(--navy);
  --bg-alt:      #0d1426;
  --surface:     rgba(255,255,255,0.03);
  --surface-2:   rgba(255,255,255,0.05);
  --border:      rgba(255,255,255,0.10);
  --border-soft: rgba(255,255,255,0.07);
  --text:        #EEF2F8;
  --text-soft:   #C2CBDA;   /* AA on dark bg */
  --text-mute:   #97A3B6;   /* still >= 4.5:1 on --navy */

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --shadow-gold: 0 12px 32px rgba(200,169,106,0.18);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* guard against accidental horizontal scroll */
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #e0c489; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--gold); color: #1a1407; font-weight: 600;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d9bd84 100%);
  color: #1a1407;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); color: #1a1407; box-shadow: 0 16px 40px rgba(200,169,106,0.3); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: #e0c489; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,16,32,0.78);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #a9853f 100%);
  color: #14100a; font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--shadow-gold);
}
.brand-name { letter-spacing: .01em; }

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu > li > a {
  color: var(--text-soft);
  font-weight: 500; font-size: .98rem;
  padding: 9px 14px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-menu > li > a:hover { color: var(--white); background: var(--surface-2); }
.nav-cta { margin-left: 8px; padding: 10px 22px; }
.nav-cta:hover { color: #1a1407; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; cursor: pointer;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 104px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 80%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(200,169,106,0.35), transparent 70%); top: -80px; right: -60px; }
.hero-glow-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(37,99,235,0.28), transparent 70%); bottom: -160px; left: -120px; }
.hero-orbital {
  position: absolute; right: clamp(-180px, -6vw, -40px); top: 50%; transform: translateY(-50%);
  width: min(560px, 52vw); opacity: .55;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,106,0.32);
  background: rgba(200,169,106,0.07);
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #d6deec 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #fff;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 660px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-alt); }
.trust-bar-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; padding: 22px 24px; }
.trust-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: .95rem; font-weight: 500; }
.trust-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,169,106,0.14); flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.kicker {
  font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-lead { color: var(--text-soft); font-size: 1.1rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.about-copy p { color: var(--text-soft); font-size: 1.08rem; }
.about-note {
  margin-top: 20px; padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--surface); border-radius: 0 12px 12px 0;
  color: var(--text) !important;
}
.about-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.about-list li { display: grid; gap: 4px; }
.about-list-k { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 1.02rem; }
.about-list-v { color: var(--text-mute); font-size: .96rem; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(200,169,106,0.4); background: var(--surface-2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(200,169,106,0.12);
  color: var(--gold);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--white); }
.card p { color: var(--text-soft); font-size: .99rem; margin: 0; }

/* ---------- Method steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: #14100a;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), #a9853f);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.14rem; margin-bottom: 8px; color: var(--white); }
.step p { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* ---------- Trust / compliance ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trust-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--text); font-size: 1.02rem;
}
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15,118,110,0.18); color: #34d3c2;
  font-weight: 700; font-size: .9rem;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 720px; margin-inline: auto; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.contact .section-lead { margin-bottom: 32px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.contact-web { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text-soft); }
.contact-web:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); border-top: 1px solid var(--border-soft); padding-top: 48px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; }
.footer-brand { max-width: 420px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag { color: var(--text-soft); font-size: .98rem; margin: 0 0 6px; }
.footer-legal { color: var(--text-mute); font-size: .9rem; margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); font-weight: 500; font-size: .96rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 22px 24px; }
.footer-bottom p { color: var(--text-mute); font-size: .88rem; margin: 0; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet / laptop */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile nav breakpoint */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11,16,32,0.98);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu > li > a { display: block; padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta-li { margin-top: 6px; }
  .nav-cta { display: block; text-align: center; margin-left: 0; }
}

/* Phone */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn, .contact-actions .btn { width: 100%; }
  .contact-actions { flex-direction: column; }
  .hero-orbital { opacity: .3; }
  .btn { white-space: normal; }       /* allow long labels to wrap, no cutoff */
}
