/* =====================================================================
   Appslin Homepage — Design 1 "Blueprint"
   Light, editorial and calm. The site is drawn on a faint blueprint grid,
   and the hero shows real shipped work annotated like a build drawing.
   Layout: left-aligned copy, asymmetric two-column hero, one navy band
   (portfolio) as the page's single dark moment.
   Palette: navy #0a1f44 · blue #2563eb · green #10b981 · logo gold #a5803a
   ===================================================================== */
:root {
  --d1-grid: rgba(37, 99, 235, .07);
  --d1-grid-strong: rgba(37, 99, 235, .13);
}

.d1-sec { padding-block: clamp(64px, 8vw, 112px); }
.d1-sec--tint { background: var(--surface); }
.d1-sec--navy { background: var(--navy-900); color: rgba(255, 255, 255, .74); }
.d1-sec--navy h2, .d1-sec--navy h3 { color: #fff; }

h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.d1-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); display: grid; gap: 14px; }
.d1-head p { font-size: 1.05rem; }
.d1-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.d1-head--split > :first-child { max-width: 640px; display: grid; gap: 12px; }
.d1-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; color: var(--blue-600); border-bottom: 2px solid var(--blue-100); padding-bottom: 3px; transition: border-color .25s, color .25s; }
.d1-link:hover { border-color: var(--green-500); color: var(--green-700); }
.d1-link--light { color: #fff; border-color: rgba(255, 255, 255, .25); }
.d1-link--light:hover { color: var(--green-500); }

/* ---------------- Hero ---------------- */
.d1-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(16, 185, 129, .10), transparent 70%),
    radial-gradient(ellipse 60% 70% at 10% 0%, rgba(37, 99, 235, .10), transparent 70%),
    #fbfdff;
  border-bottom: 1px solid var(--line);
}
.d1-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.d1-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--navy-800); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 7px 16px 7px 12px; box-shadow: 0 4px 14px rgba(10, 31, 68, .05); }
.d1-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: d1-pulse 2.4s infinite; flex: none; }
@keyframes d1-pulse { 70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.d1-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 22px 0 22px; color: var(--navy-900); }
.d1-rotate { display: block; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .32s, transform .32s var(--ease); padding-bottom: .06em; }
.d1-rotate.is-out { opacity: 0; transform: translateY(10px); }
.d1-lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 54ch; }
.d1-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 30px; }
.d1-actions .hx-btn--ghost { background: #fff; }
.d1-proof { display: grid; gap: 8px; font-size: .95rem; color: var(--ink); font-weight: 500; }
.d1-proof li { display: flex; gap: 10px; align-items: center; }
.d1-proof .i { color: var(--green-600); width: 18px; height: 18px; }

/* Annotated collage of real projects */
.d1-hero-visual { position: relative; aspect-ratio: 1.12 / 1; max-width: 620px; justify-self: end; width: 100%; }
.d1-shot { position: absolute; margin: 0; background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 70px rgba(10, 31, 68, .14); }
.d1-shot img { width: 100%; aspect-ratio: 1000 / 540; object-fit: cover; }
.d1-shot--back { width: 74%; right: 0; top: 2%; transform: rotate(2.5deg); opacity: .96; }
.d1-shot--front { width: 84%; left: 0; top: 30%; z-index: 2; }
.d1-callout {
  position: absolute; z-index: 3; display: grid; gap: 1px; font-size: .78rem; color: var(--muted);
  background: #fff; border: 1px dashed var(--blue-400); border-radius: 10px; padding: 8px 12px; line-height: 1.35;
  box-shadow: 0 8px 20px rgba(10, 31, 68, .08);
}
.d1-callout b { font-family: var(--f-display); color: var(--ink); font-size: .84rem; }
.d1-callout::after { content: ""; position: absolute; width: 34px; border-top: 1px dashed var(--blue-400); top: 50%; }
.d1-callout--a { left: -4%; top: 22%; }
.d1-callout--a::after { left: 60%; top: 100%; width: 1px; height: 26px; border-top: 0; border-left: 1px dashed var(--blue-400); }
.d1-callout--b { right: -2%; top: -4%; }
.d1-hero-stat {
  position: absolute; z-index: 4; right: 2%; bottom: 0; background: var(--navy-900); color: rgba(255, 255, 255, .8);
  border-radius: 16px; padding: 16px 20px; display: grid; gap: 2px; box-shadow: 0 24px 50px rgba(10, 31, 68, .3); max-width: 230px; font-size: .86rem; line-height: 1.4;
}
.d1-hero-stat strong { font-family: var(--f-display); font-size: 2rem; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d1-measure { position: absolute; left: 0; bottom: 6%; width: 52%; height: 14px; fill: none; stroke: var(--gold-600); stroke-width: 1.5; opacity: .7; }

/* Page-load: one orchestrated entrance for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .d1-hero-copy > * { animation: d1-rise .8s var(--ease) both; }
  .d1-hero-copy > :nth-child(2) { animation-delay: .08s; }
  .d1-hero-copy > :nth-child(3) { animation-delay: .16s; }
  .d1-hero-copy > :nth-child(4) { animation-delay: .24s; }
  .d1-hero-copy > :nth-child(5) { animation-delay: .32s; }
  .d1-shot--back { animation: d1-in-back 1s .2s var(--ease) both; }
  .d1-shot--front { animation: d1-rise 1s .35s var(--ease) both; }
  .d1-callout, .d1-hero-stat { animation: d1-fade .6s .9s both; }
}
@keyframes d1-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes d1-in-back { from { opacity: 0; transform: rotate(6deg) translateY(20px); } }
@keyframes d1-fade { from { opacity: 0; } }

/* ---------------- Clients strip ---------------- */
.d1-clients { padding-block: 28px; border-bottom: 1px solid var(--line); background: #fff; }
.d1-clients-row { display: flex; align-items: center; gap: 28px; }
.d1-clients p { font-size: .88rem; font-weight: 600; color: var(--muted); max-width: 200px; line-height: 1.45; flex: none; }
.d1-clients p.d1-clients-lead { max-width: 270px; padding-left: 14px; border-left: 3px solid var(--blue-600); display: grid; gap: 2px; }
.d1-clients-lead span { font-size: .74rem; font-weight: 700; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; color: var(--blue-600); }
.d1-clients-lead strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.d1-logos { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex: 1; min-width: 0; }
.d1-logos li a { display: grid; place-items: center; height: 56px; padding: 6px 10px; border-radius: 10px; transition: transform .3s, box-shadow .3s; }
.d1-logos li a:hover { transform: translateY(-2px); }
.d1-logos li.is-dark a { background: var(--navy-900); }
.d1-logos img { max-height: 44px; width: auto; max-width: 150px; object-fit: contain; }

/* ---------------- About ---------------- */
.d1-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.d1-about-copy { display: grid; gap: 18px; justify-items: start; }
.d1-ledger { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--navy-900); }
.d1-ledger > div { padding: 22px 6px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.d1-ledger > div:nth-child(odd) { padding-right: 22px; border-right: 1px solid var(--line); }
.d1-ledger > div:nth-child(even) { padding-left: 22px; }
.d1-ledger dt { font-size: .9rem; color: var(--muted); order: 2; }
.d1-ledger dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.3rem, 4vw, 3.3rem); color: var(--navy-900); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------------- Services (tabs) ---------------- */
.d1-svc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.d1-svc-tabs { display: grid; gap: 8px; position: sticky; top: 100px; }
.d1-svc-tabs button {
  text-align: left; display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--ink); transition: background-color .25s, border-color .25s;
}
.d1-svc-tabs button span { font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.d1-svc-tabs button small { font-size: .82rem; color: var(--muted); }
.d1-svc-tabs button:hover { background: #fff; }
.d1-svc-tabs button[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: 0 10px 28px rgba(10, 31, 68, .07); position: relative; }
.d1-svc-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad-brand); }
.d1-svc-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.d1-svc-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; color: var(--body); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background-color .25s; font-size: .94rem; line-height: 1.55; }
.d1-svc-item:nth-child(2n) { border-right: 0; }
.d1-svc-item:hover { background: var(--blue-50); }
.d1-svc-item img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.d1-svc-item b { display: block; font-family: var(--f-display); color: var(--ink); font-size: 1.02rem; margin-bottom: 3px; }
.d1-svc-item:hover b { color: var(--blue-600); }
.d1-svc-item--cta { background: var(--navy-900); color: rgba(255,255,255,.75); align-items: center; }
.d1-svc-item--cta b { color: #fff; }
.d1-svc-item--cta .i { color: var(--green-500); width: 22px; height: 22px; margin-left: auto; }
.d1-svc-item--cta:hover { background: var(--navy-800); }
.d1-svc-item--cta:hover b { color: #fff; }
.d1-svc-panel:not([hidden]) { animation: d1-fade .3s; }

/* ---------------- Process ---------------- */
.d1-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.d1-steps::before { content: ""; position: absolute; left: 28px; right: calc((100% - 72px) / 4 - 28px); top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-400) 0 8px, transparent 8px 14px); opacity: .5; }
.d1-steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.d1-step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--blue-500); color: var(--blue-600); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; position: relative; z-index: 1; margin-bottom: 8px; }
.d1-steps li:last-child .d1-step-n { background: var(--grad-brand); border-color: transparent; color: #fff; }
.d1-steps h3 { font-size: 1.15rem; }
.d1-steps p { font-size: .95rem; }

/* ---------------- Portfolio showcase ---------------- */
.d1-show { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: center; }
.d1-show-list { display: grid; gap: 4px; }
.d1-show-list button {
  text-align: left; cursor: pointer; padding: 18px 20px; border-radius: 14px; background: transparent; border: 1px solid transparent;
  color: rgba(255, 255, 255, .6); display: grid; gap: 2px; transition: background-color .25s, color .25s, border-color .25s;
}
.d1-show-list b { font-family: var(--f-display); font-size: 1.1rem; color: inherit; }
.d1-show-list span { font-size: .86rem; }
.d1-show-list button:hover { color: #fff; }
.d1-show-list button[aria-pressed="true"] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.d1-show-list button[aria-pressed="true"] span { color: var(--green-500); }
.d1-show-stage article { display: grid; gap: 22px; animation: d1-fade .4s; }
.d1-show-stage img { width: 100%; border-radius: 18px; background: #fff; aspect-ratio: 1000 / 540; object-fit: cover; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.d1-show-stage article > div { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.d1-show-stage p { max-width: 52ch; }
.d1-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.d1-tags li { font-size: .8rem; font-weight: 600; color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 4px 10px; }

/* ---------------- Industries ---------------- */
.d1-ind { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.d1-ind li { display: grid; justify-items: start; align-content: start; gap: 14px; padding: 24px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.3; transition: background-color .25s; }
.d1-ind li:hover { background: var(--blue-50); }
.d1-ind img { width: 40px; height: 40px; object-fit: contain; }

/* ---------------- Why ---------------- */
.d1-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.d1-why h2 { margin-bottom: 30px; }
.d1-why-photo { margin: 0; position: relative; }
.d1-why-photo img { border-radius: 22px; aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.d1-why-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); color: var(--ink); font-weight: 600; font-size: .92rem; padding: 14px 16px; border-radius: 14px; }
.d1-why-photo figcaption .i { color: var(--green-600); width: 22px; height: 22px; }
.d1-why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.d1-why-list li { display: flex; gap: 14px; align-items: flex-start; }
.d1-why-list > li > .i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--blue-600); }
.d1-why-list h3 { font-size: 1.02rem; margin-bottom: 4px; }
.d1-why-list p { font-size: .92rem; line-height: 1.55; }

/* ---------------- Carousels ---------------- */
.d1-nav { display: flex; align-items: center; gap: 10px; }
.d1-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.d1-nav button:hover:not(:disabled) { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.d1-nav button:disabled { opacity: .4; cursor: default; }
.d1-count { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.d1-track { display: grid; grid-auto-flow: column; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.d1-track::-webkit-scrollbar { display: none; }
.d1-track > * { scroll-snap-align: start; }
.d1-track--quotes { grid-auto-columns: calc((100% - 40px) / 3); }
.d1-track--concepts { grid-auto-columns: calc((100% - 60px) / 4); }

.d1-quote { margin: 0; display: grid; gap: 16px; align-content: start; background: var(--surface); border-radius: 20px; padding: 28px; }
.d1-stars { display: flex; gap: 3px; color: var(--gold-400); }
.d1-stars .i { width: 17px; height: 17px; }
.d1-quote p { color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.d1-quote footer { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; color: var(--ink); margin-top: auto; }
.d1-quote footer span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: .95rem; }

.d1-concept { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.d1-concept img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.d1-concept h3 { font-size: 1.08rem; padding: 18px 20px 6px; }
.d1-concept button { margin: 6px 20px 20px; justify-self: start; display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; padding: 0; color: var(--blue-600); font-family: var(--f-display); font-weight: 600; font-size: .92rem; cursor: pointer; }
.d1-concept button:hover { color: var(--green-700); }

/* ---------------- Contact ---------------- */
.d1-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px rgba(10, 31, 68, .14); border: 1px solid var(--line); }
.d1-contact-info {
  background: var(--navy-900); color: rgba(255, 255, 255, .76); padding: clamp(28px, 4vw, 52px); display: grid; align-content: start; gap: 18px;
  background-image: none;
  background-size: 32px 32px;
}
.d1-contact-info h2 { color: #fff; }
.d1-contact-info ul { display: grid; gap: 18px; margin-top: 14px; }
.d1-contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.d1-contact-info li > .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--green-500); }
.d1-contact-info small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.d1-contact-info a { color: #fff; font-weight: 600; }
.d1-contact-form { background: #fff; padding: clamp(24px, 4vw, 48px); min-width: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .d1-hero-grid { grid-template-columns: 1fr; }
  .d1-hero-visual { justify-self: center; max-width: 600px; margin-top: 12px; }
  .d1-svc { grid-template-columns: 1fr; }
  .d1-svc-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .d1-svc-tabs::-webkit-scrollbar { display: none; }
  .d1-svc-tabs button { background: #fff; border-color: var(--line); }
  .d1-svc-tabs button[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
  .d1-svc-tabs button[aria-selected="true"] small { color: rgba(255, 255, 255, .65); }
  .d1-svc-tabs button[aria-selected="true"]::before { display: none; }
  .d1-show { grid-template-columns: 1fr; }
  .d1-show-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; order: 2; }
  .d1-show-list::-webkit-scrollbar { display: none; }
  .d1-track--concepts { grid-auto-columns: calc((100% - 40px) / 3); }
  .d1-why { grid-template-columns: 1fr; }
  .d1-why-photo img { aspect-ratio: 16 / 9; }
  .d1-contact { grid-template-columns: 1fr; }
  .d1-clients-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .d1-clients p { max-width: none; }
  .d1-logos { width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
}
@media (max-width: 820px) {
  .d1-about { grid-template-columns: 1fr; }
  .d1-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .d1-steps::before { display: none; }
  .d1-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d1-track--quotes { grid-auto-columns: calc((100% - 20px) / 2); }
  .d1-svc-panel { grid-template-columns: 1fr; }
  .d1-svc-item { border-right: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .d1-hero h1 { margin: 18px 0; }
  .d1-actions .hx-btn { flex: 1 1 100%; }
  .d1-kicker { font-size: .8rem; }
  .d1-hero-visual { aspect-ratio: 1 / 1.02; }
  .d1-callout--a { left: 0; top: 18%; }
  .d1-callout--b { right: 0; top: -6%; }
  .d1-callout { font-size: .72rem; padding: 6px 10px; }
  .d1-hero-stat { padding: 12px 14px; max-width: 190px; font-size: .78rem; }
  .d1-hero-stat strong { font-size: 1.6rem; }
  .d1-measure { display: none; }
  .d1-steps { grid-template-columns: 1fr; }
  .d1-steps li { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .d1-steps li .d1-step-n { grid-row: span 2; margin: 0; }
  .d1-ind { grid-template-columns: 1fr 1fr; }
  .d1-ind li { padding: 18px 14px; font-size: .9rem; }
  .d1-why-list { grid-template-columns: 1fr; }
  .d1-track--quotes { grid-auto-columns: 88%; }
  .d1-track--concepts { grid-auto-columns: 70%; }
  .d1-ledger dd { font-size: 2.2rem; }
  .d1-show-stage article > div { flex-direction: column; }
  .d1-head--split .d1-nav button { width: 42px; height: 42px; }
}

/* =====================================================================
   Design 1 — v2 upgrades: browser frames, ERP products, FAQ
   ===================================================================== */

/* Browser chrome around real project screenshots */
.d1-browser { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef3fa; border-bottom: 1px solid var(--line); }
.d1-browser i { width: 9px; height: 9px; border-radius: 50%; background: #c9d4e5; flex: none; }
.d1-browser i:nth-child(1) { background: #f87171; } .d1-browser i:nth-child(2) { background: #fbbf24; } .d1-browser i:nth-child(3) { background: #34d399; }
.d1-browser span { margin-left: 10px; flex: 1; min-width: 0; font-size: .72rem; font-weight: 600; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d1-shot img { aspect-ratio: 1200 / 765; object-fit: cover; object-position: top; }
.d1-shot--front { top: 26%; width: 82%; }
.d1-shot--back { width: 72%; }
.d1-frame { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.d1-frame img { width: 100%; aspect-ratio: 1200 / 765; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; }
.d1-show-stage .d1-frame img { box-shadow: none; border-radius: 0; }

/* ERP products */
.d1-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.d1-product { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: #fff; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.d1-product:hover { box-shadow: 0 30px 60px rgba(10, 31, 68, .12); transform: translateY(-4px); }
.d1-product--hospital { --erp: #0a9d68; --erp-soft: #e3f7ef; }
.d1-product--salon { --erp: #a5803a; --erp-soft: #f8f0df; }
.d1-product--footwear { --erp: #2563eb; --erp-soft: #e6efff; }
.d1-product > .erp-ui { margin: 18px 18px 0; }
.d1-product-body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.d1-product-body h3 { font-size: 1.3rem; }
.d1-product-body > p { color: var(--muted); font-size: .95rem; }
.d1-product-body ul { display: grid; gap: 8px; margin: 6px 0 8px; }
.d1-product-body li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink); line-height: 1.5; }
.d1-product-body li .i { color: var(--erp); margin-top: 3px; }
.d1-product-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: auto; }

/* Mini ERP screen (shared with the portfolio page) */
.erp-ui { --erp: #2563eb; --erp-soft: #e6efff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; font-size: 11px; line-height: 1.35; color: var(--ink); box-shadow: 0 14px 30px rgba(10, 31, 68, .08); user-select: none; }
.erp-ui--hospital { --erp: #0a9d68; --erp-soft: #e3f7ef; }
.erp-ui--salon { --erp: #a5803a; --erp-soft: #f8f0df; }
.erp-ui--footwear { --erp: #2563eb; --erp-soft: #e6efff; }
.erp-ui-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--navy-900); color: #fff; }
.erp-ui-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.erp-ui-bar span { margin-left: 8px; font-weight: 700; font-family: var(--f-display); font-size: 11px; }
.erp-ui-body { display: grid; grid-template-columns: 30% 1fr; min-height: 190px; }
.erp-ui-nav { background: var(--erp-soft); padding: 10px 8px; display: grid; gap: 3px; align-content: start; }
.erp-ui-nav li { padding: 5px 8px; border-radius: 6px; color: var(--body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp-ui-nav li.on { background: var(--erp); color: #fff; }
.erp-ui-main { padding: 10px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.erp-ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.erp-ui-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px; display: grid; gap: 2px; min-width: 0; }
.erp-ui-kpis small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp-ui-kpis b { font-family: var(--f-display); font-size: 13px; color: var(--erp); white-space: nowrap; }
.erp-ui-rows { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.erp-ui-rows li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; padding: 5px 7px; border-bottom: 1px solid var(--line); }
.erp-ui-rows li:last-child { border-bottom: 0; }
.erp-ui-rows b, .erp-ui-rows span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp-ui-rows span { color: var(--muted); }
.erp-ui-rows em { font-style: normal; font-weight: 700; font-size: 9px; color: var(--erp); background: var(--erp-soft); padding: 2px 6px; border-radius: 10px; }

/* FAQ */
.d1-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.d1-faq-intro { display: grid; gap: 16px; justify-items: start; position: sticky; top: 110px; }
.d1-faq-intro a:not(.d1-link) { color: var(--blue-600); font-weight: 600; }
.d1-faq-list { border-top: 1px solid var(--line); }
.d1-faq-list details { border-bottom: 1px solid var(--line); }
.d1-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.d1-faq-list summary::-webkit-details-marker { display: none; }
.d1-faq-list summary::after { content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.d1-faq-list details[open] summary::after { transform: rotate(45deg); }
.d1-faq-list summary:hover { color: var(--blue-600); }
.d1-faq-list details p { padding: 0 44px 22px 0; max-width: 64ch; }
.d1-faq-list details a { color: var(--blue-600); font-weight: 600; }

@media (max-width: 1080px) {
  .d1-products { grid-template-columns: 1fr 1fr; }
  .d1-faq { grid-template-columns: 1fr; }
  .d1-faq-intro { position: static; }
}
@media (max-width: 720px) {
  .d1-products { grid-template-columns: 1fr; }
  .d1-faq-list summary { font-size: 1rem; padding: 18px 0; }
  .d1-faq-list details p { padding-right: 0; }
}

/* v2 hero tuning */
@media (min-width: 1081px) { .d1-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.d1-hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.3rem); }
.d1-h1-lead { white-space: nowrap; }
.d1-callout--a { left: -2%; top: 12%; }
.d1-callout--a::after { height: 30px; }
@media (max-width: 600px) { .d1-h1-lead { white-space: normal; } .d1-callout--a { display: none; } }

/* =====================================================================
   v3: project starter, tech stack, blog cards
   ===================================================================== */
.d1-starter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.d1-start { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto auto 1fr auto; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.d1-start::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--start, var(--blue-500)); }
.d1-start--web { --start: #2563eb; } .d1-start--app { --start: #10b981; } .d1-start--erp { --start: #a5803a; } .d1-start--mkt { --start: #102c5e; }
.d1-start:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(10, 31, 68, .12); border-color: transparent; }
.d1-start img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 4px; }
.d1-start h3 { font-size: 1.22rem; }
.d1-start > p { font-size: .93rem; color: var(--muted); }
.d1-start ul { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; margin: 4px 0 10px; }
.d1-start li a { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; transition: background-color .2s, color .2s, border-color .2s; }
.d1-start li a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.d1-start-cta { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 0 0; border-top: 1px solid var(--line); width: 100%; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--blue-600); cursor: pointer; }
.d1-start-cta .i { transition: transform .3s var(--ease); }
.d1-start-cta:hover .i { transform: translateX(4px); }

.d1-stack { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.d1-stack > p { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: .95rem; margin-right: 6px; }
.d1-stack > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d1-stack dt { font-size: .78rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.d1-stack dd { margin: 0; font-size: .82rem; font-weight: 600; color: var(--navy-800); background: var(--blue-50); border-radius: 8px; padding: 4px 9px; }

/* Blog cards (homepage teaser + blog page) */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bl-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(10, 31, 68, .1); }
.bl-img { position: relative; display: grid; place-items: end start; aspect-ratio: 16 / 9; overflow: hidden; padding: 16px;
  background: linear-gradient(135deg, var(--navy-900), #164e63 120%); }
.bl-img span { position: relative; z-index: 0; font-family: var(--f-display); font-weight: 700; color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.bl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s var(--ease); }
.bl-card:hover .bl-img img { transform: scale(1.04); }
.bl-body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.bl-meta b { color: var(--blue-600); background: var(--blue-50); padding: 3px 9px; border-radius: 100px; font-weight: 700; }
.bl-body h3, .bl-body h2 { font-size: 1.14rem; line-height: 1.3; }
.bl-body h3 a, .bl-body h2 a { color: var(--ink); }
.bl-body h3 a:hover, .bl-body h2 a:hover { color: var(--blue-600); }
.bl-body > p:not(.bl-meta) { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-body .d1-link { justify-self: start; margin-top: 4px; }

@media (max-width: 1080px) { .d1-starter { grid-template-columns: 1fr 1fr; } .bl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .d1-starter, .bl-grid { grid-template-columns: 1fr; } .d1-stack { padding: 16px; } }

/* =====================================================================
   Homepage v4 — spacing system + hero, products band, light showcase
   Rhythm: major sections 120px desktop / 72px phone, compact 88/56,
   section heads 56/36, groups inside a section 48/32.
   ===================================================================== */
.d1-sec { padding-block: clamp(72px, 8.4vw, 120px); }
.d1-sec--compact { padding-block: clamp(56px, 6vw, 88px); }
.d1-head { margin-bottom: clamp(36px, 4vw, 56px); }
.d1-head p { color: var(--body); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); letter-spacing: -.03em; }

/* Hero */
.h4-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 84px) 0;
  background:
    radial-gradient(ellipse 55% 60% at 80% 35%, rgba(16, 185, 129, .12), transparent 70%),
    radial-gradient(ellipse 60% 70% at 5% 0%, rgba(37, 99, 235, .12), transparent 70%),
    #fbfdff; }
.h4-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.h4-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.h4-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.03; margin: 22px 0; color: var(--navy-900); }
.h4-hero .d1-actions { margin: 30px 0 34px; }
.h4-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.h4-faces { display: flex; }
.h4-faces li { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; margin-left: -10px; background: radial-gradient(circle at 50% 35%, #fff, var(--blue-100)); box-shadow: 0 6px 14px rgba(10, 31, 68, .12); }
.h4-faces li:first-child { margin-left: 0; }
.h4-faces img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.h4-proof p { font-size: .94rem; color: var(--body); }
.h4-proof b { color: var(--ink); }
.h4-proof a { font-weight: 600; color: var(--blue-600); border-bottom: 1px solid currentColor; }

.h4-visual { position: relative; aspect-ratio: 1.08 / 1; }
.h4-frame { position: absolute; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 34px 80px rgba(10, 31, 68, .16); }
.h4-frame img { width: 100%; aspect-ratio: 1200 / 765; object-fit: cover; object-position: top; }
.h4-frame:not(.h4-frame--back) { left: 0; top: 10%; width: 82%; z-index: 2; }
.h4-frame--back { right: 0; top: 0; width: 64%; z-index: 1; transform: rotate(3deg); opacity: .96; }
.h4-erp { position: absolute; z-index: 3; right: -2%; bottom: 2%; width: 52%; display: block; transition: transform .4s var(--ease); }
.h4-erp:hover { transform: translateY(-4px); }
.h4-erp .erp-ui { box-shadow: 0 30px 60px rgba(10, 31, 68, .26); font-size: 10px; }
.h4-erp .erp-ui-body { min-height: 150px; }
.h4-badge { position: absolute; z-index: 4; left: 4%; bottom: 8%; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; background: var(--navy-900); color: rgba(255, 255, 255, .7); border-radius: 14px; padding: 10px 14px; font-size: .78rem; box-shadow: 0 18px 40px rgba(10, 31, 68, .3); }
.h4-badge .i { grid-row: span 2; width: 26px; height: 26px; color: var(--gold-400); }
.h4-badge b { color: #fff; font-family: var(--f-display); font-size: 1.2rem; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .h4-hero-copy > * { animation: d1-rise .8s var(--ease) both; }
  .h4-hero-copy > :nth-child(2) { animation-delay: .07s; } .h4-hero-copy > :nth-child(3) { animation-delay: .14s; } .h4-hero-copy > :nth-child(4) { animation-delay: .21s; } .h4-hero-copy > :nth-child(5) { animation-delay: .28s; }
  .h4-frame--back { animation: d1-in-back 1s .2s var(--ease) both; }
  .h4-frame:not(.h4-frame--back) { animation: d1-rise 1s .3s var(--ease) both; }
  .h4-erp { animation: d1-rise 1s .55s var(--ease) both; }
  .h4-badge { animation: d1-fade .6s .9s both; }
}

.h4-stats { position: relative; z-index: 2; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(10, 31, 68, .08); }
.h4-stats > div { padding: 22px 26px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.h4-stats > div:first-child { border-left: 0; }
.h4-stats dt { order: 2; font-size: .86rem; color: var(--muted); }
.h4-stats dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.03em; color: var(--navy-900); line-height: 1.05; font-variant-numeric: tabular-nums; }
.h4-hero + .d1-clients { border-top: 0; padding-top: clamp(28px, 3vw, 40px); }

/* Products band */
.h4-products { position: relative; padding-block: clamp(72px, 8.4vw, 120px); color: rgba(255, 255, 255, .72); overflow: hidden;
  background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(16, 185, 129, .2), transparent 70%), radial-gradient(ellipse 50% 70% at 0% 100%, rgba(37, 99, 235, .3), transparent 70%), var(--navy-950); }
.h4-products h2, .h4-products h3 { color: #fff; }
.h4-products .d1-head p { color: rgba(255, 255, 255, .72); }
.h4-prod { display: grid; gap: 28px; }
.h4-prod-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h4-prod-tabs button { text-align: left; display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; cursor: pointer; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); transition: background-color .25s, border-color .25s, color .25s; }
.h4-prod-tabs b { font-family: var(--f-display); font-size: 1.08rem; color: #fff; }
.h4-prod-tabs span { font-size: .86rem; }
.h4-prod-tabs button:hover { background: rgba(255, 255, 255, .08); }
.h4-prod-tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--muted); }
.h4-prod-tabs button[aria-selected="true"] b { color: var(--ink); }
.h4-prod-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: center; animation: d1-fade .35s; }
.h4-prod-screen { padding: clamp(14px, 2vw, 26px); border-radius: 26px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.h4-prod-screen .erp-ui { font-size: 12.5px; box-shadow: 0 40px 90px rgba(0, 0, 0, .4); }
.h4-prod-screen .erp-ui-body { min-height: 270px; }
.h4-prod-screen .erp-ui-kpis b { font-size: 17px; }
.h4-prod-screen .erp-ui-kpis small, .h4-prod-screen .erp-ui-rows em { font-size: 10.5px; }
.h4-prod-copy { display: grid; gap: 14px; }
.h4-prod-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.h4-prod-copy ul { display: grid; gap: 10px; margin: 4px 0 8px; }
.h4-prod-copy li { display: flex; gap: 10px; color: #fff; font-size: .98rem; }
.h4-prod-copy li .i { color: var(--green-500); margin-top: 4px; }
.h4-prod-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h4-btn-line { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.h4-btn-line:hover { background: #fff; color: var(--navy-900); }

/* Light portfolio showcase */
.d1-show--light .d1-show-list button { color: var(--muted); }
.d1-show--light .d1-show-list button:hover { color: var(--ink); background: #fff; }
.d1-show--light .d1-show-list button[aria-pressed="true"] { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 12px 30px rgba(10, 31, 68, .08); }
.d1-show--light .d1-show-list button[aria-pressed="true"] span { color: var(--green-700); }
.d1-show--light .d1-tags li { color: var(--blue-600); background: var(--blue-50); border-color: transparent; }
.d1-show--light .d1-frame { box-shadow: 0 30px 70px rgba(10, 31, 68, .14); border: 1px solid var(--line); }
#work h2 { color: var(--ink); }
.h4-apps { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.h4-apps .d1-head { margin-bottom: 28px; }
.h4-apps h3 { font-size: 1.5rem; }

/* Why + industries */
.h4-why-lead { margin: -14px 0 28px; max-width: 60ch; }
.h4-why-lead a { color: var(--blue-600); font-weight: 600; }
.h4-ind { margin-top: clamp(48px, 5vw, 72px); display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); }
.h4-ind > p { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.h4-ind ul { display: flex; flex-wrap: wrap; gap: 8px; }
.h4-ind li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 100px; font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff; }
.h4-ind img { width: 24px; height: 24px; object-fit: contain; }

@media (max-width: 1080px) {
  .h4-hero-grid { grid-template-columns: 1fr; }
  .h4-visual { max-width: 640px; width: 100%; justify-self: center; }
  .h4-stats { grid-template-columns: 1fr 1fr; }
  .h4-stats > div:nth-child(3) { border-left: 0; }
  .h4-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .h4-prod-panel { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .h4-prod-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .h4-prod-tabs button { scroll-snap-align: start; }
  .h4-prod-screen .erp-ui { font-size: 10.5px; }
  .h4-prod-screen .erp-ui-body { min-height: 0; grid-template-columns: 1fr; }
  .h4-prod-screen .erp-ui-nav { display: none; }
}
@media (max-width: 600px) {
  .h4-hero h1 { margin: 18px 0; }
  .h4-hero .d1-actions .hx-btn { flex: 1 1 100%; }
  .h4-visual { aspect-ratio: 1 / 1.05; }
  .h4-erp { width: 66%; right: 0; bottom: 0; }
  .h4-erp .erp-ui-nav { display: none; }
  .h4-erp .erp-ui-body { grid-template-columns: 1fr; min-height: 0; }
  .h4-badge { left: 0; bottom: auto; top: 0; }
  .h4-stats > div { padding: 16px 16px; }
}

/* Anchor offset for sticky header */
#services, #products, #process, #work, #why, #testimonials, #insights, #faq, #contact, #start { scroll-margin-top: 90px; }

/* =====================================================================
   Homepage v5 — tighter standard rhythm + section eyebrows
   Sections 80px desktop / 48px phone, compact 60/40, heads 36/24.
   ===================================================================== */
.d1-sec, .h4-products { padding-block: clamp(48px, 5.6vw, 80px); }
.d1-sec--compact { padding-block: clamp(40px, 4.2vw, 60px); }
.d1-head { margin-bottom: clamp(24px, 2.8vw, 36px); gap: 10px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.h4-hero { padding-top: clamp(36px, 5vw, 68px); }
.h4-hero .d1-actions { margin: 26px 0 28px; }
.h4-stats { margin-top: clamp(32px, 4vw, 48px); }
.h4-hero + .d1-clients { padding-block: clamp(22px, 2.4vw, 32px); }

/* Eyebrow label + highlighted word */
.h5-t { display: grid; gap: 10px; justify-items: start; }
.h5-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.h5-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.h5-hl { font-style: normal; background: linear-gradient(100deg, #1d4ed8, #2563eb 40%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h4-products .h5-eyebrow { color: #6ee7b7; }
.h4-products .h5-hl { background-image: linear-gradient(100deg, #93c5fd, #6ee7b7); }
.d1-head--split { align-items: end; }

/* Starter cards: less inner padding */
.d1-start { padding: 22px 22px 20px; gap: 10px; }
.d1-start img { width: 40px; height: 40px; }

/* Services: tighter rows */
.d1-svc { gap: 24px; }
.d1-svc-item { padding: 18px 22px; }
.d1-svc-item img { width: 40px; height: 40px; }
.d1-stack { margin-top: 20px; }

/* Products band */
.h4-prod { gap: 22px; }
.h4-prod-screen .erp-ui-body { min-height: 230px; }

/* Process */
.d1-steps h3 { margin-top: 12px; }

/* Portfolio: shorter stage, apps closer */
.d1-show { gap: 32px; }
.d1-show-stage article { gap: 16px; }
.d1-show--light .d1-frame img, .d1-show-stage img { aspect-ratio: 16 / 8; object-position: top; }
.h4-apps { margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(28px, 3vw, 40px); }
.h4-apps .d1-head { margin-bottom: 20px; }

/* Why + industries */
.d1-why { align-items: center; }
.d1-why h2 { margin-bottom: 22px; }
.d1-why-photo img { aspect-ratio: 4 / 3.5; }
.d1-why-list { gap: 20px 24px; }
.h4-ind { margin-top: clamp(32px, 3.6vw, 48px); padding-top: 24px; }

/* Testimonials: white cards with a quote mark */
.d1-sec--tint .d1-quote { background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(10, 31, 68, .06); position: relative; padding: 26px; }
.d1-quote::after { content: "\201C"; position: absolute; right: 20px; top: 4px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--blue-100); pointer-events: none; }

/* FAQ */
.d1-faq-list summary { padding-block: 16px; }

@media (max-width: 640px) {
  /* Starter cards swipe sideways on phones instead of stacking */
  .d1-starter { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .d1-starter::-webkit-scrollbar { display: none; }
  .d1-start { scroll-snap-align: start; }
  .d1-why-photo img { aspect-ratio: 4 / 3; }
  .d1-why-list { grid-template-columns: 1fr; gap: 16px; }
  .d1-show--light .d1-frame img, .d1-show-stage img { aspect-ratio: 16 / 10; }
}
.d1-concept img { aspect-ratio: 5 / 4; object-position: center bottom; }
.d1-concept h3 { padding: 14px 18px 4px; }
.d1-concept button { margin: 4px 18px 16px; }
@media (max-width: 640px) {
  /* Services: compact two-column tiles on phones (title only) */
  .d1-svc-panel { grid-template-columns: 1fr 1fr; }
  .d1-svc-item { flex-direction: column; gap: 8px; padding: 14px; font-size: 0; border-right: 1px solid var(--line); }
  .d1-svc-item:nth-child(2n) { border-right: 0; }
  .d1-svc-item b { font-size: .92rem; margin: 0; line-height: 1.3; }
  .d1-svc-item img { width: 34px; height: 34px; }
  .d1-svc-item--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .d1-svc-item--cta b { font-size: .95rem; }
  .d1-steps { gap: 18px; }
}

/* v6 — even tighter rhythm (64 desktop / 40 phone) */
.d1-sec, .h4-products { padding-block: clamp(40px, 4.4vw, 64px); }
.d1-sec--compact { padding-block: clamp(32px, 3.4vw, 48px); }
.d1-head { margin-bottom: clamp(20px, 2.2vw, 28px); }
.h4-apps { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(24px, 2.6vw, 32px); }
.h4-ind { margin-top: clamp(24px, 2.8vw, 36px); padding-top: 20px; }
.d1-why h2 { margin-bottom: 18px; }
.h4-why-lead { margin: -8px 0 20px; }

/* Real ERP screenshots in the products band */
.h4-prod-shot { display: block; padding: 0; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); transition: transform .4s var(--ease); }
.h4-prod-shot:hover { transform: translateY(-4px); }
.h4-prod-shot .d1-browser { display: flex; }
.h4-prod-shot img { width: 100%; height: auto; display: block; }
@media (min-width: 1081px) { .h4-prod-panel { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); } }
.h4-erp--shot { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(10, 31, 68, .26); width: 58%; }
.h4-erp--shot .d1-browser { display: flex; padding: 7px 10px; font-size: .72rem; }
.h4-erp--shot img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .h4-erp--shot { width: 72%; } }

/* ---------------- Technology stack section ---------------- */
.tk-sec { position: relative; border-top: 1px solid var(--line); }
.tk-sec .d1-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
.tk-stats { display: flex; gap: 10px; margin: 0; }
.tk-stats > div { min-width: 118px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 2px; }
.tk-stats dt { order: 2; font-size: .8rem; font-weight: 600; color: var(--muted); }
.tk-stats dd { order: 1; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }

.tk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tk-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tk-card:hover { transform: translateY(-3px); border-color: #c9d8f0; box-shadow: 0 22px 48px rgba(10, 31, 68, .08); }
.tk-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }
.tk-ico svg { width: 23px; height: 23px; }
.tk-card h3 { font-size: 1.12rem; margin-top: 4px; }
.tk-card > p, .tk-ai-copy > p { font-size: .9rem; line-height: 1.55; color: var(--body); margin: 0; }
.tk-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tk-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-800); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; line-height: 1.3; transition: background .2s, border-color .2s, color .2s; }
.tk-chips li:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }
.tk-chips li.is-new { background: #ecfdf5; border-color: #b7ecd6; color: #065f46; }
.tk-chips em { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--green-600); border-radius: 999px; padding: 2px 6px; }

/* Featured AI card */
.tk-card--ai { grid-column: span 2; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px 30px; align-items: center; padding: 30px; color: rgba(255, 255, 255, .78); border-color: transparent; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(16, 185, 129, .32), transparent 65%), radial-gradient(ellipse 60% 80% at 0% 100%, rgba(37, 99, 235, .4), transparent 70%), var(--navy-900); }
.tk-card--ai:hover { border-color: transparent; box-shadow: 0 26px 60px rgba(10, 31, 68, .28); }
.tk-ai-copy { display: grid; gap: 10px; justify-items: start; }
.tk-card--ai h3 { color: #fff; font-size: 1.45rem; }
.tk-card--ai .tk-ai-copy > p { color: rgba(255, 255, 255, .74); font-size: .95rem; }
.tk-card--ai .tk-ico { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #6ee7b7; }
.tk-card--ai .tk-chips { margin: 0; align-content: center; }
.tk-card--ai .tk-chips li { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.tk-card--ai .tk-chips li:hover { background: rgba(255, 255, 255, .14); border-color: rgba(110, 231, 183, .5); color: #fff; }
.tk-badge { position: absolute; top: 22px; right: 22px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #052e22; background: #6ee7b7; border-radius: 999px; padding: 4px 10px; }

@media (max-width: 1080px) {
  .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-card--ai { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .tk-grid { grid-template-columns: 1fr; gap: 14px; }
  .tk-card--ai { grid-template-columns: 1fr; padding: 24px; }
  .tk-card { padding: 20px; }
  .tk-stats { width: 100%; }
  .tk-stats > div { flex: 1; }
  .tk-badge { top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tk-card, .tk-card:hover { transition: none; transform: none; } }

/* ---------------- Platforms showcase (replaces ready-made app cards) ---------------- */
.pf-sec { position: relative; overflow: hidden; padding-block: clamp(64px, 7.5vw, 104px); color: rgba(255, 255, 255, .74);
  background: radial-gradient(ellipse 55% 60% at 100% 0%, rgba(16, 185, 129, .2), transparent 70%), radial-gradient(ellipse 50% 70% at 0% 100%, rgba(37, 99, 235, .32), transparent 70%), var(--navy-950); }
.pf { display: grid; gap: 22px; }
.pf-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 16px 36px; align-items: end; margin-bottom: 6px; }
.pf-head h3 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
.pf-head .h5-eyebrow { color: #6ee7b7; }
.pf-head .h5-hl { background-image: linear-gradient(100deg, #93c5fd, #6ee7b7); }
.pf-head > p { margin: 0; font-size: 1rem; color: rgba(255, 255, 255, .7); max-width: 46ch; }
.pf-stats { display: flex; gap: 10px; margin: 0; }
.pf-stats > div { min-width: 104px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); display: grid; }
.pf-stats dt { order: 2; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.pf-stats dd { order: 1; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.65rem; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }

/* Platform tabs */
.pf-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.pf-tabs button i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
.pf-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pf-tabs button[aria-selected="true"] { color: var(--navy-950); background: #fff; border-color: #fff; }
.pf-tabs button:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }

/* Stage */
.pf-stage { overflow: hidden; border-radius: 28px; touch-action: pan-y; }
.pf-track { display: flex; transition: transform .7s var(--ease); will-change: transform; }
.pf-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(ellipse 60% 80% at 85% 20%, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.pf-copy { display: grid; gap: 12px; justify-items: start; }
.pf-cat { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 32%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); }
.pf-copy h4 { margin: 2px 0 0; color: #fff; font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; }
.pf-pitch { margin: 0; font-size: 1rem; color: rgba(255, 255, 255, .74); max-width: 44ch; }
.pf-label { margin: 6px 0 -2px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.pf-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.pf-apps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; font-weight: 600; color: #fff; line-height: 1.25; }
.pf-apps .i { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 9px; background: var(--pc); color: #fff; }
.pf-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
.pf-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.pf-feats .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #6ee7b7; }
.pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.pf-actions .hx-btn .i { width: 18px; height: 18px; }
.pf-time { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .62); }
.pf-time .i { width: 17px; height: 17px; }

/* Visual: admin dashboard + phone */
.pf-visual { position: relative; padding: 0 0 26px 0; min-height: 360px; }
.pf-dash { width: 79%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); color: #0b1524; transform: translateY(14px); opacity: .0; transition: transform .8s var(--ease) .1s, opacity .8s var(--ease) .1s; }
.pf-dash-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f8; border-bottom: 1px solid #e2e8f2; }
.pf-dash-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.pf-dash-bar i:nth-child(1) { background: #f87171; } .pf-dash-bar i:nth-child(2) { background: #fbbf24; } .pf-dash-bar i:nth-child(3) { background: #34d399; }
.pf-dash-bar span { margin-left: 8px; font-size: .68rem; color: #64748b; background: #fff; border-radius: 6px; padding: 2px 10px; }
.pf-dash-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 300px; }
.pf-dash-nav { list-style: none; margin: 0; padding: 14px 10px; display: grid; align-content: start; gap: 10px; background: #f6f8fc; border-right: 1px solid #e8edf5; }
.pf-dash-nav li { height: 22px; border-radius: 7px; background: #e3e9f2; }
.pf-dash-nav li.on { background: var(--pc); }
.pf-dash-main { padding: 14px 16px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-kpis div { border: 1px solid #e6ecf5; border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.pf-kpis small { font-size: .62rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-kpis b { font-family: var(--f-display); font-size: .98rem; color: #0b1524; white-space: nowrap; }
.pf-chart { border: 1px solid #e6ecf5; border-radius: 10px; padding: 8px 10px 6px; }
.pf-chart small { font-size: .62rem; font-weight: 700; color: #334155; }
.pf-bars { height: 74px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; margin-top: 6px; }
.pf-bars i { position: relative; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--pc), color-mix(in srgb, var(--pc) 45%, #fff)); transform-origin: bottom; transform: scaleY(.2); transition: transform .9s var(--ease) .25s; margin-bottom: 12px; }
.pf-bars i span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-size: .55rem; font-style: normal; color: #94a3b8; }
.pf-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 2px; border-bottom: 1px solid #eef2f7; font-size: .68rem; }
.pf-rows li:last-child { border-bottom: 0; }
.pf-rows b { color: #0b1524; }
.pf-rows span { color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-rows em { font-style: normal; font-weight: 700; font-size: .6rem; color: color-mix(in srgb, var(--pc) 75%, #000); background: color-mix(in srgb, var(--pc) 14%, #fff); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

.pf-phone { position: absolute; right: 0; bottom: 0; width: 29%; max-width: 196px; min-width: 150px; aspect-ratio: 9 / 18.5; padding: 7px; border-radius: 30px; background: #0b1220; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .12); transform: translateY(26px); opacity: 0; transition: transform .8s var(--ease) .3s, opacity .8s var(--ease) .3s; }
.pf-phone-screen { height: 100%; border-radius: 24px; overflow: hidden; background: #f4f6fa; display: grid; grid-template-rows: auto 1fr auto; color: #0b1524; }
.pf-phone-top { padding: 10px 12px 12px; background: var(--pc); color: #fff; display: grid; gap: 6px; }
.pf-phone-top span { font-size: .55rem; font-weight: 700; opacity: .85; }
.pf-phone-top b { font-family: var(--f-display); font-size: .9rem; }
.pf-phone-search { font-size: .58rem; color: #64748b; background: #fff; border-radius: 8px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-phone-list { list-style: none; margin: 0; padding: 10px 8px; display: grid; gap: 7px; align-content: start; }
.pf-phone-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; align-items: center; background: #fff; border-radius: 10px; padding: 7px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
.pf-phone-list li > i { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--pc) 22%, #fff); }
.pf-phone-list div { display: grid; min-width: 0; }
.pf-phone-list b { font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-phone-list span { font-size: .52rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-phone-list em { font-style: normal; font-size: .56rem; font-weight: 700; color: color-mix(in srgb, var(--pc) 80%, #000); }
.pf-phone-tabs { display: flex; justify-content: space-around; padding: 8px 10px 10px; background: #fff; border-top: 1px solid #e8edf5; }
.pf-phone-tabs i { width: 16px; height: 16px; border-radius: 5px; background: #dbe2ec; }
.pf-phone-tabs i.on { background: var(--pc); }
.pf-sample { position: absolute; left: 0; bottom: 0; font-size: .7rem; color: rgba(255, 255, 255, .45); }

.pf-slide.is-active .pf-dash, .pf-slide.is-active .pf-phone { transform: none; opacity: 1; }
.pf-slide.is-active .pf-bars i { transform: none; }

/* Controls */
.pf-controls { display: flex; align-items: center; gap: 12px; }
.pf-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, border-color .2s; }
.pf-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.pf-btn:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }
.pf-btn .i { width: 20px; height: 20px; }
.pf-play .i-play { display: none; }
.pf.is-paused .pf-play .i-play { display: block; }
.pf.is-paused .pf-play .i-pause { display: none; }
.pf-progress { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-count { font-family: var(--f-display); font-size: .9rem; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-count b { color: #fff; }
.pf-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #6ee7b7); transform: scaleX(0); transform-origin: left; }

@media (max-width: 1080px) {
  .pf-head { grid-template-columns: 1fr auto; }
  .pf-head > p { grid-column: 1 / -1; grid-row: 2; }
  .pf-slide { grid-template-columns: 1fr; }
  .pf-visual { max-width: 640px; }
}
@media (max-width: 640px) {
  .pf-head { grid-template-columns: 1fr; }
  .pf-stats { width: 100%; } .pf-stats > div { flex: 1; }
  .pf-slide { padding: 20px; border-radius: 22px; }
  .pf-stage { border-radius: 22px; }
  .pf-apps { grid-template-columns: 1fr 1fr; }
  .pf-apps li { padding: 8px 9px; font-size: .8rem; gap: 8px; }
  .pf-apps .i { width: 26px; height: 26px; padding: 5px; }
  .pf-visual { min-height: 0; padding-bottom: 30px; }
  .pf-dash { width: 84%; }
  .pf-dash-body { min-height: 0; grid-template-columns: 30px minmax(0, 1fr); }
  .pf-dash-nav { padding: 10px 6px; }
  .pf-rows { display: none; }
  .pf-phone { width: 36%; min-width: 0; bottom: 0; right: -4px; }
  .pf-actions .hx-btn { width: 100%; justify-content: center; }
  .pf-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-track, .pf-dash, .pf-phone, .pf-bars i { transition: none !important; }
}

/* Portfolio showcase: project list lines up with the browser frame (top to bottom) */
@media (min-width: 1081px) {
  .d1-show { align-items: start; }
  .d1-show-list { height: var(--show-frame-h, auto); align-content: space-between; grid-auto-rows: minmax(0, auto); }
  .d1-show-list button { padding-block: 16px; }
}

/* ---------------- Product tabs: each ERP reads as its own product ---------------- */
.h4-prod-tabs { gap: 14px; margin-bottom: 30px; }
.h4-prod-tabs button { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 18px 20px 16px; border-radius: 20px; color: rgba(255, 255, 255, .7);
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 22%, transparent), rgba(255, 255, 255, .03) 70%);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s; }
.h4-prod-tabs button::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--pc); }
.h4-prod-tabs button:hover { transform: translateY(-3px); border-color: var(--pc); box-shadow: 0 18px 40px color-mix(in srgb, var(--pc) 28%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 32%, transparent), rgba(255, 255, 255, .05) 75%); }
.h4-prod-tabs button:focus-visible { outline: 2px solid var(--pc); outline-offset: 3px; }
.h4-tab-ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 70%, #fff), var(--pc)); box-shadow: 0 10px 22px color-mix(in srgb, var(--pc) 40%, transparent); }
.h4-tab-ico svg { width: 26px; height: 26px; }
.h4-tab-num { position: absolute; top: 14px; right: 18px; font-style: normal; font-family: var(--f-display); font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: color-mix(in srgb, var(--pc) 75%, #fff); }
.h4-prod-tabs button > b { grid-column: 2; align-self: end; font-size: 1.14rem; padding-right: 28px; }
.h4-prod-tabs button > span { grid-column: 2; align-self: start; font-size: .86rem; color: rgba(255, 255, 255, .7); }
.h4-tab-cta { grid-column: 1 / -1; display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 700; }
.h4-tab-cta span { display: inline-flex; align-items: center; gap: 6px; font-size: inherit; }
.h4-tab-view { color: color-mix(in srgb, var(--pc) 70%, #fff); }
.h4-tab-view svg { width: 15px; height: 15px; transition: transform .25s; }
.h4-prod-tabs button:hover .h4-tab-view svg { transform: translateX(3px); }
.h4-tab-now { display: none !important; color: var(--pc); }
.h4-tab-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 22%, transparent); }

/* Selected product */
.h4-prod-tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--muted); transform: none; box-shadow: 0 22px 50px rgba(0, 0, 0, .3), 0 0 0 3px color-mix(in srgb, var(--pc) 55%, transparent); }
.h4-prod-tabs button[aria-selected="true"] > b { color: var(--ink); }
.h4-prod-tabs button[aria-selected="true"] > span { color: var(--muted); }
.h4-prod-tabs button[aria-selected="true"] .h4-tab-num { color: var(--pc); }
.h4-prod-tabs button[aria-selected="true"] .h4-tab-cta { border-top-color: var(--line); }
.h4-prod-tabs button[aria-selected="true"] .h4-tab-view { display: none; }
.h4-prod-tabs button[aria-selected="true"] .h4-tab-now { display: inline-flex !important; }
.h4-prod-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; margin-left: -10px; background: #fff; transform: rotate(45deg); border-radius: 3px; }

@media (max-width: 1080px) {
  .h4-prod-tabs { margin-bottom: 22px; padding: 4px 4px 14px; }
  .h4-prod-tabs button[aria-selected="true"]::after { display: none; }
}

/* v10: hero moved up — less empty space under the header */
.h4-hero { padding-top: clamp(20px, 2.4vw, 32px); }
.h4-hero-grid { align-items: start; }
.h4-hero-copy { padding-top: clamp(4px, 1vw, 12px); }

/* v10: "Industries we serve" as a clear tile grid (was faint pills) */
.h4-ind { display: grid; gap: 18px; align-items: start; }
.h4-ind > p { font-size: 1.15rem; letter-spacing: -.01em; }
.h4-ind ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.h4-ind li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.25;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.h4-ind li:hover { border-color: #bcd0f5; box-shadow: 0 10px 24px rgba(16, 44, 94, .08); transform: translateY(-2px); }
.h4-ind img {
  width: 44px; height: 44px; flex: none; padding: 7px; border-radius: 11px; background: var(--blue-50); object-fit: contain;
}
#why { padding-bottom: clamp(36px, 4vw, 52px); }
@media (max-width: 1024px) { .h4-ind ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .h4-ind ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .h4-ind li { padding: 10px; gap: 10px; font-size: .88rem; } .h4-ind img { width: 38px; height: 38px; padding: 6px; } }

/* ===== FAQ: contact panel in the left column (v11) ===== */
.d1-faq-intro { gap: 20px; justify-items: stretch; }
.d1-faq-lede { max-width: 42ch; margin: 0; }
.d1-faq-help { background: var(--navy-900); color: rgba(255,255,255,.72); border-radius: 22px; padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 18px; position: relative; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(10,31,68,.55); }
.d1-faq-help::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,197,94,.28), transparent); pointer-events: none; }
.d1-faq-help-head { display: flex; align-items: center; gap: 14px; position: relative; }
.d1-faq-help-head b { display: block; color: #fff; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.3; }
.d1-faq-help-head span:not(.d1-faq-help-ico) { font-size: .92rem; }
.d1-faq-help-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #4ade80; }
.d1-faq-help-ico .i { width: 22px; height: 22px; }
.d1-faq-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.d1-faq-act { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; min-width: 0; transition: background .2s, border-color .2s, transform .2s; }
.d1-faq-act:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); transform: translateY(-2px); color: #fff; }
.d1-faq-act b { display: block; font-family: var(--f-display); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.d1-faq-act small { display: block; color: rgba(255,255,255,.62); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d1-faq-act > span:nth-child(2) { min-width: 0; }
.d1-faq-act-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(96,165,250,.16); color: #93c5fd; }
.d1-faq-act-ico .i { width: 19px; height: 19px; }
.d1-faq-act-ico--wa { background: rgba(37,211,102,.16); color: #4ade80; }
.d1-faq-act--main { grid-column: 1 / -1; background: var(--grad-brand); border-color: transparent; padding: 16px 18px; }
.d1-faq-act--main:hover { background: var(--grad-brand); filter: brightness(1.08); }
.d1-faq-act--main .d1-faq-act-ico { background: rgba(255,255,255,.18); color: #fff; }
.d1-faq-act--main small { color: rgba(255,255,255,.85); }
.d1-faq-act-go { margin-left: auto; width: 20px; height: 20px; transition: transform .2s; }
.d1-faq-act--main:hover .d1-faq-act-go { transform: translateX(4px); }
.d1-faq-help-link { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .95rem; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.3); }
.d1-faq-help-link .i { width: 16px; height: 16px; transition: transform .2s; }
.d1-faq-help-link:hover { color: #fff; border-color: #fff; }
.d1-faq-help-link:hover .i { transform: translateX(3px); }
@media (max-width: 1240px) and (min-width: 1081px) { .d1-faq-acts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .d1-faq-acts { grid-template-columns: 1fr; } }
.d1-faq-intro .d1-faq-act, .d1-faq-intro .d1-faq-act:hover, .d1-faq-intro .d1-faq-act b { color: #fff; }
.d1-faq-intro .d1-faq-help-link, .d1-faq-intro .d1-faq-help-link:hover { color: #fff; }
.d1-faq-acts .d1-faq-act:last-child { grid-column: 1 / -1; }
/* phones/tablets: heading, then questions, then the contact card */
@media (max-width: 1080px) {
  .d1-faq { gap: 24px; }
  .d1-faq-intro { display: contents; }
  .d1-faq-intro > .h5-t { order: 1; }
  .d1-faq-lede { order: 2; }
  .d1-faq-list { order: 3; }
  .d1-faq-help { order: 4; margin-top: 12px; }
}
.d1-faq-intro .d1-faq-help a, .d1-faq-intro .d1-faq-help a:hover { color: #fff; }

/* FAQ v11b: both columns start and end on the same line (desktop) */
.d1-faq-acts .d1-faq-act--mini { grid-column: auto !important; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
.d1-faq-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d1-faq-acts .d1-faq-act--main { grid-column: 1 / -1; }
.d1-faq-act--mini small { white-space: normal; overflow-wrap: anywhere; font-size: .74rem; line-height: 1.35; }
.d1-faq-act--mini .d1-faq-act-ico { width: 34px; height: 34px; border-radius: 10px; }
@media (min-width: 1081px) {
  .d1-faq { align-items: stretch; }
  .d1-faq-list { align-self: start; }
  .d1-faq-intro { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .d1-faq-help { margin-top: auto; gap: 12px; padding: 18px 20px; }
  .d1-faq-intro { gap: 14px; }
  .d1-faq-acts { gap: 8px; }
  .d1-faq-act--main { padding: 13px 16px !important; }
  .d1-faq-acts .d1-faq-act--mini { padding: 10px 12px; gap: 6px; }
}
@media (max-width: 420px) { .d1-faq-acts { grid-template-columns: 1fr; } .d1-faq-act--mini { flex-direction: row !important; align-items: center !important; } }
.d1-faq-lede a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Platforms v12: whole showcase (heading, tabs, slide, controls) fits on a laptop screen */
@media (min-width: 1081px) and (max-height: 1000px) {
  .pf-sec { padding-block: 40px 44px; }
  .pf { gap: 14px; }
  .pf-head { margin-bottom: 0; gap: 10px 32px; }
  .pf-head h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
  .pf-head .h5-eyebrow { margin-bottom: 6px; }
  .pf-head > p { font-size: .92rem; line-height: 1.55; }
  .pf-stats > div { min-width: 92px; padding: 8px 14px; border-radius: 14px; }
  .pf-stats dd { font-size: 1.35rem; }
  .pf-tabs button { padding: 6px 13px; font-size: .82rem; }
  .pf-slide { padding: 22px 32px; gap: 32px; }
  .pf-copy { gap: 8px; }
  .pf-cat { font-size: .68rem; padding: 4px 10px; }
  .pf-copy h4 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 0; }
  .pf-pitch { font-size: .92rem; line-height: 1.5; }
  .pf-label { margin: 2px 0 -2px; }
  .pf-apps { gap: 6px; }
  .pf-apps li { padding: 6px 10px; font-size: .84rem; gap: 8px; border-radius: 12px; }
  .pf-apps .i { width: 26px; height: 26px; padding: 5px; }
  .pf-feats { grid-template-columns: 1fr 1fr; gap: 5px 16px; margin: 0; }
  .pf-feats li { font-size: .84rem; line-height: 1.4; }
  .pf-feats .i { width: 16px; height: 16px; }
  .pf-actions { margin-top: 4px; }
  .pf-actions .hx-btn { padding-block: 10px; }
  .pf-visual { min-height: 0; padding-bottom: 22px; }
  .pf-dash-body { min-height: 236px; }
  .pf-dash-main { gap: 9px; padding: 12px 14px; }
  .pf-bars { height: 58px; }
  .pf-phone { max-width: 168px; min-width: 136px; }
  .pf-btn { width: 40px; height: 40px; }
}
@media (min-width: 1081px) and (max-height: 820px) {
  .pf-head > p { display: none; }
  .pf-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .pf-pitch { display: none; }
  .pf-sec { padding-block: 32px 36px; }
}
