:root {
  --bg: #071122;
  --bg-soft: #0d1830;
  --surface: rgba(12, 23, 48, 0.7);
  --surface-strong: rgba(19, 31, 60, 0.92);
  --line: rgba(111, 92, 255, 0.22);
  --text: #eef4ff;
  --muted: #97a6cf;
  --primary: #6f59ff;
  --primary-strong: #8e7bff;
  --secondary: rgba(139, 110, 255, 0.16);
  --accent: #ff5fd2;
  --success: #58d39a;
  --shadow: 0 28px 80px rgba(2, 8, 26, 0.48);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 88px;
  --container: min(1280px, calc(100vw - 32px));
  --heading-font: "Arial Rounded MT Bold", "Trebuchet MS", "Avenir Next", sans-serif;
  --body-font: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(101, 84, 255, 0.24), transparent 0 18%),
    radial-gradient(circle at 80% 12%, rgba(39, 83, 210, 0.34), transparent 0 24%),
    radial-gradient(circle at 54% 58%, rgba(255, 95, 210, 0.12), transparent 0 30%),
    linear-gradient(155deg, #081120 0%, #0d1830 18%, #132449 42%, #0b1730 68%, #060d1d 100%);
  font-family: var(--body-font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(108, 126, 255, 0.18), transparent 0 14%),
    linear-gradient(180deg, rgba(84, 68, 255, 0.16), rgba(10, 21, 45, 0) 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(60, 41, 148, 0.16) 100%);
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(222, 242, 255, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(222, 242, 255, 0.18) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
  opacity: 0.82;
}

.grid-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(86, 202, 255, 0.055) 0, rgba(86, 202, 255, 0.055) 2px, transparent 4px),
    linear-gradient(to bottom, rgba(86, 202, 255, 0.04) 0, rgba(86, 202, 255, 0.04) 2px, transparent 4px);
  background-size: 62px 62px;
  filter: blur(1.4px);
  opacity: 0.44;
  mix-blend-mode: screen;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 42%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 84px
    );
  opacity: 0.26;
}

.page-shell::after {
  background:
    radial-gradient(circle at 72% 24%, rgba(93, 80, 255, 0.26), transparent 0 18%),
    radial-gradient(circle at 28% 74%, rgba(255, 95, 210, 0.14), transparent 0 22%),
    radial-gradient(circle at 52% 46%, rgba(70, 127, 255, 0.14), transparent 0 28%);
  filter: blur(24px);
  opacity: 0.8;
}

.page-shell main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004)),
    radial-gradient(circle at 18% 22%, rgba(180, 220, 255, 0.05), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(178, 186, 255, 0.04), transparent 24%);
  opacity: 0.42;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

[data-parallax] {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --base-transform: none;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) var(--base-transform);
}

body.is-parallax-active [data-parallax] {
  will-change: transform;
}

.ambient-top {
  top: -120px;
  right: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(88, 73, 255, 0.32), transparent 64%);
}

.ambient-bottom {
  left: -120px;
  top: 980px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 95, 210, 0.14), transparent 66%);
}

.hero,
.section-block,
.trust-strip {
  width: var(--container);
  margin-inline: auto;
}

.page-shell main {
  padding-top: calc(var(--header-height) + 22px);
}

.site-header {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  width: var(--container);
  max-width: var(--container);
  left: 50%;
  margin-inline: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  margin-top: 10px;
  padding: 16px 20px;
  border: 1px solid rgba(150, 170, 255, 0.16);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(9, 19, 41, 0.74);
  box-shadow: 0 18px 44px rgba(2, 8, 24, 0.42);
  transform: translateX(-50%);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    background 0.28s ease;
}

.site-header.is-hidden {
  transform: translate(-50%, calc(-100% - 16px));
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(160deg, #233fff, #5e4fff 54%, #4fd0ff 100%);
  color: #fff;
  font-family: var(--heading-font);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 30px rgba(68, 86, 255, 0.34);
  overflow: hidden;
}

.mark-ring,
.mark-core,
.mark-letter {
  position: absolute;
}

.mark-ring {
  inset: 8px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(114, 203, 255, 0.18);
}

.mark-core {
  width: 26px;
  height: 26px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  transform: rotate(45deg);
}

.mark-letter {
  position: relative;
  z-index: 1;
  font-size: 1.14rem;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--heading-font);
  font-size: 1.05rem;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav,
.header-actions,
.hero-actions,
.hero-points,
.plans-grid,
.feature-grid,
.access-grid {
  display: flex;
}

.main-nav {
  align-items: center;
  gap: 30px;
  flex: 1 1 auto;
  justify-content: center;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.header-actions {
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.primary-button::before,
.secondary-button::before,
.ghost-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 18%,
    rgba(255, 255, 255, 0.08) 36%,
    rgba(255, 255, 255, 0.24) 48%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 78%,
    transparent 100%
  );
  transform: translateX(-140%);
  transition: transform 0.75s ease;
  pointer-events: none;
  z-index: 0;
}

.primary-button > *,
.secondary-button > *,
.ghost-button > * {
  position: relative;
  z-index: 1;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #5665ff 0%, #845fff 54%, #ff5fd2 100%);
  box-shadow: 0 16px 34px rgba(73, 86, 255, 0.34);
}

.secondary-button {
  color: var(--text);
  background: rgba(19, 31, 60, 0.84);
  border: 1px solid rgba(137, 119, 255, 0.2);
}

.ghost-button {
  color: var(--text);
  background: rgba(16, 26, 54, 0.64);
  border: 1px solid rgba(137, 119, 255, 0.16);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-2px);
}

