:root {
  --bg: #e9eff6;
  --bg2: #dbe6f2;
  --surface: #ffffff;
  --ink: #0f1b2a;
  --muted: #4d6074;
  --line: #c6d4e3;
  --accent: #1f4fe0;
  --accent-ink: #ffffff;
  --warm: #b45309;
  --ok: #0e7a55;
  --err: #b3261e;
  --net-line: #1f4fe0;
  --net-dot: #1f4fe0;
  --font: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg2: #0d1a2d;
    --surface: #111d30;
    --ink: #e8eff8;
    --muted: #95a8bd;
    --line: #23354b;
    --accent: #6f9bff;
    --accent-ink: #08101d;
    --warm: #ffb454;
    --ok: #55d0a0;
    --err: #ff8a80;
    --net-line: #6f9bff;
    --net-dot: #9dbcff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg), var(--bg2)) fixed;
  color: var(--ink);
  font: 16px/1.6 var(--font);
}

#net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.wrap.narrow { max-width: 44rem; }

/* ---------- başlıq ---------- */
.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 2.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.mark { color: var(--accent); }
.links { margin-left: auto; display: flex; gap: 1.1rem; }
.links a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.links a:hover { color: var(--ink); text-decoration: underline; }
.lang { display: flex; gap: 0.3rem; }
.lang a {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.lang a:hover { color: var(--ink); border-color: var(--muted); }
.lang a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- yazı ---------- */
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 { margin: 0 0 1.1rem; font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.hl { color: var(--warm); }
.lead { margin: 0 0 1.75rem; max-width: 36rem; color: var(--muted); font-size: 1.05rem; }
a { color: var(--accent); }

/* ---------- panel ---------- */
.panel {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- hero ---------- */
.hero { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

label { display: block; margin-bottom: 0.4rem; font-weight: 600; }

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}

button {
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: 0.6; cursor: default; }

input:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.row input { flex: 1 1 14rem; width: auto; }

#msg { min-height: 1.5rem; margin: 0.8rem 0 0; }
#msg.ok { color: var(--ok); }
#msg.err { color: var(--err); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note { margin: 1.1rem 0 0; max-width: 36rem; color: var(--muted); font-size: 0.9rem; }

.hero-side { display: grid; gap: 1rem; }
.route { display: block; width: 100%; height: auto; }
.r-box { fill: none; stroke: var(--accent); stroke-width: 2; }
.r-soft { fill: none; stroke: var(--muted); stroke-width: 1.6; opacity: 0.7; }
.r-fill { fill: var(--accent); }
.r-line { fill: none; stroke: var(--muted); stroke-width: 2; }
.r-flow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 8; animation: flow 1.1s linear infinite; }
.r-lock { fill: var(--warm); }
.r-lockarc { fill: none; stroke: var(--warm); stroke-width: 2.6; }
.r-label { fill: var(--warm); font: 700 12px var(--font); }
.r-cap { fill: var(--muted); font: 600 12px var(--font); }
@keyframes flow { to { stroke-dashoffset: -28; } }

.mail { padding: 0; overflow: hidden; }
.mail-head { padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.mail-body { margin: 0; padding: 1rem; font-family: var(--mono); font-size: 0.9rem; line-height: 1.7; overflow-x: auto; }

.trust { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.trust li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  font-size: 0.9rem;
}
.trust li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- bölmələr ---------- */
.block { margin-top: 3.5rem; }

.path { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.path li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 44rem;
  padding: 0 0 1.4rem 3rem;
  counter-increment: step;
}
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}
.path li::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.15rem;
  bottom: 0.15rem;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}
.path li:last-child::after { display: none; }
.path li strong { font-size: 1.05rem; }
.path li span { color: var(--muted); }
.path li > span:only-child { color: var(--ink); padding-top: 0.2rem; }

.price-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) {
  .price-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}
.plan-name { margin: 0; color: var(--muted); font-weight: 600; }
.amount { margin: 0.2rem 0 1rem; font-size: 3.2rem; font-weight: 800; line-height: 1; }
.amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.feats { margin: 0; padding: 0; list-style: none; }
.feats li { position: relative; padding: 0.4rem 0 0.4rem 1.7rem; }
.feats li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.65rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.status {
  margin: 1.4rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--warm);
  border-radius: 10px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  max-width: 44rem;
}

details { max-width: 48rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
footer a { color: var(--muted); }

/* ---------- ikinci səviyyəli səhifələr ---------- */
.narrow-panel { max-width: 30rem; }
.narrow-panel input { margin-bottom: 1rem; }
.narrow-panel button { width: 100%; }
.danger button { background: var(--err); color: var(--accent-ink); }

.code {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--mono);
  word-break: break-all;
}

.doc { max-width: 44rem; }
.doc h2 { margin: 2rem 0 0.6rem; font-size: 1.2rem; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.meta { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .r-flow { animation: none; }
}
