/* ============ Design tokens ============ */
:root {
  --ink: #0d0f17;
  --ink-soft: #565b71;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-line: rgba(233, 233, 242, 0.8);
  --grain: 0.035;
  --dot: rgba(13, 15, 23, 0.055);
  --glow-a: rgba(61, 90, 255, 0.10);
  --glow-b: rgba(23, 201, 154, 0.09);
  --line: #e9e9f2;
  --brand: #3d5aff;
  --brand-dark: #263ec2;
  --brand-light: #7b93ff;
  --brand-soft: #eef0ff;
  --accent: #17c99a;
  --accent-soft: #e7fbf4;
  --gold: #ffb648;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px -8px rgba(13, 15, 23, 0.12);
  --shadow: 0 20px 50px -18px rgba(13, 15, 23, 0.22);
  --shadow-lg: 0 30px 80px -20px rgba(13, 15, 23, 0.35);
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }
h1, h2, h3, h4 {
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: "Sora", "Inter", sans-serif;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
section { padding: 108px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft), 0 0 12px 2px rgba(61, 90, 255, 0.5);
}

/* ============ Scroll reveal ============ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal="stagger"].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.18s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.26s; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5f7bff);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(61, 90, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(61, 90, 255, 0.65), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ============ Header ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--header-line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--ink); font-family: "Sora", sans-serif; letter-spacing: -0.02em; }
.brand .mark {
  width: 32px; height: 32px; flex: none;
  filter: drop-shadow(0 4px 14px rgba(61, 90, 255, 0.5));
}
.brand-tagline {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.94rem; position: relative; padding-bottom: 8px; display: inline-block; }
nav.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); transition: right 0.25s var(--ease);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { right: 0; }
nav.main-nav a.active { color: var(--brand); }
nav.main-nav a .roll-mask { display: block; overflow: hidden; height: 18px; line-height: 18px; }
nav.main-nav a .roll { display: block; transition: transform 0.35s var(--ease); }
nav.main-nav a .roll span { display: block; height: 18px; line-height: 18px; }
nav.main-nav a .roll span:last-child { color: var(--brand); }
nav.main-nav a:hover .roll { transform: translateY(-18px); }
@media (max-width: 860px) {
  nav.main-nav a .roll-mask, nav.main-nav a .roll, nav.main-nav a .roll span:first-child { height: auto; line-height: normal; overflow: visible; }
  nav.main-nav a .roll span:last-child { display: none; }
  nav.main-nav a:hover .roll { transform: none; }
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line); display: none; gap: 16px; }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============ Hero ============ */
.hero { padding: 84px 0 60px; position: relative; }
.hero::before {
  content: "";
  position: absolute; top: -160px; right: -180px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(61,90,255,0.14), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero p.lead { font-size: 1.18rem; max-width: 48ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 50px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.9rem; color: var(--ink); font-family: "Sora", sans-serif; }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-art {
  aspect-ratio: 4/3.1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 25% 15%, rgba(93,255,199,0.28), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(61,90,255,0.4), transparent 55%),
    linear-gradient(150deg, #0b0d1c, #171b34 60%, #1c2144);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 40%, black 40%, transparent 80%);
}
.hero-chart {
  position: absolute; left: 24px; right: 24px; bottom: 26px; height: 96px;
  display: flex; align-items: flex-end; gap: 8px;
}
.hero-chart b {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(123,147,255,0.9), rgba(61,90,255,0.35));
  animation: rise 1.4s var(--ease) both;
}
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.float-card {
  position: absolute;
  background: rgba(13, 15, 23, 0.62);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.5);
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.float-card .fc-value { font-size: 1.15rem; font-weight: 700; font-family: "Sora", sans-serif; display: flex; align-items: center; gap: 6px; }
.float-card .fc-value.up { color: #5dffc7; }
.float-card-1 { top: 30px; left: 24px; animation-delay: 0s; }
.float-card-2 { top: 90px; right: 24px; animation-delay: 1.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ============ Logo strip ============ */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo-strip span.label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.logo-strip .logos { display: flex; gap: 38px; flex-wrap: wrap; }
.logo-strip .logos span { opacity: 0.55; font-weight: 700; letter-spacing: 0.02em; font-family: "Sora", sans-serif; font-size: 0.98rem; transition: opacity 0.2s ease; }
.logo-strip .logos span:hover { opacity: 0.9; }

/* ============ Cards / grids ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 52px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #dfe4ff);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
}
.card .icon svg { width: 24px; height: 24px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ============ Process ============ */
.process-list { counter-reset: step; margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-list li { list-style: none; }
.process-list .step {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--surface);
  height: 100%;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-list .step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process-list .step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; font-weight: 700; margin-bottom: 16px;
  font-family: "Sora", sans-serif;
  box-shadow: 0 8px 18px -6px rgba(61,90,255,0.55);
}
@media (max-width: 860px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ============ Testimonials ============ */
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial::before {
  content: "\201C";
  position: absolute; top: 18px; right: 26px;
  font-family: Georgia, serif; font-size: 3.2rem; color: var(--brand-soft); line-height: 1;
}
.testimonial p { font-size: 1.05rem; color: var(--ink); position: relative; z-index: 1; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); flex-shrink: 0; }
.testimonial .who b { display: block; font-size: 0.95rem; }
.testimonial .who span { font-size: 0.82rem; color: var(--ink-soft); }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; background: var(--surface); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.featured {
  border: none;
  background: linear-gradient(155deg, #12142a, #1d2148 60%, #262b57);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.price-card.featured h3, .price-card.featured .amount { color: #fff; }
.price-card.featured p { color: rgba(255,255,255,0.65); }
.price-card.featured li { color: rgba(255,255,255,0.72); border-color: rgba(255,255,255,0.12); }
.price-card.featured::before {
  content: "Most Popular";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #21e0ab);
  color: #062b22; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 6px 16px; border-radius: 999px; text-transform: uppercase;
}
.price-card .amount { font-size: 2.3rem; font-weight: 800; margin: 12px 0 4px; font-family: "Sora", sans-serif; }
.price-card .amount span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { padding: 0; margin: 22px 0; list-style: none; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.price-card li:first-child { border-top: none; }
.price-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } .price-card.featured { transform: none; } .price-card.featured:hover { transform: translateY(-5px); } }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.03rem; list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: "Sora", sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: 400;
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { margin-top: 14px; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(150deg, #0b0d1c, #171b34 55%, #232a55);
  color: #fff;
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  margin: 0 auto;
  max-width: var(--maxw);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,90,255,0.35), transparent 65%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.68); max-width: 52ch; margin-inline: auto; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ============ Blog ============ */
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .thumb { height: 170px; background: linear-gradient(150deg, #171b34, #2a3163 60%, var(--brand)); position: relative; overflow: hidden; }
.post-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.post-card .body { padding: 24px; }
.post-meta { font-size: 0.78rem; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; font-weight: 700; }
article.post-content { max-width: 74ch; margin: 0 auto; }
article.post-content h2 { margin-top: 1.6em; }
article.post-content ul, article.post-content ol { color: var(--ink-soft); }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.87rem; margin-bottom: 7px; }
input, textarea, select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: var(--bg-alt); color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ Contact info cards ============ */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 52px; }
@media (max-width: 860px) { .contact-info { grid-template-columns: 1fr; } }

/* ============ Breadcrumb ============ */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-soft); }

/* ============ Footer ============ */
footer.site-footer { background: #0b0d1c; color: rgba(255,255,255,0.72); padding: 72px 0 30px; margin-top: 110px; position: relative; overflow: hidden; }
footer.site-footer::before {
  content: "";
  position: absolute; top: -200px; right: -100px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(61,90,255,0.18), transparent 65%);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; position: relative; }
.footer-grid h4 { color: #fff; font-size: 0.9rem; font-family: "Sora", sans-serif; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 12px; position: relative; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============ Utilities ============ */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-60 { max-width: 60ch; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ============ Page load transition ============ */
@keyframes bodyFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: bodyFadeIn 0.5s ease 0.05s both; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--brand);
  transition: opacity 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 0 rgba(61,90,255,0.35);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(61, 90, 255, 0.5);
  background: rgba(61, 90, 255, 0.04);
  transition:
    opacity 0.25s ease,
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    scale 0.18s var(--ease);
}

