/* Public site styles. Colours and gradients follow the 1405 product catalog. */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070a1a;
  --paper: #0b1030;
  --paper-2: #120d33;
  --ink: #eef0ff;
  --ink-2: #b4bcdc;
  --ink-3: #7c86b0;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .08);
  --p1: #7c6cff;
  --p2: #4cc9ff;
  --p3: #ff6fb1;
  --p4: #3ee7b0;
  --p5: #ffb95c;
  --p6: #a78bfa;
  --c: var(--p1);
  --radius: 22px;
  --wrap: 1200px;
  --header: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gradient: linear-gradient(100deg, var(--p2), var(--p1) 45%, var(--p3));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--p2); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--p1) 55%, transparent); color: #fff; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; right: 10px; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--bg); font-weight: 700; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }

/* ---------- Background ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), linear-gradient(180deg, var(--bg), #050716); }
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 70%);
}
.backdrop i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.backdrop i:nth-child(1) { width: 520px; height: 520px; top: -180px; right: -140px; background: #5b4ae6; }
.backdrop i:nth-child(2) { width: 420px; height: 420px; top: 40vh; left: -200px; background: #0ea5d6; opacity: .25; }
.backdrop i:nth-child(3) { width: 360px; height: 360px; top: 110vh; right: 10%; background: #e0407f; opacity: .18; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(7, 10, 26, .82); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.brand b { color: var(--p2); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--bg); background: linear-gradient(135deg, var(--p2), var(--p1)); font-weight: 900; box-shadow: 0 8px 24px -8px var(--p1); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; transition: color .2s, background .2s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.site-nav .btn { margin-inline-start: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.nav-toggle span[aria-hidden] { position: relative; display: block; width: 18px; height: 2px; margin: auto; border-radius: 2px; background: var(--ink); transition: background .2s; }
.nav-toggle span[aria-hidden]::before, .nav-toggle span[aria-hidden]::after { content: ""; position: absolute; right: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.nav-toggle span[aria-hidden]::before { top: -6px; }
.nav-toggle span[aria-hidden]::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden] { background: transparent; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: 14px; font-weight: 700; font-size: 15.5px; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn-sm { min-height: 40px; padding: 6px 16px; border-radius: 12px; font-size: 14.5px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--p1), color-mix(in srgb, var(--p2) 75%, var(--p1))); box-shadow: 0 10px 30px -10px var(--p1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--p1); }
.btn-ghost { color: var(--ink); background: var(--panel); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .28); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--p2); box-shadow: 0 0 12px var(--p2); }
.g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink-2); font-size: clamp(16px, 15px + .35vw, 19px); line-height: 1.95; }
.lead strong { color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); color: var(--ink-2); font-size: 14.5px; }
.chips-code li { font-family: ui-monospace, "Cascadia Code", Consolas, monospace, "Vazirmatn"; color: color-mix(in srgb, var(--c) 70%, #fff); border-color: color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 6vw, 84px); }
.section-tight { padding-block: 0 24px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 22px + 1.8vw, 44px); }
.section-head .lead { margin-top: 14px; }
.center-link { margin-top: 36px; text-align: center; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-block: 22px 22px; font-size: clamp(34px, 22px + 3.2vw, 60px); line-height: 1.3; letter-spacing: -.5px; font-weight: 850; }
.hero .lead { max-width: 640px; }
.hero .actions { margin-top: 32px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--ink-3); font-size: 14.5px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-grid li { animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.app-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); text-align: center; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.app-grid a:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 22px 50px -24px var(--c); }
.app-grid .app-icon { width: 72px; height: 72px; }
.app-name { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.app-grid b { margin-top: 4px; font-size: 16px; }
.app-name > span { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.app-grid li:nth-child(3n) { transform: translateY(26px); }
/* The flagship product spans the whole row above the others. */
.app-grid li.featured { grid-column: 1 / -1; }
.app-grid li.featured a { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 18px 22px; text-align: right; border-color: color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, .03)); }
.app-grid li.featured .app-name { align-items: flex-start; }
.app-grid li.featured b { margin: 0; font-size: 22px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Principles ---------- */
.principle { position: relative; margin: 0 0 22px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(124, 108, 255, .16), rgba(76, 201, 255, .06)); border: 1px solid rgba(124, 108, 255, .4); }
.principle p { font-size: clamp(22px, 17px + 1.4vw, 34px); font-weight: 800; line-height: 1.5; }
.principle footer { margin-top: 12px; max-width: 860px; color: var(--ink-2); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar, .feature, .product-card, .numbered-cards li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pillar { padding: 24px; }
.pillar-num { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 800; color: var(--p2); letter-spacing: 1px; }
.pillar h3 { font-size: 18.5px; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: 15px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c), transparent); opacity: .8; }
.product-card::after { content: ""; position: absolute; width: 220px; height: 220px; top: -110px; left: -60px; border-radius: 50%; background: var(--c); filter: blur(70px); opacity: .12; transition: opacity .3s; }
.product-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 24px 60px -30px var(--c); }
.product-card:hover::after { opacity: .25; }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.product-card .app-icon { width: 56px; height: 56px; }
.product-code { color: color-mix(in srgb, var(--c) 75%, #fff); font-size: 13.5px; font-weight: 700; letter-spacing: .5px; }
.product-card h3 { font-size: 21px; }
.product-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.product-card.featured { grid-column: 1 / -1; padding: 30px; border-color: color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 16%, transparent), var(--panel) 60%); }
.product-card.featured h3 { font-size: 26px; }
.product-card.featured p { max-width: 760px; font-size: 16px; }
.flagship-badge { padding: 4px 12px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--p2), var(--p1) 50%, var(--p3)); font-size: 12.5px; font-weight: 800; }
.product-card .more { margin-top: 8px; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.product-card .more span { display: inline-block; transition: transform .25s var(--ease); }
.product-card:hover .more span { transform: translateX(-5px); }

/* ---------- Flagship product ---------- */
.flagship-section { padding-top: clamp(16px, 3vw, 32px); }
.flagship { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(26px, 4vw, 56px); padding: clamp(26px, 4vw, 52px); border-radius: 30px; background: radial-gradient(70% 100% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(76, 201, 255, .12), transparent 60%), var(--paper); }
.flagship::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(120deg, var(--p2), var(--p1), var(--p3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.flagship-text .product-id { margin-top: 20px; }
.flagship h2 { margin-block: 14px 6px; font-size: clamp(34px, 24px + 2.4vw, 54px); }
.flagship-text > p:not(.tagline) { margin-top: 12px; color: var(--ink-2); }
.flagship .actions { margin-top: 26px; }
.flow { display: grid; gap: 30px; }
.flow-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--c, #fff) 35%, transparent); border-radius: 20px; background: rgba(5, 7, 20, .55); }
.flow-step:not(:last-child)::after { content: "↓"; position: absolute; bottom: -27px; right: 50%; transform: translateX(50%); color: var(--ink-3); font-size: 20px; line-height: 1; }
.flow-step .app-icon { flex-shrink: 0; }
.flow-step b { display: block; font-size: 17px; }
.flow-step span { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.flow-step:first-child { flex-direction: column; align-items: flex-start; gap: 10px; border-style: dashed; border-color: var(--line-2); }
.flow-label { color: var(--ink-3) !important; font-size: 13px !important; font-weight: 700; }
.flow-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-docs li { padding: 5px 12px; border-radius: 10px; background: var(--panel-2); color: var(--ink); font-size: 13.5px; }
.flow-main { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(5, 7, 20, .6)); box-shadow: 0 20px 60px -30px var(--c); }
.flow-main b { font-size: 20px; }
.related { display: grid; gap: 14px; }
.related-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 10%, transparent), var(--panel)); transition: transform .25s var(--ease), border-color .25s; }
.related-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.related-item b { font-size: 17.5px; }
.related-item p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.related-item .more { color: var(--c); font-size: 22px; }
.block-note a { color: var(--p2); }

