/* Rocket Code — corporate light system */

:root {
  --ink: #0b0c10;
  --ink-2: #23262e;
  --muted: #6b7280;
  --muted-2: #8b909b;
  --line: #e4e4e0;
  --line-2: #d3d3cd;
  --bg: #ffffff;
  --soft: #f7f7f4;
  --accent: #3b32d4;
  --ok: #16794a;
  --container: 1180px;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: #dedcf7; color: var(--ink); }

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- shared bits ---------- */
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.label--inv { color: rgba(255, 255, 255, 0.55); }

.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--solid:hover { background: #000; transform: translateY(-1px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--ink); background: var(--soft); }
.btn--quiet { color: var(--muted); border-color: transparent; }
.btn--quiet:hover { color: var(--ink); }
.btn--inv { background: #fff; color: var(--ink); border-color: #fff; }
.btn--inv:hover { background: #ececea; }
.btn--invline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--invline:hover { border-color: #fff; }

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: var(--ink);
}
.wordmark__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.wordmark__text span {
  color: var(--muted-2);
  margin-inline-start: 6px;
  font-weight: 400;
}
.wordmark__text--inv { color: #fff; }
.wordmark__text--inv span { color: rgba(255, 255, 255, 0.45); }

.nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.nav a:hover { border-bottom-color: var(--ink); }

.hdr__actions { display: flex; align-items: center; gap: 6px; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 16px; height: 1px; background: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  max-width: 30em;
  margin-bottom: 30px;
}
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.specs > div { padding-inline-end: 14px; border-inline-end: 1px solid var(--line); }
.specs > div:last-child { border-inline-end: 0; }
.specs dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.specs dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- product mock ---------- */
.hero__visual { position: relative; }

.ui {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(11, 12, 16, 0.35), 0 2px 0 rgba(0, 0, 0, 0.02);
  overflow: hidden;
}
.ui__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.ui__dot { width: 7px; height: 7px; border-radius: 50%; background: #d8d8d3; }
.ui__path {
  margin-inline-start: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  direction: ltr;
  letter-spacing: 0.02em;
}
.ui__body { display: flex; min-height: 264px; }
.ui__side {
  width: 132px;
  border-inline-end: 1px solid var(--line);
  padding: 14px 12px;
  background: #fcfcfb;
  flex-shrink: 0;
}
.ui__brand {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--ink);
}
.ui__navitem {
  font-size: 11.5px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.ui__navitem.is-active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ui__main { flex: 1; padding: 14px; min-width: 0; }
.ui__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.ui__stats > div { padding: 8px 10px; border-inline-end: 1px solid var(--line); }
.ui__stats > div:last-child { border-inline-end: 0; }
.ui__stats span { display: block; font-size: 9.5px; color: var(--muted-2); margin-bottom: 2px; }
.ui__stats b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  direction: ltr;
  display: block;
}
.ui__table { width: 100%; border-collapse: collapse; }
.ui__table th {
  text-align: start;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 6px 6px;
  border-bottom: 1px solid var(--line);
}
.ui__table td {
  font-size: 10.5px;
  padding: 7px 6px;
  border-bottom: 1px solid #f0f0ec;
  color: var(--ink-2);
  white-space: nowrap;
}
.ui__table td:nth-child(3) { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.ui__table tr:last-child td { border-bottom: 0; }

.st {
  font-style: normal;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
}
.st--ok { background: #e9f5ee; color: var(--ok); }
.st--wait { background: #fdf2e3; color: #9a6410; }

.chat {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -26px;
  width: 232px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 24px 50px -28px rgba(11, 12, 16, 0.45);
  padding: 10px 10px 12px;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
}
.chat__avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #2b2b33, #55555f);
}
.chat__live {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--ok);
  border: 1px solid #d8ebdf;
  background: #eff8f2;
  border-radius: 3px;
  padding: 1px 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chat__msg {
  font-size: 10.5px;
  line-height: 1.6;
  padding: 7px 9px;
  border-radius: 7px;
  margin-bottom: 6px;
  max-width: 92%;
}
.chat__msg--in { background: var(--soft); border: 1px solid var(--line); }
.chat__msg--out { background: var(--ink); color: #f2f2f0; margin-inline-start: auto; }
.chat__mono {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  direction: ltr;
  display: inline-block;
}

/* ---------- sources strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--soft); }
.strip__row {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.strip__label { margin: 0; white-space: nowrap; }
.strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}
.strip__sep { width: 1px; height: 14px; background: var(--line-2); }

/* ---------- sections ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section--soft { background: var(--soft); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.4;
  margin-bottom: 14px;
}
.section__sub { color: var(--muted); font-size: 16px; line-height: 1.8; }

/* ---------- systems ---------- */
.system {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 56px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}
.system:last-of-type { border-bottom: 1px solid var(--line); }
.system__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}
.system h3 { font-size: 26px; margin-bottom: 10px; }
.system__desc { color: var(--muted); font-size: 15.5px; max-width: 34em; margin-bottom: 22px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.facts li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-2);
  background: #fff;
}

.system__deal {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 22px 20px;
  background: #fff;
  align-self: start;
}
.system__type {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.system__price {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.system__price s { color: var(--muted-2); font-size: 17px; font-weight: 400; margin-inline-end: 8px; }
.system__price .muted { font-size: 15px; font-weight: 400; }
.system__note { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.system__foot {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.grid-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.grid-table th, .grid-table td {
  text-align: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.grid-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
}
.grid-table tbody th { font-weight: 400; color: var(--ink-2); }
.grid-table tbody td { color: var(--muted); }
.grid-table .ok { color: var(--ink); }
.grid-table tbody tr:last-child th, .grid-table tbody tr:last-child td { border-bottom: 0; }
.row--total th, .row--total td { background: #fbfbf9; font-weight: 500; color: var(--ink); }
.row--total b { font-variant-numeric: tabular-nums; }
.table-foot { color: var(--muted-2); font-size: 12.5px; margin-top: 14px; }

/* ---------- dark band ---------- */
.band {
  background: #0b0c10;
  color: #f1f1ee;
  padding: 88px 0;
}
.band h2 { font-size: clamp(23px, 2.6vw, 32px); line-height: 1.45; margin-bottom: 44px; max-width: 22em; }
.layers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.layers li {
  padding: 24px 20px 0 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  padding-inline-end: 20px;
}
.layers li:last-child { border-inline-end: 0; }
.layers__n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 12px;
}
.layers h3 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.layers p { font-size: 13.5px; color: rgba(255, 255, 255, 0.58); line-height: 1.75; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li { padding: 24px 22px 0 0; padding-inline-end: 22px; border-inline-end: 1px solid var(--line); }
.steps li:last-child { border-inline-end: 0; }
.steps__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}
.steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; }
.faq__side h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.faq__side .section__sub { margin-bottom: 22px; }
.faq__side .btn { margin-top: 4px; }

.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 0;
  font-size: 15.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted-2);
  flex-shrink: 0;
  transition: color 0.16s ease;
}
.qa[open] summary::after { content: "−"; color: var(--ink); }
.qa p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  padding: 0 0 20px;
  max-width: 46em;
}

/* ---------- closing ---------- */
.closing { background: #0b0c10; color: #fff; padding: 72px 0; }
.closing__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.closing h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 10px; }
.closing__sub { color: rgba(255, 255, 255, 0.6); font-size: 15px; max-width: 34em; }
.closing__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 230px; }
.closing__note {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-top: 2px;
}

/* ---------- footer ---------- */
.ftr { background: #fff; padding: 60px 0 26px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 40px; }
.ftr__brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 24em; }
.ftr__col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.ftr__col a, .ftr__addr {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
}
.ftr__col a:hover { color: var(--accent); }
.ftr__addr { color: var(--muted-2); font-family: var(--mono); font-size: 12.5px; direction: ltr; }
.ftr__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; }
  .chat { inset-inline-end: 0; bottom: -22px; }
  .system { grid-template-columns: 1fr 280px; gap: 36px; }
  .layers { grid-template-columns: repeat(3, 1fr); }
  .layers li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 22px; }
  .layers li:nth-child(3) { border-inline-end: 0; }
  .faq__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 6px 24px 14px;
    transform: translateY(-115%);
    transition: transform 0.22s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .hdr__actions .btn--quiet { display: none; }
  .system { grid-template-columns: 1fr; gap: 26px; }
  .system__deal { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-inline-end: 0; }
  .steps li { padding-bottom: 22px; }
  .specs { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .specs > div:nth-child(2) { border-inline-end: 0; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .hero { padding: 54px 0 56px; }
  .section { padding: 64px 0; }
  .band { padding: 60px 0; }
  .facts { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hero__cta .btn { flex: 1; }
  .ui__side { display: none; }
  .chat { position: static; width: 100%; margin-top: 12px; box-shadow: none; }
  .hero__visual { display: flex; flex-direction: column; }
  .ftr__grid { grid-template-columns: 1fr; gap: 30px; }
  .closing__actions { width: 100%; }
  .strip__row { gap: 12px; }
}
