/* ============================================================
   VEDNITY — Digital Marketing Agency
   Main stylesheet
   ============================================================ */
:root {
  --bg: #07060f;
  --bg-2: #0d0b1c;
  --bg-3: #131129;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f2f1fa;
  --muted: #a5a3bd;
  --primary: #7c5cff;
  --primary-2: #a98bff;
  --accent: #21e6c1;
  --accent-2: #ff5fa2;
  --grad: linear-gradient(120deg, #7c5cff 0%, #21e6c1 50%, #ff5fa2 100%);
  --radius: 20px;
  --shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { color: var(--muted); font-size: 1.08rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,92,255,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(124,92,255,.85); }
.btn-ghost { border-color: var(--card-border); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(7,6,15,.72); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(124,92,255,.8); }
.logo-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 10px 14px; border-radius: 10px; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,.04); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto; z-index: 99; background: rgba(9,8,20,.96); backdrop-filter: blur(16px);
  padding: 18px 1rem 28px; display: none; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--card-border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.mobile-menu a:hover { background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-h); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.hero-badge b { background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; }
.hero p.lead { max-width: 560px; font-size: 1.15rem; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; background: var(--grad); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.stars { color: #ffc93c; letter-spacing: 2px; }
.hero-visual { position: relative; height: 520px; }
.float-card {
  position: absolute; padding: 18px 20px; border-radius: 18px; background: rgba(19,17,41,.7); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); box-shadow: var(--shadow); min-width: 190px; transform-style: preserve-3d;
  animation: floaty 6s ease-in-out infinite;
}
.float-card small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.float-card strong { display: block; font-family: var(--display); font-size: 1.7rem; margin-top: 4px; }
.float-card em { font-style: normal; color: var(--accent); font-size: .85rem; font-weight: 600; }
.fc-1 { top: 8%; left: 5%; animation-delay: 0s; }
.fc-2 { top: 42%; right: 0; animation-delay: 1.5s; }
.fc-3 { bottom: 6%; left: 18%; animation-delay: 3s; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: scrollpulse 1.8s infinite; }
@keyframes scrollpulse { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ---------- Logo marquee ---------- */
.marquee { padding: 30px 0; border-block: 1px solid var(--card-border); background: var(--bg-2); overflow: hidden; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: rgba(255,255,255,.35); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- Cards / 3D tilt ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px;
  position: relative; transition: transform .2s ease-out, border-color .3s, box-shadow .3s; transform-style: preserve-3d; will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.18), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(124,92,255,.5); box-shadow: var(--shadow); }
.card > * { transform: translateZ(30px); }
.icon-box { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(33,230,193,.18)); border: 1px solid var(--card-border); display: grid; place-items: center; margin-bottom: 22px; }
.icon-box svg { width: 26px; height: 26px; stroke: var(--primary-2); }
.card p { color: var(--muted); font-size: .96rem; }
.card .link { color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.card .link:hover { gap: 10px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(33,230,193,.12); color: var(--accent); font-size: .75rem; font-weight: 600; margin-bottom: 14px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; perspective: 1200px; }
.cube-scene { width: 100%; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.25), transparent 60%), radial-gradient(circle at 70% 70%, rgba(33,230,193,.2), transparent 60%), var(--bg-3); border: 1px solid var(--card-border); display: grid; place-items: center; overflow: hidden; }
.cube { width: 140px; height: 140px; position: relative; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube div { position: absolute; inset: 0; border: 1.5px solid rgba(169,139,255,.7); background: rgba(124,92,255,.08); backdrop-filter: blur(2px); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--primary-2); font-size: .9rem; }
.cube .f { transform: translateZ(70px); } .cube .b { transform: rotateY(180deg) translateZ(70px); }
.cube .l { transform: rotateY(-90deg) translateZ(70px); } .cube .r { transform: rotateY(90deg) translateZ(70px); }
.cube .t { transform: rotateX(90deg) translateZ(70px); } .cube .d { transform: rotateX(-90deg) translateZ(70px); }
@keyframes spin { from { transform: rotateX(-20deg) rotateY(0) } to { transform: rotateX(-20deg) rotateY(360deg) } }
.about-stat { position: absolute; padding: 16px 20px; border-radius: 16px; background: rgba(13,11,28,.85); border: 1px solid var(--card-border); backdrop-filter: blur(10px); }
.about-stat strong { font-family: var(--display); font-size: 1.6rem; display: block; }
.about-stat small { color: var(--muted); }
.as-1 { top: -18px; right: -14px; } .as-2 { bottom: -18px; left: -14px; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(33,230,193,.15); color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* ---------- Process ---------- */
.process { position: relative; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); position: relative; transition: transform .3s; }
.step:hover { transform: translateY(-8px) rotateX(4deg); }
.step-num { font-family: var(--display); font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; line-height: 1; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(33,230,193,.08)); border-block: 1px solid var(--card-border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat strong { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--card-border); background: transparent; color: var(--muted); font-size: .88rem; font-weight: 500; transition: all .25s; }
.filters button.active, .filters button:hover { background: var(--grad); color: #fff; border-color: transparent; }
.work { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; border: 1px solid var(--card-border); transition: transform .3s, opacity .3s; perspective: 1000px; }
.work.hidden { display: none; }
.work-bg { position: absolute; inset: 0; transition: transform .6s ease; }
.work:hover .work-bg { transform: scale(1.08); }
.work-bg.g1 { background: linear-gradient(135deg, #7c5cff, #21e6c1); }
.work-bg.g2 { background: linear-gradient(135deg, #ff5fa2, #7c5cff); }
.work-bg.g3 { background: linear-gradient(135deg, #21e6c1, #1a7cff); }
.work-bg.g4 { background: linear-gradient(135deg, #ffb347, #ff5fa2); }
.work-bg.g5 { background: linear-gradient(135deg, #1a7cff, #7c5cff); }
.work-bg.g6 { background: linear-gradient(135deg, #21e6c1, #ffb347); }
.work-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.35), transparent 45%), linear-gradient(to top, rgba(7,6,15,.95), rgba(7,6,15,.2) 60%); }
.work-shape { position: absolute; width: 46%; aspect-ratio: 1; right: 8%; top: 8%; border-radius: 30%; border: 2px solid rgba(255,255,255,.35); transform: rotate(15deg); transition: transform .6s; }
.work:hover .work-shape { transform: rotate(45deg) scale(1.1); }
.work-info { position: absolute; inset: auto 0 0; padding: 24px; }
.work-info small { color: var(--accent); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.work-info h3 { margin: 6px 0 4px; }
.work-info p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; }
.testi-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi { flex: 0 0 min(400px, 85vw); scroll-snap-align: start; }
.testi .quote { font-size: 1.05rem; color: var(--text); margin: 10px 0 24px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-author span { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; }
.testi-author small { display: block; color: var(--muted); }
.testi-nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.testi-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--card-border); background: rgba(255,255,255,.04); color: var(--text); display: grid; place-items: center; transition: background .2s; }
.testi-nav button:hover { background: var(--grad); }

/* ---------- Pricing ---------- */
.plan { text-align: left; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(124,92,255,.6); background: linear-gradient(180deg, rgba(124,92,255,.14), rgba(255,255,255,.03)); transform: scale(1.03); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) translateZ(40px); background: var(--grad); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; margin: 12px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { color: var(--muted); font-size: .93rem; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { justify-content: center; }
.toggle { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 40px; font-size: .9rem; color: var(--muted); }
.switch { width: 52px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--card-border); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); transition: transform .3s; }
.switch.on::after { transform: translateX(24px); }
.save { background: rgba(33,230,193,.12); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }

/* ---------- Team ---------- */
.member { text-align: center; }
.member .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; background: var(--grad); padding: 3px; }
.member .photo div { width: 100%; height: 100%; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.member small { color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px; }
.socials { display: flex; gap: 10px; justify-content: center; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--card-border); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.socials svg { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--card-border); border-radius: 16px; background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 20px 24px; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--card-border); display: grid; place-items: center; font-size: 1.1rem; transition: transform .3s, background .3s; flex: none; }
.faq-item.open .faq-q span { transform: rotate(45deg); background: var(--grad); border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); padding: 0 24px; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ---------- Blog ---------- */
.post { padding: 0; overflow: hidden; }
.post-cover { height: 180px; position: relative; }
.post-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,15,.9), transparent); }
.post-body { padding: 24px; }
.post-meta { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }

/* ---------- CTA ---------- */
.cta-box { border-radius: 30px; padding: clamp(40px, 7vw, 80px); text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(33,230,193,.18), rgba(255,95,162,.25)); border: 1px solid var(--card-border); }
.cta-box::before, .cta-box::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: .5; }
.cta-box::before { background: var(--primary); top: -160px; left: -120px; }
.cta-box::after { background: var(--accent); bottom: -180px; right: -120px; }
.cta-box > * { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { display: grid; gap: 18px; margin-top: 24px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .icon-box { margin: 0; width: 48px; height: 48px; flex: none; }
.info-row strong { display: block; margin-bottom: 2px; }
.info-row a, .info-row span { color: var(--muted); font-size: .95rem; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,.04); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--bg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--primary); }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: .92rem; }
.form-msg.ok { display: block; background: rgba(33,230,193,.12); color: var(--accent); border: 1px solid rgba(33,230,193,.3); }
.form-msg.err { display: block; background: rgba(255,95,162,.12); color: var(--accent-2); border: 1px solid rgba(255,95,162,.3); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--card-border); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer h4 { font-size: .95rem; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a, .footer p { color: var(--muted); font-size: .92rem; }
.footer a:hover { color: var(--text); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,.04); color: var(--text); font: inherit; }
.newsletter button { padding: 12px 18px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--card-border); font-size: .85rem; color: var(--muted); }
.footer-bottom ul { display: flex; gap: 20px; }

