/* ════════════════════════════════════════════
   zdevs — shared theme
   Calm, premium dark. Soft ambient light,
   smooth reveals, no neon.
   ════════════════════════════════════════════ */

:root {
  --bg:           #0a0b0a;
  --bg-raised:    #111312;
  --surface:      rgba(255, 255, 255, 0.03);
  --surface-2:    rgba(255, 255, 255, 0.06);
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);

  --text:         #f2f1ec;
  --muted:        #a3a39b;
  --dim:          #6f6f68;

  --accent:       #3df59a;
  --accent-deep:  #1ea56a;
  --accent-tint:  rgba(61, 245, 154, 0.1);
  --on-accent:    #05140c;

  --sans:   'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --nav-h:  76px;
  --radius: 22px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

/* Background lives on <html> so the fixed ambient layer can sit behind content */
body {
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

a      { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
img    { display: block; max-width: 100%; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

::selection { background: var(--accent); color: var(--on-accent); }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ════════════════════════════════════════════
   AMBIENT BACKGROUND — slow drifting light
   (pure CSS gradients, cheap on phones)
   ════════════════════════════════════════════ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.ambient .a1 {
  width: 75vmax; height: 75vmax;
  left: -30vmax; top: -32vmax;
  background: radial-gradient(circle, rgba(61, 245, 154, 0.13), transparent 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.ambient .a2 {
  width: 62vmax; height: 62vmax;
  right: -28vmax; top: 18vh;
  background: radial-gradient(circle, rgba(70, 150, 200, 0.09), transparent 62%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.ambient .a3 {
  width: 58vmax; height: 58vmax;
  left: 10vw; bottom: -38vmax;
  background: radial-gradient(circle, rgba(232, 214, 170, 0.06), transparent 60%);
  animation: drift-c 40s ease-in-out infinite alternate;
}
/* fine film grain */
.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift-a { to { transform: translate3d(12vw, 10vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-14vw, -8vh, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(10vw, -12vh, 0) scale(0.92); } }
@keyframes spin    { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: var(--surface); }

.btn-lg { height: 56px; padding: 0 30px; font-size: 15px; }

/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-nav.scrolled,
body.menu-open .site-nav {
  background: rgba(10, 11, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 46px; width: auto; transition: opacity .3s ease; }
.nav-logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s ease, background-color .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta { height: 42px; padding: 0 20px; font-size: 13px; }

/* Hamburger + mobile sheet are hidden on desktop */
.nav-toggle,
.mobile-menu { display: none; }

@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav-logo img { height: 38px; }
  .nav-links, .nav-cta { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 14px 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle .bars { position: relative; width: 16px; height: 10px; }
  .nav-toggle .bars::before,
  .nav-toggle .bars::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .4s var(--ease), top .4s var(--ease);
  }
  .nav-toggle .bars::before { top: 1px; }
  .nav-toggle .bars::after  { top: 7.5px; }
  body.menu-open .nav-toggle .bars::before { top: 4.25px; transform: rotate(45deg); }
  body.menu-open .nav-toggle .bars::after  { top: 4.25px; transform: rotate(-45deg); }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 0 0;
    z-index: 99;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: rgba(10, 11, 10, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease);
  }

  .m-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(28px, 8.5vw, 40px);
    font-weight: 500;
    letter-spacing: -0.035em;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s ease;
  }
  .m-link small {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--dim);
  }
  .m-link.active { color: var(--accent); }
  body.menu-open .m-link {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 50ms + 60ms);
  }
  .mobile-menu .btn { width: 100%; margin-top: 32px; flex: none; }
}

/* ════════════════════════════════════════════
   SHARED TYPE
   ════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 245, 154, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(61, 245, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 245, 154, 0); }
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}
.text-accent { color: var(--accent); }

/* Inner-page header */
.page-head {
  text-align: center;
  padding: calc(var(--nav-h) + clamp(56px, 10vw, 112px)) var(--gutter) clamp(56px, 8vw, 96px);
}
.page-title {
  margin: 26px 0 22px;
  font-size: clamp(46px, 8.5vw, 108px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.page-title .serif { font-size: 1.05em; letter-spacing: -0.02em; }
.page-sub {
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

/* ════════════════════════════════════════════
   REVEAL ANIMATIONS
   Only hidden when JS is running (html.js)
   ════════════════════════════════════════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Masked line: text slides up from behind its own baseline */
.line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.12em;
  margin: -0.06em 0 -0.12em;
}
.line > span { display: inline-block; }
.js .line > span {
  transform: translateY(115%);
  transition: transform 1.15s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .in .line > span,
.js .line.in > span { transform: none; }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 80px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 10, 0.7);
}
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(36px, 6vw, 80px);
}
.footer-brand .nav-logo img { height: 42px; }
.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.footer-mail {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s ease, border-color .2s ease;
}
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer-social:hover { color: var(--accent); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-h {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-cols a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1180px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ════════════════════════════════════════════
   CONTENT PAGES — shared building blocks
   ════════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--dim);
}
.breadcrumb a { color: var(--muted); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--dim); }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  margin-top: 20px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.section-title .serif { color: var(--muted); font-size: 1.05em; }
.section-lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.prose { max-width: 760px; }
.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color .3s ease;
}
.feature:hover { border-color: var(--line-strong); }
.feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 17px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.feature p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .feature-grid, .feature-grid.two { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
}

/* Numbered process */
.process { counter-reset: step; border-top: 1px solid var(--line); }
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent);
}
.process h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.03em; }
.process p { max-width: 640px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
@media (max-width: 520px) { .process li { grid-template-columns: 40px 1fr; } }

/* Split: text + visual */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.check-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(242, 241, 236, 0.86);
}
.check-list li::before {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233df59a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center / 22px no-repeat,
    var(--accent-tint);
}

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  color: var(--text);
}

