:root {
  color-scheme: dark;
  --night: #041523;
  --night-2: #061b2d;
  --panel: rgba(19, 45, 70, .78);
  --panel-strong: rgba(23, 52, 80, .94);
  --text: #f5f8fc;
  --muted: #abc0d3;
  --blue: #397cf3;
  --blue-2: #4a8bff;
  --cyan: #55dcc3;
  --danger: #ff9fb0;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(85, 220, 195, .22), transparent 29rem),
    radial-gradient(circle at 82% 4%, rgba(74, 139, 255, .30), transparent 31rem),
    linear-gradient(135deg, var(--night), #071d31 48%, #020b13);
  color: var(--text);
  overflow-x: hidden;
}

body.cookie-modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar { padding: 22px 0; }
.footer {
  padding: 34px 0 44px;
  color: rgba(171, 192, 211, .82);
  border-top: 1px solid var(--line);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
  letter-spacing: -.03em;
  font-size: 1.12rem;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(57, 124, 243, .35);
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: .95rem;
}

.nav a:hover,
.nav a.active { color: var(--text); }

.view { padding: 38px 0 78px; }

.hero {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(85, 220, 195, .32);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(85, 220, 195, .08);
  font-weight: 750;
  font-size: .9rem;
}

h1 {
  margin: 20px 0 18px;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .88;
  letter-spacing: -.08em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.06em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #fff, #a7f7ea 42%, #86adff);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions { margin-top: 34px; }

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 17px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

button:hover,
.button:hover { transform: translateY(-2px); }

button:disabled { opacity: .7; cursor: wait; transform: none; }

.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 45px rgba(57, 124, 243, .24);
}

.secondary {
  background: rgba(255, 255, 255, .08);
  border-color: var(--line);
  box-shadow: none;
}

.ghost { background: transparent; }
.danger { color: #ffe0e6; border-color: rgba(255, 159, 176, .4); }
.small { min-height: 42px; padding: 0 15px; border-radius: 14px; }

.note {
  margin-top: 16px;
  color: rgba(171, 192, 211, .78);
  font-size: .95rem;
}

.device-wrap {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(57, 124, 243, .37), transparent 68%);
  filter: blur(10px);
}

.phone {
  position: relative;
  width: min(365px, 86vw);
  min-height: 650px;
  padding: 16px;
  border-radius: 48px;
  background: linear-gradient(145deg, #0b1118, #182b3d);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14);
  transform: rotate(2deg);
}

.screen {
  min-height: 618px;
  padding: 24px 18px 18px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 0%, rgba(85, 220, 195, .18), transparent 15rem),
    linear-gradient(180deg, #071d31, #041523);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.phone-top,
.chat-head,
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top {
  color: rgba(255,255,255,.88);
  font-size: .85rem;
  margin-bottom: 24px;
}

.camera {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #02070c;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}

.chat-head { margin-bottom: 18px; }
.chat-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.shield {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(85, 220, 195, .13);
  color: var(--cyan);
}

.search {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 19px;
  background: rgba(255,255,255,.08);
  color: rgba(245,248,252,.72);
  margin-bottom: 20px;
}

.contact {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.075);
  margin-bottom: 11px;
  border: 1px solid rgba(255,255,255,.04);
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(135deg, #6a88ff, #e7efff 48%, #233d69);
}

.avatar.green {
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.5), transparent 25%),
    linear-gradient(135deg, #75e7d5, #255a5a 64%, #0d2832);
}

.contact span,
.contact time { color: var(--muted); font-size: .9rem; }

.badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-2);
  font-weight: 800;
  font-size: .82rem;
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 420px;
  margin: 0;
}

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

.two-col {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 26px;
  align-items: stretch;
}

.card,
.form-card {
  padding: 24px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}

.form-card {
  padding: 32px;
  background: var(--panel-strong);
  border-radius: 34px;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  margin-bottom: 20px;
  color: var(--cyan);
  background: rgba(85, 220, 195, .12);
  font-size: 1.2rem;
  font-weight: 900;
}

.download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(57,124,243,.18), rgba(85,220,195,.08)),
    var(--panel-strong);
  border: 1px solid rgba(255,255,255,.13);
  min-height: 250px;
}

