/* Safe Machine website. One stylesheet, no web fonts, no trackers.
   Logical properties (margin-inline, padding-inline-start…) so a Hebrew (RTL) version only needs dir="rtl". */

:root {
  --blue: #2B6FFF;
  --green: #12B886;
  --brand: linear-gradient(135deg, var(--blue), var(--green));
  --bg: #FBFCFE;
  --bg-2: #F2F5FA;
  --card: #FFFFFF;
  --text: #0B1B33;
  --muted: #55627A;
  --faint: #8A95A8;
  --line: rgba(11, 27, 51, .09);
  --shadow: 0 1px 2px rgba(11,27,51,.05), 0 8px 30px rgba(11,27,51,.07);
  --shadow-lg: 0 2px 6px rgba(11,27,51,.06), 0 30px 80px rgba(11,27,51,.16);
  --radius: 20px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070D18;
    --bg-2: #0C1424;
    --card: #101A2C;
    --text: #EEF3FB;
    --muted: #A3AFC4;
    --faint: #6E7A90;
    --line: rgba(255,255,255,.08);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-inline-start: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 6px 20px color-mix(in srgb, var(--blue) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 28px color-mix(in srgb, var(--blue) 42%, transparent); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--line); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 32px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 30%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 70%),
    radial-gradient(40% 50% at 70% 40%, color-mix(in srgb, var(--green) 16%, transparent), transparent 70%);
}
.hero-icon { width: 96px; height: 96px; margin: 0 auto 20px; filter: drop-shadow(0 18px 30px rgba(11,27,51,.18)); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
h1 {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.03; letter-spacing: -.035em; font-weight: 750;
  margin: 0 auto 22px; max-width: 20ch;
}
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 40ch; margin: 0 auto 34px; letter-spacing: -.005em; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.req { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

/* ---------- Product mock (pure HTML/CSS illustration) ---------- */
.stage { padding: 30px 0 80px; }
.mock {
  max-width: 1040px; margin-inline: auto; border-radius: 14px; overflow: hidden;
  background: #1B1F27; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  font-size: 13px; color: #E8ECF3; text-align: start;
}
.mock-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding-inline: 14px; background: #23272F; border-bottom: 1px solid rgba(255,255,255,.06); }
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.mock-title { font-weight: 600; color: #C9D1DE; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: #B9C3D3; font-size: 12px; }
.pill .led { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.mock-bar .pill { margin-inline-start: auto; }
.mock-body { display: grid; grid-template-columns: 1fr 290px; min-height: 470px; }
.guest {
  position: relative; padding: 22px 22px 76px;
  background:
    radial-gradient(70% 90% at 20% 10%, #3D7BFF 0%, transparent 60%),
    radial-gradient(60% 80% at 90% 90%, #13B98A 0%, transparent 60%),
    linear-gradient(135deg, #1B3D8F, #0D5E5A);
}
.guest-tag { position: absolute; top: 0; inset-inline: 0; padding: 6px 14px; font-size: 11.5px; background: rgba(6,40,36,.65); color: #CFEDE5; display: flex; gap: 6px; align-items: center; }
.guest-tag svg { width: 12px; height: 12px; }
.app-win { margin-top: 26px; background: #FFFFFF; color: #1D2433; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.app-win-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #F1F3F6; border-bottom: 1px solid #E3E7ED; }
.app-win-bar .dots i { width: 10px; height: 10px; }
.url { flex: 1; background: #fff; border: 1px solid #E1E5EB; border-radius: 6px; padding: 3px 10px; color: #6B7487; font-size: 12px; }
.chat { padding: 18px 20px; display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; line-height: 1.45; }
.msg.me { justify-self: end; background: #E8EEFF; }
.msg.ai { background: #F3F5F8; }
.msg .file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; padding: 4px 9px; border-radius: 6px; background: #fff; border: 1px solid #E1E5EB; font-size: 12px; font-weight: 600; }
.taskbar { position: absolute; bottom: 14px; inset-inline: 0; margin-inline: auto; width: max-content; display: flex; gap: 8px; padding: 7px 9px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); border-radius: 14px; }
.taskbar i { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.85); }
.taskbar i:nth-child(1) { background: linear-gradient(135deg,#6EA8FF,#2B6FFF); }
.taskbar i:nth-child(2) { background: linear-gradient(135deg,#7BE3C3,#12B886); }
.taskbar i:nth-child(3) { background: linear-gradient(135deg,#FFD66B,#F5A524); }
.taskbar i:nth-child(4) { background: linear-gradient(135deg,#C7CDD8,#8E97A8); }

.side { background: #1F232B; border-inline-start: 1px solid rgba(255,255,255,.06); padding: 16px; display: grid; gap: 16px; align-content: start; }
.notice { display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; background: rgba(18,184,134,.12); color: #BFEBDD; font-size: 12.5px; line-height: 1.4; }
.notice svg { flex: none; width: 18px; height: 18px; color: #34D399; }
.tray h4 { margin: 0; font-size: 13px; color: #F2F5FA; }
.tray p { margin: 2px 0 8px; font-size: 11.5px; color: #8E99AD; }
.drop { border: 1.5px dashed rgba(52,211,153,.45); border-radius: 10px; padding: 10px; display: grid; gap: 7px; }
.row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 12.5px; }
.row .ic { width: 22px; height: 26px; border-radius: 4px; background: linear-gradient(#E9EEF6,#C9D3E2); flex: none; }
.row .ic.x { background: linear-gradient(#7BE3B0,#1E9E62); }
.row small { display: block; color: #8E99AD; font-size: 11px; }
.row .take { margin-inline-start: auto; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.net { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #B9C3D3; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.06); }
.net .led { width: 7px; height: 7px; border-radius: 50%; background: #34D399; }
@media (max-width: 820px) {
  .mock-body { grid-template-columns: 1fr; }
  .side { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.06); }
  .guest { min-height: 0; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.03em; font-weight: 720; margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
h3 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); position: relative; }
.step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--brand); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
.step .art { height: 96px; margin: 0 0 18px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; }
.step .art svg { width: 56px; height: 56px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: var(--brand); }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.feature.wide { grid-column: span 2; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } .feature.wide { grid-column: span 2; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; } }

/* Choose a computer */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choice { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.screen { aspect-ratio: 16 / 9.4; position: relative; overflow: hidden; }
.screen.mac { background: radial-gradient(80% 90% at 15% 0%, #5B7CFF, transparent 60%), radial-gradient(80% 100% at 100% 100%, #F08C6A, transparent 55%), linear-gradient(135deg, #4A3AA8, #B46BC8); }
.screen.mac .menubar { position: absolute; top: 0; inset-inline: 0; height: 18px; background: rgba(255,255,255,.22); display: flex; gap: 8px; align-items: center; padding-inline: 12px; }
.screen.mac .menubar i { height: 5px; width: 26px; border-radius: 3px; background: rgba(255,255,255,.85); }
.screen.mac .menubar i:first-child { width: 8px; height: 8px; border-radius: 50%; }
.screen.mac .menubar i:last-child { margin-inline-start: auto; width: 40px; }
.screen.mac .dock { position: absolute; bottom: 12px; inset-inline: 0; margin-inline: auto; width: max-content; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.3); }
.screen.mac .dock i { width: 24px; height: 24px; border-radius: 7px; }
.screen.pc { background: radial-gradient(60% 70% at 50% 45%, #8DB8F5, transparent 70%), linear-gradient(160deg, #2A63D8, #173C99); }
.screen.pc .bar { position: absolute; bottom: 0; inset-inline: 0; height: 30px; background: rgba(14,22,40,.88); display: flex; gap: 7px; align-items: center; justify-content: center; }
.screen.pc .bar i { width: 16px; height: 16px; border-radius: 4px; }
.screen.pc .bar b { position: absolute; inset-inline-end: 12px; width: 34px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); }
.c1 { background: #4C8DFF; } .c2 { background: #6CCBF6; } .c3 { background: #55C46B; } .c4 { background: #F3C846; } .c5 { background: #F08B47; } .c6 { background: #E9546A; } .c7 { background: #B964E6; } .c8 { background: #9AA2AE; }
.choice-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.choice-body h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 24px; margin: 0; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); letter-spacing: 0; }
.choice-body p { color: var(--muted); margin: 0; }
.choice-body ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; }
.choice-body li { display: flex; gap: 9px; align-items: flex-start; }
.choice-body li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.6 5.9-4.2 4.6a.8.8 0 0 1-1.2 0L4.4 8.6a.8.8 0 1 1 1.2-1.1l1.2 1.3 3.6-4a.8.8 0 1 1 1.2 1.1Z'/%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 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.6 5.9-4.2 4.6a.8.8 0 0 1-1.2 0L4.4 8.6a.8.8 0 1 1 1.2-1.1l1.2 1.3 3.6-4a.8.8 0 1 1 1.2 1.1Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.choice-body .meta { margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--faint); }
@media (max-width: 820px) { .choices { grid-template-columns: 1fr; } }

/* AI tools strip */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.tool { padding: 12px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; box-shadow: var(--shadow); }
.tools-note { text-align: center; color: var(--muted); max-width: 620px; margin: 26px auto 0; font-size: 16px; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }

/* Final CTA */
.final { text-align: center; padding: 110px 0; }
.final .card { max-width: 900px; margin-inline: auto; padding: 64px 32px; border-radius: 32px; color: #fff; background: radial-gradient(80% 120% at 0% 0%, #4C86FF, transparent 60%), radial-gradient(80% 120% at 100% 100%, #1FD49E, transparent 60%), linear-gradient(135deg, #1F4FD1, #0E8F6C); box-shadow: var(--shadow-lg); }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.85); font-size: 19px; margin: 0 auto 30px; max-width: 34ch; }
.final .btn-primary { background: #fff; color: #0B1B33; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.final .req { color: rgba(255,255,255,.7); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--faint); }
footer .wrap { display: grid; gap: 18px; }
.foot-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-top nav { display: flex; gap: 22px; margin-inline-start: auto; flex-wrap: wrap; }
.foot-top nav a { color: var(--muted); }
.fine { font-size: 12.5px; line-height: 1.6; max-width: 900px; }

/* ---------- Document pages (privacy, support, download) ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); max-width: none; margin-bottom: 10px; text-align: start; }
.doc .updated { color: var(--faint); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.callout { padding: 22px 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); margin: 24px 0; }
.callout p { margin: 0; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.contact-cards .feature h3 { font-size: 18px; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.center { text-align: center; }
.download-hero { text-align: center; padding: 96px 0 110px; }
.download-hero h1 { margin-inline: auto; }
.strong { font-weight: 650; }
.faq.faq-full { max-width: none; }
h1, h2, h3 { text-wrap: balance; }
.lede, .section-head p { text-wrap: pretty; }