/* ---------- Floating widgets ---------- */
.back-top { position: fixed; right: 22px; bottom: 158px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; border: 0; display: grid; place-items: center; z-index: 90; opacity: 0; transform: translateY(20px); transition: all .3s; box-shadow: var(--shadow); }
.back-top.show { opacity: 1; transform: none; }
.whatsapp { position: fixed; right: 22px; bottom: 26px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; z-index: 90; box-shadow: 0 10px 30px -8px rgba(37,211,102,.8); transition: transform .25s; }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 28px; height: 28px; fill: #fff; }
.cookie { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); width: min(640px, calc(100% - 2rem)); background: rgba(13,11,28,.95); border: 1px solid var(--card-border); border-radius: 18px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; z-index: 95; backdrop-filter: blur(14px); transition: transform .5s cubic-bezier(.2,.8,.2,1); font-size: .9rem; color: var(--muted); }
.cookie.show { transform: translate(-50%, 0); }
.cookie .btn { padding: 10px 18px; font-size: .85rem; }
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.preloader.done { opacity: 0; visibility: hidden; }
.loader { width: 60px; height: 60px; border-radius: 18px; background: var(--grad); animation: loaderspin 1.2s ease-in-out infinite; }
@keyframes loaderspin { 0% { transform: rotate(0) scale(1) } 50% { transform: rotate(180deg) scale(.7); border-radius: 50% } 100% { transform: rotate(360deg) scale(1) } }
.cursor-glow { position: fixed; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.12), transparent 60%); pointer-events: none; z-index: 1; transform: translate(-50%, -50%); transition: opacity .3s; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s } .reveal.d2 { transition-delay: .2s } .reveal.d3 { transition-delay: .3s } .reveal.d4 { transition-delay: .4s }

