/* Crafts Software: premium theme layer. Loads after site.css and restyles it (midnight + gold, Bricolage Grotesque + Inter). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --midnight: #060a14;
  --navy: #070c18;
  --navy-2: #0f1730;
  --panel: #131c36;
  --ink: #0a0f1d;
  --gold: #dcb877;
  --gold-deep: #b98f45;
  --gold-text: #7a5a1c;          /* gold as text on light surfaces (6.4:1 on white) */
  --pearl: #f4f6fa;
  --blue: #dcb877;               /* legacy "fill" colour is now gold */
  --blue-text: #7a5a1c;
  --cyan: #e9cc97;               /* legacy accent on dark is now light gold */
  --electric: #6f8dff;
  --on-dark: #eef1f8;
  --on-dark-dim: #a3b0cb;
  --line-dark: rgba(180, 196, 232, .16);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
}

body { font-family: var(--font); font-feature-settings: "cv11", "ss03"; background: #fff; }
h1, h2, h3, h4, .brand { font-family: var(--display); }
h1 { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.3rem, 6vw, 4.8rem); }
h2 { font-weight: 650; letter-spacing: -.03em; line-height: 1.06; font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-weight: 600; letter-spacing: -.015em; }
.lead { font-size: 1.18rem; line-height: 1.65; }

/* Eyebrow: quiet sentence-case line with a gold rule */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: .01em; font-size: .92rem; font-weight: 600; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .on-dark .eyebrow { color: var(--gold); }

