/* ==========================================================================
   BlockVire — Design System v3 (LIGHT)
   Professional light theme: Mercury-calm + Stripe-gradient + Ramp-discipline.
   Depth via soft layered shadows, subtle 3D tilt, light pastel aurora.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-2: #eef1f8;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f9;

  --border: rgba(14,18,45,0.08);
  --border-2: rgba(14,18,45,0.14);
  --grid-line: rgba(14,18,45,0.035);

  --ink: #0c0e1a;
  --text: #16182a;
  --muted: #565b71;
  --faint: #878da3;
  --btn-bg: #0c0e1a;
  --btn-fg: #ffffff;
  --header-bg: rgba(255,255,255,0.75);

  --violet: #6d5efc;
  --violet-2: #5b4bf0;
  --blue: #3f7bff;
  --cyan: #14bfe0;
  --pink: #ff5fa2;
  --green: #12b981;
  --amber: #e6a509;
  --red: #ef4b6b;

  --grad: linear-gradient(120deg, #6d5efc 0%, #3f7bff 48%, #14bfe0 100%);
  --grad-soft: linear-gradient(120deg, rgba(109,94,252,.10), rgba(20,191,224,.08));

  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow: 0 12px 30px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.05);
  --shadow-lg: 0 30px 60px rgba(16,24,40,.13), 0 10px 24px rgba(16,24,40,.07);
  --shadow-color: 0 22px 50px rgba(109,94,252,.22);

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Dark theme (toggled via data-theme on <html>) ---- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b12;
  --bg-2: #0f1119;
  --card: #14161f;
  --surface: #14161f;
  --surface-2: #1c1f2b;
  --border: rgba(255,255,255,0.09);
  --border-2: rgba(255,255,255,0.17);
  --grid-line: rgba(255,255,255,0.04);
  --ink: #f4f5fb;
  --text: #e7e9f2;
  --muted: #9aa0b4;
  --faint: #6b7186;
  --btn-bg: #f4f5fb;
  --btn-fg: #0a0b12;
  --header-bg: rgba(16,18,26,0.72);
  --grad-soft: linear-gradient(120deg, rgba(139,123,255,.20), rgba(20,191,224,.14));
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 14px 34px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 64px rgba(0,0,0,.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "cv02","cv03","cv04","ss01";
  line-height: 1.6; letter-spacing: -0.011em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3,h4 { color: var(--ink); }
p { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.empty { color: var(--muted); padding: 22px 0; }
::selection { background: rgba(109,94,252,.20); color: var(--ink); }

/* ---------------------------------------------------------- Background FX */
.bg-aurora, .bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-aurora {
  background:
    radial-gradient(42% 42% at 15% 8%, rgba(109,94,252,.16), transparent 70%),
    radial-gradient(40% 40% at 85% 6%, rgba(20,191,224,.14), transparent 70%),
    radial-gradient(46% 46% at 78% 82%, rgba(255,95,162,.10), transparent 70%),
    radial-gradient(42% 42% at 12% 88%, rgba(63,123,255,.12), transparent 70%);
  filter: blur(24px) saturate(115%);
  animation: aurora 24s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-2%,0) scale(1.07); }
  100% { transform: translate3d(0,2%,0) scale(1.03); }
}
.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, black 35%, transparent 82%);
}
#energy-canvas, .noise { display: none; }

