/* =====================================================
   TWINK VPN LANDING
===================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --bg: #0c0b1c;
  --panel: rgba(20, 15, 40, 0.58);
  --panel-strong: rgba(24, 17, 48, 0.78);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.58);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-subtle: rgba(255, 255, 255, 0.38);
  --subtle: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --orange: #ff6f4f;
  --blue: #4d5fff;
  --pink: #ff53a9;
  --green: #30d158;
  --grad: linear-gradient(135deg, #ff6f4f 0%, #ff4f78 38%, #4d5fff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 111, 79, 0.9), rgba(77, 95, 255, 0.9));
  --grad-text: linear-gradient(135deg, #ff9b78 0%, #ff72b9 38%, #aeb6ff 100%);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  --radius: 33px;
  --radius-sm: 20px;
  --pill: 999px;
  --container: 1160px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

section,
.trust-bar {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.page-backdrop {
  position: absolute;
  inset: 0;
  height: 980px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 111, 79, 0.16) 0%, transparent 31%),
    linear-gradient(315deg, rgba(77, 95, 255, 0.20) 0%, transparent 35%),
    #0c0b1c;
}

.bg-scene {
  position: absolute;
  inset: 0;
  height: 980px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 111, 79, 0.16) 0%, transparent 31%),
    linear-gradient(315deg, rgba(77, 95, 255, 0.20) 0%, transparent 35%),
    #0c0b1c;
}

.bg-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 72%);
}

.bg-orb {
  display: none;
}

.surface-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 72%);
}

.surface-wash {
  position: absolute;
  inset-inline: -15%;
  height: 44%;
  opacity: 0.75;
  filter: blur(46px);
}

.surface-wash-top {
  top: -12%;
  background: linear-gradient(90deg, rgba(255, 86, 64, 0.16), rgba(255, 83, 169, 0.08), rgba(77, 95, 255, 0.14));
}

.surface-wash-bottom {
  bottom: -18%;
  background: linear-gradient(90deg, rgba(77, 95, 255, 0.16), rgba(255, 83, 169, 0.08), rgba(255, 111, 79, 0.12));
}

.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--inset);
  backdrop-filter: blur(36px) saturate(155%);
  -webkit-backdrop-filter: blur(36px) saturate(155%);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.17), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%);
  mix-blend-mode: overlay;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.navbar.scrolled {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 60px;
  margin-top: 10px;
  padding: 8px 12px 8px 16px;
  border-radius: var(--pill);
  background: rgba(20, 20, 25, 0.7);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px) brightness(1.05) saturate(1.2) url(#liquidGlassHeaderFilter);
  -webkit-backdrop-filter: blur(1px) brightness(1.05) saturate(1.2);
  isolation: isolate;
  overflow: hidden;
  pointer-events: all;
  transform: translateZ(0);
  backface-visibility: hidden;
}

html.liquid-glass-fallback .nav-inner {
  backdrop-filter: blur(8px) saturate(1.2) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.2) brightness(1.05);
}

.nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.05) 70%,
    rgba(255, 255, 255, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 90% at 8% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(ellipse 52% 76% at 92% 100%, rgba(255, 255, 255, 0.11), transparent 36%),
    radial-gradient(ellipse 50% 70% at 50% 50%, rgba(255, 255, 255, 0.035), transparent 44%);
  pointer-events: none;
}

.nav-inner > * {
  position: relative;
  z-index: 25;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: url("../assets/images/logo.svg") center / contain no-repeat;
}

.nav-logo-img {
  width: 150px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 426px;
  padding: 2px;
  border-radius: var(--pill);
}

.nav-liquid-indicator {
  position: absolute;
  z-index: 20;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition:
    left 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.nav-liquid-indicator.is-visible {
  opacity: 1;
}

.nav-liquid-indicator.is-animating {
  animation: navJellySquash 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes navJellySquash {
  0% { transform: translateZ(0) scaleX(1) scaleY(1); }
  20% { transform: translateZ(0) scaleX(1.15) scaleY(0.85); }
  40% { transform: translateZ(0) scaleX(0.92) scaleY(1.12); }
  60% { transform: translateZ(0) scaleX(1.05) scaleY(0.95); }
  80% { transform: translateZ(0) scaleX(0.98) scaleY(1.03); }
  100% { transform: translateZ(0) scaleX(1) scaleY(1); }
}

.nav-link {
  position: relative;
  z-index: 25;
  flex: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.liquid-glass-fx {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-nav-cta,
.btn-mobile-cta,
.btn-primary,
.plan-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  background: var(--grad);
  box-shadow:
    inset -0.8px -0.8px 2px rgba(0, 0, 0, 0.28),
    inset 1px 1px 2px rgba(255, 255, 255, 0.58),
    0 10px 28px rgba(255, 86, 64, 0.28),
    0 10px 28px rgba(77, 95, 255, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-nav-cta {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  font-size: 14px;
}

.btn-primary {
  padding: 0 24px;
}

.btn-primary::before,
.plan-cta.primary-cta::before,
.btn-mobile-cta::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0.22;
  filter: blur(18px);
}

.btn-primary:hover,
.btn-nav-cta:hover,
.plan-cta:hover {
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 12px;
  right: 12px;
  z-index: 99;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(16, 13, 33, 0.94);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  display: block;
  padding: 15px 14px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.btn-mobile-cta {
  width: 100%;
  margin-top: 8px;
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 110px), 860px);
  padding: calc(var(--nav-h) + 76px) 0 76px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    radial-gradient(640px 420px at 14% 18%, rgba(255, 111, 79, 0.18), transparent 68%),
    radial-gradient(620px 520px at 82% 38%, rgba(77, 95, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%);
}

.hero-inner {
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(100%, 650px);
  position: relative;
  z-index: 3;
}

.hero-badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border: 1px solid rgba(255, 111, 79, 0.26);
  border-radius: var(--pill);
  background: rgba(255, 111, 79, 0.12);
  color: rgba(255, 190, 164, 0.95);
  font-size: 13px;
  font-weight: 720;
}

.badge-dot,
.section-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9066;
  box-shadow: 0 0 12px rgba(255, 144, 102, 0.8);
}

.hero-title {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(66px, 11vw, 146px);
  font-weight: 860;
  line-height: 0.9;
  letter-spacing: -0.055em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.55;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 560px);
  margin-top: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.hero-proof div {
  padding: 17px 18px;
}

.hero-proof div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-proof strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}

.hero-proof span {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

.hero-media {
  position: absolute;
  inset: var(--nav-h) 0 0;
  z-index: 1;
  pointer-events: none;
}

.product-orbit {
  position: absolute;
  top: 50%;
  right: max(30px, calc((100vw - var(--container)) / 2));
  width: min(42vw, 500px);
  min-width: 360px;
  transform: translateY(-48%);
}

.product-orbit::before {
  content: "";
  position: absolute;
  inset: 10% -18% -10%;
  background:
    linear-gradient(135deg, rgba(255, 111, 79, 0.20), transparent 45%),
    linear-gradient(315deg, rgba(77, 95, 255, 0.25), transparent 48%);
  filter: blur(36px);
  opacity: 0.9;
}

.app-preview {
  width: 332px;
  min-height: 558px;
  margin-left: auto;
  padding: 18px 16px 20px;
  border-radius: 42px;
  transform: rotate(3deg);
}

.app-preview::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 34px;
  pointer-events: none;
}

.app-preview-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.preview-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(48, 209, 88, 0.75);
}

.preview-hero {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
}

.preview-hero img {
  width: 300px;
  max-width: 112%;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.42));
}

.preview-title {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: 31px;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
}

.preview-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 58px;
  margin-top: 22px;
  border-radius: 33px;
  background: var(--grad);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.65),
    0 15px 32px rgba(255, 88, 65, 0.24),
    0 15px 32px rgba(77, 95, 255, 0.24);
  font-size: 16px;
  font-weight: 680;
}

.preview-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.hero-signal {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pill);
  background: rgba(16, 13, 33, 0.66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), var(--inset);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-signal-left {
  left: 34px;
  top: 118px;
  transform: rotate(-6deg);
}

.hero-signal-right {
  right: -4px;
  bottom: 122px;
  transform: rotate(7deg);
}

.trust-bar {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 4, 14, 0.28);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hide ticker duplicates on desktop — only needed for mobile animation */
.trust-item[aria-hidden="true"] {
  display: none;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
  font-weight: 600;
}

