/* =====================================================================
   Вариант в духе firefox.com: крупный центрированный первый экран со светящейся аркой,
   четыре принципа, слои защиты, мозаика возможностей, панель «твои данные», подвал с колонками.
   Подключается после style.css (общие цвета, шрифты, кнопки, макет окна, шторка).
   ===================================================================== */

/* ---------- анимированный фон: «северное сияние» из размытых пятен ---------- */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.aurora .a1 { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(164, 164, 164, .55), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 46vw; height: 46vw; right: -14vw; top: 18vh; background: radial-gradient(circle, rgba(154, 154, 154, .5), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora .a3 { width: 40vw; height: 40vw; left: 28vw; bottom: -22vw; background: radial-gradient(circle, rgba(206, 206, 206, .32), transparent 65%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-14vw, -30vh) scale(1.2); } }

/* ---------- первый экран ---------- */
.eyebrow { font: 400 12.5px/1 var(--mono); letter-spacing: 2.6px; text-transform: uppercase; color: var(--cyan); margin: 0 0 22px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -2.6px; line-height: 1.02; max-width: 1080px; }
.btn-pill { padding: 15px 30px; border-radius: 999px; font-size: 17px; gap: 10px; }
.btn-pill svg { width: 18px; height: 18px; }
.cta-note { margin: 16px 0 0; font-size: 13.5px; color: var(--dim); }
.cta-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(171, 171, 171, .4); }
.cta-note a:hover { color: var(--text); }

/* «сцена» с аркой света под окном браузера */
.stage { position: relative; margin-top: 64px; padding: 0 2%; }
.stage::before {
  content: ""; position: absolute; left: -6%; right: -6%; top: 22%; bottom: -14%; z-index: -1;
  border-radius: 50% 50% 48px 48px / 42% 42% 48px 48px;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(244, 244, 244, .5), transparent 60%),
    radial-gradient(80% 70% at 50% 8%, rgba(164, 164, 164, .55), transparent 70%),
    linear-gradient(180deg, rgba(96, 96, 96, .55), rgba(19, 19, 19, .9) 70%);
  box-shadow: 0 -30px 120px rgba(164, 164, 164, .35);
  animation: arc 7s ease-in-out infinite alternate;
}
@keyframes arc { to { box-shadow: 0 -40px 170px rgba(154, 154, 154, .5); filter: hue-rotate(-18deg) brightness(1.08); } }
.stage .window { margin: 0 auto; }