/* Decorative floating orbs (parallax) */
.orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; pointer-events: none; z-index: 0; }
.orb.v { background: radial-gradient(circle, rgba(109,94,252,.5), transparent 70%); }
.orb.c { background: radial-gradient(circle, rgba(20,191,224,.45), transparent 70%); }
.orb.p { background: radial-gradient(circle, rgba(255,95,162,.4), transparent 70%); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.float { animation: float 7s ease-in-out infinite; }

/* --------------------------------------------------------------- Reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .bg-aurora, .float { animation: none; }
  * { scroll-behavior: auto; }
}

.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--violet-2); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- Card / glass */
.glass {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s;
}

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 14px; z-index: 40;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.022em; color: var(--ink); font-size: 1.12rem; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); box-shadow: var(--shadow-color); flex: 0 0 auto; }
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-word { white-space: nowrap; }
.brand-word .bl { display: inline-block; }
/* The two brand initials — B and V — are gradient-painted (rest of the word is ink). */
.brand-cap { display: inline-block; background: linear-gradient(120deg, #6D5EFC, #3F7BFF, #14BFE0, #3F7BFF, #6D5EFC); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  /* Letters cascade in on load */
  .brand-word .bl { opacity: 0; transform: translateY(.28em); filter: blur(4px); animation: brandIn .55s cubic-bezier(.2,.7,.2,1) forwards; }
  .brand-word .bl:nth-child(1) { animation-delay: .04s; }
  .brand-word .bl:nth-child(2) { animation-delay: .10s; }
  .brand-word .bl:nth-child(3) { animation-delay: .16s; }
  .brand-word .bl:nth-child(4) { animation-delay: .22s; }
  .brand-word .bl:nth-child(5) { animation-delay: .28s; }
  .brand-word .bl:nth-child(6) { animation-delay: .34s; }
  .brand-word .bl:nth-child(7) { animation-delay: .40s; }
  .brand-word .bl:nth-child(8) { animation-delay: .46s; }
  .brand-word .bl:nth-child(9) { animation-delay: .52s; }
  /* B and V keep flowing their gradient + a gentle heartbeat pulse (V offset so they alternate) */
  .brand-cap  { animation: capShine 4.5s linear infinite, capPulse 3s ease-in-out infinite; transform-origin: center; }
  .brand-capV { animation: capShine 4.5s linear infinite, capPulse 3s ease-in-out 1.5s infinite; }
  @keyframes brandIn  { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
  @keyframes capShine { to { background-position: 200% 50%; } }
  @keyframes capPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
}
.brand-islot { position: relative; display: inline-block; }
.brand-idot { position: absolute; left: 50%; top: -.08em; width: .3em; height: .3em; border-radius: .07em; transform: translate(-50%, 0) rotate(45deg); background: linear-gradient(135deg, #14BFE0, #3F7BFF); }
.brand-mark { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  /* Logo "forms" on load: wires draw themselves, then the block-nodes pop in, then the live node breathes. */
  .brand-mark .bvm-wires line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: bvmDraw .7s ease forwards; }
  .brand-mark .bvm-wires line:nth-of-type(2) { animation-delay: .12s; }
  .brand-mark .bvm-wires line:nth-of-type(3) { animation-delay: .24s; }
  .brand-mark .bvm-nodes rect { transform: scale(0); transform-box: fill-box; transform-origin: center; }
  .brand-mark .bvm-n1 { animation: bvmPop .5s cubic-bezier(.2,1.5,.4,1) .30s forwards; }
  .brand-mark .bvm-n2 { animation: bvmPop .5s cubic-bezier(.2,1.5,.4,1) .42s forwards; }
  .brand-mark .bvm-n3 { animation: bvmPop .5s cubic-bezier(.2,1.5,.4,1) .54s forwards, bvLive 2.6s ease-in-out 1.3s infinite; }
  .brand:hover .brand-idot { animation: bvDot 1.1s ease-in-out infinite; }
  @keyframes bvmDraw { to { stroke-dashoffset: 0; } }
  @keyframes bvmPop  { to { transform: scale(1); } }
  @keyframes bvLive  { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
  @keyframes bvDot   { 0%, 100% { transform: translate(-50%,0) rotate(45deg) scale(1); } 50% { transform: translate(-50%,0) rotate(45deg) scale(1.4); } }
}
.site-nav { display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }
.site-nav a, .nav-icon { padding: 7px 10px; border-radius: 999px; color: var(--muted); font-weight: 550; font-size: .9rem; white-space: nowrap; transition: color .18s, background .18s; }
.site-nav a:hover, .nav-icon:hover { color: var(--ink); background: var(--surface-2); }
.nav-icon { position: relative; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--violet-2); color: #fff; font-size: .7rem; font-weight: 800; }
.inline-form { display: inline; }
.nav-cta, .button.primary { background: var(--grad) !important; color: #fff !important; border-color: transparent !important; font-weight: 650; box-shadow: var(--shadow-color); }
.nav-cta:hover, .button.primary:hover { filter: saturate(1.06); box-shadow: 0 26px 60px rgba(109,94,252,.34); }
.nav-cta { padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .16s, box-shadow .16s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-toggle { display: none; width: 42px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); cursor: pointer; font-size: 1.1rem; }

/* --------------------------------------------------------------- Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid var(--border-2);
  color: var(--ink); font: inherit; font-weight: 650; letter-spacing: -.01em; line-height: 1;
  cursor: pointer; text-align: center; white-space: nowrap; background: var(--card);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s, filter .18s;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button:active { transform: translateY(0) scale(.99); box-shadow: var(--shadow-sm); }
.button.primary { border-color: transparent; box-shadow: var(--shadow); }
.button.ghost { background: var(--card); }
.button.ghost:hover { border-color: var(--border-2); }
.button.gradient { background: var(--grad); color: #fff !important; border-color: transparent; box-shadow: var(--shadow-color); }
.button.gradient:hover { box-shadow: 0 26px 60px rgba(109,94,252,.32); }
.button.danger { background: var(--card); border-color: rgba(239,75,107,.4); color: var(--red); }
.button.small { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.button.block { display: flex; width: 100%; margin-top: 8px; }
.link-button { background: none; border: 0; color: var(--violet); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.card-link { color: var(--violet); font-weight: 650; font-size: .9rem; display: inline-flex; gap: 4px; transition: gap .18s; }
.card-link:hover { gap: 9px; }

/* ----------------------------------------------------------------- Flash */
.flash { max-width: var(--maxw); margin: 16px auto 0; width: calc(100% - 32px); padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.flash-error { background: #fff5f6; border-color: rgba(239,75,107,.4); color: #b3213e; }
.flash-warn { background: #fff9ec; border-color: rgba(230,165,9,.4); display: flex; gap: 12px; align-items: center; color: #8a6a00; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }

/* --------------------------------------------------------------- Layout */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,9vw,120px) clamp(16px,5vw,24px) 0; position: relative; }
.section:last-child { padding-bottom: clamp(56px,9vw,120px); }
.section.narrow { max-width: 780px; }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head.between, .between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--muted); font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .14em; box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.eyebrow a { color: var(--violet); text-transform: none; letter-spacing: 0; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 680px; line-height: 1.7; }
.panel-title { margin: 52px 0 18px; font-size: 1.5rem; letter-spacing: -.02em; }
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px,10vw,120px) clamp(16px,5vw,24px) 8px; text-align: center; position: relative; }
.page-hero .eyebrow { margin-inline: auto; }
.page-hero h1 { font-size: clamp(2.6rem,6vw,4.4rem); }
.page-hero .lede { margin: 0 auto; }
.page-hero .search-bar { margin: 26px auto 0; }

h1 { font-size: clamp(2.8rem,6vw,4.6rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 18px; font-weight: 800; }
h2 { font-size: clamp(2rem,4vw,3.1rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 750; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; font-weight: 650; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ Hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,8vw,96px) clamp(16px,5vw,24px) 0; text-align: center; position: relative; }
.hero-3d { position: absolute; inset: -40px 0 auto 0; height: 520px; z-index: 0; pointer-events: none; }
#hero-canvas { width: 100%; height: 100%; display: block; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3rem,8vw,5.4rem); max-width: 16ch; margin-inline: auto; }
.hero .eyebrow { margin-inline: auto; }
.hero-copy { max-width: 640px; margin: 0 auto; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 30px 0 26px; }
.hero-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; color: var(--faint); font-size: .82rem; }
.hero-trust span { text-transform: uppercase; letter-spacing: .1em; }
.hero-trust strong { color: var(--muted); font-weight: 650; }

.hero-preview { max-width: 1000px; margin: 52px auto 0; padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-preview .metric-grid { grid-template-columns: repeat(4,1fr); }
.hero-dashboard { padding: 20px; }
.signal-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--grad-soft); }
.signal-card span { color: var(--muted); font-size: .88rem; }
.signal-card strong { display: block; margin-top: 6px; font-size: 2.6rem; letter-spacing: -.03em; color: var(--ink); }
.pulse-line { height: 44px; margin-top: 12px; background: linear-gradient(90deg, transparent, var(--cyan), transparent), repeating-linear-gradient(90deg, transparent 0 14px, rgba(20,191,224,.35) 15px 16px); clip-path: polygon(0 60%,10% 60%,16% 22%,22% 74%,30% 40%,38% 40%,45% 14%,52% 82%,62% 50%,100% 50%); }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 0; }
.metric-grid div { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.metric-grid div:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); background: var(--card); }
.metric-grid strong { color: var(--ink); font-size: 1rem; }
.metric-grid span { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* 3D tilt (mouse-driven, set by JS via CSS vars) */
.tilt { transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .2s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* ------------------------------------------------------------- Bento grid */
.bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.bento .cell { grid-column: span 2; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.bento .cell:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento .cell.wide { grid-column: span 3; }
.bento .cell.tall { grid-row: span 2; }
.bento .cell::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 60%; height: 60%; background: var(--grad-soft); filter: blur(40px); opacity: .8; }
.bento .cell > * { position: relative; }
.bento .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--grad); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-color); }
.bento h3 { margin-bottom: 8px; }
.bento p { color: var(--muted); font-size: .95rem; }