.trust-item-icon,
.feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.8);
}

.trust-item-icon svg,
.feature-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  position: relative;
  z-index: 2;
  padding: 96px 0;
  overflow: hidden;
  isolation: isolate;
}

.section::before,
.section::after,
.final-cta::before,
.footer::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.features::before {
  inset: 0;
  background:
    radial-gradient(620px 380px at 6% 18%, rgba(255, 83, 169, 0.11), transparent 68%),
    radial-gradient(560px 420px at 88% 68%, rgba(77, 95, 255, 0.13), transparent 70%);
}

.features::after {
  right: max(18px, calc((100vw - var(--container)) / 2));
  top: 110px;
  width: 190px;
  height: 190px;
  background: url("../assets/images/twink_mascot_logo.svg") center / contain no-repeat;
  opacity: 0.08;
  transform: rotate(10deg);
}

.how::before {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 111, 79, 0.08), transparent 42%),
    radial-gradient(640px 400px at 52% 48%, rgba(77, 95, 255, 0.15), transparent 68%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 98px);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
}

.how::after {
  width: 720px;
  height: 260px;
  left: 50%;
  top: 230px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  transform: translateX(-50%) rotate(-5deg);
  box-shadow: inset 0 0 80px rgba(77, 95, 255, 0.08);
}