/* ---------- Legal pages ---------- */
.legal { padding-top: calc(var(--nav-h) + 60px); max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .process-steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .about-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .process-steps, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; }
  .float-card { min-width: 150px; padding: 14px 16px; }
  .float-card strong { font-size: 1.3rem; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .card { padding: 24px; }
  .hero p.lead { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ENGAGEMENT FEATURES
   ============================================================ */
/* ---------- Scroll progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 101; transition: width .1s linear; }

/* ---------- ROI calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
.calc-inputs, .calc-results { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px; }
.range { margin-bottom: 26px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-head label { color: var(--muted); font-size: .92rem; }
.range-head output { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--primary) var(--p, 20%), rgba(255,255,255,.1) var(--p, 20%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 14px rgba(124,92,255,.6); cursor: pointer; transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; }
.calc-note { color: var(--muted); font-size: .8rem; margin: 0; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; background: linear-gradient(180deg, rgba(124,92,255,.14), rgba(255,255,255,.03)); }
.calc-stat { padding: 16px 18px; border-radius: 14px; background: rgba(7,6,15,.5); border: 1px solid var(--card-border); }
.calc-stat small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.calc-stat strong { display: block; font-family: var(--display); font-size: 1.6rem; margin-top: 4px; }
.calc-bar { grid-column: 1 / -1; position: relative; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); overflow: hidden; display: flex; align-items: center; }
.calc-bar div { position: absolute; inset: 0 auto 0 0; background: var(--grad); width: 60%; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.calc-bar span { position: relative; z-index: 1; padding-left: 16px; font-weight: 700; font-size: .95rem; }
.calc-results .btn { grid-column: 1 / -1; justify-content: center; }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; margin-inline: auto; padding: 36px; }
.quiz > * { transform: none; }
.quiz-progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 28px; }
.quiz-progress div { height: 100%; width: 0; background: var(--grad); transition: width .4s; }
.quiz-q { font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.quiz-step { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-opt { text-align: left; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--card-border); background: rgba(255,255,255,.04); color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 14px; transition: all .2s; }
.quiz-opt:hover { border-color: var(--primary-2); background: rgba(124,92,255,.14); transform: translateY(-2px); }
.quiz-opt em { font-style: normal; font-size: 1.4rem; }
.quiz-result { text-align: center; animation: fadeup .5s ease; }
.quiz-result .tag { font-size: .85rem; }
.quiz-result h3 { font-size: 1.8rem; margin: 10px 0 8px; }
.quiz-result p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }
.quiz-result .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* ---------- Chat widget ---------- */
.chat-toggle { position: fixed; right: 22px; bottom: 92px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; z-index: 92; box-shadow: var(--shadow); transition: transform .25s; }
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle svg { width: 26px; height: 26px; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33,230,193,.6) } 70% { box-shadow: 0 0 0 10px rgba(33,230,193,0) } 100% { box-shadow: 0 0 0 0 rgba(33,230,193,0) } }
.chat { position: fixed; right: 22px; bottom: 156px; width: min(360px, calc(100vw - 44px)); max-height: min(520px, calc(100vh - 180px)); background: rgba(13,11,28,.97); border: 1px solid var(--card-border); border-radius: 22px; z-index: 93; display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(16px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transition: all .3s cubic-bezier(.2,.8,.2,1); }
.chat.open { transform: none; opacity: 1; visibility: visible; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(33,230,193,.2)); border-bottom: 1px solid var(--card-border); }
.chat-head small { display: block; color: var(--muted); font-size: .75rem; }
.chat-head button { margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.5rem; line-height: 1; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 85%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; animation: fadeup .3s ease; }
.msg.bot { background: rgba(255,255,255,.07); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 3px; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s } .msg.typing span:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%,80%,100% { opacity: .2 } 40% { opacity: 1 } }
.chat-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--card-border); }
.chat-replies button { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(124,92,255,.5); background: rgba(124,92,255,.12); color: var(--text); font-size: .82rem; font-weight: 500; transition: all .2s; }
.chat-replies button:hover { background: var(--grad); border-color: transparent; }

