/* ============ Advent Services — design system ============ */
:root {
  --ink: #0b0e13;
  --ink-2: #121722;
  --ink-3: #1a2130;
  --paper: #f6f4ee;
  --paper-2: #ece8db;
  --lime: #c6f135;
  --lime-soft: #dcff70;
  --lime-ink: #1c2405;
  --text-dark: #141821;
  --text-mid: #4b5265;
  --text-dim: #9aa3b5;
  --line: rgba(11, 14, 19, 0.1);
  --line-light: rgba(246, 244, 238, 0.12);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 24px 60px -24px rgba(11, 14, 19, 0.25);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--ink); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(var(--max), 92%); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; background: var(--paper); color: var(--text-dark); }
.section-dark { background: var(--ink); color: var(--paper); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1rem; }
.grad {
  background: linear-gradient(100deg, var(--lime) 10%, var(--lime-soft) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.underline { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 6px; text-underline-offset: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mid);
  margin-bottom: 1.1rem;
}
.section-dark .eyebrow { color: var(--lime); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,241,53,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(198,241,53,0); } 100% { box-shadow: 0 0 0 0 rgba(198,241,53,0); } }

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head p, .lede { color: var(--text-mid); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.section-dark .section-head p { color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 12px 30px -12px rgba(198,241,53,.55); }
.btn-primary:hover { background: var(--lime-soft); box-shadow: 0 18px 38px -12px rgba(198,241,53,.65); }
.btn-ghost { border-color: var(--line-light); color: var(--paper); background: rgba(246,244,238,.04); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ============ NAV ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.nav-inner {
  width: min(var(--max), 94%); margin: 14px auto 0; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 18px; border: 1px solid transparent; transition: all .3s ease;
}
.nav.scrolled .nav-inner { background: rgba(11,14,19,.82); backdrop-filter: blur(14px); border-color: var(--line-light); box-shadow: 0 12px 40px -18px rgba(0,0,0,.6); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.brand-mark { width: 34px; height: 34px; color: var(--paper); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--lime); font-weight: 500; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: .96rem; color: var(--text-dim); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--lime); border-radius: 2px; transition: width .25s ease; }
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; }