.pricing::before {
  inset: 0;
  background:
    radial-gradient(720px 440px at 50% 36%, rgba(175, 82, 222, 0.18), transparent 70%),
    radial-gradient(520px 360px at 12% 78%, rgba(255, 111, 79, 0.13), transparent 68%),
    radial-gradient(520px 420px at 88% 84%, rgba(77, 95, 255, 0.13), transparent 70%);
}

.pricing::after {
  left: 50%;
  top: 160px;
  width: min(980px, 78vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-50%);
  box-shadow: 0 70px 90px rgba(175, 82, 222, 0.12);
}

.faq::before {
  inset: 0;
  background:
    radial-gradient(560px 360px at 18% 20%, rgba(77, 95, 255, 0.10), transparent 68%),
    radial-gradient(560px 360px at 82% 60%, rgba(255, 111, 79, 0.08), transparent 70%);
}

.section-header {
  width: min(100%, 760px);
  margin: 0 auto 42px;
  text-align: center;
}

.section-header .section-badge {
  margin: 0 auto 16px;
}

.section-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-subtitle {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

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

.feature-card {
  min-height: 260px;
  padding: 26px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.feature-card:hover,
.pricing-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 23px;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-grid > .feature-card:nth-child(4) .feature-icon svg {
  display: none;
}

.feature-grid > .feature-card:nth-child(4) .feature-icon::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.feature-grid > .feature-card:nth-child(4) h3,
.feature-grid > .feature-card:nth-child(4) p {
  font-size: 0;
}

.feature-grid > .feature-card:nth-child(4) h3::before {
  content: "Поддержка, оплата и ключи в Telegram";
  font-size: 23px;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.feature-grid > .feature-card:nth-child(4) p::before {
  content: "Не нужно искать личный кабинет: бот хранит устройства, подписку, ответы на вопросы и помогает быстро восстановить доступ.";
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-card-large {
  grid-column: span 2;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: end;
  overflow: visible;
  isolation: visible;
  background:
    linear-gradient(135deg, rgba(255, 111, 79, 0.16), transparent 48%),
    rgba(20, 15, 40, 0.62);
}

.feature-card-large::before {
  overflow: hidden;
}

.feature-card-large h3 {
  margin-top: 10px;
  max-width: 500px;
  font-size: clamp(30px, 4vw, 48px);
}

.feature-card-large p {
  max-width: 500px;
  font-size: 16px;
}

.feature-kicker {
  color: rgba(255, 190, 164, 0.9);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.feature-mascot {
  position: absolute;
  z-index: 3;
  right: -72px;
  width: 410px;
  max-width: none;
  filter:
    drop-shadow(0 24px 42px rgba(129, 11, 115, 0.267))
    drop-shadow(0 0 28px rgba(33, 10, 122, 0.247));
  transform: rotate(5deg);
}

.feature-card-dark {
  background:
    linear-gradient(135deg, rgba(77, 95, 255, 0.13), transparent 44%),
    rgba(15, 10, 34, 0.70);
}

.feature-card-support,
.feature-support-copy,
.feature-support-meta,
.feature-support-mascot {
  display: none !important;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 51px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 79, 0.42), rgba(77, 95, 255, 0.42), transparent);
  filter: blur(0.2px);
  pointer-events: none;
}

.step-card {
  position: relative;
  min-height: 252px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transition: transform 0.24s ease, border-color 0.24s ease;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -34% 22%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(255, 111, 79, 0.18), transparent 68%);
  pointer-events: none;
}

.step-card:nth-child(even)::before {
  inset: auto 20% -34% -20%;
  background: radial-gradient(ellipse, rgba(77, 95, 255, 0.20), transparent 68%);
}

.step-card:nth-child(even) {
  margin-top: 34px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 19px;
  background: var(--grad-soft);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.42), 0 12px 28px rgba(255, 111, 79, 0.18);
  color: #fff;
  font-weight: 820;
}

.step-card h3 {
  margin-top: 24px;
  font-size: 21px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.step-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px auto 0;
  color: var(--subtle);
}

.platform-strip span,
.platform-strip strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.platform-strip strong {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
}

.connect-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 26px;
  background:
    radial-gradient(280px 160px at 18% 100%, rgba(255, 111, 79, 0.14), transparent 70%),
    radial-gradient(300px 180px at 88% 0%, rgba(77, 95, 255, 0.18), transparent 72%),
    rgba(17, 12, 38, 0.64);
}