/* ---------- Exit-intent modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(4,3,10,.7); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1rem; opacity: 0; visibility: hidden; transition: all .3s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-box { width: min(520px, 100%); padding: 40px; text-align: center; position: relative; transform: translateY(20px); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.modal.show .modal-box { transform: none; }
.modal-box > * { transform: none; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.modal-box .eyebrow { justify-content: center; }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz { padding: 24px; }
}
@media (max-width: 600px) {
  .calc-results { grid-template-columns: 1fr 1fr; }
  .calc-inputs, .calc-results { padding: 22px; }
  .chat { right: 12px; bottom: 150px; width: calc(100vw - 24px); }
  .chat-toggle { right: 16px; }
  .whatsapp { right: 16px; }
  .back-top { right: 16px; bottom: 160px; }
}
.chat-toggle.hide { display: none; }
.chat:not(.open) ~ .chat-toggle.hide { display: grid; }

/* ============================================================
   POLISH: accessibility, fallbacks, states
   ============================================================ */
/* Skip link + focus rings */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .quiz-opt:focus-visible, .filters button:focus-visible { outline-offset: 4px; }
::selection { background: rgba(124,92,255,.5); color: #fff; }

/* Anchor offset for the fixed nav */
section[id], [id="calculator"], [id="quiz"] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* Hero fallback when WebGL isn't available: animated aurora */
.no-webgl #hero-canvas { display: none; }
.no-webgl .hero::before { content: ""; position: absolute; inset: -20%; z-index: 0; background:
  radial-gradient(40% 50% at 20% 30%, rgba(124,92,255,.45), transparent 70%),
  radial-gradient(35% 45% at 75% 35%, rgba(33,230,193,.35), transparent 70%),
  radial-gradient(45% 55% at 60% 80%, rgba(255,95,162,.35), transparent 70%);
  filter: blur(40px); animation: aurora 14s ease-in-out infinite alternate; }
@keyframes aurora { from { transform: translate(0,0) rotate(0deg) scale(1) } to { transform: translate(4%, -3%) rotate(8deg) scale(1.12) } }

/* Form validation states */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid,
.field .invalid { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,95,162,.14); }
.field-err { color: var(--accent-2); font-size: .8rem; min-height: 1em; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg) } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); background: var(--bg-3); border: 1px solid var(--card-border); color: var(--text); padding: 14px 20px; border-radius: 14px; z-index: 160; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2,.8,.2,1); font-size: .92rem; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); }

/* Reduced motion: also stop marquee / floating / cube */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-card, .cube, .loader, .chat-dot, .no-webgl .hero::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .nav, .mobile-menu, .preloader, .cursor-glow, .back-top, .whatsapp, .chat, .chat-toggle, .cookie, .modal, .progress-bar, #hero-canvas, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  .card, .step, .calc-inputs, .calc-results { border-color: #ccc; background: #fff; color: #000; }
  .grad-text { -webkit-text-fill-color: #000; color: #000; background: none; }
}

/* Tiny screens */
@media (max-width: 380px) {
  h1 { font-size: 2.1rem; }
  .btn { padding: 12px 20px; font-size: .9rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
}
