:root {
  --bg: #ffffff;
  --soft: #f5f7fb;
  --line: #e6eaf2;
  --ink: #0f1a2e;
  --sub: #5a6577;
  --blue: #2456e6;
  --blue2: #1a43c4;
  --tint: #edf2ff;
  --tint2: #dbe6ff;
  --live: #12a150;
  --red: #d13c3c;
  --mono: "IBM Plex Mono", monospace;
  --shadow: 0 1px 2px rgba(16, 30, 64, .05), 0 10px 30px -14px rgba(16, 30, 64, .12);
  --shadow-lg: 0 24px 60px -24px rgba(16, 30, 64, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.35; letter-spacing: -.3px; }

code {
  font-family: var(--mono);
  font-size: .84em;
  color: var(--blue);
  background: var(--tint);
  border-radius: 6px;
  padding: 2px 8px;
  direction: ltr;
  display: inline-block;
}

.up { animation: up .6s cubic-bezier(.2, .7, .3, 1) both; }
.up--2 { animation-delay: .12s; }
@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.mark__name { font-weight: 700; font-size: 19px; }
.mark--sm .mark__name { font-size: 16px; }
.mark__wave { display: inline-flex; align-items: center; gap: 2.5px; height: 20px; }
.mark__wave i { width: 3px; border-radius: 2px; background: var(--blue); }
.mark__wave i:nth-child(1) { height: 7px; }
.mark__wave i:nth-child(2) { height: 13px; }
.mark__wave i:nth-child(3) { height: 19px; }
.mark__wave i:nth-child(4) { height: 13px; }
.mark__wave i:nth-child(5) { height: 7px; }

button { font-family: inherit; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}
.btn--big { padding: 14px 30px; font-size: 16px; }
.btn--full { width: 100%; padding: 13px; font-size: 15.5px; }
.btn--main {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(36, 86, 230, .55);
}
.btn--main:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(36, 86, 230, .6); }
.btn--main:active { transform: none; }
.btn--main:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn--soft { background: var(--tint); color: var(--blue); }
.btn--soft:hover { background: var(--tint2); }
.btn--white { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn--white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--line {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
  padding: 9px 20px;
}
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn--danger {
  background: #fff; color: var(--red);
  border: 1px solid #f0d2d2;
  font-weight: 500;
}
.btn--danger:hover { background: #fdf3f3; border-color: var(--red); }
.btn--danger:disabled { opacity: .5; cursor: default; }

.hero { padding: 84px 0 64px; }
.hero__in { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero__tag {
  display: inline-block;
  color: var(--blue);
  background: var(--tint);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.hero__copy > p { color: var(--sub); font-size: 17.5px; max-width: 47ch; margin-top: 18px; }
.hero__act { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__viz svg { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.ring { fill: none; stroke: var(--blue); }
.r1 { stroke-opacity: .5; stroke-width: 1.6; }
.r2 { stroke-opacity: .28; stroke-width: 1.3; }
.r3 { stroke-opacity: .15; stroke-width: 1.1; }
.r4 { stroke-opacity: .07; stroke-width: 1; }
.r1, .r2, .r3, .r4 { animation: breathe 5s ease-in-out infinite; transform-origin: center; }
.r2 { animation-delay: .4s; }
.r3 { animation-delay: .8s; }
.r4 { animation-delay: 1.2s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.micdot circle { fill: var(--tint); stroke: var(--blue); stroke-opacity: .45; }
.micdot path { fill: var(--blue); }
.rl { fill: var(--sub); font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 12px; text-anchor: middle; }

.feats { padding: 60px 0; background: var(--soft); }
.feats h2, .steps h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.feats h2 { margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat h3 { font-size: 18.5px; font-weight: 600; margin: 16px 0 6px; }
.feat p { color: var(--sub); font-size: 15px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--tint);
}
.chip svg {
  width: 24px; height: 24px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.steps { padding: 72px 0; }
.steps__lead { color: var(--sub); font-size: 16.5px; margin-bottom: 38px; }

.path { list-style: none; counter-reset: st; max-width: 660px; position: relative; }
.path::before {
  content: "";
  position: absolute;
  top: 20px; bottom: 20px; right: 19px;
  width: 2px;
  background: linear-gradient(var(--tint2), var(--tint));
}
.path li {
  counter-increment: st;
  position: relative;
  padding: 0 62px 34px 0;
}
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: counter(st);
  position: absolute; right: 0; top: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--tint2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}
.path h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 4px; }
.path p { color: var(--sub); font-size: 15px; max-width: 56ch; }

.band { padding: 0 0 80px; }
.band__in {
  background: linear-gradient(135deg, var(--blue), #3e73ff);
  border-radius: 24px;
  padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  color: #fff;
  box-shadow: 0 30px 70px -30px rgba(36, 86, 230, .55);
}
.band h2 { font-size: 26px; font-weight: 700; }
.band p { opacity: .85; margin-top: 4px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot__dim { color: var(--sub); font-size: 14px; }

.authPage { background: var(--soft); }
.auth {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  padding: 24px;
}
.auth__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%; max-width: 410px;
  box-shadow: var(--shadow-lg);
}
.auth__card h1 { font-size: 24px; font-weight: 700; }
.auth__card > p { color: var(--sub); font-size: 15px; margin: 6px 0 24px; }
.auth__hint { color: var(--sub); font-size: 13.5px; margin-top: 20px; text-align: center; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }

input[type="text"] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  padding: 12px 15px;
  text-align: left;
  transition: border-color .18s, box-shadow .18s;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--tint);
}
input[type="text"]::placeholder { color: #a7afc0; }

.err { color: var(--red); font-size: 13.5px; margin: -6px 0 12px; }
.ok { color: var(--live); font-size: 13.5px; margin-top: 10px; }

.panelPage { background: var(--soft); }
.panel { padding: 44px 0 90px; max-width: 760px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.panel__head h1 { font-size: 27px; font-weight: 700; }

.pulse {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sub); font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: var(--shadow);
}
.pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.8s ease-in-out infinite; }
.pulse b { color: var(--ink); font-weight: 600; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.block__head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.block__head .chip { width: 40px; height: 40px; border-radius: 11px; }
.block__head .chip svg { width: 20px; height: 20px; }
.block__head h2 { font-size: 18px; font-weight: 600; }
.block__note { color: var(--sub); font-size: 14.5px; margin-bottom: 18px; max-width: 62ch; }
.block__warn { color: #b07a12; background: #fdf6e7; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-top: 14px; }

.line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.line input { flex: 1; min-width: 180px; width: auto; }

.keybox {
  flex: 1; min-width: 200px;
  font-size: 15px;
  padding: 11px 15px;
  border-radius: 11px;
  text-align: left;
  user-select: all;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

.how { margin-top: 18px; }
.how summary { cursor: pointer; color: var(--blue); font-size: 14.5px; font-weight: 500; }
.how summary:hover { text-decoration: underline; }
.how ol { margin: 14px 22px 4px 0; color: var(--sub); font-size: 14.5px; }
.how li { padding: 4px 0; }

.snippet {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 14px 0;
  text-align: left;
  direction: ltr;
}

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

@media (max-width: 900px) {
  .hero { padding: 48px 0 36px; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
  .hero__viz { order: -1; }
  .hero__viz svg { max-width: 270px; }
  .grid { grid-template-columns: 1fr; }
  .band__in { padding: 34px 28px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .feat { padding: 22px; }
  .block { padding: 22px 18px; }
  .path li { padding-right: 56px; }
  .btn--big { width: 100%; }
  .hero__act { flex-direction: column; }
}

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