.connect-panel > * {
  position: relative;
  z-index: 2;
}

.connect-panel-copy h3 {
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.connect-panel-copy p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.connect-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: var(--pill);
  background: rgba(48, 209, 88, 0.10);
  color: rgba(160, 245, 186, 0.94);
  font-size: 13px;
  font-weight: 750;
}

.connect-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.7);
}

.connect-key {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.connect-key span {
  color: var(--subtle);
  font-size: 13px;
}

.connect-key strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.connect-apps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connect-apps span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  padding-top: 34px;
}

.pricing-card {
  position: relative;
  padding: 34px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, border-color 0.24s ease;
  overflow: visible;
  background:
    radial-gradient(210px 180px at 12% 96%, rgba(255, 111, 79, 0.16), transparent 72%),
    rgba(20, 15, 40, 0.62);
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 78% 92%, rgba(77, 95, 255, 0.12), transparent 42%);
}

.pricing-card-featured {
  transform: translateY(-12px);
  border-color: rgba(255, 135, 99, 0.36);
  background:
    radial-gradient(260px 200px at 80% 100%, rgba(125, 105, 255, 0.24), transparent 70%),
    radial-gradient(260px 160px at 10% 100%, rgba(255, 111, 79, 0.18), transparent 70%),
    rgba(24, 17, 48, 0.82);
}

.pricing-card-ultima {
  background:
    radial-gradient(260px 200px at 84% 100%, rgba(48, 209, 88, 0.10), transparent 72%),
    radial-gradient(260px 180px at 12% 96%, rgba(255, 83, 169, 0.18), transparent 72%),
    rgba(20, 15, 40, 0.62);
}

.pricing-card-featured:hover {
  transform: translateY(-16px);
}