/* Buttons */
.btn { border-radius: 999px; padding: 14px 26px; font-weight: 600; letter-spacing: -.005em; }
.btn-primary { background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; box-shadow: 0 10px 30px -12px rgba(220, 184, 119, .65), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: linear-gradient(180deg, #f0d49a, #dcb877); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(220, 184, 119, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { border-color: rgba(10, 15, 29, .22); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(10, 15, 29, .04); }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--gold); background: rgba(220, 184, 119, .08); }
:focus-visible { outline-color: var(--gold-text); }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .section.dark :focus-visible, .search-overlay :focus-visible, .on-dark :focus-visible { outline-color: var(--gold); }

/* Header: floating glass bar */
.site-header { background: rgba(6, 10, 20, .93); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(180, 196, 232, .1); }
.site-header .bar { min-height: 74px; }
.brand { font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; }
.brand-mark rect { stroke: var(--gold); }
.brand-mark path { stroke: #fff; }
.nav a { color: #b7c2dc; font-size: .93rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .btn { color: #1a1303; background: linear-gradient(180deg, #e8c987, #d2a95d); }
.nav .btn:hover { color: #1a1303; background: linear-gradient(180deg, #f0d49a, #dcb877); }
.menu-panel { background: rgba(13, 20, 40, .96); backdrop-filter: blur(16px); border-radius: 16px; }
.menu-panel .menu-all { color: var(--gold); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 78% -10%, rgba(111, 141, 255, .22), transparent 60%), radial-gradient(900px 500px at 8% 110%, rgba(220, 184, 119, .16), transparent 60%), var(--midnight); padding: clamp(64px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); }
.hero::before { background-size: 72px 72px; opacity: .35; mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%); }
.hero h1 { background: linear-gradient(180deg, #fff 30%, #c8d2ea); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 15ch; }
.hero .lead { max-width: 52ch; }
.hero .grid { grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); }
.hero-note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-dark-dim); font-size: .92rem; }
.hero-note span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: 2px; }

/* Console: illustrative product UI, the one memorable thing on the page */
.console-wrap { position: relative; padding: 26px 0 56px 28px; }
.console { position: relative; background: linear-gradient(160deg, rgba(23, 33, 64, .92), rgba(11, 17, 36, .96)); border: 1px solid rgba(180, 196, 232, .2); border-radius: 22px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 -1px 0 rgba(255, 255, 255, .06) inset; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.console-bar b { margin-left: 10px; font-weight: 600; font-size: .82rem; color: var(--on-dark-dim); letter-spacing: .01em; }
.console-body { padding: 22px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px; }
.kpi small { display: block; color: var(--on-dark-dim); font-size: .74rem; margin-bottom: 6px; }
.kpi strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }
.kpi em { display: block; font-style: normal; font-size: .72rem; color: #86e3b3; margin-top: 2px; }
.chart { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 14px 6px; }
.chart svg { width: 100%; height: 120px; overflow: visible; }
.chart .area { fill: url(#cArea); opacity: 0; animation: fadeIn 1s .9s forwards; }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .3s cubic-bezier(.4, .1, .2, 1) forwards; filter: drop-shadow(0 6px 10px rgba(220, 184, 119, .45)); }
.chart .line2 { fill: none; stroke: var(--electric); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
.chart .dot { fill: #fff; stroke: var(--gold); stroke-width: 2; opacity: 0; animation: fadeIn .4s 2s forwards; }
.rows { display: grid; gap: 8px; }
.row-i { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); font-size: .86rem; color: var(--on-dark); }
.row-i span:last-child { color: var(--on-dark-dim); font-size: .78rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: rgba(134, 227, 179, .12); color: #86e3b3; }
.pill.warn { background: rgba(220, 184, 119, .14); color: var(--gold); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px; background: rgba(20, 29, 56, .88); backdrop-filter: blur(12px); border: 1px solid rgba(220, 184, 119, .35); color: #fff; font-size: .83rem; font-weight: 600; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8); animation: bob 7s ease-in-out infinite; }
.float-chip svg { width: 22px; height: 22px; flex: none; }
.float-chip.a { right: 24px; top: -14px; }
.float-chip.b { right: -14px; bottom: 28px; animation-delay: -3.5s; }
.console-caption { text-align: left; margin: 14px 0 0 4px; font-size: .75rem; color: var(--on-dark-dim); opacity: .8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.alt { background: var(--pearl); }
.section-head { margin-bottom: 52px; max-width: 760px; }
.section.dark { background: radial-gradient(900px 480px at 85% 0%, rgba(111, 141, 255, .16), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(220, 184, 119, .12), transparent 60%), var(--midnight); position: relative; }

/* Cards */
.card { border-radius: var(--radius); border: 1px solid rgba(10, 15, 29, .08); padding: 30px; background: #fff; box-shadow: 0 1px 2px rgba(10, 15, 29, .04); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px 200px at var(--mx, 85%) -20%, rgba(220, 184, 119, .22), transparent 65%); opacity: 0; transition: opacity var(--std); pointer-events: none; }
.card:hover { border-color: rgba(185, 143, 69, .55); transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(10, 15, 29, .35); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: .98rem; line-height: 1.65; }
.card .more { color: var(--gold-text); font-weight: 650; }
.card.dark { background: linear-gradient(160deg, rgba(23, 33, 64, .8), rgba(12, 18, 38, .85)); border-color: var(--line-dark); box-shadow: none; }
.card.dark:hover { border-color: rgba(220, 184, 119, .5); }
.shot { border-radius: 12px; border-color: rgba(10, 15, 29, .08); }
.tag { background: rgba(10, 15, 29, .06); }
.tag.cat { background: rgba(185, 143, 69, .14); color: var(--gold-text); }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; min-height: 230px; }
.bento .card:nth-child(1) { grid-column: span 4; background: linear-gradient(135deg, #0c1328, #1a2447 70%, #2a2a3d); color: #fff; border-color: rgba(220, 184, 119, .25); min-height: 280px; }
.bento .card:nth-child(1) h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 18ch; }
.bento .card:nth-child(1) p { color: var(--on-dark-dim); max-width: 46ch; font-size: 1.05rem; }
.bento .card:nth-child(1) .more { color: var(--gold); }
.bento .card:nth-child(4) { grid-column: span 4; }
.bento .card:nth-child(4) { background: var(--pearl); }
.bento .card:nth-child(5), .bento .card:nth-child(6) { grid-column: span 3; }
.bento .card .more { margin-top: auto; }
.glyph { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(220, 184, 119, .28), rgba(220, 184, 119, .08)); border: 1px solid rgba(185, 143, 69, .35); color: var(--gold-deep); }
.bento .card:nth-child(1) .glyph { background: rgba(220, 184, 119, .14); color: var(--gold); }
.glyph svg { width: 22px; height: 22px; }

/* Process: a real sequence, so numbered */
.steps { gap: 0; counter-reset: s; border-top: 1px solid rgba(10, 15, 29, .12); }
.steps li { border-top: 0; padding: 30px 26px 8px 0; position: relative; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; background: linear-gradient(180deg, var(--gold-deep), rgba(185, 143, 69, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps strong { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.steps span { font-size: .98rem; line-height: 1.6; }

/* UAE strip: pills on dark */
.dark .grid-4 .card.dark { padding: 22px 24px; }
.dark .grid-4 .card.dark h3 { font-size: 1rem; font-weight: 600; }

/* Industries as pills */
.filters { gap: 10px; }
.filters a { border-radius: 999px; padding: 12px 22px; font-size: .98rem; background: #fff; border-color: rgba(10, 15, 29, .14); transition: all var(--std) var(--ease); }
.filters a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.filters a[aria-current="true"], .chip[aria-pressed="true"], .pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); }

/* Final CTA */
.section.dark .section-head h2 { color: #fff; }

/* Footer */
.site-footer { background: #04070f; border-top: 1px solid rgba(220, 184, 119, .2); }
.site-footer .foot-title { text-transform: none; letter-spacing: -.01em; font-family: var(--display); font-size: 1.02rem; color: #fff; }
.site-footer a:hover { color: var(--gold); }
.foot-sub-row button { background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; border-radius: 999px; padding: 10px 18px; }
.foot-sub-row input { border-radius: 999px; padding: 10px 16px; }

/* Forms and misc that used blue */
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--gold-deep); border-color: var(--gold-deep); }
.choice input:checked + span, .method input:checked + span { border-color: var(--gold-deep); background: rgba(220, 184, 119, .16); }
.list-check li::before { border-color: var(--gold-deep); }
.stepper i.on { background: var(--gold-deep); }
.metric { border-top-color: var(--gold-deep); }
.metric strong { font-family: var(--display); font-size: 2.2rem; }
.prose a, .article-body a { color: var(--gold-text); }
.toc a:hover, .toc a.on { border-left-color: var(--gold-deep); color: var(--gold-text); }
.contact-split { border-radius: 26px; }
.page-hero-glow { display: none; }
.search-results [role="option"][aria-selected="true"] a, .search-results [role="option"] a:hover { background: rgba(220, 184, 119, .16); }
.sr-title mark, .search-group, .ch-label { color: var(--gold); }

@media (max-width: 1040px) { .nav { background: #070c18; } }
@media (max-width: 920px) {
  .hero .grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .console-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card:nth-child(n) { grid-column: span 2; }
  .console-wrap { padding: 20px 0 32px 0; }
  .float-chip.a { right: 24px; top: -14px; }
  .float-chip.b { right: 8px; }
  .steps { border-top: 0; }
  .steps li { border-top: 1px solid rgba(10, 15, 29, .12); }
}
@media (max-width: 560px) {
  .bento .card:nth-child(n) { grid-column: span 2; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chart .line { stroke-dashoffset: 0; animation: none; }
  .chart .area, .chart .dot { opacity: 1; animation: none; }
  .float-chip { animation: none; }
}

/* ---------- Motion: staggered reveal, hero entrance, slow background drift ---------- */
.reveal-hide { transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-hide.in { transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .wrap.grid > div:first-child > * { animation: rise .8s var(--ease) both; }
.hero .wrap.grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero .wrap.grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero .wrap.grid > div:first-child > :nth-child(3) { animation-delay: .28s; }
.hero .wrap.grid > div:first-child > :nth-child(4) { animation-delay: .4s; }
.hero .wrap.grid > div:first-child > :nth-child(5) { animation-delay: .52s; }
.console-wrap { animation: rise 1s .25s var(--ease) both; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 184, 119, .16), transparent 65%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; will-change: transform; }
@keyframes drift { to { transform: translate3d(-140px, 120px, 0) scale(1.15); } }
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- Cards for solutions and projects ---------- */
.shot { position: relative; margin: -10px -10px 20px; border-radius: 14px; background: linear-gradient(135deg, #0c1328, #1d2a52 60%, #3a3326); border: 0; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, .28)); pointer-events: none; }
.shot img { transition: transform .8s var(--ease); }
.card:hover .shot img { transform: scale(1.06); }
.card h3 { transition: color var(--std); }
.card:hover h3 { color: var(--gold-text); }
.card.dark:hover h3 { color: var(--gold); }

/* ---------- Forms ---------- */
.field input, .field select, .field textarea { border-radius: 14px; border: 1px solid rgba(10, 15, 29, .16); background: #fff; padding: 14px 16px; transition: border-color var(--fast), box-shadow var(--fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(220, 184, 119, .28); }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.contact-form-card .btn-primary, .form .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
@media (min-width: 640px) { .contact-form-card .btn-primary, .form .btn-primary { width: auto; } }

/* ---------- Mobile: app-like ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-header .bar { min-height: 60px; }
  .nav { top: 60px; padding: 12px 16px 24px; max-height: calc(100dvh - 60px); animation: sheet .28s var(--ease); }
  .nav a { padding: 16px 14px; font-size: 1.08rem; border-radius: 14px; font-family: var(--display); font-weight: 600; color: #fff; }
  .menu-panel a { font-family: var(--font); font-weight: 450; font-size: .98rem; color: #b7c2dc; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  h2 { font-size: 1.85rem; }
  .lead { font-size: 1.04rem; }
  .btn { padding: 15px 24px; }
  .hero { padding: 44px 0 36px; }
  .hero .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero-note { margin-top: 24px; font-size: .86rem; }
  .sticky-cta { display: none !important; }
  body.has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Swipeable rails (home page sections opt in with .swipe) */
  .swipe { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: center; min-width: 0; }
  .swipe.chips > * { flex-basis: 70%; }

  /* Bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; background: rgba(8, 13, 28, .92); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(180, 196, 232, .18); border-radius: 22px; padding: 6px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .65); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 16px; text-decoration: none; color: #9fb0cc; font-size: .68rem; font-weight: 600; transition: background var(--fast), color var(--fast); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--gold); background: rgba(220, 184, 119, .12); }
  .tabbar a.go { color: #1a1303; background: linear-gradient(180deg, #e8c987, #d2a95d); box-shadow: 0 8px 22px -8px rgba(220, 184, 119, .8); }
  .foot-grid { gap: 28px 18px; }
  .site-footer { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .wrap.grid > div:first-child > *, .console-wrap, .hero::after, .nav { animation: none !important; }
  .reveal-hide { transform: none; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1040px) {
  .nav { background: #070c18; }
  .menu-panel { display: none !important; }   /* the parent link opens the full section page; keeps the sheet short */
  .has-menu > a { display: flex; }
}

/* ================= Polish pass ================= */
::selection { background: rgba(220, 184, 119, .45); color: #0a0f1d; }
html { scrollbar-color: #b98f45 #0a0f1d; scrollbar-width: thin; }

/* Smooth page-to-page fade (browsers that support cross-document view transitions) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Reading progress line under the header (scroll-driven; ignored where unsupported) */
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-deep), #f3dcaa); transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Primary button: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }

/* Inner-page hero */
.hero .breadcrumb { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font-size: .8rem; margin-bottom: 22px; }
.hero .breadcrumb a:hover { color: var(--gold); }
.hero h1[style] { max-width: 22ch !important; }
.hero + .section, .hero + section { position: relative; }
.hero + .section::before, .hero + section::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(220, 184, 119, .6), transparent); }

/* Listing controls: filters become a swipeable row on phones */
.filters a { font-weight: 500; }
.filters a[aria-current="true"] { box-shadow: 0 8px 20px -10px rgba(10, 15, 29, .6); }
@media (max-width: 760px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a, .filters .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .filters.cloud { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }  /* home industries stay a wrapped cloud */
}

/* Product-style frames and device mockups */
.frame { border-radius: 18px; border: 1px solid rgba(10, 15, 29, .1); box-shadow: 0 50px 90px -40px rgba(10, 15, 29, .55), 0 0 0 6px rgba(220, 184, 119, .08); }
.frame-bar { background: #eef1f7; }
.frame-bar i:nth-child(1) { background: #f2a6a0; } .frame-bar i:nth-child(2) { background: #f0d28a; } .frame-bar i:nth-child(3) { background: #9ad8b2; }
.device { border-color: #0a0f1d; box-shadow: 0 40px 70px -30px rgba(10, 15, 29, .7); }

/* Metrics, FAQ, prose */
.metric { border-top: 0; padding: 18px 20px; border-radius: 16px; background: linear-gradient(160deg, #fff, var(--pearl)); border: 1px solid rgba(10, 15, 29, .08); }
.metric strong { background: linear-gradient(180deg, var(--gold-deep), #8a6a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq details { border: 1px solid rgba(10, 15, 29, .1); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; background: #fff; transition: box-shadow var(--std), border-color var(--std); }
.faq details[open] { border-color: rgba(185, 143, 69, .6); box-shadow: 0 20px 40px -28px rgba(10, 15, 29, .4); }
.faq summary { font-family: var(--display); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-deep); transition: transform var(--std); }
.faq details[open] summary::after { transform: rotate(45deg); }
.prose blockquote, .article-body blockquote { border-left-color: var(--gold-deep); background: var(--pearl); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.toc, .side-related { border-radius: 16px; }
.side-cta { background: linear-gradient(160deg, #0c1328, #1a2447); border: 1px solid rgba(220, 184, 119, .3); border-radius: 18px; }
.post-figure img, .article-body img { border-radius: 16px; }

/* Lists with ticks */
.list-check li::before { width: 14px; height: 8px; }

/* Footer */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.site-footer .brand { font-size: 1.4rem; }
.foot-bottom { font-size: .84rem; }
.search-btn, .menu-btn { border-radius: 12px; }
.search-box { border-radius: 20px; }

/* Larger screens: more air */
@media (min-width: 1280px) {
  :root { --max: 1240px; }
  .section { padding: 136px 0; }
}
/* Tablet */
@media (min-width: 761px) and (max-width: 1040px) {
  .hero .grid { gap: 40px; }
  .console-wrap { max-width: 620px; margin-inline: auto; }
  .bento { gap: 14px; }
}
/* Small phones */
@media (max-width: 380px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .swipe { margin-inline: -12px; padding-inline: 12px; }
  .tabbar a { font-size: .62rem; }
  .btn { padding-inline: 18px; }
}
/* Print: plain */
@media print { .site-header, .tabbar, .site-footer, .search-overlay { display: none !important; } }

/* ================= Motion pass 2 (all CSS-driven, transform/opacity only) ================= */
.marquee { overflow: hidden; background: #04070f; border-block: 1px solid rgba(220, 184, 119, .18); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: scrollx 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { flex: none; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); color: #c9d3ea; font-family: var(--display); font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; }
.marquee span:nth-child(3n) { border-color: rgba(220, 184, 119, .4); color: var(--gold); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Final call-to-action band: rotating gold edge + soft orbs */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.section.dark:last-of-type .wrap { position: relative; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: linear-gradient(160deg, rgba(20, 29, 58, .85), rgba(8, 13, 28, .9)); isolation: isolate; }
.section.dark:last-of-type .wrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), transparent 0 55%, var(--gold) 75%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; z-index: -1; }
@keyframes spin { to { --ang: 360deg; } }

/* Spotlight on cards (position set by site.js on fine pointers) */
.card::after { background: radial-gradient(360px 220px at var(--mx, 85%) var(--my, -20%), rgba(220, 184, 119, .26), transparent 65%); }

/* Console parallax and header hide */
.console { transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.site-header { transition: transform .35s var(--ease), background .3s; }
.site-header.hide { transform: translateY(-100%); }
.nav.open ~ *, body.menu-open .site-header { transform: none; }

/* Image placeholders shimmer briefly while loading */
.shot { background-size: 200% 100%; animation: shimmer 1.8s ease-in-out 3; }
@keyframes shimmer { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

/* Cheaper rendering for sections below the first screen */

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .section.dark:last-of-type .wrap::before, .shot { animation: none; }
  .console { transform: none !important; }
}
@media (max-width: 760px) { .marquee { padding: 14px 0; } .marquee span { font-size: .9rem; padding: 8px 16px; } .console { transform: none !important; } }

/* ================= Artwork (original SVG, self-hosted) ================= */
.hero { background-image: url("/assets/img/skyline.svg"), radial-gradient(1200px 600px at 78% -10%, rgba(111, 141, 255, .22), transparent 60%), radial-gradient(900px 500px at 8% 110%, rgba(220, 184, 119, .16), transparent 60%); background-repeat: no-repeat; background-position: center bottom, 0 0, 0 0; background-size: max(100%, 1300px) auto, auto, auto; background-color: var(--midnight); }
.section.dark:last-of-type { background-image: url("/assets/img/skyline.svg"), radial-gradient(900px 480px at 85% 0%, rgba(111, 141, 255, .16), transparent 60%); background-repeat: no-repeat; background-position: center bottom, 0 0; background-size: max(100%, 1300px) auto, auto; padding-bottom: clamp(120px, 14vw, 220px); }

/* Industry tiles */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.ind { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 20px; text-decoration: none; background: #fff; border: 1px solid rgba(10, 15, 29, .09); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; position: relative; overflow: hidden; transition: transform var(--std) var(--ease), border-color var(--std), box-shadow var(--std), background var(--std), color var(--std); }
.ind svg { width: 34px; height: 34px; color: var(--gold-deep); transition: transform .5s var(--ease), color var(--std); }
.ind::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 184, 119, .35), transparent 70%); transition: transform .6s var(--ease); }
.ind:hover { transform: translateY(-6px); background: linear-gradient(160deg, #0c1328, #1a2447); color: #fff; border-color: rgba(220, 184, 119, .45); box-shadow: 0 30px 50px -28px rgba(10, 15, 29, .7); }
.ind:hover svg { color: var(--gold); transform: scale(1.12) rotate(-4deg); }
.ind:hover::after { transform: scale(2.2); }
@media (max-width: 760px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } .ind { padding: 18px 16px; } }
.hero { padding-bottom: clamp(120px, 15vw, 210px); }
.hero[style] { padding-bottom: clamp(100px, 12vw, 180px) !important; }

/* ---- Tighter vertical rhythm (overrides earlier, larger values) ---- */
.section { padding: clamp(44px, 5.5vw, 76px) 0; }
.section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.section.dark:last-of-type { padding-bottom: clamp(96px, 11vw, 160px); }
.hero { padding-bottom: clamp(104px, 12vw, 170px); }
.hero[style] { padding-bottom: clamp(96px, 10vw, 150px) !important; }
.marquee { padding: 14px 0; }
.steps li { padding-top: 22px; }
@media (min-width: 1280px) { .section { padding: 88px 0; } }
@media (max-width: 760px) {
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 20px; }
  .hero { padding: 36px 0 96px; }
  .section.dark:last-of-type { padding-bottom: 96px; }
}
.section.alt + .section.alt { padding-top: 0; }

/* Two-column content blocks on detail pages: proportionate headings, soft panels */
.section > .wrap.grid-2 { gap: 22px; align-items: stretch; }
.section > .wrap.grid-2 > div.reveal:not(.card) { background: linear-gradient(160deg, #fff, var(--pearl)); border: 1px solid rgba(10, 15, 29, .08); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.section > .wrap.grid-2 > div.reveal:not(.card) > h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 16px; }
.section > .wrap.grid-2 > div.reveal:not(.card) > .lead { font-size: 1.08rem; color: var(--slate-700); }
.section > .wrap.grid-2 > div.reveal:not(.card) .list-check li { margin-bottom: 12px; font-size: 1.02rem; }

/* Long-form body on service and industry pages */
.longform { max-width: 800px; margin-inline: auto; background: #fff; border: 1px solid rgba(10, 15, 29, .08); border-radius: 24px; padding: clamp(24px, 4vw, 56px); box-shadow: 0 30px 60px -45px rgba(10, 15, 29, .4); }
.longform h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2rem 0 .8rem; }
.longform > h2:first-child { margin-top: 0; }
.longform h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; font-family: var(--display); }
.longform ul { padding-left: 1.2rem; }
.longform li { margin-bottom: .55rem; }
.longform a { font-weight: 600; text-underline-offset: 3px; }

/* ================= Gap fixes: WhatsApp button, new home sections, page intros ================= */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 44; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #1fb455; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 16px 36px -10px rgba(31, 180, 85, .7); transition: transform var(--std) var(--ease), box-shadow var(--std); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -10px rgba(31, 180, 85, .85); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1fb455; animation: ping 3s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 760px) { .wa-float { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; display: none; } }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid rgba(10, 15, 29, .08); transition: transform var(--std) var(--ease), box-shadow var(--std), border-color var(--std); }
.why:hover { transform: translateY(-4px); border-color: rgba(185, 143, 69, .5); box-shadow: 0 28px 50px -34px rgba(10, 15, 29, .5); }
.why .glyph { margin-bottom: 18px; }
.why h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why p { margin: 0; color: var(--slate-500); font-size: .96rem; line-height: 1.65; }
@media (max-width: 920px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.ads-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ads-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ads-points li { padding: 16px 18px 16px 52px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); color: #dfe6f5; position: relative; }
.ads-points li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
@media (max-width: 920px) { .ads-band { grid-template-columns: 1fr; } }

.faq-wrap { max-width: 860px; }
.page-intro { max-width: 760px; margin: 0 auto 36px; text-align: left; }
.page-intro p { color: var(--slate-700); font-size: 1.06rem; line-height: 1.75; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps-3 li { counter-increment: st; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid rgba(10, 15, 29, .08); }
.steps-3 li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; font-weight: 700; margin-bottom: 12px; }
.steps-3 strong { display: block; font-family: var(--display); margin-bottom: 4px; }
.steps-3 span { color: var(--slate-500); font-size: .95rem; }
@media (max-width: 760px) { .steps-3 { grid-template-columns: 1fr; } }

/* Social icons and share links */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); color: #c9d3ea; background: rgba(255, 255, 255, .05); transition: transform var(--std) var(--ease), background var(--std), color var(--std), border-color var(--std); }
.social-row a:hover { transform: translateY(-3px); background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; border-color: transparent; }
.social-row svg { width: 19px; height: 19px; }
.social-row.big a { width: 54px; height: 54px; background: #fff; color: var(--ink); border-color: rgba(10, 15, 29, .12); }
.social-row.big svg { width: 23px; height: 23px; }
.social-row.big a:hover { background: linear-gradient(160deg, #0c1328, #1a2447); color: var(--gold); border-color: transparent; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 28px 0; padding-top: 18px; border-top: 1px solid rgba(10, 15, 29, .1); font-size: .92rem; color: var(--slate-500); }
.share-row a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(10, 15, 29, .14); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; transition: all var(--fast); }
.share-row a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-aside .ch-social a { text-decoration: none; }

/* Click-to-play video */
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: radial-gradient(800px 400px at 70% 0%, rgba(111, 141, 255, .3), transparent 60%), linear-gradient(135deg, #0a1020, #1a2447 60%, #3a3326); border: 1px solid rgba(220, 184, 119, .35); box-shadow: 0 40px 80px -40px rgba(10, 15, 29, .7); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; color: #fff; cursor: pointer; font: inherit; text-align: center; padding: 20px; }
.yt-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; box-shadow: 0 18px 40px -10px rgba(220, 184, 119, .8); transition: transform var(--std) var(--ease); }
.yt-icon svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-play:hover .yt-icon { transform: scale(1.1); }
.yt-label { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-top: 10px; }
.yt-sub { color: var(--on-dark-dim); font-size: .92rem; max-width: 40ch; }

/* Phones: footer link columns move into the menu (see .nav-more in the layout); desktop footer is unchanged */
.nav-more { display: none; }
@media (max-width: 760px) {
  .foot-grid > div:not(:first-child) { display: none; }
  .foot-grid { margin-bottom: 24px; }
  .site-footer { padding-bottom: 8px; }
  .nav-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(180, 196, 232, .16); }
  .nav-more > div { min-width: 0; }
  .nav-more-title { margin: 0 0 4px; padding: 0 4px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
  .nav .nav-more a { display: block; padding: 8px 4px; font-size: .92rem; font-family: var(--font); font-weight: 450; color: #b7c2dc; border-radius: 8px; white-space: normal; }
  .nav .nav-more a:hover { color: #fff; }
}
@media (max-width: 760px) { .nav { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---- Software marketplace: category landing, search row ---- */
.sw-search-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.sw-search { display: flex; gap: 10px; flex: 1 1 420px; max-width: 640px; }
.sw-search input { flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid rgba(10, 15, 29, .18); border-radius: 999px; font: inherit; background: #fff; }
.sw-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sw-count { margin: 0; color: var(--slate-500); font-size: .95rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid rgba(10, 15, 29, .1); text-decoration: none; color: inherit; transition: transform var(--std) var(--ease), box-shadow var(--std), border-color var(--std); }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 22px 44px -24px rgba(10, 15, 29, .45); }
.cat-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #1a1303; background: linear-gradient(180deg, #e8c987, #d2a95d); margin-bottom: 10px; }
.cat-card h3 { margin: 0; font-size: 1.12rem; }
.cat-card p { margin: 0; color: var(--slate-500); font-size: .93rem; flex: 1; }
.cat-card .more { margin-top: 12px; font-weight: 600; font-size: .9rem; color: var(--gold-text); }

/* ---- Software detail: marketplace-style layout (main column + sticky info box) ---- */
.sw-anchors { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 28px; padding: 6px; border-radius: 999px; background: rgba(10, 15, 29, .05); scrollbar-width: none; position: sticky; top: 70px; z-index: 20; backdrop-filter: blur(10px); }
.sw-anchors::-webkit-scrollbar { display: none; }
.sw-anchors a { flex: none; padding: 9px 18px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--slate-700); text-decoration: none; }
.sw-anchors a:hover { background: var(--ink); color: #fff; }
.sw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "prev side" "main side"; gap: 32px; align-items: start; }
.sw-prev { grid-area: prev; min-width: 0; }
.sw-main { grid-area: main; min-width: 0; }
.sw-side { grid-area: side; }
.sw-main > * + * { margin-top: 36px; }
.sw-block { scroll-margin-top: 130px; }
.sw-block h2 { font-size: 1.5rem; margin-bottom: 14px; }
.sw-preview { margin: 16px 0 0; }
.sw-cols { columns: 2; column-gap: 32px; }
.sw-cols li { break-inside: avoid; }
.sw-side { position: sticky; top: 140px; }
.sw-box { display: grid; gap: 10px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid rgba(10, 15, 29, .12); box-shadow: 0 24px 50px -30px rgba(10, 15, 29, .5); }
.sw-box .btn { width: 100%; justify-content: center; }
.sw-eyebrow { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.sw-note { margin: 4px 0 6px; color: var(--slate-500); font-size: .88rem; }
.sw-meta { margin: 6px 0 0; border-top: 1px solid rgba(10, 15, 29, .1); }
.sw-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(10, 15, 29, .07); font-size: .92rem; }
.sw-meta dt { color: var(--slate-500); flex: none; }
.sw-meta dd { margin: 0; text-align: right; font-weight: 600; }
.sw-meta a { color: var(--gold-text); text-decoration: none; }
.sw-tags { margin: 8px 0 0; }
.sw-tags .tag { text-decoration: none; }
.sw-tags .tag:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
  .sw-layout { grid-template-columns: 1fr; grid-template-areas: "prev" "side" "main"; gap: 22px; }
  .sw-side { position: static; }
  .sw-anchors { top: 60px; }
}
@media (max-width: 760px) {
  .sw-cols { columns: 1; }
  .sw-search { flex-wrap: wrap; }
  .sw-search .btn { flex: 1 0 100%; justify-content: center; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 18px; border-radius: 16px; }
  .cat-card p { display: none; }
  .sw-box { padding: 18px; border-radius: 18px; }
}
@media (max-width: 380px) { .cat-grid { grid-template-columns: 1fr; } }
/* Phones: no footer block at all (its links live in the menu); the floating WhatsApp button is outside the footer and stays */
@media (max-width: 760px) { .site-footer { display: none; } }

/* ---- Mobile menu: clean list rows, chevrons, a proper primary button and tidy explore cards ---- */
.nav-contact { display: none; }
@media (max-width: 1040px) {
  .site-header .nav { padding: 6px 18px calc(110px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #080d1a, #05080f); border-bottom: 1px solid rgba(220, 184, 119, .25); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); gap: 0; }
  .site-header .nav > a:not(.btn), .site-header .nav .has-menu > a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 6px; margin: 0; border-radius: 0; border-bottom: 1px solid rgba(180, 196, 232, .1); font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: #fff; background: none; }
  .site-header .nav > a:not(.btn)::after, .site-header .nav .has-menu > a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid rgba(220, 184, 119, .7); border-right: 2px solid rgba(220, 184, 119, .7); transform: rotate(45deg); margin-right: 4px; flex: none; }
  .site-header .nav .has-menu > a span { display: none; }
  .site-header .nav > a[aria-current="page"], .site-header .nav .has-menu > a[aria-current="page"] { color: var(--gold); background: none; box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .site-header .nav > a:not(.btn):hover, .site-header .nav .has-menu > a:hover { background: rgba(255, 255, 255, .04); }
  .site-header .nav .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 20px 0 6px; padding: 0 20px; border-radius: 16px; font-size: 1.05rem; font-weight: 700; line-height: 1; box-shadow: 0 14px 30px -14px rgba(220, 184, 119, .7); }
}
@media (max-width: 760px) {
  .site-header .nav .nav-more { margin-top: 22px; padding: 18px 16px; border: 1px solid rgba(180, 196, 232, .12); border-radius: 20px; background: rgba(255, 255, 255, .035); gap: 20px 12px; }
  .site-header .nav .nav-more a { padding: 7px 0; min-height: 0; border: 0; font-size: .93rem; line-height: 1.3; color: #c4cee4; }
  .site-header .nav .nav-more a::after { display: none; }
  .nav-more-title { margin-bottom: 6px; padding: 0; }
  .nav-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 18px 0 0; font-size: .9rem; }
  .site-header .nav .nav-contact a { min-height: 0; padding: 4px 0; border: 0; color: var(--gold); font-family: var(--font); font-weight: 600; font-size: .9rem; }
  .site-header .nav .nav-contact a::after { display: none; }
}

/* ---- Full-screen landscape video and the in-page PDF preview ---- */
html.yt-open { overflow: hidden; }
.yt-full { position: fixed; inset: 0; z-index: 400; background: #000; display: grid; place-items: center; }
.yt-stage { position: relative; width: min(100vw, 177.78vh); height: min(56.25vw, 100vh); }
.yt-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-close { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .6); color: #fff; font: 600 .9rem var(--font); cursor: pointer; }
/* A phone held upright: turn the player sideways so the video is always horizontal */
@media (orientation: portrait) and (max-width: 900px) {
  .yt-full { display: block; overflow: hidden; }
  .yt-stage { position: fixed; top: 0; left: 100%; width: 100vh; height: 100vw; transform-origin: top left; transform: rotate(90deg); }
}
.pdf-view { position: fixed; inset: 0; z-index: 400; background: #0b1220; display: flex; flex-direction: column; }
.pdf-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: #fff; background: #05080f; border-bottom: 1px solid rgba(180, 196, 232, .18); }
.pdf-bar span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-bar a { color: var(--gold); font-size: .9rem; text-decoration: none; }
.pdf-bar button { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 600 .9rem var(--font); cursor: pointer; }
.pdf-view iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* Software page polish: calmer hero, readable description */
.hero-compact h1 { font-size: clamp(1.75rem, 5.2vw, 3rem); line-height: 1.12; }
.hero-compact .breadcrumb { max-width: 100%; }
.hero-compact .breadcrumb span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sw-desc { line-height: 1.75; color: var(--slate-700); }
.sw-desc p { margin: 0 0 1em; }
.sw-more { margin-top: 10px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(10, 15, 29, .2); background: #fff; font: 600 .92rem var(--font); cursor: pointer; }
@media (max-width: 760px) {
  .hero-compact { padding-top: 24px; }
  .hero-compact .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; }
  .hero-compact .breadcrumb { font-size: .8rem; padding: 6px 12px; flex-wrap: nowrap; overflow: hidden; }
  .sw-desc:not(.open) { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .sw-desc { font-size: 1rem; }
  .sw-anchors { margin-bottom: 18px; }
}
@media (min-width: 761px) { .sw-more { display: none; } }
@media (max-width: 760px) { .hero-compact .breadcrumb { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 14px; } .hero-compact .breadcrumb span { display: inline; overflow: visible; } }

/* ---- Home: confident headline, credibility strip, category chips ---- */
.hero h1 .h1-accent { background: linear-gradient(100deg, #f1d9a3 0%, #dcb877 45%, #c99a4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof { position: relative; z-index: 3; margin-top: 34px; padding: 0 0 4px; }
.proof-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 22px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(10, 15, 29, .08); box-shadow: 0 30px 60px -34px rgba(10, 15, 29, .55); backdrop-filter: blur(14px); overflow: hidden; }
.proof-grid li { padding: 22px 22px 20px; border-right: 1px solid rgba(10, 15, 29, .07); display: grid; gap: 4px; }
.proof-grid li:last-child { border-right: 0; }
.proof-grid strong { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.proof-grid span { color: var(--slate-500); font-size: .86rem; line-height: 1.35; }
@media (max-width: 900px) {
  .proof { margin-top: 22px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .proof-grid li { padding: 16px 16px 14px; border-bottom: 1px solid rgba(10, 15, 29, .07); }
  .proof-grid li:nth-child(2n) { border-right: 0; }
  .proof-grid li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cat-chips a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(10, 15, 29, .12); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.cat-chips a small { padding: 1px 8px; border-radius: 99px; background: rgba(185, 143, 69, .16); color: var(--gold-text); font-size: .74rem; font-weight: 700; }
.cat-chips a:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 14px 28px -18px rgba(10, 15, 29, .45); }
@media (max-width: 760px) { .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding: 4px 12px 10px; scrollbar-width: none; } .cat-chips::-webkit-scrollbar { display: none; } .cat-chips a { flex: none; } }
/* Phones: a compact hero (headline, buttons, a slim dashboard preview) so the page feels like an app, not a long poster */
@media (max-width: 760px) {
  .hero .console .chart, .hero .console .rows, .hero .float-chip, .hero .console-caption { display: none; }
  .hero .console-body { padding-bottom: 14px; }
  .hero .hero-note { display: none; }
}

/* ================= Software page v2: preview and screenshots first, then title, then tabs ================= */
.sw-page { padding: clamp(18px, 3vw, 34px) 0 clamp(36px, 6vw, 72px); background: linear-gradient(180deg, #f4f5f9 0, #fff 340px); }
.sw-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin: 0 0 18px; font-size: .84rem; color: var(--slate-500); }
.sw-crumb a { color: var(--slate-700); text-decoration: none; font-weight: 550; }
.sw-crumb a:hover { color: var(--gold-text); }
.sw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "prev side" "head side" "main side"; gap: 22px 38px; align-items: start; }
.sw-prev { grid-area: prev; min-width: 0; }
.sw-head { grid-area: head; min-width: 0; }
.sw-side { grid-area: side; position: sticky; top: 88px; }
.sw-main { grid-area: main; min-width: 0; }
.sw-stage { position: relative; }
.sw-stage .frame { margin: 0; border-radius: 22px; box-shadow: 0 40px 80px -42px rgba(10, 15, 29, .6); background: #0b1020; }
.sw-stage .frame img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; background: #0b1020; }
.sw-noimg { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 30px; color: #fff; font-family: var(--display); font-size: 1.6rem; text-align: center; background: linear-gradient(135deg, #0e1730, #1d2a52); }
.sw-live { position: absolute; right: 18px; bottom: 18px; padding: 11px 20px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .7); }
.sw-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 3px 3px 8px; scrollbar-width: thin; }
.sw-thumb { flex: none; width: 118px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #0b1020; cursor: pointer; opacity: .72; transition: opacity .15s, border-color .15s, transform .15s; }
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-thumb:hover { opacity: 1; transform: translateY(-2px); }
.sw-thumb.is-on { opacity: 1; border-color: var(--gold); box-shadow: 0 10px 22px -12px rgba(185, 143, 69, .9); }
.sw-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sw-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; font-size: .84rem; color: var(--slate-500); }
.sw-kicker a { padding: 4px 12px; border-radius: 99px; background: var(--gold-soft, rgba(185, 143, 69, .15)); color: var(--gold-text); font-weight: 650; text-decoration: none; }
.sw-kicker span { padding-left: 12px; border-left: 1px solid rgba(10, 15, 29, .15); }
.sw-head h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; color: var(--ink); max-width: 28ch; }
.sw-lead { margin: 12px 0 0; max-width: 70ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; color: var(--slate-700); }
.sw-head .sw-tags { margin: 14px 0 0; }
.sw-tabbar { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0 24px; border-bottom: 1px solid rgba(10, 15, 29, .12); scrollbar-width: none; position: sticky; top: 60px; z-index: 15; background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(10px); }
.sw-tabbar::-webkit-scrollbar { display: none; }
.sw-tabbar button { flex: none; padding: 14px 20px; border: 0; background: none; font: 650 .96rem var(--font); color: var(--slate-500); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sw-tabbar button:hover { color: var(--ink); }
.sw-tabbar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.sw-tabbar button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 8px; }
.sw-panel > h2 { margin: 30px 0 14px; font-size: 1.35rem; letter-spacing: -.01em; }
.sw-panel > h2:first-child { margin-top: 0; }
.tabs-on .sw-panel[hidden] { display: none; }
.tabs-off .sw-panel { margin-bottom: 36px; }
.sw-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sw-feats li { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: #fff; border: 1px solid rgba(10, 15, 29, .09); font-size: .95rem; line-height: 1.45; }
.sw-feats li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; font-size: .75rem; font-weight: 800; margin-top: 1px; }
.sw-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sw-mod { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(10, 15, 29, .09); }
.sw-mod h3 { margin: 0 0 6px; font-size: 1.02rem; }
.sw-mod p { margin: 0; color: var(--slate-500); font-size: .92rem; line-height: 1.5; }
.sw-muted { color: var(--slate-500); }
.sw-panel .yt-lite { border-radius: 20px; }
@media (max-width: 900px) {
  .sw-layout { grid-template-columns: 1fr; grid-template-areas: "prev" "head" "side" "main"; gap: 20px; }
  .sw-side { position: static; }
  .sw-head h1 { max-width: none; }
  .sw-tabbar { top: 56px; margin-inline: -12px; padding-inline: 12px; }
}
@media (max-width: 760px) {
  .sw-stage .frame { border-radius: 16px; }
  .sw-live { right: 10px; bottom: 10px; padding: 9px 14px; font-size: .85rem; }
  .sw-thumb { width: 96px; }
  .sw-feats { grid-template-columns: 1fr; }
  .sw-tabbar button { padding: 13px 16px; font-size: .92rem; }
}

/* ================= Software marketplace ================= */
.mk-top { padding: clamp(20px, 3vw, 36px) 0 clamp(18px, 2.4vw, 28px); background: radial-gradient(900px 340px at 85% -20%, rgba(210, 169, 93, .22), transparent 70%), linear-gradient(180deg, #0a1020, #111a30); color: #fff; }
.mk-top .sw-crumb, .mk-top .sw-crumb a { color: #aab6d0; }
.mk-top .sw-crumb a:hover { color: var(--gold); }
.mk-intro { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.mk-intro h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.mk-intro p { margin: 12px 0 0; max-width: 62ch; color: #b9c4dc; font-size: 1.05rem; line-height: 1.6; }
.mk-stat { margin: 0 !important; text-align: right; color: #aab6d0 !important; font-size: .95rem !important; line-height: 1.5 !important; }
.mk-stat strong { color: var(--gold); font-family: var(--display); font-size: 1.5rem; }
.mk-search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: #fff; color: var(--slate-500); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .8); max-width: 760px; }
.mk-search svg { flex: none; }
.mk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1rem var(--font); color: var(--ink); padding: 10px 4px; }
.mk-search .btn { padding: 12px 24px; }
.mk-chips { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #d6deee; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.mk-chips a small { padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: .72rem; }
.mk-chips a:hover { border-color: var(--gold); color: #fff; }
.mk-chips a.is-on { background: linear-gradient(180deg, #e8c987, #d2a95d); border-color: transparent; color: #1a1303; }
.mk-chips a.is-on small { background: rgba(26, 19, 3, .15); }
.mk-feature { padding: clamp(24px, 3.4vw, 44px) 0 0; }
.mk-feature-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.mk-feature-side { display: grid; gap: 22px; }
.mk-cats { padding: clamp(28px, 4vw, 52px) 0 0; }
.mk-all { padding: clamp(28px, 4vw, 52px) 0 clamp(44px, 6vw, 80px); }
.mk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.mk-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.mk-count { margin: 0; color: var(--slate-500); font-size: .92rem; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.mk-empty { padding: 28px; border-radius: 16px; background: var(--slate-100); text-align: center; color: var(--slate-700); }
/* the card */
.sw-card { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid rgba(10, 15, 29, .1); overflow: hidden; box-shadow: 0 1px 2px rgba(10, 15, 29, .05); transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.sw-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 28px 50px -30px rgba(10, 15, 29, .55); }
.sw-card[hidden] { display: none; }
.sw-card-shot { position: relative; display: block; aspect-ratio: 16 / 10; background: #0b1020; overflow: hidden; }
.sw-card-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.sw-card:hover .sw-card-shot img { transform: scale(1.04); }
.sw-card-noimg { position: absolute; inset: 0; display: grid; place-items: center; font: 700 3rem var(--display); color: var(--gold); background: linear-gradient(135deg, #0e1730, #1d2a52); }
.sw-badge { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 99px; font: 700 .72rem var(--font); font-style: normal; letter-spacing: .04em; background: linear-gradient(180deg, #e8c987, #d2a95d); color: #1a1303; }
.sw-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px; flex: 1; }
.sw-card-cat { margin: 0; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.sw-card-cat a { color: var(--gold-text); text-decoration: none; }
.sw-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; }
.sw-card h3 a { color: var(--ink); text-decoration: none; }
.sw-card h3 a:hover { color: var(--gold-text); }
.sw-card-text { margin: 0; color: var(--slate-500); font-size: .93rem; line-height: 1.55; }
.sw-card-tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.sw-card-tech span { padding: 3px 10px; border-radius: 99px; background: var(--slate-100); color: var(--slate-700); font-size: .74rem; font-weight: 600; }
.sw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(10, 15, 29, .08); }
.sw-card-has { color: var(--slate-500); font-size: .78rem; }
.sw-card-go { color: var(--gold-text); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.sw-card-go:hover { text-decoration: underline; }
.sw-card.is-wide { flex-direction: row; }
.sw-card.is-wide .sw-card-shot { flex: 1.1; aspect-ratio: auto; min-height: 280px; }
.sw-card.is-wide .sw-card-body { flex: 1; padding: 26px; justify-content: center; }
.sw-card.is-wide h3 { font-size: 1.5rem; }
@media (max-width: 1040px) { .mk-feature-grid { grid-template-columns: 1fr; } .mk-feature-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .mk-intro { align-items: start; }
  .mk-stat { text-align: left; }
  .mk-search { padding-left: 14px; }
  .mk-search .btn { padding: 11px 16px; }
  .mk-feature-side { grid-template-columns: 1fr; }
  .sw-card.is-wide { flex-direction: column; }
  .sw-card.is-wide .sw-card-shot { aspect-ratio: 16 / 10; min-height: 0; }
  .sw-card.is-wide h3 { font-size: 1.2rem; }
  .sw-card.is-wide .sw-card-body { padding: 18px 20px; }
  .mk-grid { grid-template-columns: 1fr; gap: 16px; }
  .sw-crumb { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .sw-crumb a, .sw-crumb span { flex: none; }
  .sw-crumb > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sw-kicker span { border-left: 0; padding-left: 0; }
  .sw-kicker span::before { content: "·"; margin-right: 10px; }
}
@media (max-width: 760px) { .mk-intro p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; } .mk-stat { display: none; } .mk-intro { margin-bottom: 16px; } }

/* ===== Long-form pages (service pages, guides): readable, premium, still light ===== */
.prose, .article-body { font-size: 1.05rem; line-height: 1.8; color: var(--slate-700); }
.prose > p:first-child, .article-body > p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.prose h2, .article-body h2 { position: relative; margin: 2.3em 0 .65em; padding-top: 1.05em; font-size: clamp(1.45rem, 2.3vw, 1.85rem); letter-spacing: -.022em; line-height: 1.15; color: var(--ink); }
.prose h2::before, .article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.prose strong, .article-body strong { color: var(--ink); font-weight: 650; }
.prose a, .article-body a { text-decoration: underline; text-decoration-color: rgba(185, 143, 69, .45); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .15s; }
.prose a:hover, .article-body a:hover { text-decoration-color: var(--gold-deep); }
.prose ul, .article-body ul { list-style: none; padding-left: 0; }
.prose ul li, .article-body ul li { position: relative; padding-left: 28px; margin: .6em 0; }
.prose ul li::before, .article-body ul li::before { content: ""; position: absolute; left: 5px; top: .72em; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.prose ol, .article-body ol { list-style: none; counter-reset: pl; padding-left: 0; }
.prose ol > li, .article-body ol > li { counter-increment: pl; position: relative; padding-left: 44px; margin: .8em 0; }
.prose ol > li::before, .article-body ol > li::before { content: counter(pl); position: absolute; left: 0; top: .05em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 650 .85rem/1 var(--display); color: #1a1303; background: linear-gradient(180deg, #ecd096, #d2a95d); }
.prose h3, .article-body h3 { margin: 1.5em 0 0; padding: 14px 18px 4px; font-size: 1.08rem; line-height: 1.35; color: var(--ink); background: var(--pearl); border-radius: 14px 14px 0 0; border-left: 3px solid var(--gold); }
.prose h3 + p, .article-body h3 + p { margin: 0 0 1.1em; padding: 4px 18px 16px; background: var(--pearl); border-radius: 0 0 14px 14px; border-left: 3px solid var(--gold); }
.prose code, .article-body code { padding: 2px 7px; border-radius: 6px; background: var(--pearl); font-size: .9em; color: var(--ink); }
.prose table, .article-body table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.4em 0; font-size: .96rem; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 14px; }
.prose th, .article-body th { background: var(--pearl); color: var(--ink); font-weight: 650; }
.prose th, .prose td, .article-body th, .article-body td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--slate-200); }
.prose tr:last-child td, .article-body tr:last-child td { border-bottom: 0; }
.prose p:last-of-type strong:first-child, .article-body p:last-of-type strong:first-child { color: var(--gold-text); }
@media (max-width: 640px) {
  .prose, .article-body { font-size: 1.02rem; }
  .prose > p:first-child, .article-body > p:first-child { font-size: 1.1rem; }
  .prose h3, .article-body h3 { padding-inline: 14px; }
  .prose h3 + p, .article-body h3 + p { padding-inline: 14px; }
}
@media (max-width: 640px) {
  .prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; }
  .prose th, .prose td, .article-body th, .article-body td { min-width: 130px; }
}

/* ===== Design tokens (reference scale for new components; the older values above stay in force) =====
   Space: 4 8 12 16 24 32 48 64 | Radius: 10 14 18 28 | Motion: 150ms fast, 280ms standard, 500ms slow */
:root {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 28px;
  --sh-subtle: 0 1px 2px rgba(10, 15, 29, .06);
  --sh-card: 0 12px 30px -14px rgba(10, 15, 29, .28);
  --sh-float: 0 22px 48px -16px rgba(10, 15, 29, .45);
  --wa: #1fb455; --wa-dark: #178f44;
}

/* Hero: quiet WhatsApp link beside the two main buttons */
.hero-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; color: var(--on-dark); text-decoration: none; font-weight: 600; opacity: .9; transition: opacity var(--fast), color var(--fast); }
.hero-wa svg { color: #35d27a; }
.hero-wa:hover { opacity: 1; color: #fff; }

/* Industries rail: a grid on desktop, a swipeable row on phones (the .swipe helper above) */
.ind-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-4); }
.ind-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: var(--r-lg); border: 1px solid rgba(10, 15, 29, .1); background: #fff; color: var(--ink); text-decoration: none; transition: transform var(--std) var(--ease), box-shadow var(--std), border-color var(--std); }
.ind-card svg { width: 30px; height: 30px; color: var(--gold-text); margin-bottom: 6px; }
.ind-card strong { font: 650 1.05rem/1.2 var(--display); letter-spacing: -.01em; }
.ind-card span { color: var(--slate-500); font-size: .92rem; line-height: 1.5; flex: 1; }
.ind-card em { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--gold-text); margin-top: 6px; }
.ind-card em .arrow { display: inline-block; transition: transform var(--fast); }
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card); border-color: rgba(185, 143, 69, .55); }
.ind-card:hover em .arrow { transform: translateX(3px); }

/* WhatsApp button inside the product box */
.btn-wa { background: var(--wa); color: #fff; border: 0; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }

/* Footer contact list */
.foot-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 36ch; font-size: .92rem; }
.foot-contact li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; color: #b9c4dc; line-height: 1.45; }
.foot-contact li > span:first-child { color: #7f8db0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.foot-contact a { color: #e4e9f5; text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover { color: var(--gold); }

/* Phone tab bar: WhatsApp tab in green, and the floating button steps aside when the bar carries WhatsApp */
.tabbar a.wa { color: #35d27a; }
@media (max-width: 760px) { body.has-tabwa .wa-float { display: none; } }

/* Article reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transform-origin: 0 50%; transform: scaleX(0); }

/* Forms: a sent form looks busy; fields only show a problem after the visitor has touched them */
form.is-busy { opacity: .85; }
form.is-busy button[disabled] { cursor: progress; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .14); }
input:user-valid:not(:placeholder-shown), textarea:user-valid:not(:placeholder-shown) { border-color: #2f9e62; }
@media (prefers-reduced-motion: reduce) { .ind-card, .ind-card em .arrow, .hero-wa { transition: none; } .read-progress i { transition: none; } }