/* The custom cursor only appears over interactive things.
   Everywhere else the visitor keeps their normal system cursor. */
html.cursor-ready.cursor-hover .cursor-dot,
html.cursor-ready.cursor-hover .cursor-ring,
html.cursor-ready.cursor-snap .cursor-dot,
html.cursor-ready.cursor-snap .cursor-ring { opacity: 1; }

html.cursor-hover, html.cursor-hover *,
html.cursor-snap,  html.cursor-snap  * { cursor: none; }

/* form fields always keep the real caret */
html.cursor-native, html.cursor-native *,
html input, html textarea, html select { cursor: auto; }
html input, html textarea { cursor: text; }

/* generic hover: ring grows, dot pulses out */
html.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  background: rgba(61, 90, 255, 0.09);
  border-color: rgba(61, 90, 255, 0.75);
}
html.cursor-hover .cursor-dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(23, 201, 154, 0.18);
}

/* magnetic snap: ring wraps the element, dot fades out of the way */
html.cursor-snap .cursor-ring {
  border-color: rgba(61, 90, 255, 0.85);
  background: rgba(61, 90, 255, 0.045);
}
html.cursor-snap .cursor-dot { opacity: 0.35; width: 5px; height: 5px; }

/* click feedback */
html.cursor-down .cursor-ring { scale: 0.82; border-color: var(--brand); }
html.cursor-down .cursor-dot { scale: 1.5; }