/* ============ HERO ============ */
.hero { position: relative; padding: clamp(150px, 20vw, 210px) 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.blob-a { width: 560px; height: 560px; background: radial-gradient(circle, rgba(198,241,53,.35), transparent 70%); top: -160px; right: -120px; }
.blob-b { width: 480px; height: 480px; background: radial-gradient(circle, rgba(90,140,255,.28), transparent 70%); bottom: -140px; left: -140px; animation-delay: -8s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(246,244,238,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(246,244,238,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin: 0 0 1.2rem; }
.hero .lede { max-width: 34rem; margin-bottom: 2rem; color: var(--text-dim); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-points { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-point { display: flex; flex-direction: column; gap: 2px; }
.hero-point strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--lime); }
.hero-point span { font-size: .85rem; color: var(--text-dim); max-width: 11rem; }

/* Hero visual — animated dashboard */
.hero-visual { position: relative; }
.dash {
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line-light); border-radius: 22px; padding: 20px;
  box-shadow: var(--shadow), 0 0 90px -30px rgba(198,241,53,.25);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero-visual:hover .dash { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.dash-head { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4358; }
.dash-head .dot:first-child { background: #ff5f57; } .dash-head .dot:nth-child(2) { background: #febc2e; } .dash-head .dot:nth-child(3) { background: #28c840; }
.dash-title { margin-left: 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.dash-chart { width: 100%; height: 150px; }
.chart-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-tip { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { background: rgba(246,244,238,.05); border: 1px solid var(--line-light); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-size: .72rem; color: var(--text-dim); letter-spacing: .04em; }
.kpi-value { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.kpi-value.up { color: var(--lime); } .kpi-value.down { color: #7ee2a8; }
.float-chip {
  position: absolute; font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(198,241,53,.6); animation: float 5s ease-in-out infinite;
}
.chip-a { top: 8%; left: -34px; } .chip-b { bottom: 10%; right: -22px; animation-delay: -2.5s; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Marquee */
.marquee { margin-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); overflow: hidden; padding: 18px 0; background: rgba(246,244,238,.02); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-group { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.marquee-group .sep { color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SERVICES ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--lime), var(--lime-soft)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(11,14,19,.18); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--ink); color: var(--lime); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--text-mid); font-size: .97rem; margin-bottom: 16px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card ul li { font-size: .9rem; color: var(--text-mid); padding-left: 22px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: #5a8f00; font-weight: 700; }
.card-cta { background: var(--ink); color: var(--paper); border-color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.card-cta h3 { color: var(--paper); } .card-cta p { color: var(--text-dim); }
.card-cta .btn { margin-top: 14px; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-copy p:not(.eyebrow) { color: var(--text-dim); margin-bottom: 1.1rem; font-size: 1.04rem; }
.values { display: flex; flex-direction: column; gap: 18px; margin-top: 2rem; }
.value { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 20px; background: rgba(246,244,238,.04); border: 1px solid var(--line-light); border-radius: 14px; }
.value::before { content: "✦"; color: var(--lime); font-size: 1.2rem; line-height: 1.4; grid-row: 1 / 3; }
.value strong { grid-column: 2; }
.value span { grid-column: 2; }
.value strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 2px; }
.value span { color: var(--text-dim); font-size: .94rem; }
.about-card {
  background: linear-gradient(150deg, #171d2b, #0e1220); border: 1px solid var(--line-light);
  border-radius: 22px; padding: 40px 36px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.about-card::after { content: "\201C"; position: absolute; top: 6px; left: 24px; font-family: var(--font-display); font-size: 6rem; color: var(--lime); opacity: .25; }
.about-quote { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; margin-bottom: 1.2rem; position: relative; z-index: 1; }
.about-sign { color: var(--lime); font-weight: 600; font-size: .95rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light); color: var(--text-dim); }
.badge:hover { border-color: var(--lime); color: var(--lime); }

/* ============ WHY ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.why-item { padding: 34px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .3s ease; }
.why-item:nth-child(3n) { border-right: 0; }
.why-item:nth-child(n+4) { border-bottom: 0; }
.why-item:hover { background: #fbfaf5; }
.why-num { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--lime); background: var(--ink); display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-item p { color: var(--text-mid); font-size: .95rem; }

/* ============ PROCESS ============ */
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-steps li {
  background: rgba(246,244,238,.04); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform .3s ease, border-color .3s ease;
}
.process-steps li:hover { transform: translateY(-6px); border-color: rgba(198,241,53,.5); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 18px;
}
.process-steps h3 { font-size: 1.18rem; margin-bottom: 8px; }
.process-steps p { color: var(--text-dim); font-size: .94rem; }

/* ============ FAQ ============ */
.faq-wrap { max-width: 820px; }
.faq-wrap h2 { margin-bottom: 2.4rem; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .3s ease; }
.faq[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display);
  font-weight: 600; font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .3s ease; }
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq[open] .faq-icon::after { transform: rotate(90deg); }
.faq p { padding: 0 24px 22px; color: var(--text-mid); font-size: .97rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.contact-copy p:not(.eyebrow) { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-lines { display: flex; flex-direction: column; gap: 16px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(246,244,238,.04); border: 1px solid var(--line-light); border-radius: 14px; font-weight: 500; transition: border-color .25s ease; }
a.contact-line:hover { border-color: var(--lime); }
.contact-line svg { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; }
.contact-form { background: var(--paper); color: var(--text-dark); border-radius: 22px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text-dark); width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: #8fb800; box-shadow: 0 0 0 4px rgba(198,241,53,.25); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input.invalid, .contact-form textarea.invalid, .contact-form select.invalid { border-color: #e5484d; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: .92rem; min-height: 1.4em; color: var(--text-mid); }
.form-note.success { color: #2f7a1e; font-weight: 600; }
.form-note.error { color: #c0362c; font-weight: 600; }
#submitBtn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ============ FOOTER ============ */
.footer { background: #07090d; border-top: 1px solid var(--line-light); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 54px; }
.footer-brand p { color: var(--text-dim); font-size: .95rem; margin: 16px 0; max-width: 24rem; }
.footer-mail { color: var(--lime); font-weight: 600; }
.footer-mail:hover { text-decoration: underline; }
.footer-col h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-col a:not(.btn) { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.footer-col a:not(.btn):hover { color: var(--lime); }
.footer-cta-text { color: var(--text-dim); font-size: .95rem; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 24px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-dim); font-size: .88rem; }
.footer-tag { font-family: var(--font-display); color: var(--lime); }

/* Back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink); border: 0; font-size: 1.3rem; font-weight: 700; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s ease;
  box-shadow: 0 12px 28px -10px rgba(198,241,53,.6);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--lime-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .chip-a { left: 6px; } .chip-b { right: 6px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-right: 0; }
  .why-item:nth-child(n+5) { border-bottom: 0; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 6px; padding: 10px 4% 22px;
    background: rgba(11,14,19,.97); backdrop-filter: blur(14px);
    max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: max-height .35s ease, padding .35s ease;
  }
  .mobile-menu.open { max-height: 420px; padding-top: 10px; padding-bottom: 22px; }
  .mobile-menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line-light); font-weight: 500; }
  .mobile-menu .btn { margin-top: 14px; }
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .why-item:last-child { border-bottom: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .underline { text-decoration-thickness: 4px; text-underline-offset: 5px; }
}