/* FAQ accordion */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.section-head.center + .faq { margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .35s var(--ease), background-color .3s ease, color .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq .answer {
  padding: 0 52px 26px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.faq .answer a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
@media (max-width: 520px) { .faq .answer { padding-right: 0; } }

/* CTA card */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid rgba(61, 245, 154, 0.25);
  background: linear-gradient(120deg, rgba(61, 245, 154, 0.1), rgba(61, 245, 154, 0.02) 60%);
}
.cta-card h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.cta-card h2 .serif { color: var(--muted); }
.cta-card p { margin-top: 12px; max-width: 520px; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) {
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-card .btn { width: 100%; }
}

/* App-window mockup frame */
.mock {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 19, 18, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.mock-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 20px; }

/* ════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

/* ════════════════════════════════════════════
   PRODUCT CARDS (home + products page)
   ════════════════════════════════════════════ */
.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color .3s ease;
}
.product-card:hover { border-color: rgba(61, 245, 154, 0.35); }
.product-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(61, 245, 154, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.015);
  overflow: hidden;
}
.product-info { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 3vw, 32px); }
.product-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-info h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.product-info > p:not(.product-kicker) {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  font-weight: 500;
}
.product-link .arrow { transition: transform .35s var(--ease); }
.product-card:hover .product-link .arrow { transform: translateX(4px); }

/* chat mini-visual */
.pv-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.45;
}
.pv-bubble.me {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--text);
  color: var(--bg);
}
.pv-bubble.ai {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 19, 18, 0.9);
  color: var(--muted);
}
.pv-bubble.ai b { color: var(--text); font-weight: 500; }
.pv-actions { display: flex; gap: 8px; }
.pv-actions span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}
.pv-actions .ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }

/* pipeline mini-visual */
.pv-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.pv-steps span {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 19, 18, 0.9);
  font-size: clamp(10px, 1.1vw, 12px);
  color: var(--muted);
}
.pv-steps span:last-child { border-color: var(--accent); color: var(--accent); }
.pv-steps i { flex: 1; min-width: 6px; height: 1px; background: var(--line-strong); }
.pv-draft {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 18, 0.9);
}
.pv-banner {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1ea56a, #0f3d2b 60%, #10201a);
}
.pv-banner b { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.pv-banner b + b { width: 60%; opacity: .6; }
.pv-lines { display: flex; flex-direction: column; gap: 7px; }
.pv-lines b { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); }
.pv-lines b:first-child { width: 90%; background: rgba(242, 241, 236, 0.5); }
.pv-lines b:last-child { width: 55%; }
.pv-status {
  grid-column: 2;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

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

/* ════════════════════════════════════════════
   BLOG — index cards + article layout
   ════════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color .3s ease;
}
.post-card:hover { border-color: rgba(61, 245, 154, 0.35); }
.post-card.featured { grid-column: 1 / -1; }
.post-card .tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card h2, .post-card h3 {
  margin-top: 14px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.post-card.featured h2 { font-size: clamp(24px, 2.8vw, 34px); }
.post-card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.post-card .meta {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: var(--dim);
}
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: auto; }
  .post-card { padding: 24px; }
}

/* Article */
.post-head {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(32px, 5vw, 48px);
  text-align: center;
}
.post-title {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.04;
}
.post-dek {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}
.post-meta { margin-top: 22px; font-size: 14px; color: var(--dim); }

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  font-size: 17.5px;
  line-height: 1.8;
  color: rgba(242, 241, 236, 0.82);
}
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  margin-top: 2.2em;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
}
.post-body h3 {
  margin-top: 1.8em;
  font-size: clamp(20px, 2.2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
}
.post-body h2 + *, .post-body h3 + * { margin-top: .6em; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a {
  color: var(--text);
  border-bottom: 1px solid rgba(61, 245, 154, 0.5);
  transition: color .2s ease, border-color .2s ease;
}
.post-body a:hover { color: var(--accent); border-color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { padding-left: .3em; }
.post-body li + li { margin-top: .45em; }
.post-body li::marker { color: var(--accent); }
.post-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: .88em;
}
.post-body blockquote {
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-tint);
  color: var(--text);
}
.post-body .callout {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
}
.post-body .callout b { display: block; margin-bottom: 6px; color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.post-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.post-body th, .post-body td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.post-body th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.post-body tr:last-child td { border-bottom: 0; }

.toc {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 15px;
  line-height: 1.6;
}
.toc p { margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.post-body .toc ol { list-style: decimal; }
.post-body .toc a { border-bottom: 0; color: var(--muted); }
.post-body .toc a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .post-body { font-size: 16.5px; line-height: 1.75; }
  .post-head { text-align: left; }
  .post-head .breadcrumb { justify-content: flex-start; }
  .post-head .breadcrumb li:last-child { display: none; }
  .post-dek { margin: 0; }
}

/* ════════════════════════════════════════════
   CUSTOM-BUILD CARD (service pages)
   ════════════════════════════════════════════ */
.custom-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid rgba(61, 245, 154, 0.3);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(61, 245, 154, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.custom-card h3 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.custom-card h3 .serif { color: var(--accent); }
.custom-card > div > p {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
}
.custom-card .btn { margin-top: 24px; }
.custom-steps { display: flex; flex-direction: column; gap: 12px; }
.custom-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 10, 0.5);
  font-size: 16.5px;
  font-weight: 500;
}
.custom-steps li b {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 14px;
}
.custom-steps li:last-child { border-color: rgba(61, 245, 154, 0.35); }
.examples-label {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 900px) {
  .custom-card { grid-template-columns: 1fr; }
}