/* -------------------------------------------------------------- Cards/grids */
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card { padding: 24px; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card .icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; color: #fff; font-weight: 900; font-size: 1.05rem; background: var(--grad); box-shadow: var(--shadow-color); }
.service-card h3 a:hover { color: var(--violet); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-panel { padding: 30px; }
.check-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-soft); color: var(--violet); font-size: .72rem; font-weight: 900; display: grid; place-items: center; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.mini-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); transition: .18s; }
.mini-card:hover { border-color: var(--border-2); transform: translateY(-2px); background: var(--card); box-shadow: var(--shadow-sm); }
.mini-card strong { display: block; font-size: .95rem; color: var(--ink); }
.mini-card span { color: var(--violet); font-size: .85rem; }

.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-card .cover { aspect-ratio: 16/10; background: var(--grad-soft); overflow: hidden; }
.work-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.work-card:hover .cover img { transform: scale(1.05); }
.work-card .body { padding: 22px; display: grid; gap: 10px; }
.work-card strong a:hover { color: var(--violet); }
.work-card span { color: var(--muted); font-size: .93rem; }

.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chip { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font-weight: 550; font-size: .9rem; box-shadow: var(--shadow-sm); transition: .18s; }
.tech-chip:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }

.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.testimonial { padding: 26px; }
.testimonial blockquote { margin: 0 0 14px; font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.testimonial figcaption { color: var(--violet); font-weight: 650; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card .cover { aspect-ratio: 16/9; background: var(--grad-soft); overflow: hidden; }
.blog-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .cover img { transform: scale(1.05); }
.blog-card .body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.blog-card h3 a:hover { color: var(--violet); }
.tag { display: inline-block; padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: .74rem; color: var(--violet); width: fit-content; text-transform: capitalize; background: var(--grad-soft); }

.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { padding: 20px 24px; cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--violet); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item > div { padding: 0 24px 22px; color: var(--muted); }

.process-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.process-steps li { padding: 24px; display: grid; gap: 8px; }
.process-steps strong { color: var(--violet); }
.process-steps span { color: var(--muted); font-size: .93rem; }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.team-card { padding: 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.team-card .avatar, .avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; box-shadow: var(--shadow-color); }
.team-card span { color: var(--muted); font-size: .9rem; }

.cta-band { padding: 52px; margin-top: 24px; display: grid; gap: 18px; justify-items: center; text-align: center; background: var(--grad); border: 0; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .button, .cta-band .button.primary, .cta-band .button.gradient {
  background: #fff !important; color: var(--ink) !important; border-color: transparent !important;
  box-shadow: 0 14px 34px rgba(8,9,15,.20);
}
.cta-band .button:hover { background: #fff !important; transform: translateY(-2px); box-shadow: 0 20px 44px rgba(8,9,15,.26) !important; filter: none; }

/* ------------------------------------------------------------- Search/filter */
.search-bar { display: flex; gap: 10px; max-width: 560px; }
.search-bar.pad { padding: 16px; }
.search-bar input { flex: 1; }
.filter-bar, .filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; align-items: center; }
.chip { padding: 8px 15px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .88rem; cursor: pointer; background: var(--card); transition: .16s; }
.chip:hover { color: var(--ink); border-color: var(--border-2); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 650; box-shadow: var(--shadow-color); }

/* ----------------------------------------------------------- Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-thumb { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--grad-soft); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { font-size: 2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thumb-fallback.large { font-size: 4rem; }
.product-body { padding: 18px; display: grid; gap: 8px; align-content: start; flex: 1; }
.product-body h3 { font-size: 1.05rem; }
.product-body h3 a:hover { color: var(--violet); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { color: var(--ink); font-weight: 750; }
.price.big { font-size: 2rem; margin: 8px 0; letter-spacing: -.03em; }
.stars { color: var(--amber); font-size: .9rem; }

.product-detail { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 30px; }
.product-media { display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.product-info { display: grid; gap: 12px; align-content: start; }
.rating-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .92rem; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.owned-badge { color: var(--green); font-weight: 650; }

.reviews { display: grid; gap: 16px; }
.review-list { display: grid; gap: 12px; }
.review { padding: 18px; }
.review-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review-form { padding: 24px; display: grid; gap: 12px; max-width: 620px; }

/* ------------------------------------------------------------------- Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 14px; align-items: center; padding: 14px; }
.cart-thumb { width: 80px; height: 60px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-meta { display: grid; gap: 4px; }
.cart-summary { padding: 24px; display: grid; gap: 10px; align-content: start; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; color: var(--muted); }
.summary-row.total { color: var(--ink); font-weight: 750; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.summary-row.discount { color: var(--green); }
.coupon-form { display: flex; gap: 8px; margin-top: 6px; }
.empty-state { padding: 48px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.checkout-form { padding: 26px; display: grid; gap: 14px; }
.order-items { padding: 24px; display: grid; gap: 12px; }
.order-item { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.order-totals { display: grid; gap: 6px; margin-top: 8px; max-width: 320px; margin-left: auto; }

/* ----------------------------------------------------------------- Tables */
.table-wrap { padding: 6px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th { text-align: left; padding: 13px 15px; color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table.compact td, .data-table.compact th { padding: 9px 12px; font-size: .92rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--surface-2); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; }

.status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 650; text-transform: capitalize; border: 1px solid; }
.status-active,.status-approved,.status-published,.status-paid,.status-completed,.status-replied { color: #0a7d57; border-color: rgba(18,185,129,.35); background: #eafaf3; }
.status-pending,.status-draft,.status-review,.status-new,.status-read { color: #8a6a00; border-color: rgba(230,165,9,.35); background: #fff6e2; }
.status-rejected,.status-suspended,.status-cancelled,.status-refunded,.status-archived { color: #b3213e; border-color: rgba(239,75,107,.35); background: #fdeef1; }

/* ------------------------------------------------------------- Pagination */
.pagination-wrap { margin-top: 26px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.page-link { padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: .9rem; background: var(--card); transition: .15s; }
.page-link:hover { color: var(--ink); border-color: var(--border-2); }
.page-link.active { background: var(--grad); color: #fff; font-weight: 750; border-color: transparent; }
.page-link.disabled { opacity: .4; }

/* ------------------------------------------------------------- Stats/dash */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; }
.stat { padding: 22px; display: grid; gap: 6px; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 2.2rem; letter-spacing: -.03em; color: var(--ink); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.card-rows { display: grid; gap: 10px; margin-top: 14px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; }
.card-row .progress { width: 200px; margin-top: 8px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

/* --------------------------------------------------------------- Article */
.article { max-width: 780px; margin: 0 auto; padding: clamp(60px,9vw,110px) clamp(16px,5vw,24px) 0; }
.article-head { margin-bottom: 26px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 8px 0 26px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-meta { color: var(--muted); font-size: .92rem; }
.article-body { color: var(--text); line-height: 1.85; font-size: 1.06rem; }
.article-body p { margin-bottom: 1.1em; }
.rich-body { color: var(--text); line-height: 1.8; }
.comments-section { max-width: 780px; }
.comment-list { display: grid; gap: 12px; margin-bottom: 20px; }
.comment { padding: 16px; }
.comment strong { margin-right: 8px; color: var(--ink); }
.comment-form { padding: 22px; display: grid; gap: 12px; }

/* ------------------------------------------------------------ Course/LMS */
.course-hero { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 30px; align-items: start; }
.course-buy { padding: 26px; display: grid; gap: 10px; align-content: start; position: sticky; top: 90px; }
.curriculum { display: grid; gap: 12px; }
.chapter { padding: 6px; }
.chapter-head { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 18px; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; text-align: left; }
.lesson-rows { list-style: none; margin: 0; padding: 0 18px 14px; display: grid; gap: 8px; }
.lesson-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.lesson-type { font-size: .72rem; color: var(--cyan); text-transform: uppercase; min-width: 64px; letter-spacing: .05em; }
.lesson-title { flex: 1; }
.preview-link { color: var(--violet); font-weight: 650; font-size: .82rem; }

.player { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 18px; align-items: start; max-width: 1320px; }
.player-sidebar { padding: 18px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.player-back { display: block; color: var(--violet); font-weight: 650; margin-bottom: 12px; }
.player-curriculum { display: grid; gap: 14px; }
.player-chapter h4 { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.player-chapter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.player-chapter li a { display: flex; gap: 8px; align-items: center; padding: 9px 11px; border-radius: 10px; font-size: .9rem; }
.player-chapter li a:hover { background: var(--surface-2); }
.player-chapter li.current a { background: var(--grad-soft); color: var(--ink); }
.player-chapter .tick { color: var(--green); width: 16px; }
.player-chapter li span:nth-child(2) { flex: 1; }
.pad { padding: clamp(20px,3vw,36px); }
.lesson { display: grid; gap: 18px; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #0c0e1a; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quiz, .assignment, .notes { display: grid; gap: 12px; }
.quiz-q { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 0 0 10px; }
.quiz-q legend { padding: 0 6px; font-weight: 650; }
.quiz-opt { display: flex; gap: 8px; align-items: center; padding: 6px 0; color: var(--text); }
.quiz-opt input { width: auto; min-height: auto; }
.lesson-actions { display: flex; gap: 12px; }

/* -------------------------------------------------------- Certificates */
.cert-card { padding: 26px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.cert-seal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd76a, #d99400); color: #fff; font-size: 1.6rem; box-shadow: var(--shadow); }
.verify-result { margin-top: 18px; display: grid; gap: 8px; }
.verify-result.valid { border-color: rgba(18,185,129,.5); }
.verify-result.invalid { border-color: rgba(239,75,107,.5); }
.badge-valid { color: var(--green); font-weight: 800; }
.badge-invalid { color: var(--red); font-weight: 800; }

/* ------------------------------------------------------------------ Auth */
.auth-section { display: grid; place-items: center; min-height: 74vh; padding-top: 40px; }
.auth-card { width: 100%; max-width: 440px; padding: 34px; box-shadow: var(--shadow-lg); }
.stacked-form { display: grid; gap: 14px; margin-top: 18px; }
.stacked-form label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.checkbox { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.checkbox input { width: auto; min-height: auto; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.auth-links a { color: var(--violet); font-size: .9rem; }

/* ----------------------------------------------------------------- Forms */
input, select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--border-2); border-radius: 12px;
  background: var(--card); color: var(--ink); padding: 11px 14px; font: inherit;
  transition: border-color .16s, box-shadow .16s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,94,252,.16); }
textarea { min-height: 120px; resize: vertical; }
.form-card { padding: 28px; display: grid; gap: 14px; max-width: 760px; }
.form-card label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.form-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.role-grid { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.role-grid legend { padding: 0 6px; color: var(--muted); }
.danger-zone { margin-top: 24px; }
.contact-section { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: 30px; align-items: start; }
.contact-form { display: grid; gap: 12px; padding: 26px; }
.inline-grid { display: grid; gap: 8px; margin-top: 10px; }
.inline-grid-2 { display: flex; gap: 6px; align-items: center; }
.inline-form-row { display: flex; gap: 8px; }

/* ----------------------------------------------------------- Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(60px,9vw,110px) clamp(16px,5vw,24px) 0; }
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.8; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--faint); font-size: .9rem; }

/* ----------------------------------------------------------- Builder */
.builder { display: grid; gap: 16px; }
.builder-chapter { display: grid; gap: 12px; }
.builder-chapter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.builder-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.builder-lessons li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.builder-lessons li span:nth-child(2) { flex: 1; }
.add-lesson summary { cursor: pointer; color: var(--violet); font-weight: 650; padding: 6px 0; }

/* ------------------------------------------------------------------ Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 90px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 56px clamp(16px,5vw,24px) 26px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: var(--ink); margin-bottom: 14px; font-size: .95rem; }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; transition: color .15s; }
.footer-grid a:hover { color: var(--violet); }
.footer-base { max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px,5vw,24px); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .85rem; flex-wrap: wrap; }
.footer-base a { color: var(--violet); }

/* =========================================================== Admin shell */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; }
.admin-sidebar { border-right: 1px solid var(--border); background: var(--card); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.admin-nav { display: grid; gap: 3px; overflow-y: auto; }
.admin-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 550; font-size: .92rem; transition: .15s; }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a.active { background: var(--grad-soft); color: var(--violet-2); }
.admin-back { color: var(--faint); font-size: .88rem; margin-top: auto; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 16px; padding: 16px clamp(16px,3vw,32px); border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 1.3rem; margin: 0; flex: 1; }
.admin-user { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.admin-content { padding: clamp(18px,3vw,32px); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h2 { margin: 0; }
.admin-alerts { display: grid; gap: 8px; margin: 18px 0; }
.alert { padding: 13px 16px; border: 1px solid rgba(230,165,9,.35); border-radius: 12px; background: #fff6e2; color: #8a6a00; font-weight: 600; }
.admin-card { padding: 22px; margin-top: 18px; }
.admin-card h3 { margin-bottom: 14px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; margin-top: 12px; }
.bar-chart.tall { height: 220px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bar-chart .bar > span { width: 100%; border-radius: 6px 6px 0 0; background: var(--grad); min-height: 2px; }
.bar-chart .bar small { color: var(--faint); font-size: .66rem; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1040px) {
  .service-grid,.work-grid,.blog-grid,.testimonial-grid,.product-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps,.team-grid { grid-template-columns: repeat(2,1fr); }
  .product-detail,.course-hero,.cart-layout,.player,.admin-two-col,.contact-section { grid-template-columns: 1fr; }
  .player-sidebar,.course-buy,.cart-summary { position: static; max-height: none; }
  .bento .cell, .bento .cell.wide { grid-column: span 3; }
  .hero-preview .metric-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; display: none; flex-direction: column; align-items: stretch; padding-top: 10px; }
  .site-nav.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: .2s; box-shadow: var(--shadow-lg); }
  .sidebar-open .admin-sidebar { transform: translateX(0); }
  .form-row,.role-grid { grid-template-columns: 1fr 1fr; }
  .hero-3d { height: 380px; }
}
@media (max-width: 600px) {
  .service-grid,.work-grid,.blog-grid,.testimonial-grid,.product-grid,.split,.mini-grid,.process-steps,.team-grid,.form-row,.role-grid,.bento { grid-template-columns: 1fr; }
  .bento .cell,.bento .cell.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
  .hero-preview .metric-grid { grid-template-columns: 1fr; }
  .hero-3d { display: none; }
}

/* =========================================================== Homepage v4 */
/* Marquee */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 40px; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { color: var(--muted); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Solution tabs */
.tabs { padding: 10px; }
.tab-rail { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; border-bottom: 1px solid var(--border); }
.tab-btn { padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; transition: .16s; }
.tab-btn:hover { color: var(--ink); background: var(--surface-2); }
.tab-btn.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-color); }
.tab-body { padding: clamp(20px,3vw,34px); }
.tab-panel { display: grid; gap: 14px; }
.tab-panel h3 { font-size: 1.5rem; }
.tab-panel .check-list { margin: 0; }

/* Metrics band */
.metric-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 36px; text-align: center; }
.metric-band strong { display: block; font-size: clamp(2.2rem,4vw,3.2rem); letter-spacing: -.04em; }
.metric-band span { color: var(--muted); font-size: .92rem; }

/* Why cards */
.why-card { padding: 26px; display: grid; gap: 8px; align-content: start; transition: transform .2s var(--ease), box-shadow .2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 6px; }

/* CTA mega + newsletter */
.cta-mega { position: relative; overflow: hidden; padding: clamp(32px,5vw,56px); text-align: center; display: grid; gap: 16px; justify-items: center; }
.newsletter { display: flex; gap: 10px; width: 100%; max-width: 520px; margin: 6px auto 0; }
.newsletter input { flex: 1; }
.product-body form { margin-top: auto; }

@media (max-width: 700px) {
  .metric-band { grid-template-columns: repeat(2,1fr); }
  .newsletter { flex-direction: column; }
}

/* =========================================================== Homepage v5 */
/* Theme toggle + nav search */
.theme-toggle { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.theme-toggle:hover { border-color: var(--border-2); }
.navsearch { position: relative; }
.navsearch input { min-height: 36px; height: 36px; border-radius: 999px; padding: 6px 13px; width: 132px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; }
.navsearch input:focus { width: 190px; }
.search-panel { position: absolute; top: 46px; right: 0; width: 340px; max-width: 84vw; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; max-height: 60vh; overflow-y: auto; }
.search-panel.open { display: block; }
.search-panel .sgroup { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 8px 10px 4px; }
.search-panel a { display: block; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: .92rem; }
.search-panel a:hover { background: var(--surface-2); }
.search-panel a small { color: var(--faint); }
.search-empty { padding: 16px; color: var(--muted); text-align: center; font-size: .9rem; }

/* Hero split + product mock */
.hero-split { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,7vw,90px) clamp(16px,5vw,24px) 0; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(28px,5vw,60px); align-items: center; position: relative; }
.hero-split .lead { text-align: left; }
.hero-split h1 { font-size: clamp(2.6rem,5.4vw,4.4rem); text-align: left; margin-inline: 0; max-width: 14ch; }
.hero-split .hero-copy { margin: 0; text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split .hero-trust { justify-content: flex-start; }
.hero-split .eyebrow { margin-inline: 0; }

.hero-visual { position: relative; }
.mock { padding: 18px; border-radius: var(--radius-lg); }
.mock-head { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.mock-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.mock-tile { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.mock-tile span { color: var(--muted); font-size: .72rem; }
.mock-tile strong { display: block; font-size: 1.25rem; letter-spacing: -.02em; margin-top: 2px; }
.mock-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; align-items: end; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.mock-chart i { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); display: block; }
.ring { display: grid; place-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ring .dial { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--violet) calc(var(--p,72) * 1%), var(--surface) 0); }
.ring .dial::before { content: ""; position: absolute; width: 66px; height: 66px; border-radius: 50%; background: var(--card); }
.ring .dial b { position: relative; font-size: 1.1rem; }
.hero-visual .orb { z-index: -1; }

/* Feature alternating rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,56px); align-items: center; margin-top: 40px; }
.feature-row.rev .feature-text { order: 2; }
.feature-text .feat-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-color); }
.feature-text h2 { font-size: clamp(1.8rem,3vw,2.4rem); }
.feature-media { display: grid; gap: 12px; }

/* SVG icons */
.svg-ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.feat-card .ic-badge { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--violet); margin-bottom: 14px; }
.feat-card .ic-badge .svg-ic { width: 24px; height: 24px; }

/* Logo row */
.logo-row { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center; opacity: .8; }
.logo-row span { color: var(--muted); font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }

@media (max-width: 920px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split h1, .hero-split .hero-copy { text-align: center; margin-inline: auto; }
  .hero-split .lead { text-align: center; }
  .hero-split .hero-actions, .hero-split .hero-trust, .hero-split .eyebrow { justify-content: center; margin-inline: auto; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.rev .feature-text { order: 0; }
  .navsearch { display: none; }
}

/* =========================================================== Vector / 3D v6 */
/* Hero ecosystem scene */
.hero-scene-wrap { position: relative; }
.hero-scene { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(109,94,252,.28)); }
.hero-float-card { position: absolute; bottom: 4%; right: 0; width: 210px; padding: 14px; z-index: 3; box-shadow: var(--shadow-lg); }
.hero-float-card .mock-tile { border: 1px solid var(--border); border-radius: 12px; }
@media (max-width: 620px) { .hero-float-card { display: none; } }

/* Rotating aurora accent for extra depth */
.bg-aurora::after {
  content: ""; position: absolute; inset: -25%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(139,123,255,.10) 60deg, transparent 140deg, rgba(20,191,224,.10) 220deg, transparent 320deg);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Gradient text shimmer */
.grad { background-size: 220% auto; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }

/* Gradient button shine sweep */
.button.gradient { position: relative; overflow: hidden; }
.button.gradient::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Icon micro-interactions */
.feat-card .ic-badge, .service-card .icon, .bento .ic { transition: transform .25s var(--ease); }
.feat-card:hover .ic-badge, .service-card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.bento .cell:hover .ic { transform: translateY(-3px) rotate(6deg); }

/* Animated nav underline */
.site-nav > a { position: relative; }
.site-nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.site-nav > a:hover::after { transform: scaleX(1); }

/* Floating decorative vector shapes */
.fx-shape { position: absolute; pointer-events: none; z-index: 0; opacity: .5; }
.fx-shape svg { width: 100%; height: 100%; }

/* Wave divider */
.wave-divider { width: 100%; height: 60px; display: block; color: var(--border); }
.wave-divider path { fill: none; stroke: url(#wgrad); stroke-width: 2; }

/* Card sheen on glass hover */
.product-card, .work-card, .blog-card, .feat-card, .why-card, .service-card, .bento .cell { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .grad, .button.gradient::after, .bg-aurora::after { animation: none; }
}

/* =========================================================== Motion v7 */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: var(--grad); box-shadow: 0 0 12px rgba(109,94,252,.5); transition: width .08s linear; }

/* Page-enter transition */
.js main { animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Card shine sweep on hover */
.product-card::before, .work-card::before, .blog-card::before, .feat-card::before, .why-card::before, .bento .cell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.30) 50%, transparent 66%);
  background-size: 260% 100%; background-position: 150% 0; opacity: 0;
}
.product-card:hover::before, .work-card:hover::before, .blog-card:hover::before, .feat-card:hover::before, .why-card:hover::before, .bento .cell:hover::before {
  opacity: 1; animation: cardshine .85s ease forwards;
}
@keyframes cardshine { from { background-position: 150% 0; } to { background-position: -130% 0; } }

@media (prefers-reduced-motion: reduce) {
  .js main { animation: none; }
  .scroll-progress { transition: none; }
  .product-card:hover::before, .work-card:hover::before, .blog-card:hover::before, .feat-card:hover::before, .why-card:hover::before, .bento .cell:hover::before { animation: none; opacity: 0; }
}

/* =========================================================== Showcase v8 */
/* Testimonials carousel */
.testi-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.testi-track { display: flex; gap: 16px; width: max-content; animation: testiScroll 46s linear infinite; }
.testi-marquee:hover .testi-track { animation-play-state: paused; }
.testi-track .testimonial { width: 360px; max-width: 80vw; flex: none; }
@keyframes testiScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Stat progress rings */
.stat-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; background: conic-gradient(var(--violet) calc(var(--p,0) * 1%), var(--surface-2) 0); }
.stat-ring::before { content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--card); }
.stat-ring b { position: relative; font-size: .95rem; font-weight: 800; }
.ring-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ring-item { display: flex; align-items: center; gap: 12px; }
.ring-item .rl span { display: block; color: var(--muted); font-size: .82rem; }
.ring-item .rl strong { font-size: 1.1rem; }

/* Service/detail illustration banner */
.detail-illus { border-radius: var(--radius-lg); overflow: hidden; margin: 6px 0 22px; box-shadow: var(--shadow); aspect-ratio: 21/7; }
.detail-illus svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) { .testi-track { animation: none; } }

/* =========================================================== Polish v9 */
/* Thumb hover overlay */
.product-thumb { position: relative; }
.product-thumb::after { content: "View →"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .02em; background: linear-gradient(0deg, rgba(8,9,15,.55), rgba(8,9,15,.05)); opacity: 0; transition: opacity .22s var(--ease); }
.product-card:hover .product-thumb::after, .work-card:hover .cover::after { opacity: 1; }

/* Animated process steps */
.process-steps li { position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.process-steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.process-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.process-steps li:hover::before, .js .process-steps li.in::before { transform: scaleX(1); }
.process-steps strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.1rem; letter-spacing: -.01em; }

/* =========================================================== Polish v10 */
.to-top { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; z-index: 90; background: var(--grad); color: #fff; font-size: 1.25rem; cursor: pointer; box-shadow: var(--shadow-color); opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.brand-mark { animation: bmPulse 3.6s ease-in-out infinite; }
@keyframes bmPulse { 0%,100% { box-shadow: 0 0 20px rgba(109,94,252,.35); } 50% { box-shadow: 0 0 38px rgba(20,191,224,.5); } }
@media (prefers-reduced-motion: reduce) { .brand-mark { animation: none; } .to-top { transition: none; } }

/* Collapse the crowded nav into a clean hamburger menu on laptops & below */
@media (max-width: 1199px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header { flex-wrap: wrap; row-gap: 8px; }
  .site-nav { order: 3; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; }
  .site-nav.open { display: flex; }
  .site-nav a, .nav-icon { padding: 11px 14px; font-size: .95rem; border-radius: 12px; }
  .site-nav a:hover, .nav-icon:hover { background: var(--surface-2); }
  .site-nav .inline-form { width: 100%; }
  .nav-cta { width: 100%; }
  .navsearch { display: none; }
  .theme-toggle { width: 100%; border-radius: 12px; height: 42px; }
}

/* =========================================================== Responsive v11 — mobile hardening */
/* Kill horizontal scroll and the classic flex/grid overflow (children default to min-width:auto) */
html { overflow-x: clip; }
*, *::before, *::after { min-width: 0; }
img, video, iframe, canvas { max-width: 100%; height: auto; }
.product-thumb img, .product-media img, .cover img { height: 100%; }
pre { max-width: 100%; overflow-x: auto; }
table { width: 100%; }
.product-body, .feature-text, .order-item, .cart-item, td, .search-panel a, .card-row { overflow-wrap: break-word; }

@media (max-width: 760px) {
  h1 { font-size: clamp(2rem, 7.6vw, 2.9rem); }
  h2 { font-size: clamp(1.5rem, 5.8vw, 2.1rem); }
  .section { padding-top: clamp(40px, 8vw, 64px); }
  .section:last-child { padding-bottom: clamp(40px, 8vw, 64px); }
  .section-head { margin-bottom: 26px; }
  .hero-split { padding-top: 34px; }
  .hero-split h1 { font-size: clamp(2rem, 8.4vw, 2.8rem); max-width: none; }
  .hero-copy { font-size: 1.04rem; }
  .metric-band { padding: 24px 18px; gap: 14px; }
  .tab-body { padding: 20px; }
}

@media (max-width: 520px) {
  :root { --radius: 14px; --radius-lg: 18px; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  h2, .feature-text h2, .tab-panel h3 { font-size: clamp(1.45rem, 6.4vw, 2rem); }
  .hero-split h1 { font-size: clamp(1.95rem, 9vw, 2.55rem); }
  .hero-copy { font-size: .98rem; }
  .eyebrow { font-size: .74rem; }

  /* CTAs stack full-width instead of squeezing/wrapping */
  .hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .button { padding: 12px 18px; }

  /* Cards */
  .product-body { padding: 14px; }
  .price.big { font-size: 1.6rem; }
  .feature-media .product-thumb { width: 92px !important; }

  /* Metrics: 2-up, compact */
  .metric-band { grid-template-columns: repeat(2, 1fr); padding: 20px 14px; }
  .metric-band strong { font-size: clamp(1.6rem, 7vw, 2.1rem); }

  /* Rows that used to sit on one line */
  .section-head.between, .between { flex-direction: column; align-items: flex-start; }
  .card-row { flex-wrap: wrap; }
  .card-row .progress { width: 100%; }
  .order-item { grid-template-columns: 1fr; gap: 4px; }

  /* Chrome */
  .to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .flash { width: calc(100% - 24px); }
}

@media (max-width: 360px) {
  .brand { font-size: 1.02rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .site-header { padding: 8px 8px 8px 14px; }
}

/* =========================================================== Menu + eyebrow polish (v12) */
/* Animated hamburger that morphs into an X when the menu is open */
.nt-bars, .nt-bars::before, .nt-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s, background .2s, top .2s;
}
.nt-bars { position: relative; }
.nt-bars::before, .nt-bars::after { content: ""; position: absolute; left: 0; }
.nt-bars::before { top: -6px; }
.nt-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nt-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nt-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nt-bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1199px) {
  /* When the menu opens, relax the pill into a rounded panel with a clean divider */
  .site-header:has(.site-nav.open) { border-radius: 22px; }
  .site-nav.open { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); gap: 4px; }
  .site-nav .nav-icon { justify-content: flex-start; }
}

/* Eyebrow ("Web3 · AI · …") above the hero heading — tidy chip on small screens */
@media (max-width: 520px) {
  .eyebrow { font-size: .63rem; letter-spacing: .05em; padding: 5px 12px; line-height: 1.4; }
}
@media (max-width: 360px) {
  .eyebrow { letter-spacing: .03em; gap: 6px; }
}

/* =========================================================== Upgrades v13 */
/* Keyboard focus ring — visible for keyboard users, not on mouse click */
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
a:focus-visible, .button:focus-visible, .nav-cta:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 3px; }

/* Cookie consent banner */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 580px; margin: 0 auto; padding: 15px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap; justify-content: space-between;
  animation: ccIn .4s var(--ease) both;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.cookie-consent a { color: var(--violet); font-weight: 650; }
.cc-actions { display: flex; gap: 8px; }
@keyframes ccIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  .cc-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .cookie-consent { animation: none; } }

/* Breadcrumbs */
.breadcrumbs { max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px,5vw,24px) 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: .85rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); }
.breadcrumbs li:not(:last-child)::after { content: "\203A"; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--violet); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Active nav item */
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav > a[aria-current="page"]::after { transform: scaleX(1); }

/* Honeypot spam trap — hidden from humans */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Print */
@media print {
  .site-header, .site-footer, .to-top, .cookie-consent, .bg-aurora, .bg-grid, .scroll-progress, .marquee, .hero-scene, .nav-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section, .hero-split { padding-top: 12px; }
}

/* =========================================================== Buttons + homepage polish v14 */
/* Prominent, premium hero CTAs */
.hero-actions .button { padding: 15px 28px; font-size: 1.02rem; border-radius: 14px; }
.button.gradient:hover { box-shadow: 0 26px 60px rgba(109,94,252,.34); filter: saturate(1.06); }
.button.ghost { background: var(--card); border-color: var(--border-2); }
.button.ghost:hover { background: var(--surface-2); }
.button:focus-visible { outline-offset: 3px; }

/* Section headings a touch more refined */
.section-head h2 { letter-spacing: -.03em; }
.eyebrow { text-transform: uppercase; }

/* Cards lift a little cleaner */
.feat-card:hover, .why-card:hover, .product-card:hover, .work-card:hover, .blog-card:hover { border-color: var(--border-2); }

/* Gradient hero words shimmer already handled; make links crisper */
.card-link { font-weight: 700; }
.card-link:hover { color: var(--violet-2); }

/* =========================================================== Marketplace advanced v15 */
.mk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.mk-count { color: var(--muted); font-size: .95rem; }
.mk-count strong { color: var(--ink); }
.mk-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-price { display: flex; align-items: center; gap: 6px; }
.mk-price input { width: 96px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); padding: 6px 10px; font: inherit; font-size: .9rem; }
.mk-dash { color: var(--faint); }
.mk-sortform select { min-width: 172px; height: 40px; }
.mk-view { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.mk-vbtn { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; transition: .15s; }
.mk-vbtn:hover { color: var(--ink); }
.mk-vbtn.active { background: var(--grad); color: #fff; }
.mk-clear { display: inline-block; margin: -6px 0 16px; color: var(--muted); font-size: .85rem; }
.mk-clear:hover { color: var(--violet); }
.mk-railhead { margin-top: 8px; }
.mk-empty { grid-column: 1 / -1; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 30px 0; }

.product-thumb { position: relative; }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; }
.pc-badge { font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; color: #fff; text-transform: uppercase; box-shadow: 0 4px 12px rgba(8,9,15,.18); }
.pc-badge.free { background: var(--green); }
.pc-badge.feat { background: var(--grad); }
.pc-badge.hot { background: var(--pink); }
.pc-badge.new { background: var(--blue); }
.pc-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.pc-cat:hover { color: var(--violet-2); }
.pc-desc { font-size: .88rem; margin: 0; }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.pc-stars { position: relative; display: inline-block; font-size: .92rem; line-height: 1; color: var(--border-2); letter-spacing: 1px; }
.pc-stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--r, 0%); overflow: hidden; white-space: nowrap; color: #f5a623; letter-spacing: 1px; }
.pc-rnum { font-weight: 700; color: var(--ink); }
.pc-sales { color: var(--faint); }
.pc-vendor { font-size: .8rem; color: var(--muted); margin: 0; }
.pc-vendor strong { color: var(--ink); font-weight: 650; }
.price.is-free { color: var(--green); }
.pc-badge.sale { background: var(--red); }
.price-was { color: var(--faint); text-decoration: line-through; font-weight: 600; font-size: .85em; margin-right: 7px; }
.price-was.big { font-size: 1.3rem; }
.sale-pill { display: inline-block; background: rgba(239,75,107,.12); color: var(--red); font-weight: 800; font-size: .7rem; padding: 4px 9px; border-radius: 999px; margin-left: 10px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.pc-actions { display: flex; align-items: center; gap: 8px; }
.pc-wish { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; transition: .16s; }
.pc-wish:hover { color: var(--pink); border-color: var(--pink); background: rgba(255,95,162,.08); }

.product-grid.list { grid-template-columns: 1fr; }
.product-grid.list .product-card { flex-direction: row; }
.product-grid.list .product-thumb { width: 230px; aspect-ratio: 4/3; flex: 0 0 auto; }
.product-grid.list .product-body { padding: 20px 22px; }
@media (max-width: 640px) {
  .product-grid.list .product-card { flex-direction: column; }
  .product-grid.list .product-thumb { width: 100%; }
  .mk-controls { width: 100%; }
  .mk-price, .mk-sortform { flex: 1; }
  .mk-sortform select { width: 100%; }
}

/* Blog share row */
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-row > span { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: .85rem; font-weight: 650; cursor: pointer; transition: transform .16s, color .16s, border-color .16s; }
.share-btn:hover { color: var(--ink); border-color: var(--border-2); transform: translateY(-1px); }