.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.platform-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  font-size: 1.45rem;
  font-weight: 900;
}

form,
.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #dce8f4;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  background: rgba(3, 14, 24, .5);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(85, 220, 195, .72);
  box-shadow: 0 0 0 4px rgba(85, 220, 195, .11);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hidden,
.hidden-field { display: none !important; }

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .055);
  color: var(--muted);
  line-height: 1.45;
}

.check-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.check-row a,
.footer a,
.legal-page a,
.faq a {
  color: var(--text);
  font-weight: 850;
}

.status,
.requirements,
.secret {
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  line-height: 1.45;
}

.status.success {
  color: #d8fff7;
  border-color: rgba(85, 220, 195, .38);
  background: rgba(85, 220, 195, .11);
}

.status.error {
  color: #ffe0e6;
  border-color: rgba(255, 159, 176, .42);
  background: rgba(255, 159, 176, .12);
}

.settings-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(57, 124, 243, .12), transparent 46%),
    rgba(255, 255, 255, .045);
}

.settings-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.verification-card {
  border-color: rgba(57, 168, 255, .28);
  background:
    radial-gradient(circle at top left, rgba(57, 168, 255, .16), transparent 40%),
    rgba(255, 255, 255, .045);
}

.danger-card {
  border-color: rgba(255, 159, 176, .34);
  background:
    radial-gradient(circle at top left, rgba(255, 159, 176, .14), transparent 42%),
    rgba(255, 255, 255, .045);
}

.danger-card .danger {
  width: fit-content;
}

.verification-code {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  color: #eaf7ff;
  background: rgba(57, 168, 255, .14);
  border: 1px solid rgba(57, 168, 255, .34);
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
}

.file-upload {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed rgba(85, 220, 195, .42);
  border-radius: 20px;
  background: rgba(3, 14, 24, .38);
  cursor: pointer;
}

.file-upload input {
  width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.file-upload input::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #041523;
  background: var(--cyan);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.file-upload strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.file-upload span {
  color: var(--muted);
  line-height: 1.4;
}

.secret {
  word-break: break-all;
  color: #d8fff7;
  font-weight: 800;
  letter-spacing: .05em;
}

.qr-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
}

.qr-card p {
  margin: 0;
}

.qr-code {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.legal-page .lead { margin-bottom: 28px; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq h2 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .055);
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

details p { margin-bottom: 0; }

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: rgba(9, 28, 46, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) translateY(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.cookie-consent.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent h2 { margin: 0 0 8px; font-size: 1.45rem; }
.cookie-consent p { margin: 0; font-size: .94rem; }

.cookie-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}

.cookie-option input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.cookie-option strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: .98rem;
}

.cookie-option span {
  color: var(--muted);
  line-height: 1.45;
  font-size: .9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 920px) {
  .nav { display: none; }
  .hero,
  .two-col { grid-template-columns: 1fr; }
  .device-wrap { min-height: auto; }
  .phone { transform: none; }
  .section-head,
  .footer { display: block; }
  .grid,
  .download,
  .qr-card,
  .legal-grid { grid-template-columns: 1fr; }
  .cookie-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .app-shell { width: min(100% - 24px, 1180px); }
  .actions .button,
  .actions button { width: 100%; }
  .phone { width: 100%; min-height: 590px; border-radius: 36px; }
  .screen { min-height: 558px; }
  .section { padding: 54px 0; }
  .password-row { grid-template-columns: 1fr; }
  .cookie-consent { bottom: 12px; width: calc(100% - 24px); }
  .cookie-options { grid-template-columns: 1fr; }
}
