/* =====================================================================
   OMNITECH SYSTEMS — BRAND TOKENS
   Swap these values for your brand guideline colours & font.
   ===================================================================== */
:root {
  /* Logo palette: violet -> blue -> cyan on deep black */
  --violet: #7038e0;
  --blue: #4e79e8;
  --cyan: #22c7f4;
  --grad: linear-gradient(120deg, #7038e0 0%, #4e79e8 52%, #22c7f4 100%);
  --grad-soft: linear-gradient(135deg, #f1ebfe 0%, #e6f7fe 100%);
  --brand: #6d3bdf;          /* accent text, icons, focus */
  --brand-strong: #5a2bcc;
  --brand-soft: #efeafd;
  --brand-softer: #f8f6ff;
  --navy: #0c0b17;           /* dark sections (logo black, slightly warmed) */
  --navy-2: #1b1840;
  --ink: #0c0b17;
  --text: #4a4860;
  --muted: #6b6984;
  --line: #e7e5f0;
  --bg: #ffffff;
  --bg-tint: #f7f6fc;
  --glow-violet: rgba(112, 56, 224, .45);
  --glow-cyan: rgba(34, 199, 244, .35);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 16, 50, .04), 0 4px 16px rgba(20, 16, 50, .05);
  --shadow-lg: 0 12px 40px rgba(28, 18, 80, .14);
  --container: 1200px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3, .h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; }
p { margin: 0 0 1em; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--brand); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); font-size: .92rem; }
.mt-lg { margin-top: 44px; } .mt-md { margin-top: 20px; } .pt-0 { padding-top: 0 !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 12px; }
.eyebrow-light { color: var(--cyan); }
.lead { font-size: 1.12rem; max-width: 560px; }
.lead-sm { max-width: 600px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--font); padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); background-size: 160% 100%; background-position: 0 0; color: #fff; box-shadow: 0 6px 18px rgba(112,56,224,.25); }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(78,121,232,.35); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--brand-strong); margin-top: auto; }
.link-arrow .ic { transition: transform .2s; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(16,24,40,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-img { height: 46px; width: auto; }
.logo-mark { width: 34px; height: 34px; color: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.logo-light { color: #fff; } .logo-light .logo-text small { color: rgba(255,255,255,.55); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { font: 500 .94rem var(--font); color: var(--ink); padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand-strong); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; place-items: center; color: var(--ink); cursor: pointer; }

.nav-dd { position: relative; }
.dd-toggle .ic { transition: transform .2s; }
.dd-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; opacity: 0; visibility: hidden; transition: .18s ease; }
.nav-dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.dd-item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; }
.dd-item:hover, .dd-item.is-active { background: var(--brand-softer); }
.dd-item strong { display: block; color: var(--ink); font-size: .92rem; }
.dd-item small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: 2px; }
.dd-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; flex: none; }
.dd-ic .ic { width: 19px; height: 19px; }
.dd-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--brand-strong); padding: 12px 10px 2px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------------------------------------------------------------- hero */
.hero { background: radial-gradient(900px 420px at 85% 0%, rgba(34,199,244,.10), transparent 60%), radial-gradient(800px 420px at 0% 0%, rgba(112,56,224,.08), transparent 60%), linear-gradient(180deg, var(--bg-tint), #fff); padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ic { color: var(--brand-strong); }

.hero-visual { position: relative; padding: 0 0 28px 28px; }
.hero-board { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.hero-board::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet), transparent 65%); right: -130px; top: -130px; pointer-events: none; }
.hero-board::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--glow-cyan), transparent 65%); left: -120px; bottom: -140px; pointer-events: none; }
.hero-board-head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.hero-board-head .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hb-title { margin-left: 10px; color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; position: relative; z-index: 1; margin-bottom: 92px; }
.hero-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: .9rem; transition: .2s; }
.hero-tile:hover { background: rgba(78,121,232,.16); border-color: rgba(34,199,244,.45); transform: translateY(-2px); }
.hero-tile .svc-ic { background: rgba(34,199,244,.12); color: var(--cyan); width: 40px; height: 40px; }
.float-card { position: absolute; left: 0; bottom: 0; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 2; }
.float-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: .86rem; font-weight: 500; color: var(--ink); }
.float-card li { display: flex; gap: 6px; align-items: center; }
.float-card .ic { color: var(--brand-strong); }
.fc-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.hero-service { padding-top: 40px; }
.include-card { padding: 30px; }
.include-card .svc-ic-lg { margin-bottom: 20px; }
.include-card .check-list { margin-bottom: 22px; }