/* ---------- Numbered lists, steps ---------- */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: item; }
.numbered li { position: relative; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); counter-increment: item; }
.numbered li::before { content: counter(item, persian); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: color-mix(in srgb, var(--c) 70%, #fff); font-weight: 800; }
.numbered h3 { font-size: 18px; margin-bottom: 8px; }
.numbered p { color: var(--ink-2); font-size: 15px; }
.numbered:has(li:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.steps { position: relative; display: grid; gap: 14px; counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-8 { grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); counter-increment: step; }
.steps li::before { content: counter(step, persian); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--c); color: var(--bg); font-weight: 900; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
.steps li::after { content: ""; position: absolute; top: 38px; left: -15px; width: 16px; height: 2px; background: linear-gradient(90deg, transparent, var(--c)); }
.steps li:last-child::after, .steps-8 li:nth-child(4n)::after { display: none; }
.steps h3 { font-size: 16.5px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.step-time { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--ink-2); font-size: 13px; }
.process-steps { --c: var(--p2); }

/* ---------- Synergy hub ---------- */
.synergy { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.hub { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; }
.hub-center { grid-column: 1 / -1; grid-row: 2; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(100%, 300px); padding: 24px 20px; border-radius: 26px; text-align: center; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), var(--panel-2); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 80px -30px var(--c); }
.hub-center b { font-size: 18px; }
.hub-center span { color: var(--ink-2); font-size: 13.5px; }
.hub-node { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 16px; border: 1px dashed color-mix(in srgb, var(--c) 50%, transparent); border-radius: 18px; background: var(--panel); transition: background .2s, border-color .2s; }
.hub-node:hover { background: var(--panel-2); border-style: solid; }
.hub-node .app-icon { grid-row: span 2; width: 40px; height: 40px; }
.hub-node b { font-size: 15px; }
.hub-node span { grid-column: 2; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.hub-node-1, .hub-node-2 { grid-row: 1; }
.hub-node-3, .hub-node-4 { grid-row: 3; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding: 20px 22px 6px; text-align: right; font-size: 19px; font-weight: 800; }
th, td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
thead th { color: var(--ink-3); font-size: 13.5px; font-weight: 700; background: rgba(255, 255, 255, .03); white-space: nowrap; }
tbody th { font-weight: 700; color: var(--ink); }
tbody td { color: var(--ink-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: rgba(255, 255, 255, .025); }
.value-table th a, .overview th a { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.value-table .app-icon { width: 32px; height: 32px; flex-shrink: 0; }
.overview .app-icon { width: 36px; height: 36px; flex-shrink: 0; }
.overview th a:hover span { color: var(--p2); }
.compare-wrap { margin-top: 40px; }
.compare .ours { color: #fff; font-weight: 700; background: rgba(124, 108, 255, .1); }
.compare thead .ours { color: var(--p2); }

/* ---------- Callouts ---------- */
.callout { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-inline-start: 4px solid var(--c); border-radius: var(--radius); background: linear-gradient(90deg, rgba(255, 255, 255, .02), color-mix(in srgb, var(--c) 9%, transparent)); }
.callout h2 { font-size: 20px; margin-bottom: 8px; }
.callout p, .callout li { color: var(--ink-2); }
.callout ul { display: grid; gap: 8px; margin-top: 14px; }
.callout li { position: relative; padding-inline-start: 18px; }
.callout li::before { content: ""; position: absolute; top: .85em; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.callout b { color: var(--ink); }
.method { margin-top: 24px; --c: var(--p5); }
.callout-limits { --c: var(--p3); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(124, 108, 255, .45); background: rgba(124, 108, 255, .07); }
.faq summary { position: relative; padding: 18px 22px 18px 56px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; left: 20px; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px; background: var(--panel-2); color: var(--p2); font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Team band ---------- */
.team-band { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(76, 201, 255, .3); border-radius: 30px; background: radial-gradient(80% 120% at 100% 0%, rgba(76, 201, 255, .14), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(124, 108, 255, .16), transparent 60%), var(--paper); }
.team-text h2 { margin-block: 16px 12px; font-size: clamp(26px, 20px + 1.5vw, 38px); }
.team-text p { color: var(--ink-2); }
.team-text .chips { margin-block: 20px 26px; }
.terminal { overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: #050814; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.terminal pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); text-align: left; }
.t-prompt { color: var(--p4); }
.t-out { color: var(--p2); }
.t-cursor { display: inline-block; width: 9px; height: 17px; margin-left: 4px; vertical-align: -3px; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Frames, mockups, galleries ---------- */
.frame { margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: #0b1022; box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--c) 70%, #000), 0 0 0 1px rgba(255, 255, 255, .03); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .04); direction: ltr; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 10px; color: var(--ink-3); font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; }
.frame img { width: 100%; }
.frame figcaption { padding: 10px 16px; color: var(--ink-3); font-size: 13.5px; }
.mockup { filter: drop-shadow(0 40px 60px color-mix(in srgb, var(--c) 30%, transparent)); }
.mock-cc { width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gallery-item { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); transition: transform .3s var(--ease), border-color .3s; }
.gallery-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.gallery-item img { width: 100%; aspect-ratio: 1600 / 762; object-fit: cover; }
.gallery-item span { display: block; padding: 12px 16px; color: var(--ink-2); font-size: 14px; }
.lightbox { width: min(1280px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: #0b1022; color: var(--ink); }
.lightbox::backdrop { background: rgba(2, 3, 10, .85); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: calc(94vh - 60px); object-fit: contain; background: #fff; }
.lightbox p { padding: 12px 18px; color: var(--ink-2); font-size: 14.5px; }
.lightbox-close { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(7, 10, 26, .8); color: #fff; font-size: 24px; cursor: pointer; }

/* Health record mockup (fictional sample from the catalog) */
.mock-health { overflow: hidden; border: 1px solid var(--line-2); border-radius: 20px; background: #0b1022; font-size: 13.5px; line-height: 1.8; }
.mh-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.mh-head span { color: var(--ink-3); font-size: 12px; }
.mh-patient { padding: 14px 18px 0; }
.mh-patient strong { display: block; font-size: 15px; }
.mh-patient small { color: var(--ink-3); font-size: 12px; }
.mh-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; padding: 14px 18px 18px; }
.mh-summary, .mh-side { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.mh-label { display: block; margin-bottom: 8px; color: var(--p3); font-size: 12px; font-weight: 700; }
.mh-side .mh-label:not(:first-child) { margin-top: 14px; }
.mh-summary p { margin-bottom: 6px; color: var(--ink-2); }
.mh-summary b { color: var(--ink); }
.mh-src { display: inline-block; margin-inline-start: 4px; padding: 0 7px; border-radius: 6px; background: rgba(255, 127, 110, .15); color: #ffb3a7; font-size: 11px; }
.mh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mh-actions span { padding: 3px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; }
.mh-actions .mh-approve { border-color: transparent; background: #ff7f6e; color: var(--bg); font-weight: 700; }
.mh-actions small, .mh-side small { color: var(--ink-3); font-size: 11.5px; }
.mh-timeline li { position: relative; padding: 0 16px 6px 0; border-right: 2px solid rgba(255, 127, 110, .35); color: var(--ink-2); font-size: 12.5px; }
.mh-timeline li::before { content: ""; position: absolute; top: 9px; right: -6px; width: 10px; height: 10px; border-radius: 50%; background: #ff7f6e; }
.mh-review li { margin-bottom: 4px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 185, 92, .12); color: #ffd59a; font-size: 12.5px; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(36px, 5vw, 72px); }
.page-hero h1 { margin-block: 18px 16px; font-size: clamp(32px, 22px + 2.8vw, 56px); }
.page-hero .lead { max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--ink-3); font-size: 14px; }
.crumbs a:hover { color: var(--ink); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.product-id { display: flex; align-items: center; gap: 16px; }
.product-id .app-icon { flex-shrink: 0; }
.product-id .product-code { display: block; font-size: 15px; }
.product-en { display: block; color: var(--ink-3); font-size: 13px; text-align: right; }
.product-hero h1 { margin-block: 22px 10px; }
.tagline { font-size: clamp(18px, 16px + .6vw, 23px); font-weight: 700; line-height: 1.7; color: color-mix(in srgb, var(--c) 45%, #fff); }
.product-hero .lead { margin-block: 14px 28px; }
.product-body { padding-bottom: clamp(48px, 6vw, 80px); }
.block { padding-block: clamp(28px, 4vw, 48px); }
.block .section-head { margin-bottom: 26px; }
.block .section-head h2 { font-size: clamp(24px, 19px + 1.3vw, 34px); }
.block-title { margin-bottom: 18px; font-size: 22px; }
.block-note { margin-top: 16px; max-width: 860px; color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid:has(.feature:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.feature-grid:has(.feature:nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 24px; transition: border-color .3s; }
.feature:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.feature h3 { position: relative; margin-bottom: 8px; padding-inline-start: 16px; font-size: 17.5px; }
.feature h3::before { content: ""; position: absolute; top: .45em; right: 0; width: 5px; height: .9em; border-radius: 3px; background: var(--c); }
.feature p { color: var(--ink-2); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.facts div { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.facts dt { margin-bottom: 6px; color: color-mix(in srgb, var(--c) 70%, #fff); font-weight: 800; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.before-after > div { padding: clamp(20px, 3vw, 30px); }
.before-after h2 { margin-bottom: 14px; font-size: 19px; }
.ba-before { background: rgba(255, 111, 177, .05); }
.ba-after { background: rgba(62, 231, 176, .06); border-inline-start: 1px solid var(--line); }
.before-after li { position: relative; padding: 8px 28px 8px 0; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.before-after li:last-child { border-bottom: 0; }
.before-after li::before { position: absolute; top: 8px; right: 0; font-weight: 800; }
.ba-before li::before { content: "✕"; color: var(--p3); }
.ba-after li::before { content: "✓"; color: var(--p4); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.metric { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255, 255, 255, .02)); }
.metric dt { font-size: clamp(30px, 24px + 1.4vw, 42px); font-weight: 850; line-height: 1.3; background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--c) 65%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric dd { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.product-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.product-pager a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); transition: border-color .2s, transform .2s var(--ease); }
.product-pager a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.product-pager span { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; }
.product-pager .app-icon { width: 40px; height: 40px; }
.product-pager a:last-child { text-align: left; }

/* Products listing */
.product-row { padding-block: clamp(44px, 6vw, 80px); }
.product-row + .product-row { border-top: 1px solid var(--line); }
.product-row-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.product-row.flip .product-row-text { order: 2; }
.product-row h2 { margin-block: 18px 8px; font-size: clamp(26px, 20px + 1.5vw, 38px); }
.product-row .tagline { margin-bottom: 12px; }
.product-row-text > p:not(.tagline) { color: var(--ink-2); }
.product-row .actions { margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--line-2); border-radius: 30px; background: radial-gradient(70% 90% at 100% 0%, rgba(124, 108, 255, .2), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(255, 111, 177, .1), transparent 60%), var(--paper); }
.contact-intro h2 { margin-block: 16px 12px; font-size: clamp(26px, 20px + 1.5vw, 38px); }
.contact-lines { display: grid; gap: 12px; margin-top: 28px; }
.contact-lines li { display: flex; gap: 14px; align-items: baseline; }
.contact-lines span { min-width: 54px; color: var(--ink-3); font-size: 14px; }
.contact-lines a:hover { color: var(--p2); }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 14.5px; }
.contact-form label > span { color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(5, 7, 20, .65); outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form select { appearance: none; padding-left: 40px; background: rgba(5, 7, 20, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b4bcdc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 16px 50%; }
.contact-form select option { background: var(--paper); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(76, 201, 255, .7); box-shadow: 0 0 0 4px rgba(76, 201, 255, .12); }
.contact-form [aria-invalid="true"] { border-color: rgba(255, 111, 177, .8); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--ink-2); font-size: 14.5px; }
.form-status.ok { color: var(--p4); }
.form-status.error { color: var(--p3); }
html:not(.js) .contact-form { display: none; }
/* Spam trap kept off screen without an offset: an offset widens right-to-left pages. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 28px; border-top: 1px solid var(--line); background: rgba(5, 7, 20, .6); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 280px; color: var(--ink-3); font-size: 14.5px; }
.site-footer h2 { margin-bottom: 14px; color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.site-footer li { margin-bottom: 9px; color: var(--ink-2); font-size: 14.5px; }
.site-footer li a:hover { color: var(--p2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- Reveal on scroll (only once JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillar-grid, .numbered:has(li:nth-child(4)), .metrics, .facts, .steps-4, .steps-8, .feature-grid:has(.feature:nth-child(8):last-child) { grid-template-columns: repeat(2, 1fr); }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header: 64px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { position: fixed; top: var(--header); inset-inline: 0; display: grid; gap: 4px; padding: 14px 16px 22px; background: rgba(7, 10, 26, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .site-nav .btn { margin: 8px 0 0; }
  .site-header:has(.site-nav.open) { background: rgba(7, 10, 26, .97); border-color: var(--line); }
  .flagship, .hero-grid, .synergy, .faq-grid, .team-band, .contact-grid, .product-hero-grid, .product-row-grid { grid-template-columns: 1fr; }
  .product-row.flip .product-row-text { order: 0; }
  .app-grid li:nth-child(3n) { transform: none; }
  .numbered, .steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pillar-grid, .numbered:has(li:nth-child(4)), .product-grid, .feature-grid, .feature-grid:has(.feature:nth-child(4):last-child), .feature-grid:has(.feature:nth-child(8):last-child), .metrics, .facts, .steps-4, .steps-5, .steps-8, .gallery, .before-after, .form-row, .product-pager, .hub { grid-template-columns: 1fr; }
  .hub-node-1, .hub-node-2, .hub-node-3, .hub-node-4, .hub-center { grid-row: auto; }
  .ba-after { border-inline-start: 0; border-top: 1px solid var(--line); }
  .mh-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-pager a:last-child { text-align: right; }
  th, td { padding: 12px 14px; }
  /* Wide tables scroll sideways instead of squeezing every column into a few words. */
  table:has(thead th:nth-child(3)) { min-width: 620px; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mock-cc .gauge { stroke-dashoffset: 52; }
}
