/* Free Door VPN website. Matches the app icon: navy, cyan → blue → violet, flat with
   isometric art. No external fonts or scripts: visitors' addresses never reach a third
   party. Language: lang.js sets <html lang dir>; .en / .ar blocks are shown by CSS. */

:root {
  --bg: #0b1020;
  --bg-2: #10183a;
  --surface: #141c38;
  --line: #24305a;
  --ink: #e8ecf7;
  --muted: #9aa6c7;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #5ef0ff 0%, #2f8df6 45%, #7c3aed 100%);
  --radius: 16px;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 17px/1.6 var(--sans);
  background: radial-gradient(1100px 600px at 70% -10%, #1a2550 0%, transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--arabic); }
html:not([lang="ar"]) .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }
a { color: #7fdcff; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 24px; }
h3 { font-size: 18px; margin-bottom: 4px; }
p { margin: 0; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(11, 16, 32, .85);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.logo img { border-radius: 9px; }
.by { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.spacer { flex: 1; }
.navlink { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.navlink:hover, .navlink:focus-visible { color: var(--ink); background: var(--surface); outline: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); padding: 7px 12px; cursor: pointer; font: 600 14px var(--sans); }
.lang-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.ar-label { font-family: var(--arabic); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.kicker { display: inline-block; font-size: 14px; color: var(--cyan); border: 1px solid #1d4d6a;
          background: rgba(34, 211, 238, .08); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
h1 { font-size: clamp(42px, 6.5vw, 76px); letter-spacing: -1px; margin-bottom: 18px; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.25; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: #c3cbe3; max-width: 34em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 12px;
       background: var(--grad); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
       box-shadow: 0 10px 30px -8px rgba(59, 130, 246, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.meta { font-size: 14px; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 460px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
               border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.features p { color: var(--muted); font-size: 15.5px; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); position: relative;
       box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px -6px rgba(124, 58, 237, .7); }
.ico::after { content: ""; position: absolute; inset: 10px; background: #fff;
              -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.i1 { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='M6.3 7.3a8 8 0 1 0 11.4 0'/%3E%3C/svg%3E"); }
.i2 { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.2-8 11-4.6-1.8-8-6-8-11V5z'/%3E%3C/svg%3E"); }
.i3 { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.6 5.6l12.8 12.8'/%3E%3C/svg%3E"); }
.i4 { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h13l-3-3M20 16H7l3 3'/%3E%3C/svg%3E"); }
.i5 { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E"); }
.i6 { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }

/* ---------- steps ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 58px; color: var(--muted); }
html[lang="ar"] .steps li { padding: 0 58px 22px 0; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px;
                    border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: #fff;
                    background: var(--surface); border: 1px solid #2c3b70; box-shadow: inset 0 -3px 0 rgba(124, 58, 237, .5); }
.steps strong { display: block; color: var(--ink); font-size: 17px; }

/* ---------- note ---------- */
.note { background: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(124, 58, 237, .12));
        border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.note h2 { font-size: 24px; margin-bottom: 10px; }
.note p { color: #c3cbe3; max-width: 52em; }
.faq h3 { margin-top: 26px; }
.faq p { color: #c3cbe3; max-width: 52em; margin: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer .small { font-size: 13px; }
footer .links a + a { margin-inline-start: 16px; }

/* ---------- privacy page ---------- */
.doc .wrap { max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0 18px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: #c3cbe3; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 8px; }
.stamp { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; }
.box.black { background: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(124, 58, 237, .12)); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(70%, 320px); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .by, .navlink { display: none; }
  section { padding: 40px 0; }
}