.page-hero { background: radial-gradient(900px 380px at 85% 0%, rgba(34,199,244,.10), transparent 60%), radial-gradient(800px 380px at 0% 0%, rgba(112,56,224,.08), transparent 60%), linear-gradient(180deg, var(--bg-tint), #fff); padding: 40px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--brand-strong); }

/* ---------------------------------------------------------------- sections & cards */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.svc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.svc-ic-lg { width: 56px; height: 56px; border-radius: 14px; }
.svc-ic-lg .ic { width: 28px; height: 28px; }
.svc-card, .offer { padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: .2s ease; }
.svc-card h3, .offer h3 { margin: 10px 0 0; }
.svc-card p, .offer p { font-size: .92rem; margin: 0 0 8px; }
.svc-card:hover { border-color: rgba(109,59,223,.45); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-card:hover .link-arrow .ic { transform: translateX(3px); }
.svc-group + .svc-group { margin-top: 56px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.split-card .btn { margin-top: auto; }
.split-card.dark { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.split-card.dark::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet), transparent 70%); right: -110px; bottom: -130px; pointer-events: none; }
.split-card.dark::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--glow-cyan), transparent 70%); right: 60px; top: -140px; pointer-events: none; }
.split-card.dark > * { position: relative; z-index: 1; }
.split-card.dark h2 { color: #fff; }
.check-list { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: .95rem; }
.check-list .ic { color: var(--brand-strong); margin-top: 3px; }
.check-list a:hover { color: var(--brand-strong); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 30px; position: relative; z-index: 1; }
.tag { border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .84rem; font-weight: 500; padding: 7px 14px; border-radius: 99px; }
a.tag:hover { border-color: var(--cyan); color: var(--cyan); }

.sector-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sector { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--brand-softer); border: 1px solid var(--brand-soft); color: var(--ink); font-weight: 500; font-size: .9rem; }
.sector .ic { color: var(--brand-strong); }

.step { padding: 26px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.step p { font-size: .92rem; margin: 0; }

.why-item h3 { margin: 16px 0 6px; }
.why-item p { font-size: .92rem; margin: 0; }
.why-ic { color: var(--brand-strong); display: inline-flex; }
.why-ic .ic { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px 26px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-strong); }
.faq-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-tint); display: grid; place-items: center; flex: none; transition: .2s; }
.faq-item[open] .faq-ic { transform: rotate(180deg); background: var(--brand-soft); color: var(--brand-strong); }
.faq-a p { margin: 0 0 20px; font-size: .95rem; max-width: 62ch; }

