/* Nsincloud landing. One file, no build step. NSIN family design: navy, one cyan, liquid buttons (nsin.ir). */
/* NSIN family base for the Nsincloud and NsinNabz landings (mock v3).
   Tokens and the liquid buttons are nsin.ir's own (landing/src/app/globals.css). */
@font-face { font-family: 'Vazirmatn'; src: url('Vazirmatn-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-017F, U+2010-2027, U+2030-2044, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Vazirmatn'; src: url('Vazirmatn-arabic.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn Mark'; src: url('Vazirmatn-mark.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('IBMPlexMono-Regular-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('IBMPlexMono-Medium-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --canvas: #0c131b; --alt: #0e151e; --inset: #101923; --card: #111a24; --lift: #182634;
  --fg: #e7edf2; --fg-2: #aebccb; --fg-3: #8494a3; --faint: #7d8d9b; --body: #d6e0e9;
  --line: rgba(255, 255, 255, .11); --line-2: rgba(255, 255, 255, .16);
  --cyan: #67e8f9; --cyan-btn: #06b6d4; --on-cyan: #001318;
  --ok: #34d399; --bad: #f87171;
  /* Mono falls back to Vazirmatn for Persian glyphs: Plex has none. */
  --mono: 'IBM Plex Mono', 'Vazirmatn', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 400 16px/1.7 'Vazirmatn', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[lang="fa"] body { line-height: 1.9; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--mono); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Liquid buttons, as on nsin.ir: a slow swirl of cyan inside a pill. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, border-color 200ms ease; }
.btn::before { content: ''; position: absolute; inset: -45%; z-index: -2; background: var(--lq-mesh); filter: blur(var(--lq-blur, 16px)) saturate(150%); animation: mesh-swirl var(--lq-speed, 15s) linear infinite; pointer-events: none; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 150% at 50% 50%, rgba(255,255,255,.26), transparent 62%), linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 55%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); opacity: var(--lq-glass, .85); transition: opacity 260ms ease; }
.btn:hover::after { opacity: 1; }
.btn:hover::before { animation-duration: calc(var(--lq-speed, 15s) / 2.5); }
.btn:active { transform: scale(.975); }
.btn-primary { color: #fff; background: var(--cyan-btn); --lq-speed: 15s; --lq-blur: 12px;
  --lq-mesh: radial-gradient(26% 130% at 10% 46%, #cffafe 0%, transparent 60%), radial-gradient(24% 130% at 33% 56%, #075985 0%, transparent 60%), radial-gradient(28% 130% at 56% 42%, #67e8f9 0%, transparent 60%), radial-gradient(24% 130% at 78% 58%, #0c4a6e 0%, transparent 60%), radial-gradient(26% 130% at 96% 44%, #22d3ee 0%, transparent 60%), #0e7490;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 26px -10px rgba(34,211,238,.7); }
.btn-ghost { color: var(--cyan); font-weight: 600; border-color: rgba(103,232,249,.35); --lq-speed: 22s; --lq-blur: 16px; --lq-glass: 0;
  --lq-mesh: radial-gradient(26% 130% at 18% 46%, rgba(103,232,249,.34) 0%, transparent 60%), radial-gradient(24% 130% at 52% 56%, rgba(14,165,233,.26) 0%, transparent 60%), radial-gradient(26% 130% at 86% 44%, rgba(34,211,238,.3) 0%, transparent 60%), transparent; }
.btn-ghost:hover { border-color: rgba(103,232,249,.55); }
.btn-sm { height: 38px; padding: 0 20px; font-size: 14px; }
@keyframes mesh-swirl { 0% { transform: rotate(0) scale(1.1); } 50% { transform: rotate(180deg) scale(1.35); } 100% { transform: rotate(360deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .btn::before, .btn:hover::before { animation: none; transform: rotate(24deg) scale(1.25); } }
a:focus-visible, .btn:focus-visible, label:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(14,21,30,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 40px; height: 68px; }
.hdr .logo { height: 28px; width: auto; display: block; }
.hdr nav { display: flex; gap: 28px; font-size: 14.5px; color: var(--fg-2); }
.hdr nav a:hover { color: var(--fg); }
.hdr .end { margin-inline-start: auto; display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
.hdr .signin { color: var(--fg-2); }
.hdr .signin:hover { color: var(--fg); }
@media (max-width: 920px) { .hdr nav { display: none; } }
@media (max-width: 480px) { .hdr .signin { display: none; } }

/* EN / فا: one round button showing the other language, pinned bottom-right like nsin.ir. */
.lang { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; padding: 0; font-size: 13px; font-weight: 700; background: rgba(16,25,35,.8); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.8); }
.lang.to-fa { font-family: 'Vazirmatn Mark', 'Vazirmatn', sans-serif; }

/* Small mono line above a heading: where you are. */
.path { font: 400 13px/1.4 var(--mono); color: var(--fg-3); }
.path b { font-weight: 400; color: var(--cyan); }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--alt); }
.section h2 { margin-top: 16px; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; max-width: 20ch; }
[lang="fa"] .section h2 { letter-spacing: 0; line-height: 1.35; font-size: 40px; }
.lede { margin-top: 18px; font-size: 18px; line-height: 1.75; color: var(--fg-2); max-width: 38rem; }
@media (max-width: 640px) { .section { padding: 80px 0; } .section h2, [lang="fa"] .section h2 { font-size: 30px; } .lede { font-size: 16.5px; } }

/* Hairline tiles */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles > * { background: var(--card); padding: 32px; transition: background-color .15s var(--ease); }
.tiles > *:hover { background: var(--lift); }
.tiles h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.tiles p { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--fg-2); }
.t3 { grid-template-columns: repeat(3, 1fr); }
.t4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .t3, .t4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .t3, .t4 { grid-template-columns: 1fr; } .tiles > * { padding: 24px; } }

.checks { margin-top: 32px; display: grid; gap: 16px; }
.checks li { position: relative; padding-inline-start: 28px; color: var(--fg-2); font-size: 16px; }
.checks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 700; }

.close { padding: 128px 0; border-top: 1px solid var(--line); text-align: center; }
.close h2 { font-size: 48px; line-height: 1.12; font-weight: 900; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; }
[lang="fa"] .close h2 { letter-spacing: 0; line-height: 1.4; font-size: 42px; }
.close p { margin: 18px auto 0; font-size: 18px; color: var(--fg-2); max-width: 34rem; }
.close .acts { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .close { padding: 88px 0; } .close h2, [lang="fa"] .close h2 { font-size: 32px; } }

.ftr { background: var(--alt); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--fg-2); }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ftr .logo { height: 28px; width: auto; }
.ftr .tagline { margin-top: 14px; color: var(--fg-3); max-width: 28ch; }
.ftr h4 { margin-bottom: 14px; font: 500 12.5px var(--mono); color: var(--cyan); }
.ftr li + li { margin-top: 8px; }
.ftr a:hover { color: var(--cyan); }
.ftr .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--faint); }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-in > :first-child { grid-column: 1 / -1; } }