.primary-button:hover::before,
.secondary-button:hover::before,
.ghost-button:hover::before,
.primary-button:focus-visible::before,
.secondary-button:focus-visible::before,
.ghost-button:focus-visible::before {
  transform: translateX(140%);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 20px 40px rgba(73, 86, 255, 0.42);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  box-shadow: 0 16px 32px rgba(83, 99, 177, 0.18);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  box-shadow: 0 16px 32px rgba(58, 74, 146, 0.16);
}

.ghost-button.small {
  min-height: 42px;
  padding-inline: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 52px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 30, 58, 0.72);
  color: var(--primary);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(123, 107, 255, 0.14);
}

.hero h1,
.section-heading h2,
.security-copy h2 {
  margin: 18px 0 16px;
  font-family: var(--heading-font);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.8vw, 5.25rem);
}

.hero-title {
  display: grid;
  gap: 0.3em;
  max-width: 13ch;
}

.hero-title span {
  display: block;
}

.hero-text,
.section-heading p,
.security-copy p,
.feature-card p,
.plan-card li,
.faq-item p,
.dashboard-empty p,
.access-card span,
.form-note,
.form-feedback {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-points {
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero-scene {
  position: relative;
  min-height: 720px;
  contain: layout;
}

.phone-card,
.floating-panel,
.feature-card,
.plan-card,
.login-card,
.dashboard-card,
.security-panel,
.trust-strip,
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 76px rgba(15, 29, 78, 0.2);
}

.feature-card,
.plan-card,
.login-card,
.dashboard-card,
.faq-item,
.security-list div,
.device-item,
.security-badge {
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-card {
  position: absolute;
  border-radius: 38px;
  overflow: hidden;
}

.phone-main {
  right: 18px;
  top: 48px;
  width: 262px;
  height: 508px;
  padding: 16px;
  --base-transform: rotate(7deg);
  z-index: 3;
}

.phone-side {
  right: 308px;
  top: 162px;
  width: 188px;
  height: 360px;
  padding: 16px;
  --base-transform: rotate(-11deg);
  z-index: 2;
}

.phone-side .phone-screen {
  padding: 18px 16px;
}

.phone-side .screen-badge {
  padding: 7px 10px;
  font-size: 0.76rem;
}

.phone-side .mini-list {
  gap: 8px;
  margin-top: 54px;
}

.phone-side .mini-list span {
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.phone-notch {
  width: 40%;
  height: 26px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(35, 46, 79, 0.12);
}

.phone-screen {
  height: calc(100% - 44px);
  border-radius: 28px;
  padding: 26px 22px;
  background:
    linear-gradient(180deg, rgba(21, 33, 63, 0.98), rgba(15, 24, 49, 0.92)),
    radial-gradient(circle at top, rgba(113, 89, 255, 0.18), transparent 48%);
}

.phone-screen.alt {
  height: 100%;
  background:
    linear-gradient(180deg, rgba(19, 31, 58, 0.98), rgba(14, 23, 44, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.screen-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(115, 90, 255, 0.14);
  font-size: 0.82rem;
}

.screen-badge.muted {
  color: var(--muted);
}

.phone-screen h2 {
  margin: 18px 0 6px;
  font-family: var(--heading-font);
  font-size: 2.4rem;
}

.phone-screen p {
  margin: 0;
  color: var(--muted);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 92px;
  margin: 34px 0;
}

.signal-bars span {
  width: 26px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #ff7ad9, #5a63ff);
}

.signal-bars span:nth-child(1) {
  height: 38px;
}

.signal-bars span:nth-child(2) {
  height: 56px;
}

.signal-bars span:nth-child(3) {
  height: 78px;
}

.signal-bars span:nth-child(4) {
  height: 92px;
}

.screen-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.screen-stats div,
.mini-list span,
.access-card,
.security-mini-card,
.security-badge {
  border-radius: 18px;
}

.screen-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.screen-stats strong,
.mini-list span,
.plan-price,
.access-card strong,
.security-badge strong,
.security-mini-card strong,
.trust-strip strong {
  display: block;
  font-family: var(--heading-font);
}

.screen-stats small,
.security-mini-card small,
.trust-strip span {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 88px;
}

.mini-list span {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.floating-panel {
  position: absolute;
  right: 176px;
  bottom: 72px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 260px;
  padding: 18px;
  border-radius: 24px;
}

.panel-dot {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 10px rgba(55, 183, 127, 0.14);
}

.floating-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  margin-bottom: 32px;
}

.trust-strip div {
  padding: 18px;
}

.section-block {
  padding: 88px 0;
}

.jump-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 128px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading-wide {
  max-width: 860px;
}

.section-heading h2,
.security-copy h2 {
  font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.feature-grid,
.plans-grid,
.access-grid {
  gap: 20px;
  flex-wrap: wrap;
}

.services-scene .section-heading {
  width: var(--container);
  max-width: var(--container);
  margin-inline: auto;
}

.site-footer {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 54px;
  padding: 44px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(124, 146, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 20, 38, 0), rgba(8, 14, 28, 0.56) 12%, rgba(6, 11, 22, 0.94) 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100vw;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(134, 156, 255, 0.34) 10%,
    rgba(164, 204, 255, 0.92) 50%,
    rgba(134, 156, 255, 0.34) 90%,
    rgba(255, 255, 255, 0)
  );
  box-shadow:
    0 0 30px rgba(111, 132, 255, 0.34),
    0 8px 28px rgba(68, 92, 196, 0.18);
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 54px;
  background: linear-gradient(180deg, rgba(109, 132, 255, 0.12), rgba(109, 132, 255, 0));
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: var(--container);
  margin-inline: auto;
}

.footer-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(140, 160, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(96, 108, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(17, 28, 54, 0.88), rgba(10, 18, 36, 0.94));
  box-shadow:
    0 24px 56px rgba(4, 12, 30, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.footer-label {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(170, 184, 230, 0.86);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-card strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--heading-font);
  font-size: 1.34rem;
}

.footer-card p {
  margin: 0 0 10px;
  color: rgba(223, 232, 255, 0.82);
  line-height: 1.65;
}

.footer-card a {
  color: #eef4ff;
  transition: color 0.24s ease;
}

.footer-card a:hover,
.footer-card a:focus-visible {
  color: #8fd4ff;
}

.footer-card span {
  color: rgba(168, 180, 221, 0.72);
}

.footer-bottom {
  margin-top: 18px;
  padding: 18px 2px 0;
  width: var(--container);
  margin-inline: auto;
  color: rgba(185, 196, 233, 0.72);
  font-size: 0.95rem;
  text-align: center;
}

.auth-screen {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.auth-layout {
  width: 100%;
}

.auth-layout-single {
  width: min(640px, 100%);
  margin-inline: auto;
}

.auth-title {
  margin: 18px 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-support {
  margin: -2px 0 0;
  color: rgba(213, 223, 255, 0.72);
  line-height: 1.6;
  font-size: 0.95rem;
}

.auth-support a {
  color: #eef4ff;
  text-decoration: underline;
  text-decoration-color: rgba(184, 200, 255, 0.36);
  text-underline-offset: 3px;
}

.auth-card-title {
  margin: 18px 0 10px;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-points div {
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(24, 37, 72, 0.9), rgba(14, 24, 46, 0.96));
  border: 1px solid rgba(126, 144, 255, 0.14);
}

.auth-points strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--heading-font);
}

.auth-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.services-cloud {
  position: relative;
  padding: 4px 0 28px;
  contain: layout;
}

.services-scene {
  width: 100%;
}

.services-note {
  width: min(860px, calc(100vw - 40px));
  margin: 8px auto 0;
  padding: 24px 30px;
  border: 1px solid rgba(146, 165, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(111, 92, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(19, 31, 58, 0.9), rgba(11, 20, 39, 0.94));
  box-shadow:
    0 24px 56px rgba(5, 13, 32, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: center;
}

.services-note p {
  margin: 0;
  color: rgba(228, 236, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.services-note-brand {
  color: #eef4ff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(121, 137, 255, 0.24);
}

.services-wall {
  --service-chip-size: 84px;
  --service-gap: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0 24px;
  contain: layout;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--service-gap);
  transform: translateX(calc((var(--service-chip-size) + var(--service-gap)) * -0.25));
  contain: layout;
}

.service-row + .service-row {
  margin-top: var(--service-gap);
}

.service-row:nth-child(even) {
  transform: translateX(calc((var(--service-chip-size) + var(--service-gap)) * 0.25));
}

.service-chip {
  --chip-accent-a: rgba(94, 102, 255, 0.28);
  --chip-accent-b: rgba(91, 202, 255, 0.18);
  --chip-shadow: rgba(39, 59, 120, 0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--service-chip-size);
  height: var(--service-chip-size);
  min-height: var(--service-chip-size);
  padding:
    calc(var(--service-chip-size) * 0.11)
    calc(var(--service-chip-size) * 0.09)
    calc(var(--service-chip-size) * 0.08);
  border: 1px solid rgba(124, 139, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, var(--chip-accent-a), transparent 48%),
    linear-gradient(180deg, rgba(21, 33, 63, 0.9), rgba(11, 20, 39, 0.94));
  box-shadow:
    0 14px 28px rgba(10, 18, 44, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: scale(1);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.service-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%);
  opacity: 0.72;
  pointer-events: none;
}

.service-chip__icon,
.service-chip__body {
  position: relative;
  z-index: 1;
}

.service-chip__icon {
  --service-icon-bg:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(160deg, rgba(118, 136, 198, 0.42), rgba(58, 76, 128, 0.3));
  --service-icon-fg: #ffffff;
  display: grid;
  place-items: center;
  width: calc(var(--service-chip-size) * 0.42);
  height: calc(var(--service-chip-size) * 0.42);
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--service-icon-bg);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 20px rgba(17, 30, 74, 0.18);
  overflow: hidden;
}

.service-chip__logo,
.service-chip__fallback {
  position: relative;
  z-index: 1;
}

.service-chip__logo {
  width: calc(var(--service-chip-size) * 0.26);
  height: calc(var(--service-chip-size) * 0.26);
  object-fit: contain;
}

.service-chip__fallback {
  font-family: var(--heading-font);
  font-size: clamp(0.62rem, calc(var(--service-chip-size) * 0.16), 0.92rem);
  letter-spacing: 0.02em;
  color: var(--service-icon-fg);
}

.service-chip__body {
  display: grid;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.service-chip__body strong {
  font-family: var(--body-font);
  font-size: clamp(0.62rem, calc(var(--service-chip-size) * 0.142), 0.82rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.08;
  overflow: hidden;
  display: block;
  max-height: calc(1.08em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  color: rgba(233, 240, 255, 0.84);
  text-wrap: balance;
}

.service-chip__body small {
  display: none;
}

.service-chip.is-active {
  transform: scale(1.14);
  border-color: rgba(152, 190, 255, 0.32);
  box-shadow:
    0 22px 40px rgba(11, 25, 57, 0.26),
    inset 0 0 0 1px rgba(125, 177, 255, 0.06);
  filter: saturate(1.08);
  z-index: 3;
}

.service-floating-tip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  width: fit-content;
  max-width: min(720px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid rgba(150, 169, 255, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(114, 98, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(18, 31, 58, 0.97), rgba(11, 19, 38, 0.985));
  box-shadow:
    0 24px 54px rgba(4, 12, 30, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.38s;
}

.service-floating-tip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.service-detail-badge {
  display: none;
}

.service-floating-tip strong {
  display: inline;
  flex: 0 0 auto;
  margin: 0;
  color: #eef4ff;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.service-floating-tip p {
  margin: 0;
  flex: 0 1 auto;
  color: rgba(223, 232, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.service-chip--medium .service-chip__logo {
  transform: translateX(1px) scale(1.16);
}

.feature-card,
.plan-card {
  flex: 1 1 240px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.feature-icon,
.plan-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  background: rgba(54, 104, 255, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
}

.feature-card h3,
.plan-card h3,
.login-card h3,
.dashboard-card h3 {
  margin: 18px 0 10px;
  font-family: var(--heading-font);
  font-size: 1.5rem;
}

.feature-card h3 {
  min-height: 3.1rem;
  line-height: 1.05;
}

.plans-grid {
  align-items: stretch;
  overflow: visible;
  padding-top: 20px;
  padding-right: 28px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.plan-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(221, 235, 255, 0.86)),
    rgba(255, 255, 255, 0.74);
  transform: translateY(-12px);
}

.plan-card.yearly {
  transform: translateY(-14px) scale(1.03);
  border-color: rgba(0, 0, 0, 0);
  padding-top: 34px;
  padding-bottom: 34px;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(122, 89, 255, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(91, 202, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(24, 38, 74, 0.96), rgba(14, 23, 45, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(153, 136, 255, 0.08),
    0 36px 92px rgba(8, 15, 36, 0.42);
}

.plan-card.yearly::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(101, 199, 255, 1) 0%, rgba(122, 89, 255, 1) 54%, rgba(255, 95, 210, 0.96) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan-card.yearly::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 94, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.plan-card.yearly .plan-label {
  background: rgba(116, 96, 255, 0.18);
  color: #eef3ff;
}

.plan-accent {
  position: absolute;
  top: 8px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7f50 0%, #ff4fd8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 18px 34px rgba(255, 79, 216, 0.3);
  transform: rotate(9deg);
}

.plan-card.yearly .plan-price,
.plan-card.yearly h3,
.plan-card.yearly li {
  color: var(--text);
}

.plan-card.yearly .plan-price {
  font-size: 3.2rem;
  text-shadow: 0 0 24px rgba(109, 98, 255, 0.14);
}

.plan-card.yearly .primary-button {
  background: linear-gradient(135deg, #6d60ff 0%, #8a61ff 52%, #5bcaff 100%);
  box-shadow: 0 18px 36px rgba(69, 95, 255, 0.28);
}

.plan-price {
  margin: 0;
  font-size: 2.9rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
}

.plan-card .primary-button {
  margin-top: auto;
}

.security-layout,
.cabinet-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.security-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.security-list div {
  padding: 20px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(24, 38, 74, 0.94), rgba(15, 24, 48, 0.94));
  border: 1px solid rgba(118, 101, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.security-list strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--heading-font);
}

.security-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 34px;
  border-radius: 32px;
}

.security-badge,
.security-mini-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 18px 20px;
  background: rgba(16, 27, 53, 0.84);
}

.security-badge {
  padding: 24px 24px 166px;
  margin-inline: auto;
  overflow: visible;
}

.security-mini-card {
  margin-top: auto;
}

.device-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.device-item {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(118, 102, 255, 0.14);
}

.device-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.device-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(118, 102, 255, 0.12);
}

.device-shell {
  position: relative;
  display: block;
}

.phone-visual .device-shell {
  width: 34px;
  height: 54px;
  border-radius: 13px;
  border: 1.5px solid rgba(232, 239, 255, 0.52);
  background: linear-gradient(180deg, rgba(24, 39, 76, 0.96), rgba(15, 24, 48, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone-visual .device-shell::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(232, 239, 255, 0.32);
}

.desktop-visual .device-shell {
  width: 48px;
  height: 31px;
  border-radius: 8px;
  border: 1.5px solid rgba(232, 239, 255, 0.52);
  background: linear-gradient(180deg, rgba(24, 39, 76, 0.96), rgba(15, 24, 48, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.desktop-visual .device-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 6px;
  transform: translateX(-50%);
  background: rgba(232, 239, 255, 0.32);
  border-radius: 0 0 3px 3px;
}

.desktop-visual .device-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 22px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(232, 239, 255, 0.22);
}

.device-platform {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 18px rgba(6, 11, 28, 0.24);
}

.device-platform svg,
.device-ready svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.device-platform.apple {
  color: #eff5ff;
  background: rgba(255, 255, 255, 0.08);
}

.device-platform.android {
  color: #8cffc9;
  background: rgba(87, 214, 151, 0.14);
}

.device-platform.microsoft {
  color: #82d8ff;
  background: rgba(91, 202, 255, 0.14);
}

.device-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--heading-font);
  font-size: 1.18rem;
}

.device-copy small,
.security-mini-card span,
.security-mini-card small {
  color: var(--muted);
}

.device-copy small {
  display: block;
  line-height: 1.45;
  font-size: 0.96rem;
}

.device-ready {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #86f3bf;
  background: rgba(87, 214, 151, 0.12);
  border: 1px solid rgba(87, 214, 151, 0.22);
  box-shadow: 0 0 20px rgba(87, 214, 151, 0.16);
}

.security-server {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 320px;
  height: 220px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.server-waves {
  position: absolute;
  inset: 0;
}

.server-waves span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 1.5px solid rgba(110, 124, 255, 0.28);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 20px rgba(98, 119, 255, 0.12),
    inset 0 0 18px rgba(91, 202, 255, 0.06);
  animation: serverPulse 4.6s ease-out infinite;
}

.server-waves span:nth-child(2) {
  animation-delay: 1.2s;
}

.server-waves span:nth-child(3) {
  animation-delay: 2.4s;
}

.server-core {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  width: 124px;
}

.server-flag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 74px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(82, 121, 255, 0.22), rgba(91, 202, 255, 0.18));
  border: 1px solid rgba(132, 183, 255, 0.26);
  color: #eef4ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.flag-eu {
  display: inline-flex;
  width: 30px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(11, 24, 72, 0.22);
}

.flag-eu svg {
  display: block;
  width: 100%;
  height: 100%;
}

.server-icon {
  display: grid;
  gap: 8px;
  padding: 56px 16px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(28, 45, 85, 0.96), rgba(15, 24, 48, 0.98));
  border: 1px solid rgba(118, 102, 255, 0.18);
  box-shadow: 0 18px 36px rgba(5, 10, 28, 0.28);
}

.server-icon span {
  display: block;
  width: 96px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(49, 71, 126, 0.96), rgba(24, 38, 76, 0.96));
  border: 1px solid rgba(118, 102, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.server-icon span::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #86f3bf;
  box-shadow: 0 0 10px rgba(134, 243, 191, 0.28);
}

.server-icon span::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 22px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102, 174, 255, 0.62), rgba(124, 102, 255, 0.52));
}

@keyframes serverPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  18% {
    opacity: 0.58;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.1);
  }
}

.cabinet-layout {
  align-items: start;
}

.login-card,
.dashboard-card {
  padding: 28px;
  border-radius: 30px;
}

.login-card {
  display: grid;
  gap: 16px;
}

.login-card label {
  display: grid;
  gap: 8px;
}

.login-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(118, 103, 255, 0.16);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.login-card input:focus {
  border-color: rgba(255, 95, 210, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 95, 210, 0.08);
}

.form-feedback {
  min-height: 24px;
  margin: 0;
}

.form-feedback.success {
  color: var(--success);
}

.form-feedback.error {
  color: #d04665;
}

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

.dashboard-empty {
  padding: 20px 22px;
  margin-top: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-content.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.access-card {
  flex: 1 1 220px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.access-card code {
  display: block;
  padding: 14px;
  margin: 14px 0 16px;
  overflow-wrap: anywhere;
  border-radius: 16px;
  background: rgba(115, 90, 255, 0.12);
  color: #dbe4ff;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0s linear 0.32s;
}

.purchase-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.32s ease,
    visibility 0s linear 0s;
}

.purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(111, 89, 255, 0.18), transparent 30%),
    rgba(4, 9, 22, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.purchase-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 30px 28px 26px;
  border: 1px solid rgba(150, 170, 255, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(114, 96, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(17, 28, 54, 0.96), rgba(8, 15, 31, 0.98));
  box-shadow:
    0 36px 96px rgba(3, 8, 22, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.purchase-modal.is-open .purchase-modal__dialog {
  transform: translateY(0) scale(1);
}

.purchase-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(140, 160, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.purchase-modal__close span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.purchase-modal__close span:first-child {
  transform: rotate(45deg);
}

.purchase-modal__close span:last-child {
  transform: rotate(-45deg);
}

.purchase-modal__header {
  max-width: 430px;
  margin-bottom: 22px;
}

.purchase-modal__header h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.purchase-modal__text {
  margin: 0;
  color: rgba(221, 229, 255, 0.78);
  line-height: 1.65;
}

.purchase-modal__text strong {
  color: #eef4ff;
}

.purchase-modal__form {
  display: grid;
  gap: 16px;
}

.purchase-modal__field {
  display: grid;
  gap: 9px;
}

.purchase-modal__field span {
  font-size: 0.98rem;
  color: rgba(229, 236, 255, 0.86);
}

.purchase-modal__field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(118, 103, 255, 0.16);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.purchase-modal__field input:focus {
  border-color: rgba(255, 95, 210, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 95, 210, 0.08);
  background: rgba(255, 255, 255, 0.065);
}

.purchase-modal__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 2px;
  color: rgba(218, 227, 255, 0.8);
  line-height: 1.55;
}

.purchase-modal__consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #7a6cff;
}

.purchase-modal__consent a {
  color: #b8c8ff;
  text-decoration: underline;
  text-decoration-color: rgba(184, 200, 255, 0.4);
  text-underline-offset: 3px;
}

.purchase-modal__submit {
  width: 100%;
  justify-content: center;
  min-height: 58px;
  margin-top: 4px;
}

.purchase-modal__feedback {
  min-height: 24px;
  margin: -4px 0 0;
}

.faq-list {
  display: grid;
  gap: 16px;
  contain: layout;
}

.faq-item {
  overflow: hidden;
  border-radius: 24px;
  backdrop-filter: none;
  background:
    radial-gradient(circle at top left, rgba(88, 106, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 29, 55, 0.94), rgba(11, 18, 34, 0.98));
  contain: layout paint;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 84px;
  padding: 22px 24px;
  font-family: var(--heading-font);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: rgba(216, 226, 255, 0.84);
  font-family: var(--body-font);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.34s ease;
}

.faq-item.is-open summary::after,
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: #eef4ff;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.feature-grid,
.plans-grid,
.security-layout,
.footer-grid {
  contain: layout;
}

@supports (content-visibility: auto) {
  .features.section-block {
    content-visibility: auto;
    contain-intrinsic-size: 820px;
  }

  .services-scene.section-block {
    content-visibility: auto;
    contain-intrinsic-size: 1120px;
  }

  .plans.section-block {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
  }

  .security.section-block {
    content-visibility: auto;
    contain-intrinsic-size: 940px;
  }

  .faq.section-block {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
  }

  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
  }
}

.faq-item.is-open .faq-answer,
.faq-item[open] .faq-answer {
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 24px;
  color: rgba(219, 228, 255, 0.82);
  line-height: 1.68;
}

@media (hover: hover) and (pointer: fine) {
  .purchase-modal__close:hover {
    transform: translateY(-2px);
    border-color: rgba(166, 183, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
  }

  .service-chip:hover,
  .service-chip:focus-visible {
    transform: scale(1.16);
    border-color: rgba(128, 188, 255, 0.24);
    box-shadow:
      0 24px 38px rgba(8, 18, 42, 0.26),
      inset 0 0 0 1px rgba(125, 177, 255, 0.06);
  }

  .login-card:hover,
  .dashboard-card:hover,
  .faq-item:hover,
  .security-list div:hover,
  .device-item:hover,
  .security-badge:hover {
    transform: translateY(-4px);
    border-color: rgba(132, 152, 255, 0.24);
    box-shadow: 0 30px 82px rgba(10, 20, 46, 0.28);
  }

  .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(118, 190, 255, 0.26);
    background:
      radial-gradient(circle at top left, rgba(104, 156, 255, 0.16), transparent 34%),
      linear-gradient(180deg, rgba(26, 40, 78, 0.94), rgba(16, 26, 51, 0.96));
    box-shadow:
      0 30px 82px rgba(8, 18, 42, 0.3),
      inset 0 0 0 1px rgba(118, 190, 255, 0.08);
  }

  .faq-item:hover,
  .security-list div:hover,
  .device-item:hover {
    background:
      radial-gradient(circle at top left, rgba(112, 138, 255, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(28, 42, 78, 0.98), rgba(16, 25, 46, 0.98));
  }

  .faq-item:hover {
    border-color: rgba(132, 152, 255, 0.26);
    box-shadow:
      0 30px 82px rgba(10, 20, 46, 0.24),
      inset 0 0 0 1px rgba(120, 166, 255, 0.05);
  }

  .security-list div:hover {
    background:
      linear-gradient(180deg, rgba(30, 48, 92, 0.96), rgba(18, 28, 56, 0.98));
    border-color: rgba(128, 144, 255, 0.24);
  }

  .plans-grid .plan-card:not(.yearly):hover {
    transform: translateY(-8px);
    border-color: rgba(132, 152, 255, 0.24);
    background:
      radial-gradient(circle at top left, rgba(98, 144, 255, 0.12), transparent 32%),
      linear-gradient(180deg, rgba(24, 37, 72, 0.92), rgba(15, 24, 48, 0.96));
    box-shadow:
      0 32px 84px rgba(10, 20, 46, 0.3),
      inset 0 0 0 1px rgba(118, 164, 255, 0.06);
  }

  .plans-grid .plan-card:not(.yearly):hover .plan-label {
    background: rgba(109, 123, 255, 0.14);
    color: #e9efff;
  }

  .plans-grid .plan-card:not(.yearly):hover .primary-button {
    box-shadow: 0 18px 36px rgba(73, 86, 255, 0.3);
  }

  .plans-grid .plan-card.yearly:hover {
    transform: translateY(-18px) scale(1.035);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .security-layout,
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .plans-grid {
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
    min-height: auto;
  }

  .hero-scene {
    min-height: 600px;
    max-width: 520px;
    margin-inline: auto;
  }

  .phone-main {
    right: 20px;
    top: 44px;
    width: 244px;
    height: 472px;
  }

  .phone-side {
    right: 270px;
    top: 154px;
    width: 172px;
    height: 332px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .page-shell main {
    padding-top: calc(var(--header-height) + 34px);
  }

  .site-header {
    margin-top: 0;
    flex-wrap: wrap;
    border-radius: 28px;
    padding: 18px;
    width: var(--container);
    max-width: var(--container);
    row-gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav,
  .header-actions {
    display: none;
    width: 100%;
  }

  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    gap: 14px;
    padding-top: 6px;
    justify-content: flex-start;
  }

  .main-nav a,
  .header-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .header-actions {
    padding-top: 6px;
    gap: 10px;
  }

  .hero {
    gap: 22px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    flex: 1 1 220px;
  }

  .security-panel {
    min-height: 500px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .plan-card.featured,
  .plan-card.yearly {
    transform: none;
  }

}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 24px, 1160px);
  }

  .page-shell main {
    padding-top: calc(var(--header-height) + 42px);
  }

  .site-header {
    top: max(10px, env(safe-area-inset-top));
    margin-top: 0;
    width: var(--container);
    max-width: var(--container);
    padding: 16px;
    border-radius: 24px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
    gap: 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10.5vw, 3.85rem);
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .services-cloud {
    padding-bottom: 20px;
  }

  .services-wall {
    gap: 0;
    padding: 12px 0 20px;
  }

  .services-note {
    width: min(100%, calc(100vw - 24px));
    padding: 20px 18px;
    border-radius: 24px;
  }

  .services-note p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .service-row + .service-row {
    margin-top: var(--service-gap);
  }

  .service-row:nth-child(even) {
    transform: translateX(calc((var(--service-chip-size) + var(--service-gap)) * 0.25));
  }

  .service-chip {
    padding:
      calc(var(--service-chip-size) * 0.1)
      calc(var(--service-chip-size) * 0.08)
      calc(var(--service-chip-size) * 0.08);
  }

  .service-floating-tip {
    position: fixed;
    left: 50%;
    right: auto;
    top: 0;
    bottom: auto;
    width: min(calc(100vw - 24px), 520px);
    max-width: none;
    margin-top: 0;
    padding: 16px 18px;
    border-radius: 24px;
    background:
      radial-gradient(circle at top left, rgba(116, 100, 255, 0.24), transparent 42%),
      linear-gradient(180deg, rgba(19, 31, 58, 0.98), rgba(10, 18, 36, 0.985));
    box-shadow:
      0 24px 56px rgba(3, 10, 24, 0.44),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translate(-50%, 18px) scale(0.975);
    z-index: 80;
  }

  .service-floating-tip.is-visible {
    transform: translate(-50%, 0) scale(1);
  }

  .service-floating-tip strong {
    display: block;
    margin-bottom: 6px;
  }

  .service-floating-tip p {
    display: block;
    white-space: normal;
  }

  .hero-scene {
    min-height: 500px;
    max-width: 360px;
    margin-inline: auto;
  }

  .phone-main {
    left: 50%;
    margin-left: -58px;
    right: auto;
    top: 42px;
    width: 196px;
    height: 404px;
  }

  .phone-side {
    left: 50%;
    margin-left: -150px;
    right: auto;
    top: 136px;
    width: 122px;
    height: 244px;
  }

  .phone-side .phone-screen {
    padding: 14px 12px;
  }

  .phone-side .screen-badge {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .phone-side .mini-list {
    gap: 6px;
    margin-top: 34px;
  }

  .phone-side .mini-list span {
    padding: 8px 9px;
    font-size: 0.74rem;
  }

  .section-block {
    padding: 60px 0;
  }

  .login-card,
  .dashboard-card,
  .feature-card,
  .plan-card,
  .faq-item,
  .security-panel {
    padding: 22px;
  }

  .purchase-modal {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .purchase-modal__dialog {
    width: min(100vw - 20px, 560px);
    max-height: calc(100dvh - 24px);
    padding: 24px 20px 22px;
    border-radius: 28px;
  }

  .purchase-modal__close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .purchase-modal__field input {
    min-height: 54px;
    font-size: 16px;
  }

  .purchase-modal__consent {
    grid-template-columns: 20px 1fr;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .security-badge {
    padding-bottom: 214px;
  }

  .security-server {
    width: 280px;
    height: 208px;
  }

  .footer-card {
    padding: 22px 20px;
  }

  .footer-bottom {
    font-size: 0.9rem;
  }

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

@media (max-width: 420px) {
  .page-shell main {
    padding-top: calc(var(--header-height) + 48px);
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.2vw, 3.2rem);
  }

  .hero-scene {
    min-height: 448px;
    max-width: 320px;
  }

  .phone-main {
    left: 50%;
    margin-left: -52px;
    right: auto;
    width: 178px;
    height: 366px;
  }

  .phone-side {
    left: 50%;
    margin-left: -140px;
    right: auto;
    top: 128px;
    width: 110px;
    height: 224px;
  }

  .trust-strip div,
  .feature-card,
  .plan-card,
  .faq-item,
  .security-panel {
    padding: 20px;
  }

  .device-item {
    min-height: 172px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .primary-button,
  .secondary-button,
  .ghost-button,
  [data-parallax] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
