/* Cloud9 public website (resources/views/site). Local fonts only. */
@font-face { font-family: "IRANSans"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/IRANSansWeb.woff2") format("woff2"); }
@font-face { font-family: "IRANSans"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/IRANSansWeb_Medium.woff2") format("woff2"); }
@font-face { font-family: "IRANSans"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/IRANSansWeb_Bold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/figtree-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/figtree-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/figtree-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --canvas: #ffffff;
  --soft: #f4f6fa;
  --ink: #0b1220;
  --ink-2: #344054;
  --muted: #5b6577;
  --line: #e4e8ef;
  --brand: #2563eb;        /* actions only */
  --brand-ink: #1d4ed8;
  --navy: #0b1f4d;          /* the one dark band and the map frame */
  --orbit: #f59e0b;         /* live network only (map, live dot) */
  --ok: #067647;
  --radius: 10px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.8 "Figtree", "IRANSans", Tahoma, sans-serif; text-rendering: optimizeLegibility; }
.lang-fa { font-family: "IRANSans", "Figtree", Tahoma, sans-serif; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: 0; text-wrap: balance; }
.lang-en h1, .lang-en h2 { letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible, [tabindex]:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
code, pre, .cc { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: var(--radius); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-lg { min-height: 50px; padding: 10px 24px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfd6e2; }
.btn-ghost:hover { border-color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo .brand-mark { width: 38px; height: 38px; }
.logo-word { font: 700 22px/1 "Figtree", sans-serif; letter-spacing: -0.01em; }
.logo-word b { background: linear-gradient(135deg, #4cc3ff, #2563eb 60%, #4f3fe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav .nav-lang { border: 1px solid var(--line); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; }
.menu-bars { position: relative; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
.nav-mobile { position: absolute; inset-inline: 12px; top: 72px; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px -18px rgba(11,18,32,.35); }
.nav-mobile a { padding: 12px 14px !important; }
.nav-mobile .btn { margin-top: 6px; }

/* hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 380px at 80% -10%, #e8f1ff 0, rgba(232,241,255,0) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font: 600 13px/1.5 "Figtree", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.lang-fa .eyebrow { text-align: start; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
.lang-fa .hero h1 { line-height: 1.35; }
.lead { font-size: 18px; color: var(--ink-2); margin-top: 18px; max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* live network map: the one memorable element */
.netmap { margin: 0; }
.netmap svg { display: block; width: 100%; height: auto; }
.nm-frame { fill: var(--navy); stroke: #1e3a7a; }
.nm-border { stroke: #3b5aa8; stroke-dasharray: 3 6; stroke-width: 1.5; }
.nm-visitor { fill: #13306e; stroke: #3b5aa8; }
.nm-person { fill: none; stroke: #cfe0ff; stroke-width: 1.8; }
.nm-node { stroke: #0b1f4d; stroke-width: 2; }
.nm-node-abroad { fill: #4cc3ff; }
.nm-node-iran { fill: #34d399; }
.nm-flow { fill: none; stroke: url(#nm-line); stroke-width: 2.4; stroke-dasharray: 6 7; animation: nm-flow 1.6s linear infinite; }
.nm-origin { fill: #fff; }
.nm-label { fill: #cfe0ff; font: 500 13px "IRANSans", "Figtree", sans-serif; text-anchor: middle; }
.nm-label-strong { fill: #fff; font-weight: 700; }
.nm-label-origin { fill: var(--navy); font-weight: 700; }
@keyframes nm-flow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .nm-flow { animation: none; } }
.netmap figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 12px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--orbit); box-shadow: 0 0 0 4px rgba(245,158,11,.18); flex: none; }
.cc { font-size: 12.5px; color: var(--ink-2); }

/* facts */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact strong { font-size: 28px; line-height: 1.3; }
.fact span { color: var(--muted); font-size: 14.5px; }

/* bands */
.band { padding: 80px 0; }
.band-tight { padding: 36px 0 80px; }
.band-soft { background: var(--soft); }
.band-dark { background: var(--navy); color: #e7eefc; }
.band-dark h2 { color: #fff; }
.band-dark p { color: #c7d5f3; }
.band-head { max-width: 760px; margin-bottom: 40px; }
.band-head h2, .split h2, .faq-wrap > h2, .final h2 { font-size: clamp(24px, 3vw, 34px); }
.band-head p { color: var(--ink-2); margin-top: 12px; font-size: 17px; }
.more { margin-top: 28px; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* problems: question / answer rows */
.qa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.qa li { padding: 22px 0; border-top: 1px solid var(--line); }
.qa-q { font-weight: 700; font-size: 17px; }
.qa-a { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); margin-top: 8px; }
.qa-a .ico { color: var(--brand); flex: none; margin-top: 5px; }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dfe4ec; }
.services li { padding: 28px 24px 30px 0; border-bottom: 1px solid #dfe4ec; }
[dir="rtl"] .services li { padding: 28px 0 30px 24px; }
.services li:not(:nth-child(3n+1)) { padding-inline-start: 24px; border-inline-start: 1px solid #dfe4ec; }
.svc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); border: 1px solid #dfe4ec; }
.services h3 { font-size: 18px; margin-top: 16px; }
.services p { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 700; font-size: 17px; }
.steps h3 { font-size: 19px; margin-top: 16px; }
.steps p { color: var(--ink-2); margin-top: 6px; }

/* resilience */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.split header p { margin-top: 12px; font-size: 17px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.ticks .ico { color: #34d399; flex: none; margin-top: 4px; }
.ticks-light .ico { color: var(--ok); }

/* integrations */
.integrations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.integrations h3 { font-size: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); display: inline-block; }
.integrations p { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.6fr; gap: 48px; }
.faq details { border-bottom: 1px solid #dfe4ec; }
.faq details:first-child { border-top: 1px solid #dfe4ec; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 "Figtree", sans-serif; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 760px; }

/* final */
.final { padding: 64px 0; border-top: 1px solid var(--line); }
.final-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final p { color: var(--ink-2); margin-top: 8px; font-size: 17px; }
.final .actions { margin-top: 0; }

/* page heads */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.plan { position: relative; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; background: #fff; }
.plan + .plan { border-inline-start: 1px solid var(--line); }
.plan-pick { background: #f5f9ff; box-shadow: inset 0 3px 0 var(--brand); }
.plan-flag { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); }
.plan h2 { font: 700 20px/1.3 "Figtree", sans-serif; }
.plan-price strong { font-size: 28px; line-height: 1.3; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-ask { font-size: 20px !important; color: var(--ink-2); }
.plan-keys { list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: 15px; display: grid; gap: 4px; flex: 1; }
.plan .btn { width: 100%; }
.compare { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.compare table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.compare thead th { background: var(--soft); font: 700 15px/1.4 "Figtree", sans-serif; }
.compare tbody th { font-weight: 500; color: var(--ink-2); min-width: 240px; }
.compare tr:last-child > * { border-bottom: 0; }
.yes { color: var(--ok); display: inline-flex; }
.no { color: #98a2b3; display: inline-flex; }
.split-plain { margin-top: 56px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.h3 { font-size: 20px; margin-bottom: 16px; }
.note { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* docs */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list a { display: grid; grid-template-columns: 300px 1fr auto; gap: 24px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc-list a:hover .doc-title { color: var(--brand-ink); }
.doc-title { font-weight: 700; font-size: 18px; }
.doc-sum { color: var(--ink-2); }
.doc-go { color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.doc-side { position: sticky; top: 92px; align-self: start; font-size: 15px; }
.doc-all { font-weight: 700; text-decoration: none; display: block; margin-bottom: 10px; }
.doc-side ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.doc-side a:not(.doc-all) { display: block; padding: 7px 14px; color: var(--ink-2); text-decoration: none; margin-inline-start: -1px; border-inline-start: 2px solid transparent; }
.doc-side a[aria-current="page"] { color: var(--ink); font-weight: 700; border-inline-start-color: var(--brand); }
.doc { max-width: 780px; }
.doc-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.doc-head .eyebrow a { text-decoration: none; }
.toc { margin: 28px 0 8px; padding: 16px 20px; background: var(--soft); border-radius: 12px; }
.toc p { font-weight: 700; font-size: 14px; color: var(--muted); }
.toc ul { margin: 8px 0 0; padding-inline-start: 18px; }
.doc-sec { margin-top: 36px; }
.doc-sec h2 { font-size: 22px; margin-bottom: 12px; scroll-margin-top: 90px; }
.doc-sec p + p { margin-top: 12px; }
.doc-sec ul { margin: 10px 0; padding-inline-start: 22px; }
.doc-sec li { margin: 6px 0; }
.doc-sec pre { margin: 14px 0; background: #0b1220; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.7; text-align: left; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
.table-wrap th, .table-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table-wrap thead th { background: var(--soft); }
.table-wrap tr:last-child td { border-bottom: 0; }
.callout { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #fff8e6; border: 1px solid #f7d58b; color: #5b3d00; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; text-decoration: none; font-weight: 700; max-width: 48%; }
.pager a span { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.pager-next { text-align: end; margin-inline-start: auto; }

/* footer */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-about p { color: var(--ink-2); margin-top: 12px; max-width: 340px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav h2 { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services li, [dir="rtl"] .services li { padding: 24px 20px 26px; border-inline-start: 0 !important; }
  .services li:nth-child(2n) { border-inline-start: 1px solid #dfe4ec !important; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(3) { border-inline-start: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-side { position: static; }
  .doc-side ol { display: flex; flex-wrap: wrap; gap: 4px; border: 0; }
  .doc-side a:not(.doc-all) { border: 1px solid var(--line) !important; border-radius: 999px; padding: 5px 12px; margin: 0; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .qa, .split, .faq-wrap, .split-plain { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doc-list a { grid-template-columns: 1fr auto; }
  .doc-sum { grid-column: 1; }
  .doc-go { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 28px; }
  .lead { font-size: 17px; }
  .band { padding: 56px 0; }
  .facts-row { grid-template-columns: 1fr; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(2n) { padding: 22px 0 !important; border-inline-start: 0 !important; }
  .integrations { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--line); }
  .actions .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .compare table thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare tbody th { display: block; border: 0; padding: 8px 16px 4px; min-width: 0; color: var(--ink); font-weight: 700; }
  .compare td { display: flex; justify-content: space-between; border: 0; padding: 4px 16px; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-family: "Figtree", sans-serif; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .table-wrap td { display: block; border: 0; padding: 4px 14px; }
  .table-wrap td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 13px; }
}
