/* ==========================================================================
   Sacramentobay — Digital Agency Website
   Built with Bootstrap 5.3, AOS & custom CSS animations
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #f4f6f6;
  --surface: #f1f2f2;
  --white: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6b6b75;
  --border: #dcdde0;
  --purple: #a974ee;
  --purple-2: #7c4ddb;
  --purple-3: #5b34b8;
  --lavender: #e8dbff;
  --pink: #cb7dc9;
  --pink-soft: #f2d9f1;
  --dark: #151515;
  --dark-2: #1f1f22;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(20, 20, 40, .06);
  --shadow: 0 18px 40px -18px rgba(40, 20, 80, .25);
  --shadow-lg: 0 30px 70px -25px rgba(60, 30, 120, .35);
  --grad-purple: linear-gradient(135deg, #c39bf7 0%, #a974ee 45%, #7c4ddb 100%);
  --grad-text: linear-gradient(100deg, #7c4ddb 0%, #a974ee 40%, #cb7dc9 75%, #7c4ddb 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* prevents AOS slide-in animations from widening the page on mobile */
main, .site-footer { overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--purple-2); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
@media (max-width: 991.98px) { .section { padding: 80px 0; } }
@media (max-width: 575.98px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.text-gradient {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite;
}
.text-muted-2 { color: var(--muted) !important; }

/* Eyebrow / section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple-2);
  padding: .45rem 1rem; border-radius: 100px;
  background: rgba(169, 116, 238, .1);
  border: 1px solid rgba(169, 116, 238, .25);
  margin-bottom: 1.1rem;
}
.eyebrow i { font-size: .95rem; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.section-head.text-center .section-lead { margin-inline: auto; }

/* ---------- 3. Buttons (3D style from design) ---------- */
.btn-3d {
  --btn-bg: linear-gradient(180deg, #3d3d40 0%, #1c1c1e 100%);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.75rem;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: #fff !important;
  background: var(--btn-bg);
  border: 0; border-radius: 14px;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .55),
              inset 0 1px 0 rgba(255, 255, 255, .22),
              inset 0 -3px 0 rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn-3d::before { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-3d:hover { transform: translateY(-3px); box-shadow: 0 22px 34px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .35); }
.btn-3d:hover::before { transform: translateX(120%); }
.btn-3d:active { transform: translateY(0); }
.btn-3d i { transition: transform .35s var(--ease); }
.btn-3d:hover i.bi-arrow-right, .btn-3d:hover i.bi-arrow-up-right { transform: translateX(4px); }

.btn-3d.btn-purple { --btn-bg: linear-gradient(180deg, #bf97f6 0%, #9468e0 55%, #7c4ddb 100%); box-shadow: 0 14px 28px -10px rgba(124, 77, 219, .7), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(60, 20, 120, .35); }
.btn-3d.btn-purple-dark { --btn-bg: linear-gradient(170deg, #b58af2 0%, #8b65cf 45%, #2b2633 100%); }
.btn-3d.btn-light3d { --btn-bg: linear-gradient(180deg, #ffffff 0%, #eeeef2 100%); color: var(--ink) !important; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .3), inset 0 1px 0 #fff, inset 0 -3px 0 rgba(0, 0, 0, .08); }
.btn-3d.btn-sm { padding: .75rem 1.25rem; font-size: .925rem; border-radius: 12px; }
.btn-3d.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }

.link-arrow { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translate(3px, -3px); }

/* ---------- 4. Header / Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 28px 16px 0;
  transition: padding .4s var(--ease);
  pointer-events: none;
}
.site-header .nav-shell { pointer-events: auto; }
.nav-shell {
  max-width: 820px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 8px 8px 8px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px -18px rgba(60, 30, 120, .35);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), max-width .4s var(--ease);
}
.site-header.scrolled { padding-top: 12px; }
.site-header.scrolled .nav-shell { background: rgba(255, 255, 255, .82); box-shadow: 0 16px 40px -20px rgba(40, 20, 80, .45); }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 22px; flex: none; }
.brand-mark .l { transform-origin: 11px 11px; animation: logoSpin 8s var(--ease) infinite; }

.main-nav { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav > li > a {
  position: relative; font-weight: 500; font-size: 1rem; color: var(--ink); padding: .25rem 0;
}
.main-nav > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--pink); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--pink); }
.main-nav > li > a:hover::after, .main-nav > li > a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: var(--ink); color: #fff; display: none; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
@media (max-width: 991.98px) {
  .site-header { padding-top: 14px; }
  .nav-shell { padding: 8px 8px 8px 18px; }
  .main-nav, .nav-shell .btn-3d { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile offcanvas */
.offcanvas.mobile-menu { background: var(--bg); width: min(360px, 88vw); border-left: 0; }
.mobile-menu .offcanvas-header { padding: 22px 24px; }
.mobile-menu .nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-menu .nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-size: 1.5rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .nav-list a.active { color: var(--pink); }
.mobile-menu .nav-list a i { font-size: 1.1rem; opacity: .5; }
.mobile-menu .contact-mini { font-size: .95rem; color: var(--muted); }
.mobile-menu .contact-mini i { color: var(--purple-2); }

/* ---------- 5. Hero (Home) ---------- */
.hero-wrap { padding: 16px; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  min-height: calc(100vh - 32px);
  padding: 170px 0 0;
  background: #eeeef4;
  display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .85; will-change: transform; }
.blob-1 { width: 55vw; height: 55vw; max-width: 820px; max-height: 820px; left: -12%; bottom: -35%; background: radial-gradient(circle, #b98bf2 0%, #c9a6f7 40%, transparent 70%); animation: blobMove1 18s ease-in-out infinite; }
.blob-2 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; right: -8%; top: -18%; background: radial-gradient(circle, #ffffff 0%, #f3edff 50%, transparent 72%); animation: blobMove2 22s ease-in-out infinite; }
.blob-3 { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; right: 18%; bottom: -20%; background: radial-gradient(circle, #e6b8ef 0%, #d9b8f7 45%, transparent 72%); animation: blobMove3 20s ease-in-out infinite; opacity: .7; }
.blob-4 { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; left: 30%; top: 10%; background: radial-gradient(circle, #dccbfb 0%, transparent 70%); animation: blobMove2 26s ease-in-out infinite reverse; opacity: .7; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(124, 77, 219, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 77, 219, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-noise { position: absolute; inset: 0; z-index: -1; opacity: .25; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.cursor-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 65%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; }
.hero:hover .cursor-glow { opacity: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .45rem; border-radius: 100px;
  background: rgba(255, 255, 255, .7); border: 1px solid #fff;
  box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; color: var(--ink-2);
  backdrop-filter: blur(10px);
}
.hero-badge .tag { background: var(--ink); color: #fff; border-radius: 100px; padding: .2rem .7rem; font-size: .78rem; display: inline-flex; align-items: center; gap: .35rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ee08f; animation: pulse 1.8s ease-out infinite; }

.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 1.5rem 0 1.4rem; color: #2b2930; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.08em; }
.rotator span {
  background: var(--grad-text); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); padding-right: .05em; }
.rotator span.is-active { transform: translateY(0); opacity: 1; }
.rotator span.is-leaving { transform: translateY(-110%); opacity: 0; }
.hero-lead { font-size: 1.2rem; color: #4a4852; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0 2.4rem; }

.trust-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #f1edf8; object-fit: cover; margin-left: -12px; }
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack .more { width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; border: 3px solid #f1edf8; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.stars { color: #f5b301; font-size: .9rem; letter-spacing: 1px; }
.trust-row small { color: var(--muted); font-weight: 500; }

/* Hero – centered layout */
.hero-center { max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
.hero-center .hero-lead { max-width: 640px; }
.hero-center .hero-actions { justify-content: center; }
.rotator-block { display: grid; justify-items: center; height: 1.12em; margin: .02em 0; }
.rotator-block span { padding-bottom: .06em; }

/* floating service chips (desktop only) */
.hero-chips { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.chip-float {
  position: absolute; width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.45rem; color: var(--purple-2);
  background: rgba(255, 255, 255, .78); border: 1px solid #fff;
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: chipFloat 7s ease-in-out infinite;
}
.chip-float::after { content: ""; position: absolute; inset: -7px; border-radius: 22px; border: 1px dashed rgba(124, 77, 219, .28); }
.cf-1 { left: 7%; top: 210px; rotate: -10deg; }
.cf-2 { right: 8%; top: 195px; rotate: 9deg; animation-delay: -1.5s; color: #fff; background: var(--grad-purple); }
.cf-3 { left: 13%; top: 430px; rotate: 8deg; animation-delay: -3s; }
.cf-4 { right: 12%; top: 420px; rotate: -8deg; animation-delay: -4.5s; }
.cf-5 { left: 3%; top: 650px; width: 48px; height: 48px; font-size: 1.15rem; animation-delay: -2s; }
.cf-6 { right: 3%; top: 660px; width: 48px; height: 48px; font-size: 1.15rem; animation-delay: -5s; color: #fff; background: var(--ink); }

/* showcase */
.hero-showcase { position: relative; max-width: 1040px; height: 440px; margin: 3.5rem auto 0; perspective: 1400px; }
.sc-layer { position: absolute; inset: 0; transition: transform .25s ease-out; }
.sc-glow { position: absolute; left: 50%; top: 55%; width: 70%; height: 70%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(169, 116, 238, .55), transparent 70%); filter: blur(40px); }
.sc-card { position: absolute; margin: 0; overflow: hidden; border-radius: 26px; border: 6px solid rgba(255, 255, 255, .88); box-shadow: var(--shadow-lg); background: #ddd; }
.sc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sc-card:hover img { transform: scale(1.06); }
.sc-main { left: 50%; top: 0; width: 520px; height: 360px; margin-left: -260px; z-index: 2; animation: floatY 7s ease-in-out infinite; }
.sc-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(43, 20, 90, .6)); pointer-events: none; }
.sc-main .caption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.sc-main .caption .live { font-size: .75rem; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); border-radius: 100px; padding: .2rem .65rem; display: inline-flex; align-items: center; gap: .35rem; }
.sc-left, .sc-right { top: 70px; width: 320px; height: 240px; }
.sc-left { left: 2%; transform: rotate(-9deg) rotateY(14deg); animation: tiltL 9s ease-in-out infinite; }
.sc-right { right: 2%; transform: rotate(9deg) rotateY(-14deg); animation: tiltR 9s ease-in-out infinite; }

.glass-card {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow);
}
.gc-stats { top: 10px; left: 14%; animation: floatY 6s ease-in-out infinite; }
.gc-stats .num { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; }
.gc-stats .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-purple); color: #fff; font-size: 1.2rem; }
.gc-chart { bottom: 40px; right: 10%; width: 220px; animation: floatY 7.5s ease-in-out infinite .8s; }
.gc-chart .bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin-top: 10px; }
.gc-chart .bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #b98bf2, #7c4ddb); transform-origin: bottom; animation: barGrow 2.4s var(--ease) infinite alternate; }
.gc-chart .bars span:nth-child(odd) { background: linear-gradient(180deg, #f0c9ef, #cb7dc9); }
.gc-chart .bars span:nth-child(1) { height: 35%; animation-delay: .1s; }
.gc-chart .bars span:nth-child(2) { height: 55%; animation-delay: .25s; }
.gc-chart .bars span:nth-child(3) { height: 45%; animation-delay: .4s; }
.gc-chart .bars span:nth-child(4) { height: 75%; animation-delay: .55s; }
.gc-chart .bars span:nth-child(5) { height: 60%; animation-delay: .7s; }
.gc-chart .bars span:nth-child(6) { height: 95%; animation-delay: .85s; }
.gc-chart .up { color: #18a565; font-weight: 700; font-size: .85rem; }
.gc-rating { top: 30px; right: 13%; display: flex; align-items: center; gap: .7rem; animation: floatY 6.5s ease-in-out infinite .4s; }
.gc-rating .ring { --p: 98; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--purple-2) calc(var(--p) * 1%), #ece6f7 0); position: relative; font-weight: 800; font-size: .8rem; color: var(--ink); }
.gc-rating .ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.gc-rating .ring b { position: relative; }
.gc-launch { bottom: 60px; left: 11%; display: flex; align-items: center; gap: .7rem; padding: 12px 16px; animation: floatY 8s ease-in-out infinite 1.2s; }
.gc-launch .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.glass-card .label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.glass-card strong { color: var(--ink); }

@keyframes chipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes tiltL { 0%, 100% { translate: 0 0; } 50% { translate: -8px 10px; } }
@keyframes tiltR { 0%, 100% { translate: 0 0; } 50% { translate: 8px 10px; } }

@media (max-width: 1199.98px) {
  .hero-chips { display: none; }
  .sc-left { left: -2%; } .sc-right { right: -2%; }
  .gc-stats { left: 4%; } .gc-launch { left: 2%; } .gc-rating { right: 4%; } .gc-chart { right: 2%; }
}
@media (max-width: 991.98px) {
  .hero { padding-top: 130px; min-height: auto; }
  .hero-showcase { height: 380px; }
  .sc-main { width: 440px; height: 300px; margin-left: -220px; }
  .sc-left, .sc-right { width: 250px; height: 190px; top: 60px; }
}
@media (max-width: 767.98px) {
  .hero-showcase { height: 330px; margin-top: 2.5rem; }
  .sc-left, .sc-right, .gc-rating, .gc-launch { display: none; }
  .sc-main { left: 0; right: 0; width: auto; margin-left: 0; height: 280px; top: 20px; }
  .gc-stats { top: -10px; left: -6px; padding: 12px; }
  .gc-chart { right: -6px; bottom: 0; width: 180px; padding: 12px; }
  .gc-chart .bars { height: 46px; }
}
@media (max-width: 575.98px) {
  .hero-wrap { padding: 8px; }
  .hero { border-radius: 22px; padding-top: 115px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn-3d { flex: 1 1 100%; justify-content: center; }
  .hero-showcase { height: 280px; }
  .sc-main { height: 230px; border-width: 4px; border-radius: 20px; }
  .gc-stats .num { font-size: 1.4rem; }
  .gc-stats .ico { width: 34px; height: 34px; font-size: 1rem; }
  .gc-chart { width: 150px; }
}

/* Hero marquee (bottom of hero) */
.hero-marquee { margin-top: auto; padding: 28px 0 30px; border-top: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 700; color: rgba(43, 41, 48, .55); white-space: nowrap; transition: color .3s; }
.marquee-item:hover { color: var(--ink); }
.marquee-item i { font-size: 1.5rem; color: var(--purple-2); opacity: .7; }

/* ---------- 6. Page hero (inner pages – as per Figma Contact) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  padding: 220px 0 120px;
  background: #eeeef4;
}
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.045em; line-height: 1.02; color: #2f2d35; max-width: 640px; }
.page-hero p.lead { font-size: 1.15rem; color: #3f3d46; max-width: 600px; margin: 0; }
.breadcrumb { font-size: .92rem; font-weight: 600; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--purple-2); }
.breadcrumb-item + .breadcrumb-item::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; padding-top: .3rem; color: var(--muted); }
@media (max-width: 991.98px) { .page-hero { padding: 150px 0 80px; } }
@media (max-width: 575.98px) { .page-hero { padding: 130px 0 60px; border-radius: 22px; } }

/* ---------- 7. Cards & common blocks ---------- */
.card-soft {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; height: 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), background .45s;
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(169, 116, 238, .45); background: #fff; }
.icon-box {
  width: 58px; height: 58px; flex: none; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--pink-soft); color: var(--purple-3);
  transition: transform .45s var(--ease), background .45s, color .45s;
}
.card-soft:hover .icon-box { transform: rotate(-8deg) scale(1.06); background: var(--grad-purple); color: #fff; }
.icon-box.sm { width: 48px; height: 48px; border-radius: 14px; font-size: 1.25rem; }
.icon-box.dark { background: var(--ink); color: #fff; }

/* Services */
.service-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.5rem; margin: 1.5rem 0 .75rem; }
.service-card p { color: var(--muted); margin-bottom: 1.25rem; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.service-card .tags span { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 100px; background: #fff; border: 1px solid var(--border); color: var(--ink-2); }
.service-card .num { position: absolute; top: 1.6rem; right: 1.8rem; font-size: 3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(124, 77, 219, .25); line-height: 1; transition: -webkit-text-stroke-color .4s; }
.service-card:hover .num { -webkit-text-stroke-color: var(--purple); }
.service-card .link-arrow { margin-top: auto; }

/* About / stats */
.img-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.img-frame:hover img { transform: scale(1.05); }
.img-badge {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px);
  border-radius: 18px; padding: 1rem 1.25rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem;
  animation: floatY 6s ease-in-out infinite;
}
.img-badge .big { font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.check-list li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-purple); color: #fff; font-size: .8rem; margin-top: .15rem; }

.stat-box { text-align: center; padding: 2rem 1rem; }
.stat-box .count { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.stat-box p { color: var(--muted); margin: .5rem 0 0; font-weight: 500; }
.stats-strip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stats-strip .col + .col { border-left: 1px solid var(--border); }
@media (max-width: 767.98px) { .stats-strip .col:nth-child(3) { border-left: 0; } .stats-strip .col:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* Process */
.process-step { position: relative; padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); height: 100%; transition: all .45s var(--ease); }
.process-step:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-6px); }
.process-step:hover h3, .process-step:hover .step-no { color: #fff; }
.process-step:hover p { color: rgba(255, 255, 255, .7); }
.process-step .step-no { font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--purple-2); }
.process-step h3 { font-size: 1.35rem; margin: 1.25rem 0 .6rem; transition: color .4s; }
.process-step p { color: var(--muted); margin: 0; font-size: .98rem; transition: color .4s; }

/* Portfolio */
.work-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20, 10, 40, .85)); transition: opacity .5s; }
.work-card .work-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.work-card .work-info h3 { color: #fff; font-size: 1.45rem; margin: .4rem 0 0; }
.work-card .cat { font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); padding: .3rem .75rem; border-radius: 100px; }
.work-card .go { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .5s var(--ease); }
.work-card:hover img { transform: scale(1.08); }
.work-card:hover .go { transform: scale(1) rotate(0); opacity: 1; }

/* Features (dark band) */
.dark-band { background: var(--dark); color: rgba(255, 255, 255, .72); border-radius: var(--radius-lg); margin: 0 16px; overflow: hidden; position: relative; isolation: isolate; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: #d6bdfb; background: rgba(169, 116, 238, .15); border-color: rgba(169, 116, 238, .35); }
.dark-band .glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: .45; }
.dark-band .glow-a { background: #7c4ddb; top: -250px; right: -150px; animation: blobMove2 18s ease-in-out infinite; }
.dark-band .glow-b { background: #cb7dc9; bottom: -300px; left: -200px; opacity: .3; animation: blobMove1 22s ease-in-out infinite; }
.feature-dark { padding: 1.75rem; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); height: 100%; transition: all .45s var(--ease); }
.feature-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(169, 116, 238, .5); transform: translateY(-5px); }
.feature-dark .icon-box { background: rgba(169, 116, 238, .18); color: #d6bdfb; }
.feature-dark h3 { font-size: 1.2rem; margin: 1.2rem 0 .5rem; }
.feature-dark p { margin: 0; font-size: .97rem; }
@media (max-width: 575.98px) { .dark-band { margin: 0 8px; border-radius: 22px; } }

/* Testimonials */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; height: 100%; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial .quote-ico { font-size: 2.4rem; line-height: 1; color: var(--purple); opacity: .35; }
.testimonial blockquote { font-size: 1.08rem; color: var(--ink-2); margin: 1rem 0 1.5rem; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: .85rem; }
.testimonial .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial .who strong { display: block; color: var(--ink); }
.testimonial .who small { color: var(--muted); }

/* Pricing */
.billing-toggle { display: inline-flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--border); padding: .4rem; border-radius: 100px; box-shadow: var(--shadow-sm); }
.billing-toggle button { border: 0; background: transparent; padding: .6rem 1.4rem; border-radius: 100px; font-weight: 600; color: var(--muted); transition: all .35s var(--ease); }
.billing-toggle button.active { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.billing-toggle .save { font-size: .72rem; background: var(--pink-soft); color: var(--purple-3); border-radius: 100px; padding: .15rem .5rem; margin-left: .3rem; }
.price-card { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; height: 100%; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card .plan { font-size: 1.25rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .6rem; }
.price-card .price { font-size: 3.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin: 1.5rem 0 .25rem; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .price .amt { display: inline-block; transition: transform .4s var(--ease), opacity .4s; }
.price-card .price .amt.flip { transform: translateY(-10px); opacity: 0; }
.price-card .desc { color: var(--muted); font-size: .98rem; }
.price-card hr { border-color: var(--border); opacity: 1; margin: 1.5rem 0; }
.price-card .check-list { margin-bottom: 2rem; }
.price-card .check-list li { font-size: .97rem; }
.price-card .check-list li.off { opacity: .45; }
.price-card .check-list li.off i { background: #c9c9cf; }
.price-card .btn-3d { margin-top: auto; width: 100%; }
.price-card.featured { background: var(--dark); border-color: var(--dark); color: rgba(255, 255, 255, .72); }
.price-card.featured::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #7c4ddb; filter: blur(110px); opacity: .55; top: -180px; right: -140px; z-index: -1; animation: blobMove2 14s ease-in-out infinite; }
.price-card.featured .plan, .price-card.featured .price { color: #fff; }
.price-card.featured .desc, .price-card.featured .price small { color: rgba(255, 255, 255, .6); }
.price-card.featured hr { border-color: rgba(255, 255, 255, .12); }
.price-card.featured .check-list li { color: rgba(255, 255, 255, .85); }
.popular-tag { position: absolute; top: 1.6rem; right: 1.6rem; font-size: .75rem; font-weight: 700; padding: .35rem .8rem; border-radius: 100px; background: var(--grad-purple); color: #fff; display: inline-flex; gap: .3rem; align-items: center; }
.compare-table { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.compare-table table { margin: 0; }
.compare-table th, .compare-table td { padding: 1.05rem 1.25rem; vertical-align: middle; border-color: var(--border); }
.compare-table thead th { background: var(--surface); font-size: 1.05rem; color: var(--ink); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table .bi-check-circle-fill { color: var(--purple-2); font-size: 1.15rem; }
.compare-table .bi-dash-circle { color: #c5c5cc; }

/* FAQ accordion */
.faq .accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px !important; margin-bottom: 1rem; overflow: hidden; transition: border-color .3s, background .3s; }
.faq .accordion-item:has(.accordion-button:not(.collapsed)) { background: #fff; border-color: rgba(169, 116, 238, .5); box-shadow: var(--shadow-sm); }
.faq .accordion-button { background: transparent; font-weight: 600; font-size: 1.1rem; color: var(--ink); padding: 1.35rem 1.5rem; box-shadow: none; }
.faq .accordion-button::after { background-image: none; content: "\F64D"; font-family: "bootstrap-icons"; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); font-size: 1rem; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .accordion-body { padding: 0 1.5rem 1.5rem; color: var(--muted); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--purple), var(--pink), transparent); }
.timeline-item { position: relative; padding-bottom: 2.25rem; }
.timeline-item::before { content: ""; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--purple); box-shadow: 0 0 0 6px rgba(169, 116, 238, .15); }
.timeline-item .year { font-weight: 800; color: var(--purple-2); font-size: .95rem; letter-spacing: .08em; }
.timeline-item h3 { font-size: 1.25rem; margin: .3rem 0 .4rem; }
.timeline-item p { margin: 0; color: var(--muted); }

/* Team */
.team-card { text-align: center; }
.team-card .photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; margin-bottom: 1.1rem; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25); }
.team-card:hover .photo img { transform: scale(1.06); filter: grayscale(0); }
.team-card .socials { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 20px); opacity: 0; display: flex; gap: .4rem; transition: all .45s var(--ease); }
.team-card:hover .socials { transform: translate(-50%, 0); opacity: 1; }
.team-card .socials a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); }
.team-card .socials a:hover { background: var(--ink); color: #fff; }
.team-card h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.team-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Service detail rows (services page) */
.service-row { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.service-row:last-child { border-bottom: 0; }
.service-row .img-frame { aspect-ratio: 4 / 3; }
.service-row h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); margin: 1rem 0; }
.mini-feature { display: flex; gap: .9rem; align-items: flex-start; }
.mini-feature h3 { font-size: 1.02rem; margin: 0 0 .15rem; }
.mini-feature p { margin: 0; font-size: .93rem; color: var(--muted); }

.tech-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem; border-radius: 100px; background: #fff; border: 1px solid var(--border); font-weight: 600; color: var(--ink); transition: all .35s var(--ease); }
.tech-pill i { color: var(--purple-2); font-size: 1.1rem; }
.tech-pill:hover { transform: translateY(-3px); border-color: var(--purple); box-shadow: var(--shadow-sm); }

/* ---------- 8. Contact (per Figma) ---------- */
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.9rem 1.9rem; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); transition: all .45s var(--ease); }
.contact-card:hover { background: #fff; transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: rgba(169, 116, 238, .45); }
button.contact-card { font: inherit; color: inherit; }
@media (max-width: 575.98px) {
  .contact-card, .follow-card, .holo-card, .form-panel { padding: 1.4rem; }
  .contact-card .value { font-size: 1rem; }
}
.contact-card .icon-box { width: 48px; height: 48px; border-radius: 12px; font-size: 1.2rem; }
.contact-card .label { color: var(--ink-2); font-size: 1rem; }
.contact-card .value { display: block; color: var(--ink); font-weight: 600; font-size: 1.15rem; margin: .1rem 0; word-break: break-word; }
.contact-card small { color: #8b8b93; font-size: .92rem; }
.follow-card { padding: 1.9rem; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.follow-card .label { letter-spacing: .2em; font-size: .9rem; text-transform: uppercase; color: var(--ink-2); }
.social-links { display: flex; gap: .55rem; flex-wrap: wrap; }
.social-links a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--ink); font-size: 1.05rem; transition: all .35s var(--ease); }
.social-links a:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-3px); }
.holo-card { border-radius: 24px; min-height: 144px; background: linear-gradient(115deg, #f4c8f6 0%, #e9b9f4 28%, #fbeefd 45%, #d9a8f2 62%, #f4c8f6 100%); background-size: 250% 250%; animation: holo 8s ease infinite; padding: 1.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #3a2350; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.holo-card strong { font-size: 1.25rem; color: #2a183c; display: block; }

.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 2rem; }
.form-label { font-weight: 500; color: var(--ink-2); margin-bottom: .6rem; }
.form-control, .form-select {
  background-color: #fff; border: 1px solid transparent; border-radius: 12px; padding: .95rem 1.1rem; min-height: 59px;
  font-size: 1rem; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .3s, box-shadow .3s;
}
textarea.form-control { min-height: 147px; resize: vertical; }
.form-control:focus, .form-select:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(169, 116, 238, .18); }
.form-control::placeholder { color: #a7a7ae; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: #e5484d; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 420px; filter: grayscale(.3); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 9. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: 5rem 2rem; text-align: center;
  background: #ece6f8;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); max-width: 760px; margin: 0 auto 1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; color: #4a4852; font-size: 1.1rem; }
.cta-band .rays { position: absolute; inset: -50%; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .55) 0deg 6deg, transparent 6deg 18deg); animation: spin 60s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%); mask-image: radial-gradient(circle, #000 0%, transparent 55%); }
.cta-band .blob { filter: blur(70px); }

/* ---------- 10. Footer (per Figma) ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: rgba(255, 255, 255, .78); margin-top: 110px; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 40% 60% at 15% 30%, rgba(255, 255, 255, .07), transparent 70%), radial-gradient(ellipse 30% 50% at 70% 10%, rgba(255, 255, 255, .06), transparent 70%), linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .04) 45%, transparent 60%); }
.newsletter { text-align: center; padding: 70px 0 60px; }
.newsletter h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; margin-bottom: .4rem; }
.newsletter p { color: rgba(255, 255, 255, .85); }
.news-form { max-width: 560px; margin: 1.8rem auto 0; display: flex; align-items: center; gap: .5rem; padding: 6px 6px 6px 22px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px; background: rgba(255, 255, 255, .03); transition: border-color .3s, box-shadow .3s; }
.news-form:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(169, 116, 238, .2); }
.news-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; outline: none; font-size: .95rem; }
.news-form input::placeholder { color: rgba(255, 255, 255, .5); }
.news-form .btn-3d { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; padding: .95rem 1.4rem; }
.news-msg { min-height: 1.5rem; margin-top: .75rem; font-size: .92rem; color: #b7f3d2; }
.footer-main { padding: 30px 0 60px; }
.footer-main h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: 1.6rem; }
.footer-main p { color: rgba(255, 255, 255, .78); font-size: .97rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-links a { color: rgba(255, 255, 255, .8); font-size: .97rem; display: inline-flex; align-items: center; gap: .45rem; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-links i { color: var(--purple); }
.site-footer .social-links a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.site-footer .social-links a:hover { background: var(--purple); border-color: var(--purple); }
.footer-bar { background: var(--pink); color: var(--ink); padding: 14px 0; font-size: .92rem; font-weight: 500; }
.footer-bar a { color: var(--ink); font-weight: 600; }
.footer-bar a:hover { color: #fff; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 1020; width: 50px; height: 50px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--purple-2); }

/* ---------- 11. Start-a-Project Modal ---------- */
.project-modal .modal-dialog { max-width: 1040px; }
.project-modal .modal-content { border: 0; border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: 0 40px 100px -30px rgba(30, 10, 70, .6); }
.modal-backdrop.show { opacity: .55; backdrop-filter: blur(4px); }
.project-modal.fade .modal-dialog { transform: translateY(40px) scale(.96); transition: transform .5s var(--ease); }
.project-modal.show .modal-dialog { transform: none; }
.pm-side { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: rgba(255, 255, 255, .75); padding: 2.5rem; height: 100%; display: flex; flex-direction: column; }
.pm-side::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #7c4ddb; filter: blur(110px); opacity: .6; top: -160px; left: -120px; z-index: -1; animation: blobMove2 14s ease-in-out infinite; }
.pm-side::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: #cb7dc9; filter: blur(110px); opacity: .35; bottom: -150px; right: -120px; z-index: -1; }
.pm-side h2 { color: #fff; font-size: 2rem; margin: 1.5rem 0 .75rem; }
.pm-side .brand { color: #fff; }
.pm-steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.pm-steps li { display: flex; gap: .9rem; align-items: center; opacity: .55; transition: opacity .4s; }
.pm-steps li .n { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; color: #fff; transition: all .4s var(--ease); }
.pm-steps li strong { color: #fff; display: block; font-size: 1rem; }
.pm-steps li small { font-size: .85rem; }
.pm-steps li.active, .pm-steps li.done { opacity: 1; }
.pm-steps li.active .n { background: var(--grad-purple); border-color: transparent; box-shadow: 0 8px 20px -6px rgba(169, 116, 238, .8); }
.pm-steps li.done .n { background: #fff; color: var(--ink); }
.pm-side .pm-contact { margin-top: auto; font-size: .92rem; display: grid; gap: .5rem; }
.pm-side .pm-contact i { color: #d6bdfb; margin-right: .4rem; }
.pm-body { padding: 2.5rem; position: relative; }
.pm-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink); transition: all .3s; z-index: 2; }
.pm-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.pm-progress { height: 6px; border-radius: 10px; background: #e4e2ea; overflow: hidden; margin: .25rem 3.5rem 2rem 0; }
.pm-progress span { display: block; height: 100%; width: 33%; background: var(--grad-purple); border-radius: 10px; transition: width .6s var(--ease); }
.pm-step { display: none; }
.pm-step.active { display: block; animation: stepIn .55s var(--ease); }
.pm-step h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.pm-step > p { color: var(--muted); margin-bottom: 1.5rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.1rem; border-radius: 16px; background: #fff; border: 1.5px solid var(--border); cursor: pointer; font-weight: 600; color: var(--ink); transition: all .3s var(--ease); font-size: .95rem; }
.choice label i { font-size: 1.4rem; color: var(--purple-2); transition: color .3s; }
.choice label:hover { border-color: var(--purple); transform: translateY(-2px); }
.choice input:checked + label { border-color: var(--purple-2); background: linear-gradient(180deg, #fff, #f5eeff); box-shadow: 0 10px 22px -12px rgba(124, 77, 219, .6); }
.choice input:checked + label::after { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--purple-2); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.choice input:focus-visible + label { outline: 2px solid var(--purple); outline-offset: 2px; }
.pill-group { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill-group .choice label { flex-direction: row; padding: .65rem 1.1rem; border-radius: 100px; font-size: .92rem; }
.pill-group .choice input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-group .choice input:checked + label::after { display: none; }
.pm-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pm-error { color: #e5484d; font-size: .9rem; min-height: 1.3rem; margin-top: .75rem; }
.pm-success { text-align: center; padding: 3rem 1rem; }
.pm-success .tick { width: 96px; height: 96px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--grad-purple); display: grid; place-items: center; color: #fff; font-size: 2.8rem; box-shadow: 0 20px 40px -14px rgba(124, 77, 219, .8); animation: popIn .7s var(--ease); }
@media (max-width: 991.98px) { .pm-side { display: none; } }
@media (max-width: 575.98px) {
  .pm-body { padding: 1.75rem 1.25rem; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-actions .btn-3d { flex: 1; }
  .project-modal .modal-content { border-radius: 22px; }
}

/* ---------- 12. Keyframes ---------- */
@keyframes gradientShift { to { background-position: 200% center; } }
@keyframes blobMove1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(8%, -6%) scale(1.08); } 66% { transform: translate(-4%, 4%) scale(.95); } }
@keyframes blobMove2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-10%, 12%) scale(1.12); } }
@keyframes blobMove3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12%, -10%) scale(1.1); } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-band .rays { animation-name: spinPlain; }
@keyframes spinPlain { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
@keyframes barGrow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes logoSpin { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(360deg); } }
@keyframes holo { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 1s var(--ease) both; }
.delay-1 { animation-delay: .15s; } .delay-2 { animation-delay: .3s; } .delay-3 { animation-delay: .45s; } .delay-4 { animation-delay: .6s; }

/* ==========================================================================
   12. Services dropdown (desktop) + mobile sub-menu
   ========================================================================== */
.nav-shell { max-width: 920px; }
.main-nav { align-items: center; gap: 1.6rem; }
.has-drop { position: relative; display: flex; align-items: center; gap: .15rem; }
.drop-toggle {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px;
  display: grid; place-items: center; font-size: .7rem;
  background: transparent; color: var(--ink);
  transition: transform .45s var(--ease), color .3s;
}
.drop-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.has-drop.open .drop-toggle { transform: rotate(180deg); color: var(--pink); }

.drop-menu {
  position: absolute; top: 100%; left: 50%; z-index: 5;
  width: 600px; padding-top: 30px;               /* padding = hover bridge */
  transform: translate(-50%, 14px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .3s;
}
.has-drop.open .drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.drop-panel {
  position: relative; padding: 12px; border-radius: 24px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 34px 70px -26px rgba(60, 30, 120, .45);
}
.drop-panel::before {
  content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px;
  background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0;
}
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop-item {
  display: flex; align-items: center; gap: .85rem; padding: .7rem .75rem; border-radius: 16px;
  color: var(--ink); transition: background .3s var(--ease);
}
.drop-item .txt { display: grid; line-height: 1.3; }
.drop-item strong { font-weight: 600; font-size: .98rem; }
.drop-item small { color: var(--muted); font-size: .82rem; }
.drop-item:hover, .drop-item.current { background: #f4effd; color: var(--ink); }
.drop-item:hover .icon-box, .drop-item.current .icon-box { background: var(--grad-purple); color: #fff; transform: rotate(-8deg) scale(1.05); }
.drop-item.current strong { color: var(--purple-3); }
.has-drop.open .drop-item { animation: dropIn .5s var(--ease) both; }
.has-drop.open .drop-item:nth-child(2) { animation-delay: .04s; }
.has-drop.open .drop-item:nth-child(3) { animation-delay: .08s; }
.has-drop.open .drop-item:nth-child(4) { animation-delay: .12s; }
.has-drop.open .drop-item:nth-child(5) { animation-delay: .16s; }
.has-drop.open .drop-item:nth-child(6) { animation-delay: .2s; }
.drop-all {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 8px; padding: .85rem 1rem .85rem 1.15rem; border-radius: 16px;
  background: var(--ink); color: #fff;
}
.drop-all strong { display: block; font-weight: 600; }
.drop-all small { display: block; color: rgba(255, 255, 255, .6); font-size: .82rem; }
.drop-all i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .35s var(--ease); }
.drop-all:hover { color: #fff; }
.drop-all:hover i { transform: translateX(4px); }
@keyframes dropIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* mobile sub-menu */
.mobile-menu .has-sub { border-bottom: 1px solid var(--border); }
.mobile-menu .sub-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mobile-menu .nav-list .sub-head > a { flex: 1; border-bottom: 0; }
.sub-toggle {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.sub-toggle i { transition: transform .45s var(--ease); }
.sub-toggle:not(.collapsed) { background: var(--ink); border-color: var(--ink); color: #fff; }
.sub-toggle:not(.collapsed) i { transform: rotate(180deg); }
.mobile-menu .sub-list { list-style: none; margin: 0; padding: 0 0 .9rem; }
.mobile-menu .nav-list .sub-list a { justify-content: flex-start; gap: .8rem; padding: .5rem 0; font-size: 1.05rem; font-weight: 500; color: var(--ink-2); border-bottom: 0; }
.mobile-menu .nav-list .sub-list a i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; opacity: 1; background: var(--pink-soft); color: var(--purple-3); }
.mobile-menu .nav-list .sub-list a.active { color: var(--pink); font-weight: 600; }

/* ==========================================================================
   13. Service detail pages
   ========================================================================== */
.svc-hero { padding-bottom: 110px; }
.svc-hero h1 { max-width: none; font-size: clamp(2.3rem, 4.5vw, 3.7rem); line-height: 1.06; }
.svc-hero .eyebrow, .post-hero .eyebrow { background: rgba(255, 255, 255, .6); }
.svc-hero-visual { position: relative; isolation: isolate; padding-bottom: 28px; }
.svc-hero-visual .img-frame { aspect-ratio: 5 / 4.3; border: 6px solid rgba(255, 255, 255, .9); rotate: 2.5deg; animation: floatY 7s ease-in-out infinite; }
.svc-ring { position: absolute; z-index: -1; left: 8%; right: 8%; top: 22%; bottom: 0; border-radius: 50%; background: radial-gradient(circle, rgba(169, 116, 238, .6), transparent 70%); filter: blur(40px); }
.svc-badge {
  position: absolute; z-index: 2; left: -22px; bottom: 0;
  display: flex; align-items: center; gap: .8rem; padding: 14px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .82); border: 1px solid #fff;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow); animation: floatY 6s ease-in-out infinite .6s;
}
.svc-badge .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-purple); color: #fff; font-size: 1.2rem; }
.svc-badge .num { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--ink); }
.svc-badge .label { margin-top: .2rem; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.svc-chip { z-index: 2; right: -14px; top: -20px; rotate: 9deg; color: #fff; background: var(--grad-purple); }

.svc-ov-visual { position: relative; padding: 0 26px 26px 0; }
.svc-ov-visual .img-frame { aspect-ratio: 4 / 3; }
.svc-ov-card {
  position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: .8rem;
  padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); animation: floatY 7s ease-in-out infinite;
}
.svc-ov-card strong { display: block; color: var(--ink); line-height: 1.2; }
.svc-ov-card small { color: var(--muted); }

.svc-price { padding: 2.25rem; }
.svc-price:hover { transform: none; }
.svc-price .label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d6bdfb; }
.svc-price .amount { margin-top: .4rem; font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: #fff; }
.svc-price .check-list li { color: rgba(255, 255, 255, .85); }

.svc-tile {
  position: relative; display: grid; align-content: start; gap: .15rem; height: 100%; padding: 1.4rem;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  transition: transform .45s var(--ease), background .45s, border-color .45s, color .45s, box-shadow .45s;
}
.svc-tile .icon-box { margin-bottom: .9rem; }
.svc-tile strong { font-size: 1.05rem; font-weight: 700; }
.svc-tile small { color: var(--muted); font-size: .86rem; transition: color .45s; }
.svc-tile .go { position: absolute; top: 1.4rem; right: 1.4rem; color: var(--muted); transition: transform .35s var(--ease), color .35s; }
.svc-tile:hover { transform: translateY(-6px); background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow); }
.svc-tile:hover small { color: rgba(255, 255, 255, .65); }
.svc-tile:hover .go { color: #fff; transform: translate(3px, -3px); }
.svc-tile:hover .icon-box { background: var(--grad-purple); color: #fff; transform: rotate(-8deg) scale(1.05); }

@media (max-width: 991.98px) {
  .svc-hero { padding-bottom: 80px; }
  .svc-hero-visual { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
  .svc-hero { padding-bottom: 60px; }
  .svc-badge { left: -6px; padding: 10px 14px; }
  .svc-badge .num { font-size: 1.3rem; }
  .svc-chip { right: -4px; top: -16px; width: 48px; height: 48px; font-size: 1.15rem; }
  .svc-ov-visual { padding: 0 12px 22px 0; }
  .svc-price { padding: 1.6rem; }
}

/* ==========================================================================
   14. Blog list
   ========================================================================== */
.blog-search {
  display: flex; align-items: center; gap: .75rem; height: 60px; max-width: 420px; margin-left: auto;
  padding: 0 1.25rem; border-radius: 16px;
  background: rgba(255, 255, 255, .75); border: 1px solid #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s;
}
.blog-search i { color: var(--purple-2); font-size: 1.1rem; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 500; color: var(--ink); }
.blog-search input::placeholder { color: #8f8f99; }
.blog-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(169, 116, 238, .18); }

.post-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10.5; background: #ddd; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-cat {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem; border-radius: 100px; font-size: .78rem; font-weight: 700;
  background: rgba(255, 255, 255, .92); color: var(--purple-3); box-shadow: var(--shadow-sm);
}
.post-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, background .45s;
}
.post-card:hover { transform: translateY(-8px); background: #fff; border-color: rgba(169, 116, 238, .45); box-shadow: var(--shadow); }
.post-card:hover .post-thumb img, .post-featured:hover .post-thumb img { transform: scale(1.07); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.post-meta i { margin-right: .4rem; color: var(--purple-2); }
.post-card h3 { font-size: 1.3rem; line-height: 1.25; margin: .9rem 0 .6rem; }
.post-card h3 a, .post-featured h2 a {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .5s var(--ease), color .3s;
}
.post-card:hover h3 a, .post-featured h2 a:hover { color: var(--purple-3); background-size: 100% 1.5px; }
.post-card p { color: var(--muted); font-size: .97rem; margin-bottom: 1.25rem; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.post-author { display: inline-flex; align-items: center; gap: .65rem; font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.post-author img { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.post-author small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }

.post-featured { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .45s var(--ease), border-color .45s; }
.post-featured:hover { box-shadow: var(--shadow); border-color: rgba(169, 116, 238, .45); }
.post-featured .post-thumb { height: 100%; min-height: 360px; aspect-ratio: auto; }
.post-featured .post-body { justify-content: center; height: 100%; padding: clamp(1.6rem, 3.2vw, 3rem); }
.post-featured .eyebrow { align-self: flex-start; }
.post-featured h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 0 0 1rem; }
.post-featured p { color: var(--muted); margin-bottom: 1.25rem; }
.post-featured .post-foot { margin-top: 1.75rem; flex-wrap: wrap; }
.post-featured .post-author img { width: 44px; height: 44px; }

.blog-filter .tech-pill { cursor: pointer; }
.blog-filter .tech-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-filter .tech-pill.active i { color: #d6bdfb; }
.post-col.is-hidden { display: none; }
.post-col.is-in .post-card { animation: fadeUp .6s var(--ease) both; }

@media (max-width: 991.98px) {
  .blog-search { max-width: none; margin-left: 0; }
  .post-featured .post-thumb { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   15. Single blog post
   ========================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1040; height: 4px; pointer-events: none; }
.read-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #a974ee, #cb7dc9); }

.post-hero { padding-bottom: 200px; }
.post-hero h1 { max-width: 920px; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.08; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; margin-top: 2rem; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.post-byline i { margin-right: .45rem; color: var(--purple-2); }
.post-byline .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .5; }
.post-byline .post-author img { width: 48px; height: 48px; }
.post-cover { position: relative; z-index: 2; margin: -140px 0 0; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--radius-lg); border: 6px solid #fff; box-shadow: var(--shadow-lg); background: #ddd; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-content { font-size: 1.09rem; line-height: 1.8; color: var(--ink-2); }
.post-content > p { margin-bottom: 1.4rem; }
.post-content .post-intro { font-size: 1.28rem; line-height: 1.65; font-weight: 500; color: var(--ink); }
.post-content h2 { display: flex; align-items: baseline; gap: .8rem; margin: 2.8rem 0 1rem; font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.2; scroll-margin-top: 120px; }
.post-content .h-num { flex: none; padding: .25rem .6rem; border-radius: 8px; font-size: .85rem; font-weight: 800; letter-spacing: .08em; color: var(--purple-2); background: rgba(169, 116, 238, .12); transform: translateY(-.3em); }
.post-content > ul { list-style: none; display: grid; gap: .7rem; padding: 0; margin: 0 0 1.5rem; }
.post-content > ul li { position: relative; padding-left: 1.7rem; }
.post-content > ul li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-purple); }
.post-content > p a { color: var(--purple-3); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(124, 77, 219, .35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.post-content > p a:hover { text-decoration-color: currentColor; }
.post-content blockquote { position: relative; isolation: isolate; overflow: hidden; margin: 2.4rem 0; padding: 2rem 2rem 2rem 4.6rem; border-radius: var(--radius); background: var(--dark); }
.post-content blockquote::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 340px; height: 340px; border-radius: 50%; background: #7c4ddb; filter: blur(100px); opacity: .55; }
.post-content blockquote > i { position: absolute; left: 1.4rem; top: 1.3rem; font-size: 2.4rem; line-height: 1; color: var(--purple); }
.post-content blockquote p { margin-bottom: .8rem; font-size: 1.3rem; font-weight: 600; line-height: 1.45; color: #fff; }
.post-content blockquote cite { font-style: normal; font-size: .92rem; color: rgba(255, 255, 255, .6); }
.post-figure { margin: 2.2rem 0; }
.post-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.post-figure figcaption { margin-top: .7rem; text-align: center; font-size: .9rem; color: var(--muted); }
.post-tip { display: flex; gap: 1rem; margin: 1.6rem 0; padding: 1.2rem 1.4rem; border-radius: 18px; font-size: 1rem; line-height: 1.6; background: #f4effd; border: 1px solid rgba(169, 116, 238, .3); }
.post-tip > i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: var(--grad-purple); color: #fff; }
.post-takeaways { margin: 2.8rem 0 2rem; padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: 120px; }
.post-takeaways h2 { align-items: center; gap: .6rem; margin: 0 0 1.2rem; font-size: 1.5rem; }
.post-takeaways h2 i { color: var(--purple-2); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.2rem; }
.post-tags span { margin-right: .3rem; font-size: .95rem; font-weight: 700; color: var(--ink); }
.post-tags a { padding: .35rem .9rem; border-radius: 100px; font-size: .85rem; font-weight: 600; line-height: 1.5; background: #fff; border: 1px solid var(--border); color: var(--ink-2); transition: all .3s var(--ease); }
.post-tags a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-share strong { color: var(--ink); }
.copy-link { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: #fff; border: 1px solid var(--border); color: var(--ink); transition: all .35s var(--ease); }
.copy-link:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-3px); }
.copy-link.copied { background: #18a565; border-color: #18a565; color: #fff; }

.author-box { display: flex; align-items: flex-start; gap: 1.4rem; margin-top: 2.2rem; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.author-box img { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.author-box .label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-2); }
.author-box h3 { margin: .2rem 0 .5rem; font-size: 1.3rem; }
.author-box p { margin-bottom: .8rem; font-size: .97rem; line-height: 1.6; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.post-nav a { display: grid; align-content: start; gap: .4rem; padding: 1.3rem 1.4rem; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: var(--ink); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.post-nav a.next { text-align: right; }
.post-nav small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.post-nav strong { font-size: 1rem; line-height: 1.3; }
.post-nav a:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--shadow-sm); }

/* sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.side-static, .side-sticky { display: grid; gap: 1.25rem; }
.side-sticky { position: sticky; top: 104px; }
.side-card { padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.side-card h2 { margin-bottom: 1rem; font-size: 1.15rem; }
.toc { list-style: none; display: grid; gap: .1rem; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a { display: block; margin-left: -2px; padding: .38rem .9rem; border-left: 2px solid transparent; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.active { color: var(--purple-3); border-left-color: var(--purple-2); }
.toc a.active { font-weight: 700; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; font-size: .96rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--border); transition: color .3s; }
.side-cats li:last-child a { padding-bottom: 0; border-bottom: 0; }
.side-cats span i { margin-right: .6rem; color: var(--purple-2); }
.side-cats a > i { font-size: .8rem; opacity: .4; transition: transform .3s var(--ease), opacity .3s; }
.side-cats a:hover { color: var(--purple-3); }
.side-cats a:hover > i { opacity: 1; transform: translate(2px, -2px); }
.side-posts { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; }
.side-posts a { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.side-posts img { flex: none; width: 84px; height: 68px; border-radius: 14px; object-fit: cover; }
.side-posts strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; transition: color .3s; }
.side-posts small { font-size: .82rem; color: var(--muted); }
.side-posts a:hover strong { color: var(--purple-3); }
.side-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); border-color: var(--dark); color: rgba(255, 255, 255, .7); }
.side-cta::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 320px; height: 320px; border-radius: 50%; background: #7c4ddb; filter: blur(100px); opacity: .6; }
.side-cta .icon-box { background: rgba(169, 116, 238, .18); color: #d6bdfb; }
.side-cta h2 { margin: 1.1rem 0 .5rem; font-size: 1.35rem; color: #fff; }

@media (max-width: 991.98px) {
  .post-hero { padding-bottom: 170px; }
  .side-sticky { position: static; }
  .toc-card { display: none; }
}
@media (max-width: 575.98px) {
  .post-hero { padding-bottom: 120px; }
  .post-cover { margin-top: -90px; aspect-ratio: 16 / 10; border-width: 4px; border-radius: 20px; }
  .post-content { font-size: 1.03rem; }
  .post-content .post-intro { font-size: 1.15rem; }
  .post-content blockquote { padding: 3.6rem 1.4rem 1.6rem; }
  .post-content blockquote p { font-size: 1.12rem; }
  .post-takeaways, .author-box { padding: 1.4rem; }
  .author-box { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