.plan-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.plan-head h3 {
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.plan-badge {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 820;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.plan-badge::before {
  font-size: 14px;
}

.plan-badge-self {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(255, 106, 86, 0.58), rgba(125, 105, 255, 0.46)), rgba(52, 38, 82, 0.78);
  border: 1px solid rgba(255, 110, 90, 0.34);
}

.plan-badge-self::before {
  content: "♥";
  color: #af52de;
}

.plan-badge-hot {
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(135deg, rgba(255, 135, 99, 0.58), rgba(255, 115, 95, 0.38)), rgba(40, 25, 50, 0.82);
  border: 1px solid rgba(255, 135, 99, 0.34);
}

.plan-badge-hot::before {
  content: "★";
  color: #ffd60a;
}

.plan-badge-ultima {
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(135deg, rgba(186, 118, 255, 0.52), rgba(116, 94, 255, 0.44)), rgba(30, 20, 60, 0.82);
  border: 1px solid rgba(186, 118, 255, 0.34);
}

.plan-badge-ultima::before {
  content: "●●●";
  color: #30d158;
  letter-spacing: -0.22em;
  margin-right: 5px;
}

.plan-price {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  font-size: 56px;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.plan-price span {
  font-size: 25px;
  vertical-align: super;
  letter-spacing: -0.03em;
}

.plan-note {
  position: absolute;
  z-index: 2;
  top: 54px;
  right: 28px;
  margin-top: 0;
  color: var(--subtle);
  font-size: 15px;
}

.plan-description {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.plan-list {
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-list li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #d46cff;
  font-size: 18px;
  font-weight: 850;
}

.pricing-card-ultima .plan-list li::before {
  color: #30d158;
}

.plan-cta {
  position: relative;
  z-index: 2;
  min-height: 56px;
  width: 100%;
  padding: 0 16px;
}

.ultima-cta {
  background: linear-gradient(135deg, #d246a8 0%, #785cff 100%);
}

.outline-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.76);
}

.outline-cta:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.faq-list {
  width: min(100%, 820px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item.open {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  text-align: left;
}

.faq-q-text {
  font-size: 16px;
  font-weight: 650;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.065);
  transition: transform 0.25s ease;
}

.faq-chevron svg {
  width: 10px;
  height: 6px;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.25s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.final-cta {
  position: relative;
  z-index: 2;
  padding: 32px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.final-cta::before {
  inset: 0;
  background:
    radial-gradient(560px 320px at 12% 44%, rgba(255, 111, 79, 0.12), transparent 68%),
    radial-gradient(620px 360px at 88% 58%, rgba(77, 95, 255, 0.14), transparent 70%);
}

.cta-panel {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 32px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 111, 79, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(77, 95, 255, 0.18), transparent 44%),
    rgba(20, 15, 40, 0.68);
  box-shadow: var(--shadow), var(--inset);
  overflow: hidden;
}

.cta-copy {
  position: relative;
  z-index: 2;
}

.cta-panel h2 {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.cta-panel p {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
}

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

.cta-mascot-wrap {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  z-index: 2;
  width: 550px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  pointer-events: none;
}

.cta-mascot-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 83, 169, 0.20), rgba(77, 95, 255, 0.12) 40%, transparent 70%);
  filter: blur(32px);
}

.cta-mascot-wrap img {
  position: relative;
  z-index: 1;
  width: 650px;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 44px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 32px rgba(255, 83, 169, 0.22));
}

.footer {
  position: relative;
  z-index: 2;
  padding: 58px 0 28px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.footer::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
    radial-gradient(480px 260px at 50% 100%, rgba(175, 82, 222, 0.08), transparent 70%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 58px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--subtle);
  font-size: 14px;
}

.footer-logo {
  width: 180px;
  height: 92px;
  background: url("../assets/images/logo.svg") left center / contain no-repeat;
  opacity: 0.72;
}

.footer-brand a {
  width: fit-content;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav h4 {
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--subtle);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 54px) 0 100px;
  overflow-x: hidden;
}

.legal-page .container {
  width: min(100% - 48px, 860px);
}

.legal-hero {
  max-width: 860px;
  margin-bottom: 48px;
}

.legal-hero .section-badge {
  margin-bottom: 16px;
}

