/* 4 Horseman Security — website. Midnight navy, champagne gold, serif display type (matches the app). */
:root {
  --bg: #06080e; --bg2: #0b0f19; --panel: #0f1422; --panel2: #141a2b; --line: rgba(214, 182, 126, .16); --line2: rgba(255, 255, 255, .07);
  --text: #f3eee4; --muted: #9aa0b3; --dim: #6b7186; --gold: #d6b67e; --gold-hi: #f3dcaa; --gold-lo: #a9834c;
  --ok: #4fd1a1; --bad: #ef6f6c; --warn: #f0b45a;
  --grad: linear-gradient(135deg, #f3dcaa 0%, #d6b67e 45%, #a9834c 100%);
  --serif: 'Lora', 'Noto Serif', Georgia, 'Times New Roman', serif; --sans: 'Inter', Roboto, 'Segoe UI', Arial, sans-serif;
  --r: 18px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 78% -8%, rgba(214, 182, 126, .13), transparent 60%), radial-gradient(800px 700px at -10% 110%, rgba(40, 64, 140, .22), transparent 60%), var(--bg); }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 19px; color: #c9cbd6; max-width: 620px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .gold { color: var(--gold); } .small { font-size: 14px; } .center { text-align: center; }
.gold-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(6, 8, 14, .72); border-bottom: 1px solid var(--line2); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand b { font: 500 18px/1 var(--serif); letter-spacing: .22em; white-space: nowrap; }
.brand small { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: .24em; color: var(--gold); margin-top: 5px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.top nav a.link { color: var(--muted); font-size: 15px; white-space: nowrap; }
.top nav a.link:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .top nav a.link.hide-sm { display: none; } .top nav { gap: 14px; } .brand small { display: none; } }
@media (max-width: 400px) { .brand b { letter-spacing: .12em; font-size: 16px; } .brand img { width: 28px; } .top .wrap { gap: 10px; padding: 0 16px; } .top .btn-sm { padding: 9px 13px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; cursor: pointer; font: 600 15px/1 var(--sans);
  padding: 14px 24px; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--grad); color: #14110a; box-shadow: 0 10px 30px -10px rgba(214, 182, 126, .55); }
.btn-gold:hover { box-shadow: 0 14px 34px -8px rgba(214, 182, 126, .7); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-danger { background: transparent; color: var(--bad); border: 1px solid rgba(239, 111, 108, .35); }
.btn-big { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* sections */
section { padding: 96px 0; }
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--dim); }
.ad { position: relative; margin: 0 auto; width: 100%; max-width: 330px; padding: 9px; border-radius: 34px; background: linear-gradient(160deg, #2a2f3d, #0c0f17);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(214, 182, 126, .22); }
.ad video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; background: #06080e; object-fit: cover; }
.ad-btn { position: absolute; right: 22px; top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--sans); letter-spacing: .04em; color: var(--text); background: rgba(6, 8, 14, .72); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.ad-btn::before { content: ''; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9a4 4 0 0 1 0 6M19.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9a4 4 0 0 1 0 6M19.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; }
.ad-btn:hover, .ad-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }
.ad-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .ad { max-width: 300px; } }
.emblem-row { display: flex; align-items: center; gap: 14px; }
.emblem-row img { width: 54px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } section { padding: 70px 0; } }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: var(--r); padding: 26px; }
.card.hl { border-color: var(--line); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(214, 182, 126, .1); border: 1px solid var(--line); color: var(--gold); margin-bottom: 18px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #14110a; font: 600 16px/1 var(--sans); margin-bottom: 16px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-card { padding: 38px; position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.price { font: 500 64px/1 var(--serif); margin: 14px 0 4px; }
.price small { font: 500 18px var(--sans); color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #d7d9e2; font-size: 15px; }
.checks li > span { flex: 1; }
.checks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(79, 209, 161, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fd1a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

details { border-bottom: 1px solid var(--line2); padding: 20px 0; }
details summary { cursor: pointer; list-style: none; font: 500 19px var(--serif); display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; color: var(--gold); font-family: var(--sans); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin-top: 10px; max-width: 760px; }

footer { border-top: 1px solid var(--line2); padding: 40px 0 60px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--muted); }

/* forms & auth pages */
.auth { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 50px 22px 80px; }
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; width: 100%; max-width: 980px; align-items: start; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } }
.panel { width: 100%; max-width: 480px; margin: 0 auto; }
.panel h1 { font-size: 36px; margin: 12px 0 8px; }
.field { margin-top: 18px; }
.field label { display: block; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input { width: 100%; background: #0a0d16; border: 1px solid var(--line2); border-radius: 14px; color: var(--text); font: 16px var(--sans); padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 182, 126, .12); }
.field .hint { color: var(--dim); font-size: 13px; margin-top: 7px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.code-input { text-transform: uppercase; letter-spacing: .12em; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted); font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; }
.form-actions { margin-top: 26px; display: grid; gap: 12px; }
.form-actions .btn { width: 100%; }
.alert { border-radius: 14px; padding: 13px 16px; font-size: 14px; margin-top: 18px; border: 1px solid; }
.alert.err { color: #ffc9c7; background: rgba(239, 111, 108, .08); border-color: rgba(239, 111, 108, .3); }
.alert.ok { color: #c6f3e2; background: rgba(79, 209, 161, .08); border-color: rgba(79, 209, 161, .3); }
.alert.info { color: #f1e4c8; background: rgba(214, 182, 126, .07); border-color: var(--line); }
.secure { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; justify-content: center; }
.secure svg { width: 14px; height: 14px; }
.summary .line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.summary .line:last-of-type { border: 0; }
.summary .total { font-weight: 600; }

.bigcode { font: 500 clamp(26px, 6vw, 44px)/1.15 var(--serif); letter-spacing: .16em; margin: 10px 0; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; margin-top: 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--gold); }
.pill.ok { color: var(--ok); border-color: rgba(79, 209, 161, .35); } .pill.bad { color: var(--bad); border-color: rgba(239, 111, 108, .35); } .pill.warn { color: var(--warn); border-color: rgba(240, 180, 90, .35); }
.acct { max-width: 920px; margin: 0 auto; padding: 56px 22px 90px; }
.acct-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--grad); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(214, 182, 126, .2); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { max-width: 780px; margin: 0 auto; padding: 60px 22px 90px; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #c9cbd6; }
.legal p + p { margin-top: 12px; }

/* language menu */
.lang-select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0b3' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") no-repeat 10px center / 16px;
  color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 12px 8px 32px; font: 500 14px var(--sans); cursor: pointer; max-width: 150px; }
.lang-select:hover, .lang-select:focus { border-color: var(--gold); color: var(--text); outline: none; }
.lang-select option { background: #0f1422; color: var(--text); }
[dir="rtl"] .lang-select { background-position: calc(100% - 10px) center; padding: 8px 32px 8px 12px; }
@media (max-width: 760px) { .lang-select { max-width: 110px; padding-right: 8px; } }
[dir="rtl"] .top nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .kv dd { text-align: left; }
footer .foot-lang { display: none; }
@media (max-width: 600px) { body:not(.dash-body) .top .lang-select { display: none; } footer .foot-lang { display: inline-block; max-width: none; } }
footer nav { flex-wrap: wrap; align-items: center; }
/* Right-to-left (Arabic): keep Latin names such as "4 Horseman Security" in their own reading order. */
[dir="rtl"] [translate="no"], [dir="rtl"] .brand b, [dir="rtl"] footer .wrap > span, [dir="rtl"] h1 { unicode-bidi: plaintext; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan-card { padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan-card .price { font-size: 46px; }
.plan-card .price-word { font-size: 40px; }
.plan-card .checks { margin: 18px 0 22px; flex: 1; }
.plan-card .btn { width: 100%; }
.plan-card.featured { border-color: rgba(214, 178, 106, .55); box-shadow: 0 0 0 1px rgba(214, 178, 106, .25), 0 18px 50px rgba(0, 0, 0, .35); }
.plan-flag { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(214, 178, 106, .16); color: var(--gold, #d6b26a); }
.plan-pick { display: grid; gap: 10px; margin: 6px 0 4px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 14px; cursor: pointer; }
.plan-opt:has(input:checked) { border-color: rgba(214, 178, 106, .7); background: rgba(214, 178, 106, .07); }
.plan-opt input { width: auto; accent-color: #d6b26a; }
.plan-opt .grow { flex: 1; }
.plan-opt b { display: block; }
.plan-opt .pp { font-weight: 600; white-space: nowrap; }
.field .plan-opt { display: flex; font: 400 15px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); margin: 0; }
.field .plan-opt input, .plan-opt input { width: 18px; height: 18px; padding: 0; flex: none; box-shadow: none; }
.plan-opt .grow > .small { display: block; margin-top: 3px; }
.field textarea, .field select { width: 100%; background: #0a0d16; border: 1px solid var(--line2); border-radius: 14px; color: var(--text); font: 16px var(--sans); padding: 14px 16px; outline: none; resize: vertical; }
.field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 182, 126, .12); }
