/* QuadNova Ventures Ltd: site styles */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-serif-display-latin-400-normal.woff2) format("woff2"); }
:root {
  --ink: #0b1626;
  --ink-2: #33415c;
  --muted: #64748b;
  --line: #e5eaf1;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --navy: #071a33;
  --navy-2: #0c2a4f;
  --brand: #0e4a8a;
  --accent: #1fa463;
  --accent-2: #7ee2a8;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,22,38,.04), 0 8px 24px rgba(11,22,38,.06);
  --shadow-lg: 0 24px 40px -18px rgba(7,26,51,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(31,164,99,.6); }
.btn-primary:hover { background: #188a52; }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.logo small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: -2px; }
.logo svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.scrolled .logo, .solid .logo { color: var(--ink); }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; }
.menu a:hover { color: #fff; }
.scrolled .menu a, .solid .menu a { color: var(--ink-2); }
.scrolled .menu a:hover, .solid .menu a:hover { color: var(--brand); }
.site-header .menu a.btn { color: #fff; padding: 10px 18px; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.scrolled .burger, .solid .burger { color: var(--ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 150px 0 110px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(126,226,168,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(31,164,99,.20), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.85);
}
.pill b { background: var(--accent); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 22px 0 20px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 19px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.65); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent); }

/* Phone mockup */
.phone {
  width: 320px; margin-left: auto; border-radius: 42px; padding: 12px; background: #0a0f1a;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset; position: relative;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #efe7de; height: 560px; display: flex; flex-direction: column; }
.wa-top { background: #075e54; color: #fff; padding: 16px 16px 12px; display: flex; align-items: center; gap: 10px; }
.wa-top .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wa-top .av svg { width: 24px; height: 24px; }
.wa-top b { display: block; font-size: 15px; }
.wa-top small { font-size: 12px; opacity: .8; }
.wa-body {
  flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  background-color: #efe7de;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px;
}
.msg {
  max-width: 82%; padding: 8px 11px 6px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: #111;
  box-shadow: 0 1px .5px rgba(0,0,0,.13); opacity: 0; transform: translateY(8px); animation: pop .4s ease forwards;
}
.msg time { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
.wa-input { background: #f0f2f5; padding: 10px; display: flex; gap: 8px; align-items: center; }
.wa-input div { flex: 1; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13px; color: #8696a0; }
.wa-input span { width: 38px; height: 38px; border-radius: 50%; background: #00a884; display: grid; place-items: center; }
.wa-input svg { width: 18px; height: 18px; color: #fff; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; align-items: center; font-size: 13px; white-space: nowrap; z-index: 3; animation: bob 5s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.fc-1 { right: 296px; top: 90px; } .fc-1 .ic { background: #dcfce7; color: #16a34a; }
.fc-2 { right: 306px; bottom: 70px; animation-delay: -2.5s; } .fc-2 .ic { background: #e0f2fe; color: #0284c7; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats */
.stats { margin-top: -54px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat > span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 110px 0; }
.soft { background: var(--soft); }
.section-head { margin-bottom: 56px; }

/* Product */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6dee9; }
.ficon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.ficon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin: 20px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; margin-top: 64px; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: -14px; left: 0; background: var(--soft);
  padding-right: 12px; font-weight: 800; color: var(--accent); font-size: 18px;
}
.step h3 { font-size: 18px; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Dashboard split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.dash {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.dash-body { padding: 20px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: 12px; color: #16a34a; font-weight: 600; }
.chart { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.chart small { color: var(--muted); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), #14663e); opacity: .9; }
.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag.ok { background: #dcfce7; color: #15803d; } .tag.wait { background: #fef3c7; color: #b45309; } .tag.new { background: #e0f2fe; color: #0369a1; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector {
  position: relative; border-radius: var(--radius); padding: 30px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector .sicon { width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.sector .sicon svg { width: 26px; height: 26px; }
.sector h3 { font-size: 19px; margin: 22px 0 8px; }
.sector p { margin: 0; color: var(--muted); font-size: 15px; }
.sector .num { position: absolute; right: 24px; top: 22px; font-weight: 800; font-size: 14px; color: #cbd5e1; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.values { display: grid; gap: 18px; }
.value { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value .ficon { flex: none; }
.value h3 { font-size: 17px; margin: 2px 0 4px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.fact { padding: 16px 18px; border-radius: 12px; background: var(--soft); }
.fact small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.fact b { font-size: 16px; }

/* CTA */
.cta {
  border-radius: 28px; padding: 64px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, rgba(126,226,168,.25), transparent 60%), linear-gradient(135deg, var(--navy), var(--brand));
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.75); margin: 0; font-size: 18px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ccard { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ccard .sicon { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.ccard .sicon svg { width: 22px; height: 22px; }
.ccard h3 { font-size: 17px; margin: 18px 0 6px; }
.ccard p { margin: 0; color: var(--ink-2); }
.todo { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 72px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer p { margin: 16px 0 0; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* Legal pages */
.legal-hero { background: var(--soft); padding: 140px 0 56px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(34px, 4.5vw, 48px); margin: 12px 0 10px; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal { max-width: 760px; padding: 56px 24px 96px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal li { margin-bottom: 6px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .float-card { animation: none; opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .about-grid, .cta { grid-template-columns: 1fr; }
  .phone { margin: 10px auto 0; }
  .fc-1, .fc-2 { right: auto; left: calc(50% - 250px); }
  .product-grid, .sectors, .contact-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
          background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 12px 0; color: var(--ink-2) !important; }
  .menu li a.btn { display: flex; justify-content: center; margin-top: 8px; color: #fff !important; }
  .burger { display: block; }
  section { padding: 80px 0; }
  .hero { padding: 120px 0 100px; }
  .product-grid, .sectors, .contact-grid, .steps, .facts, .foot-grid, .kpis { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; }
  .phone { width: 290px; }
  .phone-screen { height: 500px; }
  .float-card { display: none; }
}

/* ---------- Animation layer ---------- */

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Hero blobs */
.blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; opacity: .5; }
.blobs .b1 { width: 640px; height: 640px; background: radial-gradient(circle, rgba(31,164,99,.85), rgba(31,164,99,0) 68%); left: -120px; top: 40%; }
.blobs .b2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,.8), rgba(37,99,235,0) 68%); right: 5%; top: -120px; }
.blobs .b3 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(126,226,168,.8), rgba(126,226,168,0) 68%); right: 30%; bottom: -160px; opacity: .3; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(120px,-80px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-140px,90px) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(90px,-110px); } }

/* Hero entrance */
.hero .pill, .hero h1, .hero p.sub, .hero-cta, .hero-note, .hero .phone {
  opacity: 0; transform: translateY(24px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 { animation-delay: .1s; } .hero p.sub { animation-delay: .25s; } .hero-cta { animation-delay: .4s; }
.hero-note { animation-delay: .55s; } .hero .phone { animation-delay: .3s; transform: translateY(40px) rotate(2deg); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Rotating word */
.rotator { display: block; position: relative; white-space: nowrap; }
.rotator .grad { display: inline-block; }
.rotator .out { animation: wordOut .3s ease forwards; }
.rotator .in { animation: wordIn .4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.4em); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }

/* Live chat (JS-driven) */
.wa-body.live { justify-content: flex-end; }
.wa-body.live .msg { animation: pop .35s cubic-bezier(.2,.7,.2,1) forwards; }
.wa-body.live .msg.leaving { animation: fadeUp .5s ease forwards; }
@keyframes fadeUp { to { opacity: 0; transform: translateY(-12px); } }
.wa-top small.typing-label { color: #9de1d6; }
.ticks { color: #53bdeb; margin-left: 3px; }

/* Buttons shine */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -120%; } 100% { left: 160%; } }

/* Marquee */
.marquee { overflow: hidden; padding: 34px 0 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: scrollX 38s linear infinite; }
.marquee span { padding: 10px 20px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2);
  font-weight: 600; font-size: 15px; white-space: nowrap; }
.marquee span:nth-child(3n+1) { background: #e9f8ef; border-color: #c6ecd5; color: #15703f; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* Spotlight + tilt cards */
.feature, .sector, .value, .ccard { position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.feature::before, .sector::before, .value::before, .ccard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(31,164,99,.14), transparent 60%);
}
.feature:hover::before, .sector:hover::before, .value:hover::before, .ccard:hover::before { opacity: 1; }
.ficon, .sicon { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.feature:hover .ficon, .value:hover .ficon { transform: rotate(-8deg) scale(1.1); }
.sector:hover .sicon, .ccard:hover .sicon { transform: translateY(-3px) scale(1.08); background: #e9f8ef; color: var(--accent); }

/* Steps: line draws in */
.step { border-top-color: transparent; }
.step::after { content: ""; position: absolute; top: -2px; left: 44px; height: 2px; width: calc(100% - 44px); background: linear-gradient(90deg, var(--accent), var(--line));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.2,.7,.2,1) .2s; }
.reveal.in .step::after, .step.in::after { transform: scaleX(1); }

/* Dashboard bars grow */
.bars i { transform: scaleY(0); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.dash.in .bars i { transform: scaleY(1); }
.dash.in .bars i:nth-child(2) { transition-delay: .08s; } .dash.in .bars i:nth-child(3) { transition-delay: .16s; }
.dash.in .bars i:nth-child(4) { transition-delay: .24s; } .dash.in .bars i:nth-child(5) { transition-delay: .32s; }
.dash.in .bars i:nth-child(6) { transition-delay: .40s; } .dash.in .bars i:nth-child(7) { transition-delay: .48s; }
.row { transition: background .3s; }
.row.flash { background: #ecfdf5; }
.dash { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.dash.reveal:not(.in) { animation: none; }

/* CTA pulse ring */
.cta .btn-primary { box-shadow: 0 0 0 0 rgba(31,164,99,.6); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(31,164,99,.55); } 100% { box-shadow: 0 0 0 18px rgba(31,164,99,0); } }

/* Reveal variants */
.reveal.from-left { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .blobs i, .marquee .track, .btn-primary::after, .dash, .cta .btn-primary { animation: none !important; }
  .hero .pill, .hero h1, .hero p.sub, .hero-cta, .hero-note, .hero .phone { animation: none; opacity: 1; transform: none; }
  .bars i, .step::after { transform: none; transition: none; }
}

/* Brand wordmark (matches the QuadNova logo) */
.wordmark { font-family: "DM Serif Display", Georgia, "Times New Roman", serif; font-weight: 400; font-size: 25px; letter-spacing: 0; line-height: 1; }
.wordmark small { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: .32em; margin-top: 4px; opacity: .75; }
.scrolled .wordmark, .solid .wordmark { color: #14663e; }
.scrolled .wordmark small, .solid .wordmark small { color: var(--ink); }
.tagline { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--accent-2); margin-top: 18px; }

/* Pause the hero's looping effects while it is off screen */
.hero.paused .float-card { animation-play-state: paused; }