.legal-hero h1 {
  max-width: 100%;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.legal-hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.legal-page code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.legal-support-note {
  max-width: 760px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 111, 79, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 111, 79, 0.11), rgba(77, 95, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--inset);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.legal-support-note a {
  color: rgba(255, 190, 164, 0.95);
  font-weight: 720;
}

.legal-nav-link {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.legal-nav-link:hover,
.legal-nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.legal-section {
  margin-bottom: 66px;
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.legal-section-title {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-section-date {
  margin: -12px 0 24px;
  color: var(--subtle);
  font-size: 13px;
}

.legal-section h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.legal-section p,
.legal-section li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}

.legal-section strong {
  color: rgba(255, 255, 255, 0.86);
}

.legal-placeholder {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px dashed rgba(255, 160, 80, 0.42);
  border-radius: 12px;
  background: rgba(255, 160, 80, 0.11);
  color: rgba(255, 210, 160, 0.9);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero {
    padding-top: calc(var(--nav-h) + 52px);
  }

  .hero-inner {
    align-items: flex-start;
    min-height: 780px;
  }

  .hero-copy {
    width: min(100%, 780px);
  }

  .hero-media {
    inset: auto 0 30px;
    height: 520px;
  }

  .product-orbit {
    top: 0;
    right: 50%;
    transform: translateX(52%);
    width: 500px;
  }

  .app-preview {
    margin: 0 auto;
    transform: rotate(2deg) scale(0.9);
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card-large {
    grid-column: span 2;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  /* page-backdrop is fixed 980px on desktop — extend it on mobile so
     surface-wash blur layers don't hard-clip inside the features section */
  .page-backdrop {
    height: 1600px;
  }

  .container,
  .legal-page .container {
    padding: 0 16px;
  }

  .legal-page .container {
    width: 100%;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  p,
  a,
  span,
  strong,
  li {
    overflow-wrap: anywhere;
  }

  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .nav-burger,
  .mobile-menu {
    display: flex;
  }

  .nav-inner {
    justify-content: space-between;
    width: calc(100% - 24px);
    min-height: 54px;
    margin: 8px 12px 0;
    padding: 6px 8px 6px 14px;
  }

  .nav-actions {
    display: flex;
    margin-left: auto;
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 30;
    transform: translateY(-50%);
  }

  .nav-burger {
    display: flex;
    flex: 0 0 42px;
  }

  .mobile-menu {
    flex-direction: column;
    gap: 2px;
  }

  /* ── Hero: side-by-side ── */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 32px) 16px 32px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    overflow: hidden;
  }

  /* text column — left, drawn first visually */
  .hero-inner {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: auto;
    padding: 0;
    display: block;
    align-items: unset;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .hero-title {
    width: 100%;
    max-width: none;
    font-size: 30px;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-top: 12px;
  }

  .hero-lead {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.65);
    overflow-wrap: break-word;
    max-width: none;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 14px;
    gap: 8px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero-proof {
    display: none;
  }

  /* card column — right: uniform scale from desktop dimensions */
  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    flex: 0 0 152px;
    width: 152px;
    height: 262px; /* 558px × 0.458 */
    overflow: visible;
    padding: 0;
    pointer-events: none;
    align-self: flex-start;
  }

  /* hide the hard inner-border overlay that looks pixelated at small scale */
  .app-preview::after {
    display: none;
  }

  .product-orbit {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: 332px;
    min-width: 332px;
    transform: scale(0.458);
    transform-origin: top left;
    margin: 0;
  }

  .product-orbit::before {
    display: none;
  }

  /* Restore card to desktop dimensions — parent scale handles sizing */
  .app-preview {
    width: 332px;
    min-height: 558px;
    max-width: none;
    padding: 18px 16px 20px;
    border-radius: 42px;
    transform: rotate(3deg);
    margin: 0;
    display: block;
  }

  /* Reset all inner card elements to desktop values */
  .app-preview-top {
    padding: 10px 12px;
    font-size: 13px;
    gap: 9px;
  }

  .preview-status {
    width: 8px;
    height: 8px;
  }

  .preview-hero {
    height: 260px;
  }

  .preview-hero img {
    width: 300px;
    max-width: 112%;
    filter: drop-shadow(0 26px 38px rgba(0,0,0,0.42));
  }

  .preview-title {
    margin-top: 12px;
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-align: center;
  }

  .preview-button {
    min-height: 58px;
    font-size: 16px;
    margin-top: 22px;
    border-radius: 33px;
  }

  .preview-meta {
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
  }

  .hero-signal {
    display: none;
  }

  /* ── Trust bar: infinite ticker ── */
  .trust-bar {
    overflow: hidden;
    padding: 14px 0;
  }

  .trust-bar .container {
    max-width: none;
    padding: 0;
    overflow: hidden;
  }

  .trust-inner {
    display: flex;
    width: max-content;
    gap: 0;
    flex-wrap: nowrap;
    animation: trust-ticker 18s linear infinite;
  }

  @keyframes trust-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  .trust-item {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 0;
    background: none;
    font-size: 13px;
    line-height: 1.25;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
  }

  .trust-item-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 8px;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 10px;
  }

  /* dot separator between ticker items */
  .trust-item + .trust-item::before {
    content: "·";
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    margin-right: 16px;
    flex: 0 0 auto;
  }

  .section {
    padding: 40px 0;
  }

  /* Fix features background boundary: desktop gradients leave dark band in middle on tall mobile sections */
  .features::before {
    background:
      radial-gradient(85% 28% at 8% 12%, rgba(255, 83, 169, 0.12), transparent 70%),
      radial-gradient(80% 28% at 92% 88%, rgba(77, 95, 255, 0.14), transparent 70%),
      radial-gradient(70% 30% at 50% 50%, rgba(100, 60, 200, 0.07), transparent 70%);
  }

  .features::after {
    display: none;
  }

  .section-header {
    margin-bottom: 18px;
    text-align: center;
  }

  .section-header .section-badge {
    margin: 0 auto 12px;
  }

  .section-title {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.06;
    text-wrap: wrap;
  }

  .legal-hero h1 {
    max-width: 330px;
    font-size: clamp(30px, 7.6vw, 34px);
    line-height: 1.08;
    overflow-wrap: break-word;
    text-wrap: wrap;
  }

  .section-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  /* ── Feature cards ── */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Undo desktop ::before trick — restore real card text on mobile */
  /* Use explicit px values — 'inherit' loses to this selector's higher specificity */
  .feature-grid > .feature-card:nth-child(4) h3 {
    font-size: 14px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .feature-grid > .feature-card:nth-child(4) p {
    font-size: 12px;
    line-height: 1.45;
  }

  .feature-grid > .feature-card:nth-child(4) h3::before,
  .feature-grid > .feature-card:nth-child(4) p::before {
    content: none;
  }

  /* Regular feature cards */
  .feature-card {
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .feature-icon svg {
    width: 15px;
    height: 15px;
  }

  .feature-kicker {
    font-size: 10px;
  }

  .feature-card h3 {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .feature-card p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  /* Large card: full width, text left / mascot right */
  .feature-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0;
    min-height: 0;
    overflow: visible;
    align-items: start;
    padding: 13px 0 14px 14px;
  }

  .feature-card-large h3 {
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-top: 8px;
  }

  .feature-card-large p {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
  }

  .feature-mascot {
    position: relative;
    right: auto;
    bottom: auto;
    width: 220px;
    max-width: none;
    align-self: center;
    margin: 0 -30px auto;
    transform: translateX(-16px) rotate(5deg);
    filter:
      drop-shadow(0 12px 24px rgba(129, 11, 115, 0.45))
      drop-shadow(0 0 16px rgba(33, 10, 122, 0.35));
  }

  /* Step cards: 2×2 grid */
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Pricing: single column */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline .step-card,
  .timeline .step-card:nth-child(even) {
    min-height: 0;
    margin-top: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 14px;
  }

  .step-card h3 {
    margin-top: 14px;
    font-size: 17px;
  }

  .step-card p {
    margin-top: 6px;
    font-size: 13px;
  }

  .connect-panel {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
    gap: 14px;
  }

  .connect-panel-copy h3 {
    font-size: 20px;
    margin-top: 10px;
  }

  .connect-panel-copy p {
    font-size: 13px;
    margin-top: 6px;
  }

  .connect-key {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .connect-key strong {
    font-size: 15px;
  }

  .connect-key,
  .connect-key strong,
  .connect-key span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* ── FAQ compact ── */
  .faq-list {
    gap: 8px;
  }

  .faq-question {
    min-height: 52px;
    padding: 14px 16px;
  }

  .faq-q-text {
    font-size: 14px;
  }

  .faq-answer-content {
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .faq-chevron {
    width: 24px;
    height: 24px;
  }

  /* ── platform strip compact ── */
  .platform-strip {
    margin-top: 18px;
    gap: 6px;
    font-size: 12px;
  }

  .platform-strip span,
  .platform-strip strong,
  .connect-apps span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pricing-grid {
    gap: 0;
    padding-top: 0;
  }

  .pricing-card,
  .pricing-card-featured,
  .pricing-card-featured:hover,
  .step-card:nth-child(even) {
    transform: none;
  }

  .pricing-card {
    overflow: visible;
    padding: 24px 16px 18px;
    border-radius: 24px;
    margin-top: 38px;
  }

  .plan-head {
    align-items: center;
    padding-right: 84px;
  }

  .plan-head h3 {
    font-size: 20px;
  }

  .plan-badge {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    min-height: 28px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
  }

  .plan-price {
    position: absolute;
    top: 24px;
    right: 16px;
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
  }

  .plan-price span {
    font-size: 13px;
  }

  .plan-note {
    position: absolute;
    top: 50px;
    right: 16px;
    margin: 0;
    font-size: 11px;
  }

  .plan-description {
    margin-top: 22px;
    padding-top: 14px;
    font-size: 13px;
  }

  .plan-list {
    gap: 10px;
    margin: 12px 0 14px;
    padding-bottom: 14px;
    font-size: 13px;
  }

  .plan-cta {
    min-height: 46px;
  }

  /* platform-strip handled above */

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 20px 18px 24px;
    border-radius: 26px;
    min-height: 0;
  }

  .cta-panel h2 {
    font-size: 20px;
    line-height: 1.1;
    padding-right: 120px;
  }

  .cta-panel p {
    font-size: 12px;
    line-height: 1.5;
    max-width: none;
    margin-top: 8px;
    padding-right: 100px;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    width: auto;
    flex: 1 1 auto;
    min-height: 40px;
    font-size: 13px;
    padding-inline: 14px;
  }

  .cta-mascot-wrap {
    position: absolute;
    top: -8px;
    right: 45px;
    transform: none;
    width: 180px;
    margin: 0;
  }

  .cta-mascot-wrap img {
    width: 310px;
  }

  .footer-inner,
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer {
    padding: 28px 0 16px;
  }

  .footer-inner {
    display: block;
    padding-bottom: 18px;
  }

  .footer-brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px 5px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-logo {
    width: 42px;
    height: 42px;
    opacity: 0.6;
  }

  .footer-brand p {
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
  }

  .footer-brand a {
    grid-column: 1 / -1;
    width: fit-content;
    min-height: 32px;
    padding: 0 9px;
    font-size: 9px;
    line-height: 32px;
  }

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

  .footer-nav div {
    gap: 7px;
  }

  .footer-nav div:nth-child(3) {
    display: none;
  }

  .footer-nav h4 {
    margin-bottom: 2px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .footer-nav a {
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-bottom {
    gap: 0;
    padding-top: 12px;
    font-size: 11px;
  }

  .footer-bottom p {
    color: rgba(255, 255, 255, 0.38);
  }

  .footer-bottom div {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero {
    gap: 8px;
    padding-inline: 12px;
  }

  /* Scale card slightly smaller on very narrow screens */
  .hero-media {
    flex: 0 0 132px;
    width: 132px;
    height: 228px; /* 558 × 0.397 */
  }

  .product-orbit {
    transform: scale(0.397); /* 132/332 */
  }

  /* Reset app-preview overrides — scaling handles everything */
  .app-preview {
    width: 332px;
    max-width: none;
  }

  .preview-hero img {
    width: 300px;
  }

  .hero-title {
    font-size: 24px;
  }

  .feature-card h3 {
    font-size: 14px;
  }

  .feature-card-large h3,
  .section-title {
    font-size: 20px;
  }

  .plan-price {
    font-size: 22px;
  }

  .trust-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }
}

@media (max-width: 360px) {
  .container,
  .legal-page .container {
    padding: 0 12px;
  }

  .nav-inner {
    width: calc(100% - 16px);
    margin-inline: 8px;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo-icon {
    width: 34px;
    height: 34px;
  }

  .nav-logo-text {
    font-size: 15px;
  }

  .hero-badge,
  .section-badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-title {
    font-size: 32px;
  }

  .feature-card,
  .step-card,
  .connect-panel,
  .pricing-card {
    padding: 14px;
  }

  .plan-head {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