/* on dark surfaces */
html.cursor-invert .cursor-ring {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}
html.cursor-invert .cursor-dot { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,0.16); }

/* real cursor back inside form fields */
html.cursor-native .cursor-dot,
html.cursor-native .cursor-ring { opacity: 0; }
html.has-fine-pointer input,
html.has-fine-pointer textarea,
html.has-fine-pointer select { cursor: auto; }

@media (max-width: 860px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  html.cursor-hover, html.cursor-hover *,
  html.cursor-snap,  html.cursor-snap  * { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
  html.cursor-hover, html.cursor-hover *,
  html.cursor-snap,  html.cursor-snap  * { cursor: auto; }
}

/* ============ Magnetic buttons ============ */
.btn { will-change: transform; }
/* JS drives the transform on magnetic buttons — CSS must not fight it */
.btn-magnetic-active { transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.btn-magnetic-active:hover { transform: none; }
.btn-primary.btn-magnetic-active:hover { box-shadow: 0 18px 36px -10px rgba(61, 90, 255, 0.65), inset 0 1px 0 rgba(255,255,255,0.25); }

/* ============ Button hover sweep ============ */
.btn-primary, .btn-ghost, .btn-on-dark {
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before, .btn-ghost::before, .btn-on-dark::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
  transform: translateX(-120%) skewX(-15deg);
  transition: transform 0.55s var(--ease);
}
.btn-primary:hover::before, .btn-ghost:hover::before, .btn-on-dark:hover::before { transform: translateX(120%) skewX(-15deg); }

/* ============ Card tilt + spotlight ============ */
.card, .price-card, .testimonial, .post-card {
  --mx: 50%; --my: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}
.card::after, .price-card::after, .testimonial::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(61, 90, 255, 0.12), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease; z-index: 0;
}
.card:hover::after, .price-card:hover::after, .testimonial:hover::after { opacity: 1; }
.card > *, .price-card > *, .testimonial > * { position: relative; z-index: 1; }

.hero { overflow: hidden; }

/* ============ Logo marquee ============ */
.logo-strip-inner { display: flex; align-items: center; gap: 24px; }
.logos-marquee { flex: 1; min-width: 0; width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; gap: 46px; width: max-content; animation: marquee 22s linear infinite; }
.logos-track span { opacity: 0.55; font-weight: 700; letter-spacing: 0.02em; font-family: "Sora", sans-serif; font-size: 0.98rem; white-space: nowrap; transition: opacity 0.2s ease; }
.logos-track span:hover { opacity: 0.95; }
.logo-strip:hover .logos-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 860px) { .logo-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ============ Heading split-text reveal ============ */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordUp 0.7s var(--ease) forwards;
}
@keyframes wordUp {
  to { transform: translateY(0); opacity: 1; }
}

/* ============ Extra reveal variety ============ */
[data-reveal="scale"] { opacity: 0; transform: scale(0.92); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal="scale"].is-visible { opacity: 1; transform: scale(1); }


/* ============ Secondary page heroes ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 74px;
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero p { font-size: 1.12rem; color: var(--ink-soft); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.page-hero-badges.left { justify-content: flex-start; }
.page-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(13,15,23,0.10);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.page-hero-badges span:hover {
  transform: translateY(-3px);
  border-color: rgba(61,90,255,0.35);
  box-shadow: 0 10px 24px -14px rgba(61,90,255,0.6);
}
.page-hero-badges span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 860px) { .page-hero { padding: 40px 0 52px; } }

/* page-hero: centered post meta + lead */
.page-hero .post-meta { justify-content: center; margin-bottom: 14px; }
.page-hero p.lead { font-size: 1.14rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* page-hero width + type tuning */
.page-hero .max-60 { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); line-height: 1.12; }
.page-hero .post-meta + h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9998;
  pointer-events: none;
  background: rgba(13, 15, 23, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scroll-progress.on { opacity: 1; }
.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 12px rgba(61, 90, 255, 0.5);
}