/* hero shared */
.hero { padding: 112px 0 120px; }
.hero .kicker { font: 400 13px var(--mono); color: var(--fg-3); }
.hero h1 { margin-top: 20px; font-size: 68px; line-height: 1.04; font-weight: 900; letter-spacing: -.035em; }
[lang="fa"] .hero h1 { letter-spacing: 0; line-height: 1.3; font-size: 60px; }
.hero .sub { margin-top: 24px; font-size: 18.5px; line-height: 1.75; color: var(--fg-2); max-width: 32rem; }
.hero .acts { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 1000px) { .hero { padding: 64px 0 80px; } .hero-in { grid-template-columns: 1fr; gap: 48px; } .hero h1 { font-size: 48px; } [lang="fa"] .hero h1 { font-size: 42px; } }

/* A product window */
.win { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); min-width: 0; }
.win-h { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line); font: 400 12.5px var(--mono); color: var(--fg-3); }
.win-h b { font-weight: 400; color: var(--fg); }
.win-h .end { margin-inline-start: auto; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero-in > * { min-width: 0; }

/* ---- shared by both landings: code box, FAQ, price table ---- */
.code { background: var(--inset); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; direction: ltr; }
.code-h { display: flex; justify-content: space-between; height: 38px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); font: 400 11.5px var(--mono); color: var(--faint); }
.code-h b { font-weight: 400; color: var(--cyan); }
.code pre { margin: 0; padding: 20px 16px; font: 400 13px/1.95 var(--mono); color: #a7b7c4; overflow-x: auto; }
.code .c { color: #5f7080; }
.code .g { color: var(--ok); }
.code .y { color: var(--cyan); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.faq-wrap { max-width: 860px; }
.faq { margin-top: 48px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq details { background: var(--card); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 16.5px; font-weight: 700; transition: background-color .15s var(--ease); }
.faq summary:hover { background: var(--lift); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 20px/1 var(--mono); color: var(--cyan); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--fg-2); font-size: 15.5px; line-height: 1.8; }
.faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

.rates { margin-top: 48px; border: 1px solid var(--line); background: var(--card); overflow-x: auto; }
.rates table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates caption { text-align: start; padding: 18px 20px 6px; font-weight: 700; }
.rates th, .rates td { padding: 12px 20px; text-align: start; border-top: 1px solid var(--line); white-space: nowrap; }
.rates thead th { font-size: 13px; font-weight: 500; color: var(--fg-3); border-top: 0; }
.rates tbody th { font-weight: 600; }
.rates td { font-variant-numeric: tabular-nums; font-weight: 600; }
.rates .u { color: var(--fg-3); font-weight: 400; }
@media (max-width: 560px) { .rates th, .rates td { padding: 10px 12px; } .rates .u { display: none; } .rates tbody th { white-space: normal; } }
.price-note { margin-top: 20px; font-size: 14.5px; color: var(--fg-3); }
.price-note a { color: var(--cyan); }
/* Hidden above the page, not beside it: off to one side would widen an RTL page. */
.skip { position: absolute; top: -80px; inset-inline-start: 16px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--cyan-btn); color: var(--on-cyan); font-weight: 700; }
.skip:focus { top: 8px; }
/* Nsincloud page parts (mock v3) */

/* the agent session in the hero: a terminal, always left to right */
.term .body { padding: 22px; direction: ltr; }
.ask { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 15px; line-height: 1.7; color: var(--fg); }
.ask i { font-style: normal; font-family: var(--mono); color: var(--cyan); }
.ask span[dir="rtl"] { text-align: right; }
.calls { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.call { display: grid; grid-template-columns: 140px 1fr auto; gap: 14px; align-items: center; height: 38px; padding: 0 14px; font: 400 12.5px var(--mono); }
.call + .call { border-top: 1px solid var(--line); }
.call code { color: var(--fg); }
.call span { color: var(--fg-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.call em { font-style: normal; color: var(--ok); }
.say { margin-top: 18px; font-size: 15px; line-height: 1.75; color: var(--body); }
.say[dir="rtl"] { text-align: right; }
.say a { color: var(--cyan); }
@media (max-width: 560px) { .call { grid-template-columns: 1fr auto; } .call span { display: none; } }

/* agents */
.clients { margin-top: 32px; font: 400 14px/2 var(--mono); color: var(--fg-3); direction: ltr; text-align: start; }
[lang="fa"] .clients { text-align: right; }
.setup { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.steps { counter-reset: s; display: grid; gap: 32px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.steps li::before { counter-increment: s; content: '0' counter(s); font: 500 14px/1.8 'IBM Plex Mono', monospace; color: var(--cyan); }
.steps b { font-size: 17px; font-weight: 700; }
.steps p { margin-top: 4px; color: var(--fg-2); font-size: 15.5px; }
.code { background: var(--inset); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; direction: ltr; }
.code-h { display: flex; justify-content: space-between; height: 38px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); font: 400 11.5px var(--mono); color: var(--faint); }
.code-h b { font-weight: 400; color: var(--cyan); }
.code pre { margin: 0; padding: 20px 16px; font: 400 13px/1.95 var(--mono); color: #a7b7c4; overflow-x: auto; }
.code .c { color: #5f7080; }
.code .g { color: var(--ok); }
.code .y { color: var(--cyan); }
@media (max-width: 960px) { .setup { grid-template-columns: 1fr; gap: 40px; } }

/* databases */
.db { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.engines { grid-template-columns: repeat(3, 1fr); direction: ltr; }
.engines > * { display: flex; align-items: center; gap: 12px; padding: 20px; font-size: 14.5px; font-weight: 600; }
.engines img { width: 24px; height: 24px; flex: none; }
.engines .ha { margin-left: auto; font: 400 11px var(--mono); color: var(--cyan); }
.engines-note { margin-top: 12px; font: 400 12px var(--mono); color: var(--faint); }
@media (max-width: 960px) { .db { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .engines { grid-template-columns: 1fr 1fr; } .engines .ha { display: none; } }

/* pricing */
.cty { position: absolute; opacity: 0; pointer-events: none; }
.p-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg label { padding: 6px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
#cty-ir:checked ~ .p-top label[for="cty-ir"], #cty-de:checked ~ .p-top label[for="cty-de"] { background: var(--cyan-btn); color: var(--on-cyan); }
.cur-de { display: none; }
#cty-de:checked ~ .sizes .cur-ir { display: none; }
#cty-de:checked ~ .sizes .cur-de { display: inline; }
.sizes { margin-top: 48px; }
.sizes h3 { display: flex; justify-content: space-between; align-items: baseline; }
.sizes h3 small { font-size: 12.5px; font-weight: 500; color: var(--cyan); }
.sizes .for { margin-top: 4px; font-size: 14px; color: var(--fg-3); }
.sizes .amt { margin-top: 28px; font-size: 32px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.sizes .amt small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--fg-3); }
.sizes .spec { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.sizes .pick { box-shadow: inset 0 2px 0 var(--cyan); }
.p-foot { margin-top: 28px; display: flex; gap: 40px; flex-wrap: wrap; font-size: 15px; color: var(--fg-2); }
.p-foot b { color: var(--fg); font-weight: 700; }
.setup > *, .db > *, .hero-in > * { min-width: 0; }