/* ---------------------------------------------------------------- cta & footer */
.cta-wrap { padding: 24px 0 96px; }
.cta-band { position: relative; overflow: hidden; background: var(--navy); border-radius: 28px; padding: 64px; color: rgba(255,255,255,.75); }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); z-index: 2; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { max-width: 520px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-glow { position: absolute !important; z-index: 0 !important; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet), rgba(112,56,224,.08) 60%, transparent 70%); }
.g2 { background: radial-gradient(circle, var(--glow-cyan), rgba(34,199,244,.06) 60%, transparent 70%); }
.g1 { width: 380px; height: 380px; right: -100px; top: -160px; }
.g2 { width: 260px; height: 260px; right: 160px; bottom: -150px; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 72px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 280px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--cyan); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .contact-list .ic { color: var(--cyan); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; padding-bottom: 28px; font-size: .8rem; }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 60; transition: transform .2s; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.07); }
.menu-open .wa-float { display: none; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.contact-form { padding: 36px; display: grid; gap: 16px; }
.contact-form h2 { margin: 0; }
.contact-form .muted { margin: -8px 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 .95rem var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.contact-form .invalid { border-color: #d92d20; }
.form-error { color: #b42318; font-size: .88rem; margin: 0; }
.contact-side { display: grid; gap: 24px; }
.contact-card { padding: 32px; }
.contact-card .contact-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 18px; }
.contact-card .contact-list li { align-items: center; gap: 14px; }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; }
.contact-card a, .contact-card span { color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--brand-strong); }
.contact-card .svc-ic { width: 42px; height: 42px; }
.contact-card .svc-ic .ic { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dd-panel { width: 620px; }
  .hide-sm { display: none; }
}
@media (max-width: 960px) {
  /* backdrop-filter would trap the fixed mobile menu inside the header bar */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-btn { display: grid; }
  .main-nav { position: fixed; inset: 76px 0 0 0; z-index: 49; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px 32px; gap: 0; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav-link { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; justify-content: space-between; width: 100%; }
  .nav-cta-mobile { display: inline-flex; margin-top: 24px; }
  .dd-panel { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; }
  .nav-dd.open .dd-panel { display: grid; transform: none; }
  .dd-item small { display: none; }
  .dd-label { margin-top: 14px; }
  .hero-grid, .split, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .faq-intro { position: static; }
  .faq-grid { gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid-4, .grid-3, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
  .hero-visual { padding: 0; }
  .hero-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-tile { flex-direction: column; align-items: flex-start; padding: 12px; font-size: .82rem; gap: 8px; }
  .hero-tile .svc-ic { width: 34px; height: 34px; }
  .float-card { position: static; margin-top: 14px; }
  .hero-tiles { margin-bottom: 0; }
  .split-card, .cta-band, .contact-form, .contact-card, .include-card { padding: 26px; }
  .cta-band { border-radius: 20px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hide-sm-br { display: none; }
  .section { padding: 60px 0; }
  .faq-list { padding: 2px 18px; }
  .header-inner { height: 68px; }
  .main-nav { inset: 68px 0 0 0; padding: 8px 16px 32px; }
}

/* =====================================================================
   BLOG, ARTICLES & LEGAL PAGES
   ===================================================================== */
.narrow { max-width: 860px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.btn-row.center { justify-content: center; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head .btn { flex: none; }

.post-card { display: flex; flex-direction: column; overflow: hidden; transition: .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(109,59,223,.45); }
.post-card .post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.post-card p { font-size: .92rem; margin: 0; }
.post-card .post-meta { margin-top: auto; padding-top: 8px; }
.post-card[hidden] { display: none; }

.post-cover { position: relative; aspect-ratio: 16 / 8; max-width: 100%; background: var(--navy); overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px; color: #fff; }
.post-cover::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -55%; background: radial-gradient(circle, var(--glow-violet), transparent 65%); }
.post-cover::after { content: ""; position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; left: -15%; bottom: -60%; background: radial-gradient(circle, var(--glow-cyan), transparent 65%); }
.post-cover > * { position: relative; z-index: 1; }
.post-cover .pc-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--cyan); }
.post-cover .pc-ic .ic { width: 28px; height: 28px; }
.post-cover .pc-cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.post-cover.big { aspect-ratio: 16 / 9; padding: 28px; }
.post-cover.big .pc-ic { width: 72px; height: 72px; border-radius: 18px; }
.post-cover.big .pc-ic .ic { width: 36px; height: 36px; }
.post-cover.has-img { padding: 0; background: var(--bg-tint); }
.post-cover.has-img::before, .post-cover.has-img::after { display: none; }
.post-cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.post-main > .post-cover { border-radius: var(--radius-lg); margin-bottom: 32px; }

.post-cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--muted); margin: 0; }
.post-meta.big { font-size: .92rem; margin-top: 18px; }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; margin-bottom: 8px; transition: .2s ease; }
.featured-post:hover { box-shadow: var(--shadow-lg); border-color: rgba(109,59,223,.45); }
.featured-post .post-cover { aspect-ratio: auto; min-height: 300px; height: 100%; }
.featured-post .post-body { padding: 40px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.featured-post h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; text-wrap: balance; }
.featured-post p { margin: 0; }
.featured-post .link-arrow { margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chip { font: 600 .86rem var(--font); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a { min-width: 42px; padding: 10px 14px; text-align: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a[aria-current="page"] { background: var(--grad); color: #fff; border-color: transparent; }

.post-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); text-wrap: balance; margin-top: 10px; max-width: 820px; }
.post-hero .lead { max-width: 700px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.post-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.toc { padding: 22px 24px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .9rem; line-height: 1.45; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--brand); }
.side-cta { padding: 28px; gap: 4px; }
.side-cta .svc-ic { background: rgba(34,199,244,.12); color: var(--cyan); margin-bottom: 14px; }
.side-cta .btn { margin-top: 14px; }

.prose { color: var(--text); font-size: 1.06rem; line-height: 1.8; max-width: 72ch; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 1.9em 0 .2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .1em; scroll-margin-top: 100px; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 0; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(109,59,223,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 18px 22px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--brand-soft); color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: 14px; }
.prose figure { margin-inline: 0; }
.prose code { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-tint); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.share .fc-label { margin: 0 8px 0 0; }
.share a { font-size: .86rem; font-weight: 600; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); }
.share a:hover { border-color: var(--brand); color: var(--brand); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.socials a { color: rgba(255,255,255,.8); font-weight: 600; }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-side { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-cover { min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .featured-post .post-body { padding: 24px; }
  .prose { font-size: 1rem; }
  .section-head .btn { width: 100%; }
}

/* =====================================================================
   DARK SPLIT HERO (copy left, service graphic right)
   ===================================================================== */
.hero-dark { position: relative; overflow: hidden; background: linear-gradient(135deg, #0c0b17 0%, #191545 55%, #0e2244 100%); color: rgba(255,255,255,.78); padding: 76px 0 88px; }
.hero-dark > .container { position: relative; z-index: 1; }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-glow.g-a { width: 620px; height: 620px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(112,56,224,.45), transparent 65%); }
.hero-glow.g-b { width: 560px; height: 560px; left: -220px; bottom: -320px; background: radial-gradient(circle, rgba(34,199,244,.28), transparent 65%); }
.hero-dark h1 { color: #fff; }
.hero-dark .accent { background: linear-gradient(90deg, #b197ff 0%, #6aa6ff 50%, #3fd8ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #8fb8ff; }
.hero-dark .lead { color: rgba(255,255,255,.74); }
.hero-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bfe9ff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 8px 16px; border-radius: 99px; margin: 0 0 22px; }
.hero-dark .hero-points { color: #fff; }
.hero-dark .hero-points .ic { color: var(--cyan); }
.hero-dark .crumbs { color: rgba(255,255,255,.55); }
.hero-dark .crumbs a:hover { color: var(--cyan); }
.hero-dark.hero-service { padding-top: 44px; }
.hero-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: #eef0fb; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.03); }
.hero-media > svg, .hero-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }

.includes-band { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.includes-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.includes-inner .fc-label { margin: 0; }
.includes-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; flex: 1; }
.includes-inner li { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.includes-inner li .ic { color: var(--brand); }
.includes-inner .link-arrow { margin: 0; }

@media (max-width: 960px) {
  .hero-dark { padding: 52px 0 64px; }
  .hero-media { max-width: 640px; }
}
@media (max-width: 640px) {
  .hero-dark { padding: 36px 0 48px; }
  .hero-dark.hero-service { padding-top: 28px; }
  .hero-media { border-radius: 16px; }
  .includes-inner { flex-direction: column; align-items: flex-start; }
  .includes-inner ul { flex-direction: column; gap: 8px; }
}

/* =====================================================================
   PORTFOLIO
   ===================================================================== */
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tag { font-size: .74rem; font-weight: 600; color: var(--brand); background: var(--brand-softer); border: 1px solid var(--brand-soft); padding: 4px 10px; border-radius: 99px; }
.project-card .post-meta { align-items: center; }
.project-card .post-meta .ic { color: var(--brand); width: 15px; height: 15px; }
.project-card[hidden] { display: none; }
.empty-state { padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 720px; margin: 40px auto 0; }
.empty-state p { max-width: 520px; }
.empty-state .svc-ic { margin-bottom: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.project-cover .post-cover { border-radius: var(--radius-lg); aspect-ratio: 21 / 9; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.svc-links { display: grid; gap: 10px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; }
.lightbox::backdrop { background: rgba(8, 7, 20, .88); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; display: block; margin: 0 auto; }
.lightbox button { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; }
@media (max-width: 640px) {
  .project-cover .post-cover { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .empty-state { padding: 40px 20px; }
}
.project-card { position: relative; }
.sample-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #fff; padding: 6px 12px; border-radius: 99px; box-shadow: var(--shadow); }
.sample-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--brand-soft); color: var(--ink); font-size: .92rem; max-width: 760px; }
.sample-note .ic { color: var(--brand); margin-top: 3px; }
.svc-links .btn, .svc-links .btn:hover { color: #fff; }

/* Zoho apps */
.zapps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zapp { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.zapp img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.zapp .svc-ic { width: 48px; height: 48px; }
.zapp h3 { font-size: .98rem; margin: 0; }
.zapp p { font-size: .84rem; margin: 2px 0 0; color: var(--muted); }
.offer-logos { display: flex; gap: 8px; }
.offer-logos img { width: 46px; height: 46px; object-fit: contain; }
@media (max-width: 1100px) { .zapps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .zapps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .zapps { grid-template-columns: 1fr; } }