/* ============ The Climb (scroll-driven growth) ============ */
.climb { padding: 96px 0 104px; }
.climb-head { max-width: 640px; margin-bottom: 44px; }
.climb-head p { color: var(--ink-soft); font-size: 1.05rem; }

.climb-track { height: 230vh; position: relative; }
.climb-stage {
  position: sticky;
  top: 14vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(160deg, #0d0f17 0%, #151a2e 55%, #10221f 100%);
  box-shadow: 0 40px 80px -40px rgba(13, 15, 23, 0.7);
  overflow: hidden;
}
.climb-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 44px 100%;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}

.climb-readout { position: relative; z-index: 1; display: grid; gap: 24px; }
.climb-metric { display: block; }
.cl-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.cl-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: "Sora", sans-serif;
  color: #fff;
  line-height: 1;
}
.cl-value b {
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff 20%, #8fe9cd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cl-value i { font-style: normal; font-size: 1.3rem; font-weight: 700; color: rgba(255,255,255,0.45); }

.climb-chart { position: relative; z-index: 1; }
.climb-chart svg { width: 100%; height: 300px; display: block; }
.climb-grid line { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.climb-line { stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 6px 18px rgba(61,90,255,0.55)); }
.climb-area { opacity: 0; transition: opacity 0.4s ease; clip-path: inset(0 100% 0 0); }

.climb-dot {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 5px rgba(23, 201, 154, 0.28), 0 0 26px 6px rgba(23, 201, 154, 0.55);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.climb-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.42);
}