.w-privacy {
  position: absolute; right: 22px; top: 22px; width: 260px;
  background: #0f0f0f; border: 1px solid var(--line-hi); border-radius: 12px; padding: 16px 16px 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.wp-title { font: 700 14px/1 var(--head); margin: 0 0 12px; }
.wp-gauge { height: 6px; border-radius: 6px; background: #222222; overflow: hidden; }
.wp-gauge span { display: block; width: 92%; height: 100%; background: linear-gradient(90deg, #b8b8b8, #cecece); box-shadow: 0 0 12px rgba(184, 184, 184, .6); }
.wp-score { font-size: 12px; color: var(--dim); margin: 8px 0 10px; }
.wp-score b { color: var(--green); font-size: 13px; }
.w-privacy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.w-privacy li { font-size: 12px; color: #d5d5d5; padding-left: 20px; position: relative; }
.w-privacy li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }

/* ---------- четыре принципа ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 72px; }
.pillar {
  background: linear-gradient(180deg, rgba(30, 30, 30, .9), rgba(15, 15, 15, .9));
  border: 1px solid var(--line-hi); border-radius: 22px; padding: 26px 22px 24px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(164, 164, 164, .4); box-shadow: 0 20px 60px rgba(164, 164, 164, .12); }
.tag { font: 400 11px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--violet); margin: 0 0 14px; }
.pillar h3 { font-size: 21px; line-height: 1.2; margin: 0 0 18px; min-height: 2.4em; }
.pillar p { color: var(--muted); font-size: 14px; margin: 0; }
.art { width: 96px; height: 96px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 28px; position: relative; }
.art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle, rgba(164, 164, 164, .28), transparent 70%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .6; } }
.art svg { width: 64px; height: 64px; fill: none; stroke: #d4d4d4; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; position: relative; filter: drop-shadow(0 0 10px rgba(164, 164, 164, .7)); }
.art-shield svg { stroke: #d4d4d4; filter: drop-shadow(0 0 10px rgba(184, 184, 184, .6)); }
.art-print svg { stroke: #bdbdbd; filter: drop-shadow(0 0 10px rgba(154, 154, 154, .7)); }
.art-toggle svg { stroke: #e3e3e3; filter: drop-shadow(0 0 10px rgba(206, 206, 206, .6)); }
.art-toggle .fill { fill: #e3e3e3; }
.art-lock svg { stroke: #d2d2d2; filter: drop-shadow(0 0 10px rgba(193, 193, 193, .55)); }

/* ---------- слои защиты ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.layer { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s; }
.layer:hover { border-color: var(--line-hi); box-shadow: 0 0 50px rgba(164, 164, 164, .08); }
.layer p { color: var(--muted); font-size: 14.5px; margin: 0; }
.ln { position: absolute; right: 22px; top: 22px; font: 400 12px/1 var(--mono); color: var(--dim); }
#privacy .caption { text-align: center; }

/* ---------- установка ---------- */
#switch .head .btn-pill { margin-top: 8px; }
.switch-box {
  max-width: 980px; margin: 0 auto; border-radius: 26px; padding: 30px;
  background: linear-gradient(160deg, rgba(88, 88, 88, .55), rgba(26, 26, 26, .75) 60%, rgba(15, 15, 15, .9));
  border: 1px solid rgba(154, 154, 154, .3);
  box-shadow: 0 30px 100px rgba(88, 88, 88, .25);
}
.switch-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.switch-steps li { display: flex; flex-direction: column; gap: 6px; }
.switch-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #1c1c1c; font: 800 13px/1 var(--head); margin-bottom: 6px; }
.switch-steps b { font: 700 16.5px/1.3 var(--head); }
.switch-steps small { color: #c8c8c8; font-size: 13.5px; line-height: 1.5; }
.switch-box .verify { background: rgba(6, 6, 6, .55); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }

/* ---------- мозаика ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, transform .25s; }
.tile:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tile h3 { font-size: 20px; }
.t-wide { grid-column: span 2; }
.t-full { grid-column: 1 / -1; }
.t-violet { background: linear-gradient(150deg, rgba(88, 88, 88, .5), rgba(17, 17, 17, .85) 65%); border-color: rgba(154, 154, 154, .3); }
.t-red { background: linear-gradient(150deg, rgba(58, 58, 58, .32), rgba(17, 17, 17, .85) 65%); border-color: rgba(144, 144, 144, .25); }
.scope { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); align-self: flex-start; flex-wrap: wrap; }
.scope span { padding: 8px 14px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.scope .on { background: linear-gradient(135deg, #a4a4a4, #9a9a9a); color: #0f0f0f; font-weight: 600; }
.keys { display: flex; gap: 8px; margin-top: 20px; }
kbd { font: 600 13px/1 var(--mono); padding: 9px 12px; border-radius: 9px; color: var(--text); background: linear-gradient(180deg, #222222, #171717); border: 1px solid var(--line-hi); border-bottom-width: 3px; }

/* ---------- твои данные ---------- */
.data-panel {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 36px; padding: 64px 32px 56px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(154, 154, 154, .45), transparent 70%),
    linear-gradient(180deg, rgba(71, 71, 71, .55), rgba(18, 18, 18, .92));
  border: 1px solid rgba(154, 154, 154, .32);
  box-shadow: 0 40px 120px rgba(88, 88, 88, .3);
}
.data-logo { margin: 0 auto 26px; width: 120px; height: 120px; filter: drop-shadow(0 0 40px rgba(211, 211, 211, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.data-panel h2 { margin-bottom: 14px; }
.data-panel .text { max-width: 620px; margin: 0 auto 26px; color: #d0d0d0; }
.never { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.never li { background: rgba(6, 6, 6, .45); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 16px 14px 46px; position: relative; font-size: 14.5px; }
.never li::before { content: "✓"; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #b8b8b8; background: rgba(184, 184, 184, .14); }
.data-panel .fine { max-width: 680px; margin: 0 auto; color: #a9a9a9; font-size: 13px; }

/* ---------- подвал ---------- */
.foot { display: block; max-width: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); background: rgba(6, 6, 6, .6); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--dim); font-size: 13.5px; margin: 14px 0 0; max-width: 280px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col h4 { font: 400 11.5px/1 var(--mono); letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); margin: 4px 0 6px; }
.foot-col a, .foot-col span { color: var(--muted); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 18px 24px 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .layers { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .switch-steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .w-privacy { width: 220px; }
}
@media (max-width: 640px) {
  .hero h1 { letter-spacing: -1.4px; }
  .btn-pill { width: 100%; justify-content: center; }
  .pillars, .layers, .bento, .never { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .pillar h3 { min-height: 0; }
  .w-privacy { position: relative; right: auto; top: auto; width: auto; margin: 0 12px 14px; }
  .stage { margin-top: 44px; padding: 0; }
  .switch-box { padding: 20px; }
  .data-panel { padding: 44px 18px 40px; border-radius: 26px; }
  .foot-in { grid-template-columns: 1fr; padding: 36px 16px 20px; }
  .foot-bottom { padding: 16px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .stage::before, .art::before, .data-logo { animation: none; }
}
