:root {
  --bg: #0F1418;
  --bg2: #161B20;
  --card: #1B2228;
  --line: #2A3138;
  --text: #E9ECEE;
  --muted: #A9B3BA;
  --green: #7FD1AE;
  --green-d: #1F6F54;
  --gold: #C9A86E;
  --warn-bg: #2A2316;
  --warn-line: #6B5A3A;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Apple SD Gothic Neo",
    "Hiragino Sans", "Yu Gothic UI", "Malgun Gothic", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--green); }
a:hover { color: #A8E6CB; }
h1, h2 { line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); max-width: 20ch; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
p { margin: 0 0 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 12px; background: var(--green); color: #08110D; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(15, 20, 24, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--text); }
.lang select {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 15px; min-height: 44px; cursor: pointer;
}

/* hero */
.hero { padding: 96px 0 72px; background: radial-gradient(900px 380px at 15% 0%, rgba(31, 111, 84, 0.28), transparent 70%); }
.kicker { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: #C9D1D6; max-width: 62ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 650; text-decoration: none; }
.btn.primary { background: var(--green); color: #08110D; }
.btn.primary:hover { background: #A8E6CB; color: #08110D; }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--green); color: var(--text); }
.fine { color: var(--muted); font-size: 14px; }

section { padding: 72px 0; }
.why { background: var(--bg2); border-block: 1px solid var(--line); }
.why p { color: #C9D1D6; font-size: 18px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; margin-bottom: 10px; }
.steps h3, .grid h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.steps p, .grid p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* security */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.grid div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid div:first-child { border-color: var(--green-d); }

/* networks */
.nets { background: var(--bg2); border-block: 1px solid var(--line); }
.chips { list-style: none; padding: 0; margin: 24px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* status */
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-inline-start: 34px; margin-bottom: 14px; color: #C9D1D6; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); }

/* warning */
.warn { padding-top: 0; }
.warnbox { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 26px 28px; }
.warnbox h2 { font-size: 22px; color: #F1E3C6; }
.warnbox p { margin: 0; color: #E3D7BE; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14.5px; }
.brandline { color: var(--text); font-weight: 700; letter-spacing: 0.14em; }

/* right-to-left: keep Latin brand and email readable */
[dir="rtl"] .brand, [dir="rtl"] .chips li, [dir="rtl"] .brandline { direction: ltr; }

@media (max-width: 900px) {
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  section { padding: 56px 0; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