@media (max-width: 860px) {
  .climb { padding: 64px 0 72px; }
  .climb-track { height: 190vh; }
  .climb-stage { top: 12vh; }
  .climb-stage { grid-template-columns: 1fr; gap: 26px; padding: 22px; }
  .climb-readout { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cl-value b { font-size: 1.7rem; }
  .climb-chart svg { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .climb-track { height: auto; }
  .climb-stage { position: static; }
  .climb-line { stroke-dashoffset: 0 !important; }
  .climb-area { opacity: 1 !important; clip-path: none !important; }
  .climb-dot { display: none; }
}


/* ============ Dark theme ============ */
html[data-theme="dark"] {
  --ink: #eceefb;
  --ink-soft: #9aa0bd;
  --bg: #0b0d15;
  --bg-alt: #10131f;
  --surface: #141827;
  --surface-2: #191e30;
  --line: #262b40;
  --brand: #7b93ff;
  --brand-dark: #5b74e8;
  --brand-light: #a5b5ff;
  --brand-soft: #1b2140;
  --accent: #2ee0ac;
  --accent-soft: #102b23;
  --header-bg: rgba(11, 13, 21, 0.72);
  --header-line: rgba(38, 43, 64, 0.9);
  --shadow-sm: 0 4px 16px -8px rgba(0, 0, 0, 0.6);
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --grain: 0.05;
  --dot: rgba(255, 255, 255, 0.05);
  --glow-a: rgba(61, 90, 255, 0.16);
  --glow-b: rgba(23, 201, 154, 0.12);
  color-scheme: dark;
}
html[data-theme="dark"] .btn-ghost { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .btn-primary { color: #0b0d15; }
html[data-theme="dark"] .logo-strip { border-color: var(--line); }
html[data-theme="dark"] .scroll-progress { background: rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] .page-hero-badges span {
  background: rgba(20, 24, 39, 0.75);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--ink);
}
html[data-theme="dark"] .card::after,
html[data-theme="dark"] .price-card::after,
html[data-theme="dark"] .testimonial::after {
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(123, 147, 255, 0.16), transparent 65%);
}
html[data-theme="dark"] .hero::before { opacity: 0.5; }

/* smooth crossfade between themes */
body, .site-header, .card, .price-card, .testimonial, .post-card,
input, textarea, select, .section-alt, .page-hero-badges span {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ============ Backdrop: dot grid + soft glow + grain ============ */
.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(52vw 42vw at 12% -6%, var(--glow-a), transparent 62%),
    radial-gradient(46vw 40vw at 92% 8%, var(--glow-b), transparent 60%),
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  transition: background 0.35s ease;
}
.site-backdrop::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background: var(--bg); }
.section-alt { background: color-mix(in srgb, var(--bg-alt) 88%, transparent); }

/* ============ Theme toggle ============ */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); transform: translateY(-2px); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ============ Perspective wire-mesh floor ============ */
.grid-floor {
  position: absolute;
  left: -20%; right: -20%; bottom: -12%;
  height: 62%;
  z-index: -1;
  pointer-events: none;
  perspective: 240px;
  perspective-origin: 50% 0%;
  overflow: hidden;
}
.grid-floor::before {
  content: "";
  position: absolute;
  inset: -60% -10% -10%;
  transform: rotateX(66deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(var(--mesh) 1px, transparent 1px),
    linear-gradient(90deg, var(--mesh) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to top, #000 8%, rgba(0,0,0,0.45) 42%, transparent 82%);
  -webkit-mask-image: linear-gradient(to top, #000 8%, rgba(0,0,0,0.45) 42%, transparent 82%);
}
.grid-floor.on-dark::before { --mesh: rgba(255, 255, 255, 0.16); }
:root { --mesh: rgba(61, 90, 255, 0.16); }
html[data-theme="dark"] { --mesh: rgba(123, 147, 255, 0.20); }
.cta-band { position: relative; overflow: hidden; }
@media (max-width: 860px) { .grid-floor { height: 48%; } }
@media (prefers-reduced-motion: reduce) { .grid-floor { opacity: 0.6; } }

/* ============ Shared mockup frame ============ */
.mock {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.mock-bar i:nth-child(1) { background: #ff6058; }
.mock-bar i:nth-child(2) { background: #ffbd2e; }
.mock-bar i:nth-child(3) { background: #29ca41; }
.mock-bar .url {
  flex: 1;
  margin-left: 8px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mock-body { padding: 20px; }
.mock svg { width: 100%; display: block; }

/* ============ Dashboard mockup trio ============ */
.mock-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.mock-stack { display: grid; gap: 24px; }
.mock h4 {
  margin: 0 0 3px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-weight: 700;
}
.mock .big { font-size: 1.85rem; font-weight: 800; font-family: "Sora", sans-serif; letter-spacing: -0.02em; }
.mock .up { color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.kw-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.kw-table td { padding: 9px 0; border-top: 1px solid var(--line); }
.kw-table tr:first-child td { border-top: none; }
.kw-table td:first-child { color: var(--ink); font-weight: 600; }
.kw-table td:last-child { text-align: right; }
.kw-pos { font-weight: 800; font-family: "Sora", sans-serif; }
.kw-move { color: var(--accent); font-size: 0.78rem; font-weight: 700; margin-left: 7px; }
@media (max-width: 860px) { .mock-grid { grid-template-columns: 1fr; } }

/* ============ Before / after ============ */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ba { position: relative; }
.ba-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
}
.ba-before .ba-tag { background: #e0483c; }
.ba-after .ba-tag { background: #12a97f; }
.ba-scores { display: flex; gap: 18px; margin-top: 16px; }
.ba-score { flex: 1; text-align: center; }
.ba-score b { display: block; font-size: 1.5rem; font-weight: 800; font-family: "Sora", sans-serif; line-height: 1.1; }
.ba-score span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.ba-before .ba-score b { color: #e0483c; }
.ba-after .ba-score b { color: #12a97f; }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } }

/* ============ Process illustration ============ */
.flow { position: relative; margin-top: 46px; }
.flow-rail {
  position: absolute;
  top: 33px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.28;
  border-radius: 2px;
}
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.flow-step { text-align: center; }
.flow-node {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.flow-step:hover .flow-node {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 16px 34px -18px rgba(61, 90, 255, 0.8);
}
.flow-node svg { width: 26px; height: 26px; }
.flow-node::after {
  content: attr(data-n);
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
}
.flow-step h3 { font-size: 1rem; margin-bottom: 5px; }
.flow-step p { font-size: 0.87rem; margin: 0; }
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .flow-rail { display: none; }
}
@media (max-width: 520px) { .flow-steps { grid-template-columns: 1fr; } }

/* ============ Blog index ============ */
.blog-section { padding: 48px 0 88px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .chip[aria-pressed="true"] { color: #0b0d15; }
.post-card[hidden] { display: none; }

.post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; }
.post-card .body { padding: 20px 22px 24px; }
.post-card h3 { margin-bottom: 8px; line-height: 1.28; }
.post-card p { font-size: 0.92rem; margin: 0; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.55; flex: none; }
.post-meta .muted { color: var(--ink-soft); font-weight: 600; }

/* featured */
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 22px; }
.post-featured .post-cover { height: 100%; aspect-ratio: auto; min-height: 220px; }
.post-featured .body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.post-featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.post-featured p { font-size: 1rem; }
.post-featured .read-on { margin-top: 16px; font-weight: 700; color: var(--brand); font-size: 0.92rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .post-featured .body { padding: 24px; }
}

/* ============ Article layout ============ */
.article-wrap { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 104px; font-size: 0.88rem; }
.toc h4 {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 12px; font-family: "Inter", sans-serif; font-weight: 800;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
  display: block;
  padding: 7px 0 7px 15px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc li a:hover { color: var(--brand); }
.toc li a.current { color: var(--brand); border-left-color: var(--brand); font-weight: 700; }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.post-content { max-width: 72ch; }
.post-content h2 {
  font-size: 1.42rem;
  margin-top: 2.1em;
  scroll-margin-top: 100px;
}
.post-content p { font-size: 1.06rem; line-height: 1.78; }
.post-content > p:first-of-type { font-size: 1.15rem; color: var(--ink); }

.takeaways {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 40px;
}
.takeaways h4 {
  margin: 0 0 12px;
  font-size: 0.74rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--brand); font-family: "Inter", sans-serif; font-weight: 800;
}
.takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.takeaways li { display: flex; gap: 10px; font-size: 0.96rem; color: var(--ink); line-height: 1.6; }
.takeaways li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-top: 9px; flex: none;
}

.callout {
  border-radius: 14px;
  padding: 20px 24px;
  margin: 30px 0;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.callout p { margin: 0; color: var(--ink); font-size: 0.99rem; }
.callout b { color: var(--brand); }

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-top: 48px;
}
.author-box .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  flex: none;
}
.author-box b { display: block; font-size: 0.98rem; }
.author-box span { font-size: 0.87rem; color: var(--ink-soft); }

.related { margin-top: 60px; }
.related h3 { font-size: 1.1rem; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.related-grid a {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.related-grid a:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.related-grid b { display: block; font-size: 0.98rem; line-height: 1.35; margin-bottom: 5px; }
.related-grid span { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
.post-card { color: inherit; text-decoration: none; display: block; }
.post-card h3 { color: var(--ink); transition: color 0.22s var(--ease); }
.post-card:hover h3 { color: var(--brand); }


/* ============ Website portfolio ============ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.portfolio-card .mock { border: none; border-radius: 0; box-shadow: none; }
.portfolio-meta { padding: 18px 20px 22px; }
.portfolio-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(61, 90, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
html[data-theme="dark"] .portfolio-tag { background: rgba(123, 147, 255, 0.16); }
.portfolio-meta h3 { margin: 0 0 6px; font-size: 1.08rem; }
.portfolio-meta p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.portfolio-cta { margin-top: 40px; text-align: center; }
@media (max-width: 960px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ============ Blog: no hover motion ============ */
.post-card,
.post-card:hover,
.related-grid a,
.related-grid a:hover {
  transform: none !important;
  box-shadow: none;
}
.post-card::after, .related-grid a::after { display: none !important; }
.post-card h3, .post-card:hover h3 { color: var(--ink); }
/* keep a quiet, non-moving affordance so links still read as clickable */
.post-card, .related-grid a { transition: border-color 0.2s ease; }
.post-card:hover, .post-card:focus-visible,
.related-grid a:hover, .related-grid a:focus-visible { border-color: var(--brand); }

/* ============ Bottom promo popup ============ */
.promo-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(13, 15, 23, 0.35);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.promo-popup.is-shown { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.promo-popup .promo-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}
.promo-popup .promo-icon svg { width: 19px; height: 19px; }
.promo-popup .promo-body { flex: 1; }
.promo-popup .promo-body b { display: block; font-size: 0.92rem; line-height: 1.3; margin-bottom: 2px; }
.promo-popup .promo-body a {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 2px;
}
.promo-popup .promo-close {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.promo-popup .promo-close:hover { background: var(--line); color: var(--ink); }
html[data-theme="dark"] .promo-popup { box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6); }
@media (max-width: 640px) {
  .promo-popup { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-popup { transition: opacity 0.3s ease; transform: none !important; }
}
