/* ScreenBlocker web — визуально близко к AppBackgroundView + GlassCard (SwiftUI) */

:root {
  --bg-deep-1: #0a1020;
  --bg-deep-2: #0f1a32;
  --bg-deep-3: #120a1c;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.72);
  --stroke: rgba(255, 255, 255, 0.14);
  --neon-green: #40ffb8;
  --neon-blue: #56c4ff;
  --neon-purple: #ad7dff;
  --glass-top: rgba(23, 33, 61, 0.96);
  --glass-mid: rgba(13, 20, 43, 0.95);
  --glass-bot: rgba(8, 13, 31, 0.96);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  position: relative;
  z-index: 0;
  /* Базовый градиент как AppTheme.screenGradient */
  background:
    radial-gradient(900px 600px at 18% 8%, rgba(86, 196, 255, 0.22), transparent 55%),
    radial-gradient(800px 520px at 88% 12%, rgba(173, 125, 255, 0.18), transparent 50%),
    radial-gradient(700px 500px at 50% 80%, rgba(64, 255, 184, 0.10), transparent 45%),
    linear-gradient(165deg,
      #0a1428 0%,
      #0f2848 32%,
      #1a0f28 68%,
      #0a0e18 100%);
  background-attachment: fixed;
}

/* Лёгкий «звёздный» слой без тяжёлого JS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 8%, rgba(86,196,255,0.6), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 30% 55%, rgba(64,255,184,0.45), transparent),
    radial-gradient(1px 1px at 92% 60%, rgba(173,125,255,0.4), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 62% 88%, rgba(86,196,255,0.35), transparent);
  background-size: 100% 100%;
}

img { max-width: 100%; height: auto; }

a {
  color: #9fdcff;
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 12px rgba(64, 255, 184, 0.35);
}

.container { max-width: 1040px; margin: 0 auto; padding: 24px; }

/* Навигация — «стеклянная» полоса */
.nav-wrap {
  padding: 10px 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--glass-top), var(--glass-mid) 55%, var(--glass-bot));
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.appicon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--stroke);
  object-fit: cover;
}

.appicon-fallback {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  box-shadow: 0 0 20px rgba(64, 255, 184, 0.25);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.nav-links a:hover { color: var(--neon-green); }

.lang-switch { font-size: 13px; color: var(--muted); }
.lang-switch a { font-weight: 700; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 8px;
}

h1 {
  font-size: 44px;
  line-height: 1.06;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 0%, rgba(255,255,255,0.92) 40%, var(--neon-green) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 20px;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.primary {
  border: none;
  color: #061018;
  background: linear-gradient(95deg, var(--neon-green), var(--neon-blue));
  box-shadow: 0 4px 24px rgba(64, 255, 184, 0.22), 0 2px 12px rgba(86, 196, 255, 0.15);
}
.button.primary:hover {
  color: #041018;
  filter: brightness(1.06);
  text-shadow: none;
}

.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.note code {
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

.hero-media { display: flex; justify-content: center; }

.phone {
  width: 280px;
  max-width: 100%;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(86, 196, 255, 0.08);
}

.phone-placeholder {
  width: 280px;
  max-width: 100%;
  min-height: 420px;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.section { padding: 32px 0; }

.section-title {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 28px rgba(64, 255, 184, 0.2);
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Glass card ≈ GlassCardModifier fill */
.glass-card {
  position: relative;
  border-radius: 18px;
  padding: 16px 16px 17px;
  background: linear-gradient(145deg, var(--glass-top) 0%, var(--glass-mid) 52%, var(--glass-bot) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 35%, transparent 55%);
}

.glass-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.glass-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.screens img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.screen-slot {
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.screens-hint { display: none; }

.footer {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ——— Legal / privacy pages ——— */
.legal { max-width: 860px; }
.legal .glass-card h1 {
  font-size: 30px;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: none;
}
.legal .muted { color: var(--muted); font-size: 14px; }
.legal .glass-card > p { color: var(--muted); }
.legal p { margin: 10px 0; color: var(--muted); line-height: 1.55; }
.legal ol { margin: 12px 0 0; padding-left: 18px; }
.legal li { margin: 12px 0; color: var(--muted); line-height: 1.5; }
.legal li strong { color: rgba(255,255,255,0.95); }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal ul li { margin: 6px 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.pill:hover {
  border-color: rgba(64, 255, 184, 0.35);
  color: var(--neon-green);
}

@media (max-width: 900px) {
  .container { padding: 16px; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }

  .screens {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .screens img,
  .screen-slot {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .screens-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
  }

  .dots { display: inline-flex; gap: 6px; }
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }
  .dot.active { background: var(--neon-green); }
}
