:root {
  --bg: #0b0f1c;
  --bg-deep: #070a14;
  --card: #141a2b;
  --card-2: #0f1424;
  --line: rgba(148, 163, 200, 0.14);
  --text: #f2f4fa;
  --muted: #9aa3bd;
  --blue: #5c8dff;
  --cyan: #2cc6ea;
  --green: #3ddc97;
  --violet: #a78bfa;
  --accent: var(--blue);
  --nav-accent: var(--blue);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
b, strong { font-weight: 600; color: #fff; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.a-blue { --accent: var(--blue); }
.a-cyan { --accent: var(--cyan); }
.a-green { --accent: var(--green); }
.a-violet { --accent: var(--violet); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav li { height: 100%; }
.nav li a {
  display: flex; align-items: center; height: 100%;
  padding: 0 12px; font-size: 15px; text-decoration: none; color: var(--text);
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  transition: border-color .3s;
}
.nav li a:hover { color: #fff; border-bottom-color: var(--line); }
.nav li a.current { border-bottom-color: var(--nav-accent); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; text-align: center; background: linear-gradient(180deg, var(--bg-deep), var(--bg) 60%); }
.hero-title { display: inline-flex; align-items: center; gap: 20px; }
.hero-title img { width: 76px; height: 76px; }
.hero h1 { font-size: clamp(44px, 8vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.hero .tagline { margin: 28px auto 0; max-width: 520px; font-size: 21px; line-height: 1.4; color: var(--accent); }
.platforms { margin-top: 18px; font-size: 14px; color: var(--muted); }

.cta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-block; min-width: 200px; padding: 9px 24px;
  border-radius: 6px; border: 1px solid rgba(148, 163, 200, 0.35);
  background: #1a2136; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 500;
  transition: filter .15s, background .15s;
}
.btn:hover { background: #222b45; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06102b; }
.btn.primary:hover { filter: brightness(1.1); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero-shot { max-width: 1120px; margin: 56px auto 0; padding: 0 24px; position: relative; }

/* ---------- sections & cards ---------- */
section.features { padding: 24px 0 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}
.card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 8px; }
.card p + p { margin-top: 8px; }

.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wide .media { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.wide.flip .media { order: 2; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.grid-2 .card { text-align: left; }
.grid-2 .card svg.ico { display: block; width: 48px; height: 48px; margin: 0 auto 10px; color: #7f89a6; }
.grid-2 .card h3 { text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.grid-3 .card { padding: 20px; font-size: 14.5px; line-height: 1.5; }
.grid-3 .card h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.grid-3 .card svg.ico {
  width: 26px; height: 26px; flex: none; color: #7f89a6;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.section-title { margin: 44px 0 0; text-align: center; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.section-title + .grid-3 { margin-top: 20px; }

.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.services li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 500; padding: 7px 14px 7px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card-2); color: #d5daea;
}
.services li svg { width: 24px; height: 24px; flex: none; }
.services li svg.gen { color: #9aa3bd; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- closing ---------- */
.closing { margin-top: 56px; padding: 88px 0; text-align: center; border-top: 1px solid var(--line); background: var(--bg-deep); }
.closing img { width: 92px; height: 92px; }
.closing h2 { margin-top: 36px; font-size: clamp(36px, 6vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }

footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 40px 0 56px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer b { color: var(--text); font-weight: 500; }
footer .right { text-align: right; }

/* ---------- mock screenshots (all sizes in em so they scale like images) ---------- */
.shot { container-type: inline-size; }
.shot > .win { font-size: clamp(5px, 1.18cqw, 13px); }
.media.shot > .win { font-size: clamp(6px, 2.9cqw, 12.5px); }

.win {
  background: #1b2030; color: #dfe3ee; text-align: left; line-height: 1.35;
  border: 1px solid rgba(160, 175, 215, 0.22); border-radius: 1em;
  box-shadow: 0 2.5em 6em rgba(0, 0, 0, 0.55); overflow: hidden;
}
.lights { display: flex; gap: .55em; }
.lights i { width: .95em; height: .95em; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.finder { display: grid; grid-template-columns: 17em 1fr; height: 39em; }
.finder .side { background: #151a28; border-right: 1px solid rgba(160, 175, 215, 0.12); padding: 1.1em .8em; }
.finder .side .lights { margin: 0 0 1.4em .3em; }
.side h4 { margin: 1.1em 0 .35em .6em; font-size: .82em; font-weight: 600; color: #717b97; }
.side .it { display: flex; align-items: center; gap: .6em; padding: .32em .6em; border-radius: .45em; white-space: nowrap; }
.side .it.sel { background: rgba(92, 141, 255, 0.24); color: #fff; }
.side .it .ej { margin-left: auto; color: #717b97; font-size: .85em; }
.dv { width: 1.25em; height: .95em; border-radius: .25em; background: var(--c, #5c8dff); flex: none; position: relative; }
.dv::after { content: ""; position: absolute; right: .18em; top: 50%; width: .24em; height: .24em; margin-top: -.12em; border-radius: 50%; background: #d8ffe9; }
.fd { width: 1.25em; height: .95em; border-radius: .2em; background: #4f86e8; flex: none; }
.fl { width: .95em; height: 1.2em; border-radius: .18em; background: var(--c, #aab3c9); flex: none; margin: 0 .15em; }

.finder .main { display: flex; flex-direction: column; min-width: 0; }
.tb { display: flex; align-items: center; gap: 1em; padding: .9em 1.2em; border-bottom: 1px solid rgba(160, 175, 215, 0.12); }
.tb .ttl { font-weight: 600; color: #fff; }
.tb .crumb { color: #8b94ad; font-size: .92em; }
.tb .search { margin-left: auto; width: 14em; padding: .3em .8em; border-radius: .5em; background: #111624; color: #6f7892; font-size: .92em; }
.rows { flex: 1; }
.row { display: grid; grid-template-columns: 1fr 12em 6em 10em; align-items: center; gap: 1em; padding: .42em 1.2em; white-space: nowrap; }
.row.head { color: #7f89a6; font-size: .86em; border-bottom: 1px solid rgba(160, 175, 215, 0.1); }
.row:nth-child(odd):not(.head) { background: rgba(255, 255, 255, 0.022); }
.row.sel { background: #2f5fd6 !important; color: #fff; }
.row .nm { display: flex; align-items: center; gap: .65em; overflow: hidden; }
.row .mut { color: #8b94ad; }
.row.sel .mut { color: #dbe5ff; }
.st { display: inline-flex; align-items: center; gap: .45em; font-size: .92em; }
.st::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #6f7892; }
.st.off::before { background: var(--green); }
.st.up::before { background: #febc2e; }
.status { display: flex; justify-content: space-between; padding: .6em 1.2em; font-size: .86em; color: #7f89a6; border-top: 1px solid rgba(160, 175, 215, 0.12); }

.pop {
  position: absolute; right: 0; bottom: -1.6em; width: 25em;
  background: #20263a; border-radius: .9em; padding: 1em;
}
.hero-shot { padding-bottom: 28px; }
.pop .ph { display: flex; align-items: center; gap: .6em; font-weight: 600; color: #fff; margin-bottom: .7em; }
.pop .ph img { width: 1.6em; height: 1.6em; }
.pop .ph small { margin-left: auto; font-weight: 400; color: #8b94ad; font-size: .85em; }
.pop .d { display: flex; align-items: center; gap: .7em; padding: .42em .3em; border-top: 1px solid rgba(160, 175, 215, 0.1); }
.pop .d small { display: block; color: #8b94ad; font-size: .84em; }
.pop .d .on { margin-left: auto; font-size: .84em; color: var(--green); }
.pop .d .on.idle { color: #8b94ad; }
.bar { height: .4em; border-radius: 1em; background: #111624; margin-top: .45em; overflow: hidden; }
.bar i { display: block; height: 100%; width: 64%; background: var(--blue); border-radius: 1em; }
.pop .xf { margin-top: .6em; padding: .7em; border-radius: .6em; background: #171c2c; font-size: .9em; }
.pop .add { margin-top: .8em; text-align: center; padding: .5em; border-radius: .5em; background: var(--blue); color: #06102b; font-weight: 600; }

/* dialog mock */
.dlg { padding: 1.4em 1.6em 1.3em; }
.dlg .dh { display: flex; align-items: center; gap: .7em; font-weight: 600; color: #fff; margin: 1em 0 1em; }
.dlg .f { display: flex; justify-content: space-between; align-items: center; padding: .55em 0; border-top: 1px solid rgba(160, 175, 215, 0.12); }
.dlg .f span:first-child { color: #8b94ad; }
.dlg .f .v { color: #fff; }
.tg { width: 2.3em; height: 1.3em; border-radius: 1em; background: var(--green); position: relative; }
.tg::after { content: ""; position: absolute; right: .15em; top: .15em; width: 1em; height: 1em; border-radius: 50%; background: #fff; }
.tg.no { background: #3a425a; }
.tg.no::after { right: auto; left: .15em; }
.dlg .acts { display: flex; justify-content: flex-end; gap: .7em; margin-top: 1.1em; }
.dlg .acts span { padding: .32em 1.1em; border-radius: .45em; background: #2b3349; }
.dlg .acts span.go { background: var(--blue); color: #06102b; font-weight: 600; }

/* encryption mock */
.enc { padding: 1.3em 1.5em; }
.enc .cols { display: grid; grid-template-columns: 1fr 2em 1fr; gap: .6em; align-items: center; }
.enc h5 { margin: 0 0 .6em; font-size: .86em; font-weight: 600; color: #7f89a6; }
.enc .ln { display: flex; align-items: center; gap: .55em; padding: .35em 0; white-space: nowrap; overflow: hidden; }
.enc .x { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; color: #8b94ad; overflow: hidden; text-overflow: ellipsis; }
.enc .mid { text-align: center; color: var(--violet); font-size: 1.5em; }
.enc .note { margin-top: 1em; padding-top: .8em; border-top: 1px solid rgba(160, 175, 215, 0.12); color: #8b94ad; font-size: .9em; }
.enc .note b { color: var(--violet); }

/* terminal mock */
.term { background: #0c101b; }
.term .tt { display: flex; align-items: center; gap: 1em; padding: .8em 1em; background: #171c2c; color: #8b94ad; font-size: .9em; }
.term pre {
  margin: 0; padding: 1.2em 1.3em 1.5em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em; line-height: 1.65; color: #c9d1e6; white-space: pre; overflow: hidden;
}
.term .p { color: #717b97; }
.term .ok { color: var(--green); }
.term .c { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .wide, .grid-2 { grid-template-columns: 1fr; }
  .wide.flip .media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav li.opt { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .hero-shot { padding-left: 16px; padding-right: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav li:not(:last-child) { display: none; }
  .card { padding: 22px; }
  .hero-title { gap: 12px; }
  .hero-title img { width: 52px; height: 52px; }
  .btn { min-width: 0; flex: 1 1 140px; }
  footer .right { text-align: left; }
  .pop { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
