:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --sheet: #15171c;
  --text: #f3f4f6;
  --muted: rgba(243, 244, 246, 0.68);
  --faint: rgba(243, 244, 246, 0.5);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.13);
  --junk: #5bd6e8;
  --large: #ffb45e;
  --uninstaller: #a897ff;
  --disk: #74de9c;
  --privacy: #ff7b72;
  --accent: var(--junk);
  --t1: #7fe4f2;
  --t2: #2c98c2;
  --on-accent: #0b0c10;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { 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;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--t1); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--t1); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .lang { padding: 4px 10px; border: 1px solid var(--stroke-2); border-radius: 999px; }
@media (max-width: 700px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; color: var(--text);
  border: 1px solid var(--stroke-2); background: var(--glass-2);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.btn.primary {
  color: var(--on-accent); border-color: transparent;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow: 0 10px 40px -12px rgba(91, 214, 232, 0.65);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -12px rgba(91, 214, 232, 0.8); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 0; text-align: center; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 340px at 50% 18%, rgba(91, 214, 232, 0.2), transparent 70%),
    radial-gradient(500px 300px at 20% 60%, rgba(168, 151, 255, 0.1), transparent 70%),
    radial-gradient(500px 300px at 80% 60%, rgba(44, 152, 194, 0.12), transparent 70%);
}
.hero .icon { width: 148px; height: 148px; margin: 0 auto 28px; filter: drop-shadow(0 18px 40px rgba(44, 152, 194, 0.45)); }
.hero h1 {
  margin: 0 auto; max-width: 820px;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 750;
}
.hero h1 span { display: block; }
.hero h1 .grad {
  background: linear-gradient(90deg, #a8f5ff, var(--junk) 45%, #8fb4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.meta { margin-top: 16px; color: var(--faint); font-size: 14px; }
.meta b { color: var(--muted); font-weight: 600; }

.window {
  margin: 56px auto 0; max-width: 1000px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--stroke-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 120px -50px rgba(91, 214, 232, 0.45);
  background: var(--sheet);
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 56px 0 0; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); text-align: center; }
.stat b { display: block; font-size: 30px; letter-spacing: -0.02em; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 96px 0 0; }
.kicker { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
h2 { margin: 10px 0 0; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 720; }
.text { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.points { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--muted); }
.points li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.center { text-align: center; max-width: 760px; margin: 0 auto; }

.side { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.side.flip { grid-template-columns: 1.1fr 0.9fr; }
.side.flip .copy { order: 2; }
.side .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--stroke-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
@media (max-width: 860px) {
  .side, .side.flip { grid-template-columns: 1fr; gap: 28px; }
  .side.flip .copy { order: 0; }
}
.tone-junk { --accent: var(--junk); }
.tone-large { --accent: var(--large); }
.tone-uninstaller { --accent: var(--uninstaller); }
.tone-disk { --accent: var(--disk); }
.tone-privacy { --accent: var(--privacy); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.cell { padding: 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); }
.cell h3 { margin: 0; font-size: 16px; }
.cell p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.cell.wide { grid-column: span 2; }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .cell.wide { grid-column: auto; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke); font-size: 14px; color: var(--muted); }

/* Strip */
.strip { margin-top: 96px; padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(91, 214, 232, 0.08), rgba(168, 151, 255, 0.07)); border: 1px solid var(--stroke); }
.strip h2 { font-size: clamp(24px, 3.4vw, 32px); }
.strip .names { margin-top: 14px; color: var(--faint); font-size: 15px; }

/* Chat */
.chat { display: grid; gap: 18px; max-width: 760px; margin: 40px auto 0; }
.q, .a { max-width: 85%; padding: 14px 18px; border-radius: 20px; font-size: 16px; }
.q { justify-self: end; background: #2c7be5; color: #fff; border-bottom-right-radius: 6px; }
.a { justify-self: start; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted); border-bottom-left-radius: 6px; }
.a b { color: var(--text); }

/* Rules database */
.db { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; align-items: start; }
.db .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feed { border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--stroke); padding: 8px 20px; }
.feed .row { padding: 14px 0; border-bottom: 1px solid var(--stroke); }
.feed .row:last-child { border-bottom: 0; }
.feed .v { font-weight: 650; }
.feed .tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; color: var(--on-accent); background: var(--junk); font-weight: 650; }
.feed p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .db { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--faint); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final */
.final { margin: 110px 0 0; padding: 64px 24px; text-align: center; border-radius: 28px; background: radial-gradient(600px 260px at 50% 0%, rgba(91, 214, 232, 0.18), transparent 70%), var(--glass); border: 1px solid var(--stroke); }
.final h2 { margin: 0; }

footer { margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--stroke); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* The rules database: a wall of the best-known apps, linking to the full list */
.wall { display: grid; gap: 14px; align-content: start; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--stroke); padding: 20px; color: var(--t1); font-weight: 600; }
.wall:hover { text-decoration: none; border-color: var(--stroke-2); }
.wall ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
.wall li { display: grid; place-items: center; }
.wall img, .wall .letter { width: 56px; height: 56px; }

/* Apps page: tiles packed densely, bigger for apps with more rules */
.apps-page { padding: 64px 0 96px; }
.apps-page h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 0; }
.find { margin: 28px auto 0; display: block; width: min(420px, 100%); height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--stroke-2); background: var(--glass-2); color: var(--text); font: inherit; }
.find:focus { outline: 2px solid var(--t1); outline-offset: 2px; }
.apps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-rows: 116px; grid-auto-flow: dense; gap: 10px; }
.apps li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); text-align: center; min-width: 0; }
.apps li[hidden] { display: none; }
.apps li .name { font-size: 12px; line-height: 1.25; color: var(--muted); max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.apps img, .apps .letter { width: 56px; height: 56px; flex: none; }
.apps .mid { grid-row: span 2; }
.apps .mid img, .apps .mid .letter { width: 72px; height: 72px; }
.apps .big { grid-row: span 2; grid-column: span 2; }
.apps .big img, .apps .big .letter { width: 96px; height: 96px; }
.apps .big .name { font-size: 15px; color: var(--text); font-weight: 600; }
.apps .mid .name { font-size: 13px; color: var(--text); }
.letter { display: grid; place-items: center; border-radius: 22%; font-weight: 650; font-size: 24px; line-height: 1; color: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #1b1e24), color-mix(in srgb, var(--accent) 8%, #121418)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.apps .big .letter { font-size: 40px; }
.apps .mid .letter { font-size: 30px; }
.apps-page .none { text-align: center; color: var(--muted); margin-top: 32px; }
.apps-page .back { margin-top: 48px; color: var(--muted); }
@media (max-width: 520px) { .apps { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); grid-auto-rows: 104px; } }
