/* ==========================================================================
   iApp Omninos — design system
   Concept: a deployable-script "registry". Mono path labels are the signature.
   ========================================================================== */
:root {
  --ink: #0E1424;
  --ink-2: #0B1020;
  --panel: #141B33;
  --muted: #586079;
  --muted-2: #8A91A6;
  --line: #E6E8F0;
  --line-2: #232C49;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --indigo: #3D2DDB;
  --indigo-2: #5B4BFF;
  --cyan: #06AFBE;
  --cyan-soft: #E7FBFD;
  --amber: #F4B740;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14,20,36,.06), 0 12px 30px -16px rgba(14,20,36,.18);
  --maxw: 1120px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.2em 0 .7em; }
h3 { font-size: 1.22rem; margin: 1.6em 0 .5em; }
p { margin: 0 0 1.05em; }

/* ---- mono path label: the signature element ---- */
.path {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--cyan);
  text-transform: lowercase;
}
.path .slash { color: var(--muted-2); padding: 0 .15em; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: .72em 1.3em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px -8px rgba(61,45,219,.6); }
.btn-primary:hover { background: var(--indigo-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--indigo); color: var(--indigo); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,251,.82); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  display: grid; place-items: center; color: #fff; font-family: var(--mono); font-weight: 700; font-size: .9rem;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { font-size: .9rem !important; padding: .55em 1.05em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

/* ==========================================================================
   Hero (dark band) + blueprint grid signature
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-2);
  color: #EAECF5;
  padding: 78px 0 86px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,75,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,75,255,.10) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(6,175,190,.32), transparent 60%);
  filter: blur(8px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { font-size: 1.18rem; color: #AEB6D4; max-width: 56ch; margin-bottom: 1.6em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--line-2); border-radius: 100px; padding: .4em .9em; margin-bottom: 1.4em;
  background: rgba(6,175,190,.06);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(6,175,190,.25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.hero-stats .stat .n { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: #fff; }
.hero-stats .stat .l { font-size: .82rem; color: var(--muted-2); font-family: var(--mono); letter-spacing: .03em; }

/* ==========================================================================
   Sections / generic
   ========================================================================== */
.section { padding: 62px 0; }
.section-head { max-width: 64ch; margin-bottom: 14px; }
.section-head h2 { margin-top: 0; }
.section-head .sub { color: var(--muted); font-size: 1.06rem; }
.kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: .7em; }

/* ---- category grid (home) ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; min-height: 100%;
}
.cat-card:hover { text-decoration: none; border-color: var(--indigo); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card .path { margin-bottom: 10px; }
.cat-card h3 { margin: 0 0 .35em; font-size: 1.18rem; }
.cat-card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.cat-card .count { margin-top: auto; font-family: var(--mono); font-size: .78rem; color: var(--indigo); }

/* ---- product registry list (category page) ---- */
.registry { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.reg-item {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; transition: border-color .15s ease, box-shadow .15s ease;
}
.reg-item:hover { text-decoration: none; border-color: var(--indigo); box-shadow: var(--shadow); }
.reg-item .path { font-size: .68rem; }
.reg-item .name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 6px 0 2px; }
.reg-item .based { font-size: .85rem; color: var(--muted); }
.reg-item .arrow { float: right; color: var(--muted-2); font-family: var(--mono); }

/* ==========================================================================
   Product page
   ========================================================================== */
.crumbs { font-size: .85rem; color: var(--muted); margin: 26px 0 8px; font-family: var(--mono); }
.crumbs a { color: var(--muted); }
.crumbs .sep { color: var(--muted-2); padding: 0 .4em; }

.product-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding-bottom: 14px; }
.product-hero .lede { font-size: 1.15rem; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tag { font-family: var(--mono); font-size: .76rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: .35em .8em; }
.tag.cyan { color: var(--cyan); background: var(--cyan-soft); border-color: transparent; }

.spec-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 86px; box-shadow: var(--shadow);
}
.spec-card h3 { margin: 0 0 12px; font-size: 1rem; }
.spec-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.spec-card .row:last-of-type { border-bottom: 0; }
.spec-card .row .k { color: var(--muted); }
.spec-card .row .v { font-weight: 600; text-align: right; }
.spec-card .btn { width: 100%; justify-content: center; margin-top: 14px; }

.content { max-width: 760px; }
.content h2:first-child { margin-top: 1.2em; }
.feature-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 6px 0; }
.feature-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.feature-block h3 { margin: 0 0 .5em; font-size: 1.02rem; }
.feature-block ul { margin: 0; padding-left: 1.1em; }
.feature-block li { margin: .3em 0; font-size: .94rem; color: var(--ink); }

.pill-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 4px 0 0; list-style: none; }
.pill-list li { font-family: var(--mono); font-size: .82rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .5em .85em; color: var(--ink); }

/* ---- FAQ (also feeds FAQ schema) ---- */
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.05rem; cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--indigo); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 14px; margin: 0; }

/* ---- related ---- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* ---- CTA band ---- */
.cta-band { background: var(--ink-2); color: #fff; border-radius: 18px; padding: 44px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91,75,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(91,75,255,.12) 1px, transparent 1px);
  background-size: 30px 30px; -webkit-mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #AEB6D4; max-width: 52ch; margin: 0 auto 1.4em; }

/* ==========================================================================
   Feed / generic prose pages
   ========================================================================== */
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-list li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.feed-list .date { font-family: var(--mono); font-size: .82rem; color: var(--muted-2); white-space: nowrap; min-width: 96px; }
.feed-list .cat { font-family: var(--mono); font-size: .72rem; color: var(--cyan); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-2); color: #AEB6D4; padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.site-footer h4 { color: #fff; font-size: .82rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer a { color: #AEB6D4; font-size: .92rem; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .desc { font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line-2); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; }
  .spec-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 24px 16px; }
  .nav-links.open a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 60px; }
  .cta-band { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--indigo-2); outline-offset: 2px; border-radius: 4px; }

/* ============ v2 additions: contact, WhatsApp, phone, showcase ============ */
.nav-phone { font-family: var(--mono); font-weight: 500; font-size: .9rem; color: var(--ink) !important; white-space: nowrap; }
.nav-phone:hover { color: var(--indigo) !important; }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.footer-contact a { color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-contact a:hover { color: #fff; }

/* Floating WhatsApp button on every page */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.7);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; margin: 22px 0 8px; }
.zoho-embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 620px; }
.zoho-embed iframe { width: 100%; height: 640px; border: 0; display: block; }
.contact-aside .feature-block { margin-bottom: 14px; }
.crow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.crow:last-child { border-bottom: 0; }
.crow .k { color: var(--muted); }
.map-card {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--ink);
}
.map-card:hover { border-color: var(--indigo); text-decoration: none; }
.map-card .map-pin { font-size: 1.5rem; }
.map-card .muted { color: var(--muted); font-size: .85rem; }

/* Product showcase SVG */
.showcase { margin: 0 0 6px; }
.showcase .preview-svg { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 24px 60px -28px rgba(11,16,32,.55); }
.showcase figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; text-align: center; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav-phone { display: none; }
}
